imagesite 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9847456e9f09a34685b280eac7b1641503748c2f
4
- data.tar.gz: 8ce00674ffc29fd2396ad83579013fd06cfeef75
3
+ metadata.gz: ed224931ca3f5cafd8d61186e53d5d39fa845567
4
+ data.tar.gz: baf5c6faf497d6078523ec02774c5bac0b5c1c3d
5
5
  SHA512:
6
- metadata.gz: bc70aa627c8626ed4e16b01f3587f892c360a337a7c93c43d029c63c344529683af45c997cb94fd94dc64f94d9b909b90e120b321cc5d50f2126298b44954df8
7
- data.tar.gz: fca68b6b51df32ea3cf0fd70600b6679a93ad62ae1d6372b0c746588a0ea46fd0160f1d914f0dd09f55fdb34a0ebb665411efce32f326756e19e8f217e8fd44f
6
+ metadata.gz: c765e86c80c2dd9eea7611087fd64b5ba46393b4a18f4211df4eb4d31fbfb9058a50e205fffb05fd95a7cc64f8b5e2446063ddd2e725b842fa0787d7b229d19a
7
+ data.tar.gz: 3797d234b9be31b8c8a33deabda90e7327aa7818ff32d078509eb8a114f91899e9a64a584e606860474dbb12a647a97d0476b5423d272de9ba73a95aed6ea0a6
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imagesite (1.0.0)
4
+ imagesite (1.0.2)
5
5
  erubis (>= 2.7.0)
6
- exifr (>= 1.2.4)
6
+ exifr (>= 1.3.3)
7
7
  image_science (>= 1.3.0)
8
8
  xmp (>= 0.2.0)
9
9
 
@@ -13,50 +13,50 @@ GEM
13
13
  RubyInline (3.12.4)
14
14
  ZenTest (~> 4.3)
15
15
  ZenTest (4.11.1)
16
- addressable (2.4.0)
17
- capybara (2.7.1)
16
+ addressable (2.5.2)
17
+ public_suffix (>= 2.0.2, < 4.0)
18
+ capybara (2.16.1)
18
19
  addressable
19
- mime-types (>= 1.16)
20
+ mini_mime (>= 0.1.3)
20
21
  nokogiri (>= 1.3.3)
21
22
  rack (>= 1.0.0)
22
23
  rack-test (>= 0.5.4)
23
24
  xpath (~> 2.0)
24
- diff-lcs (1.2.5)
25
+ diff-lcs (1.3)
25
26
  docile (1.1.5)
26
27
  erubis (2.7.0)
27
- exifr (1.2.4)
28
+ exifr (1.3.3)
28
29
  image_science (1.3.0)
29
30
  RubyInline (~> 3.9)
30
- json (1.8.3)
31
- mime-types (3.1)
32
- mime-types-data (~> 3.2015)
33
- mime-types-data (3.2016.0521)
31
+ json (2.1.0)
32
+ mini_mime (1.0.0)
34
33
  nokogiri (1.5.11)
35
- rack (1.5.5)
36
- rack-test (0.6.3)
37
- rack (>= 1.0)
38
- rake (0.9.6)
39
- rspec (3.5.0)
40
- rspec-core (~> 3.5.0)
41
- rspec-expectations (~> 3.5.0)
42
- rspec-mocks (~> 3.5.0)
43
- rspec-core (3.5.2)
44
- rspec-support (~> 3.5.0)
45
- rspec-expectations (3.5.0)
34
+ public_suffix (2.0.5)
35
+ rack (1.6.8)
36
+ rack-test (0.7.0)
37
+ rack (>= 1.0, < 3)
38
+ rake (12.3.0)
39
+ rspec (3.7.0)
40
+ rspec-core (~> 3.7.0)
41
+ rspec-expectations (~> 3.7.0)
42
+ rspec-mocks (~> 3.7.0)
43
+ rspec-core (3.7.0)
44
+ rspec-support (~> 3.7.0)
45
+ rspec-expectations (3.7.0)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.5.0)
48
- rspec-mocks (3.5.0)
47
+ rspec-support (~> 3.7.0)
48
+ rspec-mocks (3.7.0)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.5.0)
51
- rspec-support (3.5.0)
52
- simplecov (0.11.2)
50
+ rspec-support (~> 3.7.0)
51
+ rspec-support (3.7.0)
52
+ simplecov (0.15.1)
53
53
  docile (~> 1.1.0)
