diff --git a/Gemfile.lock b/Gemfile.lock index f7f0c59..7ebd19a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,34 +10,40 @@ GIT GEM remote: https://rubygems.org/ specs: - addressable (2.5.0) - public_suffix (~> 2.0, >= 2.0.2) - chunky_png (1.3.8) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + chunky_png (1.3.11) color (1.8) - css_parser (1.4.9) + css_parser (1.7.1) addressable - excon (0.55.0) - json (1.8.3) - pdf-core (0.6.1) - prawn (2.1.0) - pdf-core (~> 0.6.1) - ttfunk (~> 1.4.0) - prawn-svg (0.26.0) - css_parser (~> 1.3) + excon (0.73.0) + json (2.3.0) + mustermann (1.1.1) + ruby2_keywords (~> 0.0.1) + pdf-core (0.7.0) + prawn (2.2.2) + pdf-core (~> 0.7.0) + ttfunk (~> 1.5) + prawn-svg (0.30.0) + css_parser (~> 1.6) prawn (>= 0.11.1, < 3) - public_suffix (2.0.5) - rack (1.6.5) - rack-protection (1.5.3) + public_suffix (4.0.5) + rack (2.2.2) + rack-protection (2.0.8.1) rack - rmagick (2.16.0) - rqrcode (0.10.1) + rmagick (4.1.2) + rqrcode (1.1.2) chunky_png (~> 1.0) - sinatra (1.4.8) - rack (~> 1.5) - rack-protection (~> 1.4) - tilt (>= 1.3, < 3) - tilt (2.0.6) - ttfunk (1.4.0) + rqrcode_core (~> 0.1) + rqrcode_core (0.1.2) + ruby2_keywords (0.0.2) + sinatra (2.0.8.1) + mustermann (~> 1.0) + rack (~> 2.0) + rack-protection (= 2.0.8.1) + tilt (~> 2.0) + tilt (2.0.10) + ttfunk (1.6.2.1) PLATFORMS ruby @@ -53,4 +59,4 @@ DEPENDENCIES sinatra BUNDLED WITH - 1.11.2 + 1.17.2 diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf4c5c4 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# spejstore-labelmaker + +```sh +bundle install +bundle exec ruby main.rb +``` + +try it out: + +GET http://localhost:4567/api/1/preview/:label.png +GET http://localhost:4567/api/1/preview/:label.pdf +POST http://localhost:4567/api/1/print/:label + +where :label is a `spejstore` label.id or item.short_id