imagecollage 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.rubocop.yml +6 -0
- data/.travis.yml +5 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +46 -0
- data/Rakefile +10 -0
- data/bin/console +7 -0
- data/bin/imagecollage +10 -0
- data/bin/setup +6 -0
- data/imagecollage.gemspec +40 -0
- data/lib/imagecollage/cli.rb +61 -0
- data/lib/imagecollage/collage_generator.rb +54 -0
- data/lib/imagecollage/error.rb +3 -0
- data/lib/imagecollage/flickr_api.rb +59 -0
- data/lib/imagecollage/image_url_requester.rb +50 -0
- data/lib/imagecollage/random_word_api.rb +13 -0
- data/lib/imagecollage/runner.rb +23 -0
- data/lib/imagecollage/version.rb +3 -0
- data/lib/imagecollage.rb +11 -0
- metadata +184 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2085f909a2cef3fa20528ea84558bce6a539155b
|
4
|
+
data.tar.gz: 55da02dcfb0f6886219f5de0a4578be3f330fd8f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 64b29e7810c29a8b1b0427de30c6a90d9e169ae317753c820a36169f95e87d355412ff25540c3584e6c4183f4fdc736c3956ad277dfbaafb4c3ca44cdb5b7b9f
|
7
|
+
data.tar.gz: 534e07eabde523f566b8756a3c6b88b09a11239e448905ef4efdc68a65915add5746612927e8951d412a620b7b9ebb99da39fcd613d9d99374c74101b8f7b12a
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 David Piegza
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# ImageCollage
|
2
|
+
|
3
|
+
ImageCollage creates a collage based on images from Flickr.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
#### ImageMagick
|
8
|
+
|
9
|
+
This gem requires [ImageMagick](http://www.imagemagick.org) in order to run. Check the
|
10
|
+
[download section](http://www.imagemagick.org/script/download.php) at ImageMagick to get
|
11
|
+
instructions on how to install it.
|
12
|
+
|
13
|
+
Install it via homebrew (OSX):
|
14
|
+
|
15
|
+
$ brew install imagemagick@6
|
16
|
+
|
17
|
+
#### ImageCollage
|
18
|
+
|
19
|
+
Install it via gem:
|
20
|
+
|
21
|
+
$ gem install imagecollage
|
22
|
+
|
23
|
+
If you get an error while installing `rmagick` you could try installing it with:
|
24
|
+
|
25
|
+
$ PKG_CONFIG_PATH=/usr/local/opt/imagemagick@6/lib/pkgconfig gem install rmagick
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Run
|
30
|
+
|
31
|
+
$ imagecollage berlin tower cat dog flower cherry
|
32
|
+
|
33
|
+
## Development
|
34
|
+
|
35
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
36
|
+
|
37
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/davidpiegza/imagecollage.
|
42
|
+
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
data/bin/imagecollage
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'imagecollage/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'imagecollage'
|
8
|
+
spec.version = ImageCollage::VERSION
|
9
|
+
spec.authors = ['David Piegza']
|
10
|
+
spec.homepage = 'https://github.com/davidpiegza/imagecollage'
|
11
|
+
spec.summary = 'ImageCollage creates a collage based on images from Flickr.'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
|
14
|
+
spec.post_install_message = <<-MESSAGE
|
15
|
+
ImageCollage has been installed successfully!
|
16
|
+
|
17
|
+
Make sure to set a Flickr api key via env variable (export FLICKR_API_KEY=api_key) or
|
18
|
+
provide it when running this gem.
|
19
|
+
|
20
|
+
Example:
|
21
|
+
imagecollage berlin naples barcelona
|
22
|
+
MESSAGE
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
f.match(%r{^(test|spec|features)/})
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.bindir = 'bin'
|
29
|
+
spec.executables = ['imagecollage']
|
30
|
+
spec.require_paths = ['lib']
|
31
|
+
|
32
|
+
spec.add_runtime_dependency 'httparty', '~> 0.14'
|
33
|
+
spec.add_runtime_dependency 'rmagick', '~> 2.16'
|
34
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
35
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
36
|
+
spec.add_development_dependency 'rspec', '~> 3.4'
|
37
|
+
spec.add_development_dependency 'vcr', '~> 3.0'
|
38
|
+
spec.add_development_dependency 'webmock', '~> 2.3'
|
39
|
+
spec.add_development_dependency 'rubocop', '~> 0.46'
|
40
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module ImageCollage
|
2
|
+
class Cli
|
3
|
+
IMAGE_COLLAGE_DEFAULT_PATH = './collage.jpg'.freeze
|
4
|
+
|
5
|
+
def run(args = ARGV)
|
6
|
+
flickr_api_key = fetch_flickr_api_key
|
7
|
+
image_collage_path = fetch_image_collage_path
|
8
|
+
|
9
|
+
options = {
|
10
|
+
flickr_api_key: flickr_api_key,
|
11
|
+
image_collage_path: image_collage_path
|
12
|
+
}
|
13
|
+
|
14
|
+
runner = Runner.new(args, options)
|
15
|
+
|
16
|
+
return runner.run
|
17
|
+
rescue ImageCollage::Error => e
|
18
|
+
$stderr.puts
|
19
|
+
$stderr.puts "Error: #{e.message}"
|
20
|
+
return 2
|
21
|
+
rescue StandardError => e
|
22
|
+
$stderr.puts e.message
|
23
|
+
$stderr.puts e.backtrace
|
24
|
+
return 2
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
def fetch_flickr_api_key
|
30
|
+
if (api_key = ENV['FLICKR_API_KEY']).nil?
|
31
|
+
$stdout.puts 'Please provide a Flickr API key and set it as a'
|
32
|
+
$stdout.puts 'shell environment variable (FLICKR_API_KEY) or paste it here.'
|
33
|
+
|
34
|
+
api_key = ask 'Flickr API KEY:'
|
35
|
+
|
36
|
+
raise ImageCollage::Error, 'Invalid Flickr API key' if api_key.empty?
|
37
|
+
end
|
38
|
+
|
39
|
+
api_key
|
40
|
+
end
|
41
|
+
|
42
|
+
def fetch_image_collage_path
|
43
|
+
$stdout.puts 'Please provide a path for the generated collage image (default: current path).'
|
44
|
+
path = ask "Image collage path (#{IMAGE_COLLAGE_DEFAULT_PATH}):"
|
45
|
+
path = IMAGE_COLLAGE_DEFAULT_PATH if path.empty?
|
46
|
+
|
47
|
+
raise ImageCollage::Error, 'Invalid path' unless File.directory?(File.dirname(path))
|
48
|
+
|
49
|
+
path
|
50
|
+
end
|
51
|
+
|
52
|
+
def ask(message)
|
53
|
+
$stdout.puts
|
54
|
+
$stdout.print "#{message} "
|
55
|
+
result = $stdin.gets.chomp
|
56
|
+
$stdout.puts
|
57
|
+
|
58
|
+
result
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'RMagick'
|
2
|
+
require 'open-uri'
|
3
|
+
|
4
|
+
module ImageCollage
|
5
|
+
class CollageGenerator
|
6
|
+
include Magick
|
7
|
+
|
8
|
+
def initialize(image_urls)
|
9
|
+
@image_urls = image_urls
|
10
|
+
end
|
11
|
+
|
12
|
+
def generate_image_collage(path)
|
13
|
+
tmp_files = []
|
14
|
+
@image_urls.each do |image_url|
|
15
|
+
tmp_file = Tempfile.new(['image_collage', '.jpg'])
|
16
|
+
|
17
|
+
open(image_url) do |image_file|
|
18
|
+
tmp_file.write(image_file.read)
|
19
|
+
end
|
20
|
+
|
21
|
+
tmp_file.rewind
|
22
|
+
tmp_files << tmp_file
|
23
|
+
end
|
24
|
+
|
25
|
+
image_list = ImageList.new(*tmp_files.map(&:path))
|
26
|
+
|
27
|
+
resize!(image_list)
|
28
|
+
image_list = montage(image_list)
|
29
|
+
|
30
|
+
image_list.write(path)
|
31
|
+
ensure
|
32
|
+
tmp_files.each do |tmp_file|
|
33
|
+
tmp_file.close
|
34
|
+
tmp_file.unlink
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def resize!(image_list)
|
41
|
+
image_list.each do |image|
|
42
|
+
image.resize_to_fill!(320, 240)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def montage(image_list)
|
47
|
+
image_list.montage do
|
48
|
+
self.geometry = '320x240+0+0>'
|
49
|
+
rows = (image_list.size + 4) / 5
|
50
|
+
self.tile = Geometry.new(5,rows)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
3
|
+
module ImageCollage
|
4
|
+
class FlickrApi
|
5
|
+
include HTTParty
|
6
|
+
|
7
|
+
base_uri 'https://api.flickr.com/services/rest'
|
8
|
+
|
9
|
+
def initialize(api_key)
|
10
|
+
@api_key = api_key || ''
|
11
|
+
|
12
|
+
raise ImageCollage::Error, 'Invalid Flickr API key' if @api_key.empty?
|
13
|
+
end
|
14
|
+
|
15
|
+
def photos_search(options = {})
|
16
|
+
self.class.get('', photos_search_options(options))
|
17
|
+
end
|
18
|
+
|
19
|
+
def parse_image_url(response)
|
20
|
+
ResponseParser.new(response).fetch('url_z')
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def photos_search_options(options)
|
26
|
+
{
|
27
|
+
query: {
|
28
|
+
method: 'flickr.photos.search',
|
29
|
+
api_key: @api_key,
|
30
|
+
text: options[:keyword] || 'berlin',
|
31
|
+
extras: 'url_z',
|
32
|
+
per_page: 1,
|
33
|
+
sort: 'interestingness-desc'
|
34
|
+
}
|
35
|
+
}
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
class ResponseParser
|
40
|
+
PHOTO_PATH = ['rsp', 'photos', 'photo'].freeze
|
41
|
+
|
42
|
+
def initialize(response)
|
43
|
+
@response = response # TODO Wrap in a Hash if needed
|
44
|
+
end
|
45
|
+
|
46
|
+
def fetch(key)
|
47
|
+
photo_data[key]
|
48
|
+
end
|
49
|
+
|
50
|
+
def photo_data
|
51
|
+
@_photo_data ||= PHOTO_PATH.reduce(@response) do |subdata, el|
|
52
|
+
break unless subdata
|
53
|
+
subdata[el]
|
54
|
+
end
|
55
|
+
|
56
|
+
@_photo_data || {}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module ImageCollage
|
2
|
+
class ImageUrlRequester
|
3
|
+
def initialize(keywords, flickr_api, options = {})
|
4
|
+
@keywords = keywords || []
|
5
|
+
@flickr_api = flickr_api
|
6
|
+
@options = options || {}
|
7
|
+
|
8
|
+
@image_url_count = Integer(options[:image_url_count]) || 10
|
9
|
+
@keywords_pool = fill_keywords_pool(@keywords)
|
10
|
+
end
|
11
|
+
|
12
|
+
def image_urls
|
13
|
+
image_urls = []
|
14
|
+
|
15
|
+
while image_urls.length < @image_url_count
|
16
|
+
keyword = @keywords_pool.shift || random_keyword
|
17
|
+
|
18
|
+
print "Fetching image (#{image_urls.length + 1}/#{@image_url_count}) for #{keyword}..."
|
19
|
+
|
20
|
+
response = @flickr_api.photos_search(keyword: keyword)
|
21
|
+
image_url = @flickr_api.parse_image_url(response.parsed_response)
|
22
|
+
|
23
|
+
if image_url
|
24
|
+
image_urls << image_url
|
25
|
+
puts 'OK'
|
26
|
+
else
|
27
|
+
puts 'FAILED'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
image_urls
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def random_keyword
|
37
|
+
RandomWordApi.fetch
|
38
|
+
end
|
39
|
+
|
40
|
+
def fill_keywords_pool(keywords)
|
41
|
+
keywords_pool = Array.new(keywords)
|
42
|
+
|
43
|
+
while keywords_pool.length < @image_url_count
|
44
|
+
keywords_pool << random_keyword
|
45
|
+
end
|
46
|
+
|
47
|
+
keywords_pool
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module ImageCollage
|
2
|
+
class Runner
|
3
|
+
|
4
|
+
attr_reader :keywords, :options
|
5
|
+
|
6
|
+
COLLAGE_IMAGE_COUNT = 10
|
7
|
+
|
8
|
+
def initialize(keywords, options)
|
9
|
+
@keywords = keywords
|
10
|
+
@options = options || {}
|
11
|
+
end
|
12
|
+
|
13
|
+
def run
|
14
|
+
flickr_api = ImageCollage::FlickrApi.new(@options.fetch(:flickr_api_key))
|
15
|
+
image_url_requester = ImageUrlRequester.new(@keywords, flickr_api, image_url_count: COLLAGE_IMAGE_COUNT)
|
16
|
+
|
17
|
+
collage_generator = CollageGenerator.new(image_url_requester.image_urls)
|
18
|
+
collage_generator.generate_image_collage(@options.fetch(:image_collage_path))
|
19
|
+
|
20
|
+
return 0
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/imagecollage.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'imagecollage/cli'
|
2
|
+
require 'imagecollage/flickr_api'
|
3
|
+
require 'imagecollage/random_word_api'
|
4
|
+
require 'imagecollage/image_url_requester'
|
5
|
+
require 'imagecollage/collage_generator'
|
6
|
+
require 'imagecollage/runner'
|
7
|
+
require 'imagecollage/error'
|
8
|
+
require 'imagecollage/version'
|
9
|
+
|
10
|
+
module ImageCollage
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: imagecollage
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Piegza
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.14'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rmagick
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.16'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.10'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.3'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.3'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.46'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.46'
|
125
|
+
description:
|
126
|
+
email:
|
127
|
+
executables:
|
128
|
+
- imagecollage
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- ".rubocop.yml"
|
135
|
+
- ".travis.yml"
|
136
|
+
- Gemfile
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- bin/console
|
141
|
+
- bin/imagecollage
|
142
|
+
- bin/setup
|
143
|
+
- imagecollage.gemspec
|
144
|
+
- lib/imagecollage.rb
|
145
|
+
- lib/imagecollage/cli.rb
|
146
|
+
- lib/imagecollage/collage_generator.rb
|
147
|
+
- lib/imagecollage/error.rb
|
148
|
+
- lib/imagecollage/flickr_api.rb
|
149
|
+
- lib/imagecollage/image_url_requester.rb
|
150
|
+
- lib/imagecollage/random_word_api.rb
|
151
|
+
- lib/imagecollage/runner.rb
|
152
|
+
- lib/imagecollage/version.rb
|
153
|
+
homepage: https://github.com/davidpiegza/imagecollage
|
154
|
+
licenses:
|
155
|
+
- MIT
|
156
|
+
metadata: {}
|
157
|
+
post_install_message: |2
|
158
|
+
ImageCollage has been installed successfully!
|
159
|
+
|
160
|
+
Make sure to set a Flickr api key via env variable (export FLICKR_API_KEY=api_key) or
|
161
|
+
provide it when running this gem.
|
162
|
+
|
163
|
+
Example:
|
164
|
+
imagecollage berlin naples barcelona
|
165
|
+
rdoc_options: []
|
166
|
+
require_paths:
|
167
|
+
- lib
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
requirements: []
|
179
|
+
rubyforge_project:
|
180
|
+
rubygems_version: 2.5.2
|
181
|
+
signing_key:
|
182
|
+
specification_version: 4
|
183
|
+
summary: ImageCollage creates a collage based on images from Flickr.
|
184
|
+
test_files: []
|