facehugger 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/reprocess_photo.rb +7 -1
- data/facehugger.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/bin/reprocess_photo.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'facehugger'
|
4
4
|
require 'RMagick'
|
5
|
+
require 'yaml'
|
5
6
|
|
6
7
|
gallery = {
|
7
8
|
:urls => "http://2.bp.blogspot.com/-sRejIPLgEaY/Tqe0887jyOI/AAAAAAAAAm4/yEL9k2pxfG4/s1600/man-4+patrickhoelck-4e308eb4e5e102.jpg",
|
@@ -13,6 +14,11 @@ fs_image = [
|
|
13
14
|
"data/group-of-people.jpg"
|
14
15
|
]
|
15
16
|
|
17
|
+
FACE_ACCOUNT = YAML.load open File.join File.dirname(__FILE__), "../spec/config", "face.yml"
|
18
|
+
|
19
|
+
facehugger = Facehugger.new(:api_key => FACE_ACCOUNT['api_key'],
|
20
|
+
:api_secret => FACE_ACCOUNT['api_secret'])
|
21
|
+
|
16
22
|
gallery.each_with_index do |(key, value), i|
|
17
23
|
img = Magick::Image.read(fs_image[i])[0]
|
18
24
|
w = img.columns
|
data/facehugger.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facehugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
version: '0'
|
185
185
|
segments:
|
186
186
|
- 0
|
187
|
-
hash:
|
187
|
+
hash: -3298909936587028221
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
none: false
|
190
190
|
requirements:
|