instamatic 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/instamatic/app.rb +1 -3
- data/lib/instamatic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 538e5d7d68c8575ef4e77f132bd5d57bc874fc0c
|
4
|
+
data.tar.gz: 9039d50e7e7c653f610f842ea0399553e47ed080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063fae2c8bd79113803b0b6931a0685aa9c3f1a2c6351396fb8f49503e82cb4b0360b1f08f9fdcd0891cd14be28f09dd249680632e9650cb3fb96dfa472bed48
|
7
|
+
data.tar.gz: e008baf26a1b176a22544afd478bd046c0eb855482cde31313446b87150129a7609477067d96af90de9b7618f7e16e011b96579b3a0337fd17cc0b8028db2145
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Instamatic
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/instamatic.svg)](https://badge.fury.io/rb/instamatic)
|
4
|
+
|
3
5
|
Instamatic is a gem that lets you run a generator to create an image placement service in minutes.
|
4
6
|
|
5
7
|
Once your project is set up, just drop images (PNG files with transparency) into the `images/` folder and launch like any Sinatra app.
|
@@ -48,9 +50,9 @@ Getting started is easy!
|
|
48
50
|
2. Drop your images into `images/` and run the server with `rackup`, `shotgun`, or `ruby`.
|
49
51
|
3. That's it!
|
50
52
|
|
51
|
-
|
53
|
+
## Contributing
|
52
54
|
|
53
|
-
|
55
|
+
Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/aneely/instamatic.
|
54
56
|
|
55
57
|
|
56
58
|
## License
|
data/lib/instamatic/app.rb
CHANGED
@@ -105,8 +105,6 @@ module Instamatic
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def response_image(image_name, width, height, color, percent)
|
108
|
-
image_name = params[:image] if image_name.nil?
|
109
|
-
|
110
108
|
image = assign_image("#{image_name}")
|
111
109
|
width = assign_width("#{width}")
|
112
110
|
height = assign_height("#{height}")
|
@@ -165,7 +163,7 @@ module Instamatic
|
|
165
163
|
|
166
164
|
get '/?:image?/?:width?/?:height?/?:color?/?:percent?/?' do
|
167
165
|
|
168
|
-
response_image(params[:
|
166
|
+
response_image(params[:image], params[:width], params[:height], params[:color], params[:percent])
|
169
167
|
|
170
168
|
end
|
171
169
|
|
data/lib/instamatic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instamatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Neely
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|