54
- json (~> 1.8)
54
+ json (>= 1.8, < 3)
55
55
  simplecov-html (~> 0.10.0)
56
- simplecov-html (0.10.0)
56
+ simplecov-html (0.10.2)
57
57
  xmp (0.2.0)
58
58
  nokogiri (~> 1.5.0)
59
- xpath (2.0.0)
59
+ xpath (2.1.0)
60
60
  nokogiri (~> 1.3)
61
61
 
62
62
  PLATFORMS
@@ -64,11 +64,14 @@ PLATFORMS
64
64
 
65
65
  DEPENDENCIES
66
66
  bundler (>= 1.12.5)
67
- capybara (>= 2.7.1)
67
+ capybara (>= 2.16.1)
68
68
  imagesite!
69
- rake (>= 0.9.6)
70
- rspec (>= 3.5.0)
71
- simplecov (>= 0.11.2)
69
+ public_suffix (~> 2.0)
70
+ rack (~> 1.6)
71
+ rack-test (~> 0.7.0)
72
+ rake (>= 12.3.0)
73
+ rspec (>= 3.7.0)
74
+ simplecov (>= 0.15.1)
72
75
 
73
76
  BUNDLED WITH
74
- 1.12.5
77
+ 1.16.0
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Dave Schweisguth
3
+ Copyright (c) 2016-2017 Dave Schweisguth
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -18,11 +18,14 @@ If not, you may be able to install a newer Ruby on your Mac to use with imagesit
18
18
 
19
19
  ## Installation
20
20
 
