Bump dependencies, add basic readme

master
radex 2020-05-20 23:55:44 +02:00 committed by Piotr Dobrowolski
parent 4cab9f4707
commit 3c9c0f9ba3
2 changed files with 44 additions and 24 deletions

View File

@ -10,34 +10,40 @@ GIT
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.5.0) addressable (2.7.0)
public_suffix (~> 2.0, >= 2.0.2) public_suffix (>= 2.0.2, < 5.0)
chunky_png (1.3.8) chunky_png (1.3.11)
color (1.8) color (1.8)
css_parser (1.4.9) css_parser (1.7.1)
addressable addressable
excon (0.55.0) excon (0.73.0)
json (1.8.3) json (2.3.0)
pdf-core (0.6.1) mustermann (1.1.1)
prawn (2.1.0) ruby2_keywords (~> 0.0.1)
pdf-core (~> 0.6.1) pdf-core (0.7.0)
ttfunk (~> 1.4.0) prawn (2.2.2)
prawn-svg (0.26.0) pdf-core (~> 0.7.0)
css_parser (~> 1.3) ttfunk (~> 1.5)
prawn-svg (0.30.0)
css_parser (~> 1.6)
prawn (>= 0.11.1, < 3) prawn (>= 0.11.1, < 3)
public_suffix (2.0.5) public_suffix (4.0.5)
rack (1.6.5) rack (2.2.2)
rack-protection (1.5.3) rack-protection (2.0.8.1)
rack rack
rmagick (2.16.0) rmagick (4.1.2)
rqrcode (0.10.1) rqrcode (1.1.2)
chunky_png (~> 1.0) chunky_png (~> 1.0)
sinatra (1.4.8) rqrcode_core (~> 0.1)
rack (~> 1.5) rqrcode_core (0.1.2)
rack-protection (~> 1.4) ruby2_keywords (0.0.2)
tilt (>= 1.3, < 3) sinatra (2.0.8.1)
tilt (2.0.6) mustermann (~> 1.0)
ttfunk (1.4.0) rack (~> 2.0)
rack-protection (= 2.0.8.1)
tilt (~> 2.0)
tilt (2.0.10)
ttfunk (1.6.2.1)
PLATFORMS PLATFORMS
ruby ruby
@ -53,4 +59,4 @@ DEPENDENCIES
sinatra sinatra
BUNDLED WITH BUNDLED WITH
1.11.2 1.17.2

14
README.md Normal file
View File

@ -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