imagesite 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +179 -0
- data/.rubocop_todo.yml +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +19 -2
- data/Rakefile +1 -1
- data/imagesite.gemspec +8 -7
- data/lib/image_site/image.rb +1 -1
- data/lib/image_site/model.rb +1 -1
- data/lib/image_site/options.rb +1 -1
- metadata +23 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e2da5cb74061f33c9e7188fffbda6267e4570fe3a9b3f377b017229c4f904a0
|
4
|
+
data.tar.gz: 4179954a13b051d6286323173de7502467b68be56933569ab56cb6c5d1458d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61feeabe7a58f8c84df29780ab576fa6e8ab03a86d261fb8b52f62c6623a29417a308a4ebdcaf8de4372c6ce4869b8d046ade2fe8be448e1231b226d527b3e1
|
7
|
+
data.tar.gz: e3da2aa76a859e372aadfb0487d301372bfa7c61b866b6530752064c739f44fa8540924723a23ee89f01270030e2c1e128c1064d3224c7138dc098a8541e1153
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,179 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.0
|
5
|
+
|
6
|
+
# Customized cops
|
7
|
+
|
8
|
+
Layout/CaseIndentation:
|
9
|
+
IndentOneStep: true
|
10
|
+
|
11
|
+
Layout/DotPosition:
|
12
|
+
EnforcedStyle: trailing
|
13
|
+
|
14
|
+
Layout/SpaceInLambdaLiteral:
|
15
|
+
EnforcedStyle: require_space
|
16
|
+
|
17
|
+
Naming/PredicateName:
|
18
|
+
NamePrefixBlacklist:
|
19
|
+
- is_
|
20
|
+
Exclude:
|
21
|
+
- 'spec/**/*'
|
22
|
+
|
23
|
+
Style/Alias:
|
24
|
+
EnforcedStyle: prefer_alias_method
|
25
|
+
|
26
|
+
Style/BarePercentLiterals:
|
27
|
+
EnforcedStyle: percent_q
|
28
|
+
|
29
|
+
Style/BlockDelimiters:
|
30
|
+
EnforcedStyle: line_count_based
|
31
|
+
|
32
|
+
Style/FormatString:
|
33
|
+
EnforcedStyle: percent
|
34
|
+
|
35
|
+
Style/NumericLiterals:
|
36
|
+
MinDigits: 15
|
37
|
+
|
38
|
+
Style/PercentLiteralDelimiters:
|
39
|
+
PreferredDelimiters:
|
40
|
+
default: ()
|
41
|
+
'%i': '()'
|
42
|
+
'%I': '()'
|
43
|
+
'%r': '()'
|
44
|
+
'%w': '()'
|
45
|
+
'%W': '()'
|
46
|
+
|
47
|
+
Style/RedundantReturn:
|
48
|
+
AllowMultipleReturnValues: true
|
49
|
+
|
50
|
+
Style/RegexpLiteral:
|
51
|
+
EnforcedStyle: mixed
|
52
|
+
|
53
|
+
Style/SignalException:
|
54
|
+
EnforcedStyle: only_raise
|
55
|
+
|
56
|
+
Style/StabbyLambdaParentheses:
|
57
|
+
EnforcedStyle: require_no_parentheses
|
58
|
+
|
59
|
+
# Disabled cops
|
60
|
+
|
61
|
+
Layout/AlignArray:
|
62
|
+
Enabled: false
|
63
|
+
Layout/AlignHash:
|
64
|
+
Enabled: false
|
65
|
+
Layout/AlignParameters:
|
66
|
+
Enabled: false
|
67
|
+
Layout/EmptyLinesAroundBlockBody:
|
68
|
+
Enabled: false
|
69
|
+
Layout/EmptyLinesAroundClassBody:
|
70
|
+
Enabled: false
|
71
|
+
Layout/EmptyLinesAroundMethodBody:
|
72
|
+
Enabled: false
|
73
|
+
Layout/EmptyLinesAroundModuleBody:
|
74
|
+
Enabled: false
|
75
|
+
Layout/MultilineMethodCallBraceLayout:
|
76
|
+
Enabled: false
|
77
|
+
Layout/MultilineMethodCallIndentation:
|
78
|
+
Enabled: false
|
79
|
+
Layout/MultilineOperationIndentation:
|
80
|
+
Enabled: false
|
81
|
+
Layout/SpaceAfterNot:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Lint/AmbiguousBlockAssociation:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
# These cops want parentheses that really aren't necessary
|
88
|
+
Lint/AmbiguousOperator:
|
89
|
+
Enabled: false
|
90
|
+
Lint/AmbiguousRegexpLiteral:
|
91
|
+
Enabled: false
|
92
|
+
|
93
|
+
# Gives false positives for Cucumber steps that aren't used
|
94
|
+
Lint/Debugger:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
# What else am I supposed to call the block variable when using find or each_with_object?
|
98
|
+
Lint/ShadowingOuterLocalVariable:
|
99
|
+
Enabled: false
|
100
|
+
|
101
|
+
# Objects to a usage needed to implement OAuth signing
|
102
|
+
Lint/UriEscapeUnescape:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
Metrics/AbcSize:
|
106
|
+
Enabled: false
|
107
|
+
Metrics/BlockLength:
|
108
|
+
Enabled: false
|
109
|
+
Metrics/ClassLength:
|
110
|
+
Enabled: false
|
111
|
+
Metrics/CyclomaticComplexity:
|
112
|
+
Enabled: false
|
113
|
+
Metrics/LineLength:
|
114
|
+
Enabled: false
|
115
|
+
Metrics/MethodLength:
|
116
|
+
Enabled: false
|
117
|
+
Metrics/ModuleLength:
|
118
|
+
Enabled: false
|
119
|
+
Metrics/ParameterLists:
|
120
|
+
Enabled: false
|
121
|
+
Metrics/PerceivedComplexity:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
Performance/RedundantMerge:
|
125
|
+
Enabled: false
|
126
|
+
|
127
|
+
Style/AsciiComments:
|
128
|
+
Enabled: false
|
129
|
+
Style/BracesAroundHashParameters:
|
130
|
+
Enabled: false
|
131
|
+
Style/ClassAndModuleChildren:
|
132
|
+
Enabled: false
|
133
|
+
Style/CommentAnnotation:
|
134
|
+
Enabled: false
|
135
|
+
Style/Documentation:
|
136
|
+
Enabled: false
|
137
|
+
Style/FormatStringToken:
|
138
|
+
Enabled: false
|
139
|
+
Style/FrozenStringLiteralComment:
|
140
|
+
Enabled: false
|
141
|
+
Style/GuardClause:
|
142
|
+
Enabled: false
|
143
|
+
Style/IfUnlessModifier:
|
144
|
+
Enabled: false
|
145
|
+
Style/MethodMissing:
|
146
|
+
Enabled: false
|
147
|
+
Style/MixinGrouping:
|
148
|
+
Enabled: false
|
149
|
+
Style/MultilineBlockChain:
|
150
|
+
Enabled: false
|
151
|
+
Style/MultilineTernaryOperator:
|
152
|
+
Enabled: false
|
153
|
+
Style/NegatedIf:
|
154
|
+
Enabled: false
|
155
|
+
Style/NestedParenthesizedCalls:
|
156
|
+
Enabled: false
|
157
|
+
Style/Next:
|
158
|
+
Enabled: false
|
159
|
+
Style/NumericPredicate:
|
160
|
+
Enabled: false
|
161
|
+
Style/RaiseArgs:
|
162
|
+
Enabled: false
|
163
|
+
Style/RedundantBegin:
|
164
|
+
Enabled: false
|
165
|
+
# Gives false positive on Cucumber step definitions
|
166
|
+
Style/RegexpLiteral:
|
167
|
+
Enabled: false
|
168
|
+
Style/StringLiterals:
|
169
|
+
Enabled: false
|
170
|
+
Style/StringLiteralsInInterpolation:
|
171
|
+
Enabled: false
|
172
|
+
Style/StructInheritance:
|
173
|
+
Enabled: false
|
174
|
+
Style/TernaryParentheses:
|
175
|
+
Enabled: false
|
176
|
+
Style/UnneededPercentQ:
|
177
|
+
Enabled: false
|
178
|
+
Style/WordArray:
|
179
|
+
Enabled: false
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-01-03 06:05:50 -0800 using RuboCop version 0.50.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
imagesite (1.0.
|
4
|
+
imagesite (1.0.6)
|
5
5
|
erubis (>= 2.7.0)
|
6
6
|
exifr (>= 1.3.3)
|
7
7
|
image_science (>= 1.3.0)
|
@@ -15,6 +15,7 @@ GEM
|
|
15
15
|
ZenTest (4.11.1)
|
16
16
|
addressable (2.5.2)
|
17
17
|
public_suffix (>= 2.0.2, < 4.0)
|
18
|
+
ast (2.4.0)
|
18
19
|
capybara (2.17.0)
|
19
20
|
addressable
|
20
21
|
mini_mime (>= 0.1.3)
|
@@ -31,10 +32,16 @@ GEM
|
|
31
32
|
json (2.1.0)
|
32
33
|
mini_mime (1.0.0)
|
33
34
|
nokogiri (1.5.11)
|
35
|
+
parallel (1.12.1)
|
36
|
+
parser (2.4.0.2)
|
37
|
+
ast (~> 2.3)
|
38
|
+
powerpack (0.1.1)
|
34
39
|
public_suffix (2.0.5)
|
35
40
|
rack (1.6.8)
|
36
41
|
rack-test (0.7.0)
|
37
42
|
rack (>= 1.0, < 3)
|
43
|
+
rainbow (2.2.2)
|
44
|
+
rake
|
38
45
|
rake (12.3.0)
|
39
46
|
rspec (3.7.0)
|
40
47
|
rspec-core (~> 3.7.0)
|
@@ -48,12 +55,21 @@ GEM
|
|
48
55
|
rspec-mocks (3.7.0)
|
49
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
57
|
rspec-support (~> 3.7.0)
|
51
|
-
rspec-support (3.7.
|
58
|
+
rspec-support (3.7.1)
|
59
|
+
rubocop (0.50.0)
|
60
|
+
parallel (~> 1.10)
|
61
|
+
parser (>= 2.3.3.1, < 3.0)
|
62
|
+
powerpack (~> 0.1)
|
63
|
+
rainbow (>= 2.2.2, < 3.0)
|
64
|
+
ruby-progressbar (~> 1.7)
|
65
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
66
|
+
ruby-progressbar (1.9.0)
|
52
67
|
simplecov (0.15.1)
|
53
68
|
docile (~> 1.1.0)
|
54
69
|
json (>= 1.8, < 3)
|
55
70
|
simplecov-html (~> 0.10.0)
|
56
71
|
simplecov-html (0.10.2)
|
72
|
+
unicode-display_width (1.3.0)
|
57
73
|
xmp (0.2.0)
|
58
74
|
nokogiri (~> 1.5.0)
|
59
75
|
xpath (2.1.0)
|
@@ -71,6 +87,7 @@ DEPENDENCIES
|
|
71
87
|
rack-test (~> 0.7.0)
|
72
88
|
rake (>= 12.3.0)
|
73
89
|
rspec (>= 3.7.0)
|
90
|
+
rubocop (= 0.50.0)
|
74
91
|
simplecov (>= 0.15.1)
|
75
92
|
|
76
93
|
BUNDLED WITH
|
data/Rakefile
CHANGED
data/imagesite.gemspec
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'imagesite'
|
3
|
-
spec.version = '1.0.
|
3
|
+
spec.version = '1.0.6'
|
4
4
|
spec.author = 'Dave Schweisguth'
|
5
5
|
spec.email = 'dave@schweisguth.org'
|
6
6
|
|
7
|
-
spec.summary = %q
|
8
|
-
spec.description = %q
|
7
|
+
spec.summary = %q(iPhoto-style web export for Photos)
|
8
|
+
spec.description = %q(OS X's iPhoto software had a feature that exported photos to a static web site. iPhoto was discontinued in 2015. Its replacement, Photos, does not have that feature. imagesite approximates that feature.)
|
9
9
|
spec.homepage = 'https://github.com/dschweisguth/imagesite'
|
10
10
|
spec.license = 'MIT'
|
11
11
|
|
12
12
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(.gitignore|.idea/|.rspec|spec/)}) }
|
13
13
|
spec.bindir = 'bin'
|
14
|
-
spec.executables = spec.files.grep(%r
|
14
|
+
spec.executables = spec.files.grep(%r(^bin/)) { |f| File.basename(f) }
|
15
15
|
|
16
16
|
spec.required_ruby_version = '~> 2.0'
|
17
17
|
|
@@ -21,15 +21,16 @@ Gem::Specification.new do |spec|
|
|
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 'capybara', '>= 2.16.1'
|
24
25
|
spec.add_development_dependency 'rake', '>= 12.3.0'
|
25
26
|
spec.add_development_dependency 'rspec', '>= 3.7.0'
|
26
|
-
spec.add_development_dependency '
|
27
|
+
spec.add_development_dependency 'rubocop', '0.50.0'
|
27
28
|
spec.add_development_dependency 'simplecov', '>= 0.15.1'
|
28
29
|
|
29
30
|
# The following are not directly required by this gem but are directly or indirectly required by capybara.
|
30
31
|
# They are here so they can be constrained to versions compatible with the lowest supported version of Ruby.
|
31
32
|
spec.add_development_dependency 'public_suffix', '~> 2.0'
|
32
|
-
spec.add_development_dependency 'rack', '~> 1.6'
|
33
|
-
spec.add_development_dependency 'rack-test', '~> 0.7.0'
|
33
|
+
spec.add_development_dependency 'rack', '~> 1.6'
|
34
|
+
spec.add_development_dependency 'rack-test', '~> 0.7.0'
|
34
35
|
|
35
36
|
end
|
data/lib/image_site/image.rb
CHANGED
@@ -49,7 +49,7 @@ module ImageSite
|
|
49
49
|
NEWLINE = "\xE2\x80\xA8".force_encoding('ASCII-8BIT')
|
50
50
|
|
51
51
|
def description
|
52
|
-
exif && exif.image_description && exif.image_description.gsub(NEWLINE, "<br/>\n")
|
52
|
+
exif && exif.image_description && exif.image_description.gsub(NEWLINE, "<br/>\n").force_encoding('utf-8')
|
53
53
|
end
|
54
54
|
|
55
55
|
def tags
|
data/lib/image_site/model.rb
CHANGED
data/lib/image_site/options.rb
CHANGED
@@ -18,7 +18,7 @@ module ImageSite
|
|
18
18
|
|
19
19
|
def parse!
|
20
20
|
parser = OptionParser.new do |op|
|
21
|
-
op.banner = "Usage: #{$
|
21
|
+
op.banner = "Usage: #{$PROGRAM_NAME} -t TITLE -o OUTPUT_DIR [other options] file [...]"
|
22
22
|
|
23
23
|
op.on('-t TITLE', "Title of the set of images") do |title|
|
24
24
|
@title = title
|
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.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Schweisguth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: exifr
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.12.5
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: capybara
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.16.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.16.1
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,19 +123,19 @@ dependencies:
|
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: 3.7.0
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
126
|
+
name: rubocop
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- - '
|
129
|
+
- - '='
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
131
|
+
version: 0.50.0
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- - '
|
136
|
+
- - '='
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
138
|
+
version: 0.50.0
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: simplecov
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,6 +202,8 @@ extensions: []
|
|
188
202
|
extra_rdoc_files: []
|
189
203
|
files:
|
190
204
|
- .rbenv-gemsets
|
205
|
+
- .rubocop.yml
|
206
|
+
- .rubocop_todo.yml
|
191
207
|
- .ruby-version
|
192
208
|
- Gemfile
|
193
209
|
- Gemfile.lock
|