21
- If you're using the Ruby that comes with OS X,
21
+ - Install [FreeImage](http://freeimage.sourceforge.net/).
22
+ The easiest way to do that is probably with [homebrew](http://brew.sh/) or
23
+ [MacPorts](https://www.macports.org/).
24
+ - If you're using the Ruby that comes with OS X,
22
25
 
23
- $ sudo gem install imagesite
26
+ $ sudo gem install imagesite
24
27
 
25
- If you're using a Ruby that you installed yourself, `sudo` may or may not be appropriate.
28
+ If you're using a Ruby that you installed yourself, `sudo` may or may not be appropriate.
26
29
 
27
30
  ## Usage
28
31
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'imagesite'
3
- spec.version = '1.0.1'
3
+ spec.version = '1.0.2'
4
4
  spec.author = 'Dave Schweisguth'
5
5
  spec.email = 'dave@schweisguth.org'
6
6
 
@@ -15,15 +15,21 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.required_ruby_version = '~> 2.0'
17
17
 
18
- spec.add_runtime_dependency 'exifr', '>= 1.2.4'
18
+ spec.add_runtime_dependency 'exifr', '>= 1.3.3'
19
19
  spec.add_runtime_dependency 'xmp', '>= 0.2.0'
20
20
  spec.add_runtime_dependency 'image_science', '>= 1.3.0'
21
21
  spec.add_runtime_dependency 'erubis', '>= 2.7.0'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '>= 1.12.5'
24
- spec.add_development_dependency 'rake', '>= 0.9.6'
25
- spec.add_development_dependency 'rspec', '>= 3.5.0'
26
- spec.add_development_dependency 'capybara', '>= 2.7.1'
27
- spec.add_development_dependency 'simplecov', '>= 0.11.2'
24
+ spec.add_development_dependency 'rake', '>= 12.3.0'
25
+ spec.add_development_dependency 'rspec', '>= 3.7.0'
26
+ spec.add_development_dependency 'capybara', '>= 2.16.1'
27
+ spec.add_development_dependency 'simplecov', '>= 0.15.1'
28
+
29
+ # The following are not directly required by this gem but are directly or indirectly required by capybara.
30
+ # They are here so they can be constrained to versions compatible with the lowest supported version of Ruby.
31
+ spec.add_development_dependency 'public_suffix', '~> 2.0'
32
+ spec.add_development_dependency 'rack', '~> 1.6' # required by capybara
33
+ spec.add_development_dependency 'rack-test', '~> 0.7.0' # required by capybara
28
34
 
29
35
  end
@@ -1,7 +1,7 @@
1
1
  require 'fileutils'
2
2
  require 'image_science'
3
3
  require 'xmp'
4
- require 'exifr'
4
+ require 'exifr/jpeg'
5
5
  require_relative 'model'
6
6
 
7
7
  module ImageSite
@@ -52,7 +52,7 @@ module ImageSite
52
52
  end
53
53
 
54
54
  def tags
55
- xmp && xmp.dc && xmp.dc.subject || []
55
+ xmp && xmp.dc && xmp.dc.respond_to?(:subject) && xmp.dc.subject || []
56
56
  end
57
57
 
58
58
  def relative_html
@@ -5,12 +5,13 @@ module ImageSite
5
5
  DEFAULT_COLUMNS = 4
6
6
  DEFAULT_ROWS = 10
7
7
 
8
- attr_reader :title, :columns, :rows, :parent_link_text, :output_dir, :files
8
+ attr_reader :title, :columns, :rows, :descriptions_on_index_pages, :parent_link_text, :output_dir, :files
9
9
 
10
10
  def initialize
11
11
  @title = nil
12
12
  @columns = DEFAULT_COLUMNS
13
13
  @rows = DEFAULT_ROWS
14
+ @descriptions_on_index_pages = false
14
15
  @parent_link_text = nil
15
16
  @output_dir = nil
16
17
  end
@@ -28,6 +29,9 @@ module ImageSite
28
29
  op.on('-r ROWS', "The number of rows of photos on each index page (default #{DEFAULT_ROWS})") do |rows|
29
30
  @rows = rows.to_i
30
31
  end
32
+ op.on('-d', "Descriptions are included on index pages") do
33
+ @descriptions_on_index_pages = true
34
+ end
31
35
  op.on('-p PARENT_LINK_TEXT', "The text of the link to ../ on the last index page") do |parent_link_text|
32
36
  @parent_link_text = parent_link_text
33
37
  end
@@ -56,6 +56,9 @@
56
56
  <td>
57
57
  <a href="<%= image.relative_html %>"><img alt="<%= image.title %>" src="<%= image.relative_thumbnail %>"></a><br/>
58
58
  <%= image.title %>
59
+ <% if options.descriptions_on_index_pages %>
60
+ <br/><%= image.description %>
61
+ <% end %>
59
62
  </td>
60
63
  <% end %>
61
64
  </tr>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagesite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Schweisguth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-01 00:00:00.000000000 Z
11
+ date: 2017-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exifr
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.4
19
+ version: 1.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.4
26
+ version: 1.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: xmp
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,56 +86,98 @@ dependencies:
86
86
  requirements:
87
87
  - - '>='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.6
89
+ version: 12.3.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '>='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.9.6
96
+ version: 12.3.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '>='
102
102
  - !ruby/object:Gem::Version
103
- version: 3.5.0
103
+ version: 3.7.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
- version: 3.5.0
110
+ version: 3.7.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: capybara
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - '>='
116
116
  - !ruby/object:Gem::Version
117
- version: 2.7.1
117
+ version: 2.16.1
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '>='
123
123
  - !ruby/object:Gem::Version
124
- version: 2.7.1
124
+ version: 2.16.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '>='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.11.2
131
+ version: 0.15.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '>='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.11.2
138
+ version: 0.15.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: public_suffix
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: '2.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '2.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rack
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: '1.6'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: '1.6'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rack-test
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 0.7.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: 0.7.0
139
181
  description: OS X's iPhoto software had a feature that exported photos to a static
140
182
  web site. iPhoto was discontinued in 2015. Its replacement, Photos, does not have
141
183
  that feature. imagesite approximates that feature.