picturama 0.0.6 → 1.0.0beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f94e6dbd92b5068221f701289dfa3d90ad57afcb
4
+ data.tar.gz: d42d463a3063185db61a277aa9f5d231bbba9e5e
5
+ SHA512:
6
+ metadata.gz: f7544e4744d0b6e01a5bf0caf96bf81c60ab08abba540a30536131d4a5e45f07a7e04097dc8e0fc7071fd3cb79ed6dc723a4282184796d25d6635b81a916d602
7
+ data.tar.gz: ab38bc39afd97314648fa536a4972415d0f0fb917431bb2ffd932bab1198a4988b04e69de82a69882fedeeb834cfc87701d4c93e2ec206ef88b23fac8a016a54
@@ -1 +1 @@
1
- 1.9.3p286
1
+ ruby-2.0.0-p481
data/Gemfile CHANGED
@@ -1,11 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rake'
4
-
5
- group :test, :development do
6
- gem 'rspec'
7
- end
8
-
9
4
  gem 'coveralls', require: false
5
+ gem 'pry-debugger'
10
6
 
11
7
  gemspec
@@ -1,25 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- picturama (0.0.6)
4
+ picturama (1.0.0beta)
5
5
  mini_magick (~> 3.6.0)
6
6
  stringex (~> 2.0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ coderay (1.1.0)
11
12
  colorize (0.5.8)
13
+ columnize (0.9.0)
12
14
  coveralls (0.6.7)
13
15
  colorize
14
16
  multi_json (~> 1.3)
15
17
  rest-client
16
18
  simplecov (>= 0.7)
17
19
  thor
20
+ debugger (1.6.8)
21
+ columnize (>= 0.3.1)
22
+ debugger-linecache (~> 1.2.0)
23
+ debugger-ruby_core_source (~> 1.3.5)
24
+ debugger-linecache (1.2.0)
25
+ debugger-ruby_core_source (1.3.8)
18
26
  diff-lcs (1.2.4)
27
+ method_source (0.8.2)
19
28
  mime-types (1.23)
20
29
  mini_magick (3.6.0)
21
30
  subexec (~> 0.2.1)
22
31
  multi_json (1.7.6)
32
+ pry (0.10.1)
33
+ coderay (~> 1.1.0)
34
+ method_source (~> 0.8.1)
35
+ slop (~> 3.4)
36
+ pry-debugger (0.2.3)
37
+ debugger (~> 1.3)
38
+ pry (>= 0.9.10, < 0.11.0)
23
39
  rake (10.0.3)
24
40
  rest-client (1.6.7)
25
41
  mime-types (>= 1.16)
@@ -35,6 +51,7 @@ GEM
35
51
  multi_json (~> 1.0)
36
52
  simplecov-html (~> 0.7.1)
37
53
  simplecov-html (0.7.1)
54
+ slop (3.6.0)
38
55
  stringex (2.0.2)
39
56
  subexec (0.2.3)
40
57
  thor (0.18.1)
@@ -45,5 +62,6 @@ PLATFORMS
45
62
  DEPENDENCIES
46
63
  coveralls
47
64
  picturama!
65
+ pry-debugger
48
66
  rake
49
67
  rspec
@@ -1,11 +1,7 @@
1
1
  class String
2
2
 
3
3
  def humanize
4
-
5
- if include?("-")
6
- self.split("-").join(" ").downcase
7
- end
8
-
4
+ include?("-") ? self.split("-").join(" ").downcase : self
9
5
  end
10
6
 
11
7
  end
@@ -1,29 +1,28 @@
1
1
  require 'ext/string'
2
2
  require 'stringex'
3
3
  require 'fileutils'
4
+ require 'pry'
4
5
  require 'picturama/album'
5
6
  require 'picturama/picture'
6
7
  require 'picturama/version'
7
8
 
8
9
  module Picturama
9
10
 
10
- Dir["lib/picturama/*.rb"].each { |file|
11
- require "#{Dir.pwd}/#{file}"
12
- }
11
+ Dir["lib/picturama/*.rb"].each { |file| require "#{Dir.pwd}/#{file}" }
13
12
 
14
13
  def self.config
15
14
  YAML.load_file('config/config.yml')['picturama']
16
15
  end
17
16
 
18
17
  def self.albums(album_source)
19
- albums = []
20
- Dir["#{album_source}/*"].each { |album|
21
- if File.directory?(album)
22
- potential_album = Picturama::Album.new(:folder => album)
23
- albums.push(potential_album) if potential_album.valid?
24
- end
18
+ [].tap { |albums|
19
+ Dir["#{album_source}/*"].each { |album|
20
+ if File.directory?(album)
21
+ potential_album = Picturama::Album.new(:folder => album)
22
+ albums << potential_album if potential_album.valid?
23
+ end
24
+ }
25
25
  }
26
- albums
27
26
  end
28
27
 
29
28
  end
@@ -10,18 +10,12 @@ module Picturama
10
10
  @info = "#{args[:folder]}/.info.yml"
11
11
  end
12
12
 
13
- def pictures(order = true)
14
- if File.directory?(@folder)
15
- list = []
13
+ def pictures(order = :basename)
14
+ [].tap do |list|
16
15
  filter = "#{@folder}/*.{#{Picturama::config['allowed_formats'].join(',')}}"
17
- dir_list = generate_sorting(filter)
18
- dir_list.each do |picture|
19
- list.push(Picturama::Picture.new(picture))
20
- end
21
- unless order
22
- list.reverse!
23
- end
24
- list
16
+ Dir[filter].sort_by{ |filename| File.send(order, "#{filename}") }.each { |picture|
17
+ list << Picturama::Picture.new(picture)
18
+ }
25
19
  end
26
20
  end
27
21
 
@@ -30,11 +24,7 @@ module Picturama
30
24
  end
31
25
 
32
26
  def name
33
- if info.nil?
34
- name!
35
- else
36
- info['album']['title']
37
- end
27
+ (info.nil?) ? name! : info['album']['title']
38
28
  end
39
29
 
40
30
  def name!
@@ -63,37 +53,20 @@ module Picturama
63
53
  end
64
54
 
65
55
  def init_thumbnails
66
- unless has_thumbnails?
67
- FileUtils.mkdir_p "#{@thumbnails}"
68
- end
56
+ FileUtils.mkdir_p("#{@thumbnails}", :mode => 0775) unless has_thumbnails?
69
57
  end
70
58
 
71
59
  def init_resized
72
- unless has_resized?
73
- FileUtils.mkdir_p "#{@resized}"
74
- end
60
+ FileUtils.mkdir_p("#{@resized}", :mode => 0775) unless has_resized?
75
61
  end
76
62
 
77
63
  def info
78
- if File.exists?(@info)
79
- YAML.load_file(@info)
80
- end
64
+ YAML.load_file(@info) if File.exists?(@info)
81
65
  end
82
66
 
83
67
  def valid?
84
68
  has_thumbnails? && !info.nil?
85
69
  end
86
70
 
87
- protected
88
-
89
- def generate_sorting(filter)
90
- if (filter == :size)
91
- dir_list = Dir[filter].sort_by{ |filename| File.size("#{filename}") }
92
- else
93
- dir_list = Dir[filter].sort_by{ |filename| File.ctime("#{filename}") }
94
- end
95
- dir_list
96
- end
97
-
98
71
  end
99
72
  end
@@ -1,3 +1,3 @@
1
1
  module Picturama
2
- VERSION = '0.0.6'
2
+ VERSION = '1.0.0beta'
3
3
  end
@@ -1,42 +1,44 @@
1
- namespace :album do
2
- desc "metadata handling for a given album"
3
- namespace :metadata do
4
- desc "generate metadata for an album in a given path"
5
- task :generate do
6
- puts ""
7
- print "Type the album path: "
8
- path = STDIN.gets.chomp
9
- if File.directory?(path)
10
- puts "Title:"
11
- title = STDIN.gets.chomp
12
- unless title.nil?
13
- puts "Description (optional):"
14
- description = STDIN.gets.chomp
15
- puts "Author (optional):"
16
- author = STDIN.gets.chomp
17
- info = {"album" => {"title" => title, "description" => description, "author" => author}}
18
- File.open("#{path}/.info.yml", 'w+') {|f| f.write(info.to_yaml) }
1
+ namespace :picturama do
2
+ namespace :album do
3
+ desc "metadata handling for a given album"
4
+ namespace :metadata do
5
+ desc "generate metadata for an album in a given path"
6
+ task :generate do
7
+ puts ""
8
+ print "Type the album path: "
9
+ path = STDIN.gets.chomp
10
+ if File.directory?(path)
11
+ puts "Title:"
12
+ title = STDIN.gets.chomp
13
+ unless title.nil?
14
+ puts "Description (optional):"
15
+ description = STDIN.gets.chomp
16
+ puts "Author (optional):"
17
+ author = STDIN.gets.chomp
18
+ info = {"album" => {"title" => title, "description" => description, "author" => author}}
19
+ File.open("#{path}/.info.yml", 'w+') {|f| f.write(info.to_yaml) }
20
+ else
21
+ puts "Title cannot be empty. Run the task again"
22
+ end
19
23
  else
20
- puts "Title cannot be empty. Run the task again"
24
+ puts "Sorry but #{path.inspect} entered is not a folder. Run the task again"
21
25
  end
22
- else
23
- puts "Sorry but #{path.inspect} entered is not a folder. Run the task again"
24
26
  end
25
- end
26
27
 
27
- desc "retrieve metadata album based on path"
28
- task :check do
29
- puts ""
30
- print "Type the album path: "
31
- path = STDIN.gets.chomp
32
- info_file = "#{path}/.info.yml"
33
- if File.directory?(path) && File.exists?(info_file)
34
- data = YAML.load_file(info_file)['album']
35
- puts "Title: #{data['title']}"
36
- puts "Description: #{data['description']}"
37
- puts "Author: #{data['author']}"
38
- else
39
- puts "Sorry but #{path.inspect} entered is not a folder. Run the task again"
28
+ desc "retrieve metadata album based on path"
29
+ task :check do
30
+ puts ""
31
+ print "Type the album path: "
32
+ path = STDIN.gets.chomp
33
+ info_file = "#{path}/.info.yml"
34
+ if File.directory?(path) && File.exists?(info_file)
35
+ data = YAML.load_file(info_file)['album']
36
+ puts "Title: #{data['title']}"
37
+ puts "Description: #{data['description']}"
38
+ puts "Author: #{data['author']}"
39
+ else
40
+ puts "Sorry but #{path.inspect} entered is not a folder. Run the task again"
41
+ end
40
42
  end
41
43
  end
42
44
  end
@@ -1,27 +1,29 @@
1
1
  require 'mini_magick'
2
2
 
3
- namespace :resized do
3
+ namespace :picturama do
4
+ namespace :resized do
4
5
 
5
- desc "Generate resized pictures for a given folder or just a single file"
6
- task :generate, :source do |t, args|
7
- if File.directory?(args[:source]) || File.exists?(args[:source])
8
- size = Picturama::config['resized_default_size']
9
- album = Picturama::Album.new(:folder => args[:source])
10
- puts "Generating #{album.count_pictures} resized for folder #{args[:source]}..."
11
- puts "Size: #{size}"
12
- album.init_resized
13
- album.pictures.each do |picture|
14
- unless picture.has_resized?
15
- pic = MiniMagick::Image.open(picture.path)
16
- pic.resize "#{size}"
17
- pic.format "jpg"
18
- pic.write picture.resized
19
- puts "Resized picture generated for source #{File.basename(picture.path)}. Target destination #{File.basename(picture.resized)}"
6
+ desc "Generate resized pictures for a given folder or just a single file"
7
+ task :generate, :source do |t, args|
8
+ if File.directory?(args[:source]) || File.exists?(args[:source])
9
+ size = Picturama::config['resized_default_size']
10
+ album = Picturama::Album.new(:folder => args[:source])
11
+ puts "Generating #{album.count_pictures} resized for folder #{args[:source]}..."
12
+ puts "Size: #{size}"
13
+ album.init_resized
14
+ album.pictures.each do |picture|
15
+ unless picture.has_resized?
16
+ pic = MiniMagick::Image.open(picture.path)
17
+ pic.resize "#{size}"
18
+ pic.format "jpg"
19
+ pic.write picture.resized
20
+ puts "Resized picture generated for source #{File.basename(picture.path)}. Target destination #{File.basename(picture.resized)}"
21
+ end
20
22
  end
23
+ else
24
+ puts "Error => target destination #{args[:source]} does not exist"
21
25
  end
22
- else
23
- puts "Error => target destination #{args[:source]} does not exist"
24
26
  end
25
- end
26
27
 
28
+ end
27
29
  end
@@ -1,30 +1,31 @@
1
1
  require 'mini_magick'
2
+ namespace :picturama do
3
+ namespace :thumbnail do
2
4
 
3
- namespace :thumbnail do
4
-
5
- desc "Generate thumbnail for a given folder or just a single file"
6
- task :generate, :source do |t, args|
7
- if File.directory?(args[:source]) || File.exists?(args[:source])
8
- size = Picturama::config['thumnail_default_size']
9
- album = Picturama::Album.new(:folder => args[:source])
10
- puts "Generating #{album.count_pictures} thumbnails for folder #{args[:source]}..."
11
- puts "Size: #{size}"
12
- unless album.has_broken_thumbnails?
13
- puts "WARNING: Seems that this album has all his thumbnails properly generated. There are no broken thumbs."
14
- end
15
- album.init_thumbnails
16
- album.pictures.each do |picture|
17
- unless picture.has_thumbnail?
18
- thumb = MiniMagick::Image.open(picture.path)
19
- thumb.resize "#{size}"
20
- thumb.format "jpg"
21
- thumb.write picture.thumbnail
22
- puts "Thumbnail generated for source #{File.basename(picture.path)}. Target destination #{File.basename(picture.thumbnail)}"
5
+ desc "Generate thumbnail for a given folder or just a single file"
6
+ task :generate, :source do |t, args|
7
+ if File.directory?(args[:source]) || File.exists?(args[:source])
8
+ size = Picturama::config['thumnail_default_size']
9
+ album = Picturama::Album.new(:folder => args[:source])
10
+ puts "Generating #{album.count_pictures} thumbnails for folder #{args[:source]}..."
11
+ puts "Size: #{size}"
12
+ unless album.has_broken_thumbnails?
13
+ puts "WARNING: Seems that this album has all his thumbnails properly generated. There are no broken thumbs."
14
+ end
15
+ album.init_thumbnails
16
+ album.pictures.each do |picture|
17
+ unless picture.has_thumbnail?
18
+ thumb = MiniMagick::Image.open(picture.path)
19
+ thumb.resize "#{size}"
20
+ thumb.format "jpg"
21
+ thumb.write picture.thumbnail
22
+ puts "Thumbnail generated for source #{File.basename(picture.path)}. Target destination #{File.basename(picture.thumbnail)}"
23
+ end
23
24
  end
25
+ else
26
+ puts "Error => target destination #{args[:source]} does not exist"
24
27
  end
25
- else
26
- puts "Error => target destination #{args[:source]} does not exist"
27
28
  end
28
- end
29
29
 
30
+ end
30
31
  end
@@ -1,16 +1,17 @@
1
1
  require 'fileutils'
2
-
3
- namespace :url do
4
- desc "Normalize album names name for URL format"
5
- task :sluglify, :source do |t, args|
6
- albums = Picturama::albums(args[:source])
7
- puts "In folder #{args[:source].inspect} I'm moving..."
8
- albums.each do |album|
9
- target_folder = "#{args[:source]}/#{album.folder.to_url}"
10
- unless File.directory?(target_folder)
11
- FileUtils.mv "#{args[:source]}/#{album.folder}", "#{target_folder}"
12
- puts "#{album.folder.inspect} to #{album.folder.to_url.inspect}"
2
+ namespace :picturama do
3
+ namespace :url do
4
+ desc "Normalize album names name for URL format"
5
+ task :sluglify, :source do |t, args|
6
+ albums = Picturama::albums(args[:source])
7
+ puts "In folder #{args[:source].inspect} I'm moving..."
8
+ albums.each do |album|
9
+ target_folder = "#{args[:source]}/#{album.folder.to_url}"
10
+ unless File.directory?(target_folder)
11
+ FileUtils.mv "#{args[:source]}/#{album.folder}", "#{target_folder}"
12
+ puts "#{album.folder.inspect} to #{album.folder.to_url.inspect}"
13
+ end
13
14
  end
14
15
  end
15
16
  end
16
- end
17
+ end
@@ -5,16 +5,17 @@ Gem::Specification.new do |s|
5
5
  s.name = 'picturama'
6
6
  s.version = Picturama::VERSION
7
7
  s.summary = "An easy picture gallery based on directory and files"
8
- s.description = "An easy picture gallery based on directory and files"
8
+ s.description = "An easy picture gallery based on directory and files. This is mostly for general purpose and to be used in console."
9
9
  s.authors = ["David Silveira"]
10
10
  s.email = 'jdsilveira@gmail.com'
11
11
  s.files = `git ls-files`.split("\n")
12
- s.homepage = 'http://davidsilveira.me/picturama'
12
+ s.homepage = 'http://davidsilveira.me/code/picturama-gem'
13
+ s.licenses = ['MIT']
13
14
 
14
- s.add_dependency('mini_magick', '~> 3.6.0')
15
- s.add_dependency('stringex', '~> 2.0.2')
15
+ s.add_dependency('mini_magick', '~> 3.6')
16
+ s.add_dependency('stringex', '~> 2.0')
16
17
 
17
- s.add_development_dependency 'rspec'
18
+ s.add_development_dependency 'rspec', "3.0.0"
18
19
 
19
20
  s.require_paths = ["lib"]
20
21
 
@@ -1,47 +1,44 @@
1
1
  require_relative 'spec_helper'
2
2
 
3
3
  describe "For a given folder" do
4
-
5
- before :each do
6
- @target_exists_folder = "#{Dir.pwd}/spec/pictures"
7
- @album = Picturama::Album.new(:folder => @target_exists_folder)
8
- end
4
+
5
+ let!(:target_exists_folder) { "#{Dir.pwd}/spec/pictures" }
6
+ let!(:album) { Picturama::Album.new(:folder => target_exists_folder) }
9
7
 
10
8
  it "check that Folder module return the list properly" do
11
- expected_file = "#{@target_exists_folder}/king.jpg"
12
- @album.pictures.first.class.should == Picturama::Picture.new('.').class
13
- @album.pictures.first.path.should == expected_file
9
+ expected_file = "#{target_exists_folder}/king.jpg"
10
+ expect(album.pictures.first).to be_kind_of Picturama::Picture
11
+ expect(album.pictures.first.path).to eq(expected_file)
14
12
  end
15
13
 
16
14
  it "check thumnails for images" do
17
- @album.pictures.first.has_thumbnail?.should be_false
18
- @album.pictures.first.has_resized?.should be_false
15
+ expect(album.pictures.first.has_thumbnail?).to be_false
16
+ expect(album.pictures.first.has_resized?).to be_false
19
17
  end
20
18
 
21
19
  it "check info for files" do
22
- @album.pictures.first.info.nil?.should be_true
20
+ expect(album.pictures.first.info).to be_nil
23
21
  end
24
22
 
25
23
  it "verify how many files are in album" do
26
- @album.count_pictures.should > 0
24
+ expect(album.pictures).not_to be_empty
27
25
  end
28
26
 
29
27
  it "gets all the albums in a given folder" do
30
- Picturama::albums(File.dirname(@target_exists_folder)).size.should > 0
28
+ expect(
29
+ Picturama::albums(File.dirname(target_exists_folder))
30
+ ).not_to be_empty
31
31
  end
32
32
 
33
33
  it "verifies the album name is correct based on folder name" do
34
- expected_album_name = "dummy album"
35
- expected_album_folder = "dummy-album"
36
- Picturama::albums(@target_exists_folder).first.name!.should == expected_album_name
37
- Picturama::albums(@target_exists_folder).first.folder.should == expected_album_folder
38
- Picturama::albums(@target_exists_folder).first.slug.should == expected_album_folder
34
+ album = Picturama::Album.new(:folder => target_exists_folder)
35
+ expect(album.name!).to eq("pictures")
36
+ expect(album.folder).to eq("pictures")
37
+ expect(album.slug).to eq("pictures")
39
38
  end
40
39
 
41
40
  it "checks the album info from the .info.yml file" do
42
- album_title_expected = 'some pictures here'
43
- @album.info['album']['name'].should == album_title_expected
41
+ expect(album.info['album']['name']).to eq('some pictures here')
44
42
  end
45
43
 
46
-
47
44
  end
@@ -2,32 +2,31 @@ require 'mini_magick'
2
2
  require_relative 'spec_helper'
3
3
 
4
4
  describe "For a given picture in a given album" do
5
-
6
- before :each do
7
- @target_exists_folder = "#{Dir.pwd}/spec/pictures"
8
- album = Picturama::Album.new(:folder => @target_exists_folder)
9
- album.init_thumbnails
10
- @picture = album.pictures.first
11
- @thumb_w = 100
12
- end
5
+
6
+ let!(:target_exists_folder) { "#{Dir.pwd}/spec/pictures" }
7
+ let!(:album) { Picturama::Album.new(:folder => target_exists_folder) }
8
+ let!(:thumb_w) { 100 }
9
+ let!(:picture) { album.pictures.first }
10
+
11
+ before { album.init_thumbnails }
13
12
 
14
13
  it "generate thumbnail" do
15
- @picture.has_thumbnail?.should be_false
16
- thumb = MiniMagick::Image.open(@picture.path)
14
+ expect(picture.has_thumbnail?).to be_false
15
+ thumb = MiniMagick::Image.open(picture.path)
17
16
  thumb.resize "100x100"
18
17
  thumb.format "jpg"
19
- thumb.write @picture.thumbnail
20
- @picture.has_thumbnail?.should be_true
21
- @picture.remove_assoc
22
- @picture.has_thumbnail?.should be_false
18
+ thumb.write picture.thumbnail
19
+ expect(picture.has_thumbnail?).to be_true
20
+ picture.remove_assoc
21
+ expect(picture.has_thumbnail?).to be_false
23
22
  end
24
23
 
25
24
  it "checks the image basename" do
26
- @picture.basename.should == 'king.jpg'
25
+ expect(picture.basename).to eq 'king.jpg'
27
26
  end
28
27
 
29
28
  it "checks the image extension" do
30
- @picture.type.downcase.should == 'jpg'
29
+ expect(picture.type.downcase).to eq 'jpg'
31
30
  end
32
31
 
33
32
 
metadata CHANGED
@@ -1,65 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picturama
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 1.0.0beta
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Silveira
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mini_magick
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 3.6.0
19
+ version: '3.6'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 3.6.0
26
+ version: '3.6'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: stringex
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: 2.0.2
33
+ version: '2.0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: 2.0.2
40
+ version: '2.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '='
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: 3.0.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '='
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
62
- description: An easy picture gallery based on directory and files
54
+ version: 3.0.0
55
+ description: An easy picture gallery based on directory and files. This is mostly
56
+ for general purpose and to be used in console.
63
57
  email: jdsilveira@gmail.com
64
58
  executables: []
65
59
  extensions: []
@@ -94,34 +88,28 @@ files:
94
88
  - spec/pictures/vote-quimby.jpg
95
89
  - spec/pictures/vote_quimby.jpg
96
90
  - spec/spec_helper.rb
97
- homepage: http://davidsilveira.me/picturama
98
- licenses: []
91
+ homepage: http://davidsilveira.me/code/picturama-gem
92
+ licenses:
93
+ - MIT
94
+ metadata: {}
99
95
  post_install_message:
100
96
  rdoc_options: []
101
97
  require_paths:
102
98
  - lib
103
99
  required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
100
  requirements:
106
- - - ! '>='
101
+ - - '>='
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
- segments:
110
- - 0
111
- hash: -997975699
112
104
  required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
105
  requirements:
115
- - - ! '>='
106
+ - - '>'
116
107
  - !ruby/object:Gem::Version
117
- version: '0'
118
- segments:
119
- - 0
120
- hash: -997975699
108
+ version: 1.3.1
121
109
  requirements: []
122
110
  rubyforge_project:
123
- rubygems_version: 1.8.24
111
+ rubygems_version: 2.2.2
124
112
  signing_key:
125
- specification_version: 3
113
+ specification_version: 4
126
114
  summary: An easy picture gallery based on directory and files
127
115
  test_files: []