assembly-objectfile 1.5.7 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -10,3 +10,4 @@ pkg/*
10
10
  tags
11
11
  tmp
12
12
  .yardoc/*
13
+ Gemfile.lock
data/.rvmrc.example CHANGED
@@ -1 +1 @@
1
- rvm use 1.8.7@assembly-objectfile --create
1
+ rvm use 1.9.3@assembly-objectfile --create
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source "http://rubygems.org"
2
- source "http://sul-gems.stanford.edu"
3
2
 
4
3
  # Specify your gem's dependencies in .gemspec
5
4
  gemspec
data/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ #############################################################################################################
2
+ # Copyright (c) 2012-2014 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
data/README.rdoc CHANGED
@@ -62,6 +62,8 @@ content type specific operations (such as jp2 generation).
62
62
  - 1.5.5 do not allow jp2s to have jp2s derivatives generated
63
63
  - 1.5.6 do a further check for alternate existence of color profile in exif
64
64
  - 1.5.7 include Gemfile.lock, pin Nokogiri to 1.5.x and ActiveSupport to 3.2.x
65
+ - 1.6.1 remove dependencies on sulgems
66
+ - 1.6.2 Added APLv2 artifacts
65
67
 
66
68
  ==Usage
67
69
 
data/Rakefile CHANGED
@@ -8,3 +8,10 @@ task :console, :irb do |t, args|
8
8
  irb = args[:irb].nil?? 'irb' : args[:irb]
9
9
  sh irb, "-r", "#{File.dirname(__FILE__)}/config/boot.rb"
10
10
  end
11
+
12
+ require 'rspec/core/rake_task'
13
+
14
+ desc "Run specs"
15
+ RSpec::Core::RakeTask.new(:spec)
16
+
17
+ task :default => :spec
@@ -5,29 +5,28 @@ Gem::Specification.new do |s|
5
5
  s.name = 'assembly-objectfile'
6
6
  s.version = Assembly::ObjectFile::VERSION
7
7
  s.platform = Gem::Platform::RUBY
8
- s.required_ruby_version = '~> 1.8.7'
9
8
  s.authors = ["Peter Mangiafico", "Renzo Sanchez-Silva","Monty Hindman","Tony Calavano"]
10
9
  s.email = ["pmangiafico@stanford.edu"]
11
- s.homepage = ""
10
+ s.homepage = 'https://github.com/sul-dlss/assembly-objectfile'
12
11
  s.summary = %q{Ruby immplementation of file services needed to prepare objects to be accessioned in SULAIR digital library}
13
12
  s.description = %q{Get exif data, file sizes and more.}
13
+ s.license = 'ALv2'
14
14
 
15
15
  s.rubyforge_project = 'assembly-objectfile'
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.test_files = `git ls-files -- spec/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ['lib']
21
21
 
22
- s.add_dependency 'mini_exiftool', "~> 1.6"
22
+ s.add_dependency 'mini_exiftool'
23
23
  s.add_dependency 'mime-types'
24
- s.add_dependency 'nokogiri', "~> 1.5.0"
25
- s.add_dependency 'activesupport', "~> 3.2.0"
24
+ s.add_dependency 'nokogiri'
25
+ # s.add_dependency 'activesupport'
26
26
 
27
27
  s.add_development_dependency 'json'
28
28
  s.add_development_dependency "rspec", "~> 2.6"
29
- s.add_development_dependency "lyberteam-devel", '>= 1.0.1'
30
- s.add_development_dependency "lyberteam-gems-devel", "> 1.0.0"
29
+ # s.add_development_dependency "lyberteam-gems-devel", "> 1.0.0"
31
30
  s.add_development_dependency "yard"
32
31
 
33
32
  end
@@ -3,7 +3,7 @@ module Assembly
3
3
 
4
4
  class ObjectFile
5
5
  # Project version number
6
- VERSION = "1.5.7"
6
+ VERSION = "1.6.2"
7
7
  end
8
8
 
9
9
  end
@@ -1,3 +1,5 @@
1
+ require 'spec_helper'
2
+
1
3
  describe Assembly::ContentMetadata do
2
4
 
3
5
  it "should generate valid content metadata with exif for a single tif and jp2 of style=simple_image, adding file attributes" do
@@ -1,3 +1,5 @@
1
+ require 'spec_helper'
2
+
1
3
  describe Assembly::ObjectFile do
2
4
 
3
5
  it "should not run if no input file is passed in" do
@@ -109,7 +111,7 @@ describe Assembly::ObjectFile do
109
111
  File.exists?(non_image_file).should be true
110
112
  @ai = Assembly::ObjectFile.new(non_image_file)
111
113
  @ai.image?.should == false
112
- @ai.object_type.should == :text
114
+ @ai.object_type.should_not == :image
113
115
  @ai.valid_image?.should == false
114
116
 
115
117
  non_image_file=File.join(Assembly::PATH_TO_GEM,'README.rdoc')
metadata CHANGED
@@ -1,15 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: assembly-objectfile
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.2
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 5
9
- - 7
10
- version: 1.5.7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Peter Mangiafico
14
9
  - Renzo Sanchez-Silva
15
10
  - Monty Hindman
@@ -17,162 +12,117 @@ authors:
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2013-09-07 00:00:00 Z
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
15
+ date: 2013-12-17 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
24
18
  name: mini_exiftool
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
19
+ requirement: !ruby/object:Gem::Requirement
26
20
  none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 1
33
- - 6
34
- version: "1.6"
35
- prerelease: false
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '0'
36
25
  type: :runtime
37
- requirement: *id001
38
- - !ruby/object:Gem::Dependency
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ - !ruby/object:Gem::Dependency
39
34
  name: mime-types
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
35
+ requirement: !ruby/object:Gem::Requirement
41
36
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
49
- prerelease: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
50
41
  type: :runtime
51
- requirement: *id002
52
- - !ruby/object:Gem::Dependency
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ - !ruby/object:Gem::Dependency
53
50
  name: nokogiri
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ requirement: !ruby/object:Gem::Requirement
55
52
  none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 1
62
- - 5
63
- - 0
64
- version: 1.5.0
65
- prerelease: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
66
57
  type: :runtime
67
- requirement: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: activesupport
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ~>
74
- - !ruby/object:Gem::Version
75
- hash: 15
76
- segments:
77
- - 3
78
- - 2
79
- - 0
80
- version: 3.2.0
81
58
  prerelease: false
82
- type: :runtime
83
- requirement: *id004
84
- - !ruby/object:Gem::Dependency
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ - !ruby/object:Gem::Dependency
85
66
  name: json
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
67
+ requirement: !ruby/object:Gem::Requirement
87
68
  none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 0
94
- version: "0"
95
- prerelease: false
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
96
73
  type: :development
97
- requirement: *id005
98
- - !ruby/object:Gem::Dependency
74
+ prerelease: false
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ - !ruby/object:Gem::Dependency
99
82
  name: rspec
100
- version_requirements: &id006 !ruby/object:Gem::Requirement
83
+ requirement: !ruby/object:Gem::Requirement
101
84
  none: false
102
- requirements:
85
+ requirements:
103
86
  - - ~>
104
- - !ruby/object:Gem::Version
105
- hash: 15
106
- segments:
107
- - 2
108
- - 6
109
- version: "2.6"
110
- prerelease: false
87
+ - !ruby/object:Gem::Version
88
+ version: '2.6'
111
89
  type: :development
112
- requirement: *id006
113
- - !ruby/object:Gem::Dependency
114
- name: lyberteam-devel
115
- version_requirements: &id007 !ruby/object:Gem::Requirement
116
- none: false
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- hash: 21
121
- segments:
122
- - 1
123
- - 0
124
- - 1
125
- version: 1.0.1
126
90
  prerelease: false
127
- type: :development
128
- requirement: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: lyberteam-gems-devel
131
- version_requirements: &id008 !ruby/object:Gem::Requirement
91
+ version_requirements: !ruby/object:Gem::Requirement
132
92
  none: false
133
- requirements:
134
- - - ">"
135
- - !ruby/object:Gem::Version
136
- hash: 23
137
- segments:
138
- - 1
139
- - 0
140
- - 0
141
- version: 1.0.0
142
- prerelease: false
143
- type: :development
144
- requirement: *id008
145
- - !ruby/object:Gem::Dependency
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '2.6'
97
+ - !ruby/object:Gem::Dependency
146
98
  name: yard
147
- version_requirements: &id009 !ruby/object:Gem::Requirement
99
+ requirement: !ruby/object:Gem::Requirement
148
100
  none: false
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- hash: 3
153
- segments:
154
- - 0
155
- version: "0"
156
- prerelease: false
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
157
105
  type: :development
158
- requirement: *id009
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
159
113
  description: Get exif data, file sizes and more.
160
- email:
114
+ email:
161
115
  - pmangiafico@stanford.edu
162
- executables:
116
+ executables:
163
117
  - console
164
118
  - run_all_tests
165
119
  extensions: []
166
-
167
120
  extra_rdoc_files: []
168
-
169
- files:
121
+ files:
170
122
  - .gitignore
171
- - .rspec
172
- - .rvmrc
173
123
  - .rvmrc.example
174
124
  - Gemfile
175
- - Gemfile.lock
125
+ - LICENSE
176
126
  - README.rdoc
177
127
  - Rakefile
178
128
  - assembly-objectfile.gemspec
@@ -223,42 +173,33 @@ files:
223
173
  - spec/test_data/input/test2.jp2
224
174
  - spec/test_data/input/test2.tif
225
175
  - spec/test_data/input/test_no_color_profile.tif
226
- homepage: ""
227
- licenses: []
228
-
176
+ homepage: https://github.com/sul-dlss/assembly-objectfile
177
+ licenses:
178
+ - ALv2
229
179
  post_install_message:
230
180
  rdoc_options: []
231
-
232
- require_paths:
181
+ require_paths:
233
182
  - lib
234
- required_ruby_version: !ruby/object:Gem::Requirement
183
+ required_ruby_version: !ruby/object:Gem::Requirement
235
184
  none: false
236
- requirements:
237
- - - ~>
238
- - !ruby/object:Gem::Version
239
- hash: 57
240
- segments:
241
- - 1
242
- - 8
243
- - 7
244
- version: 1.8.7
245
- required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ! '>='
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ required_rubygems_version: !ruby/object:Gem::Requirement
246
190
  none: false
247
- requirements:
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- hash: 3
251
- segments:
252
- - 0
253
- version: "0"
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
254
195
  requirements: []
255
-
256
196
  rubyforge_project: assembly-objectfile
257
197
  rubygems_version: 1.8.25
258
198
  signing_key:
259
199
  specification_version: 3
260
- summary: Ruby immplementation of file services needed to prepare objects to be accessioned in SULAIR digital library
261
- test_files:
200
+ summary: Ruby immplementation of file services needed to prepare objects to be accessioned
201
+ in SULAIR digital library
202
+ test_files:
262
203
  - spec/content_metadata_spec.rb
263
204
  - spec/object_file_spec.rb
264
205
  - spec/spec_helper.rb
data/.rspec DELETED
@@ -1 +0,0 @@
1
- -r spec/spec_helper.rb
data/Gemfile.lock DELETED
@@ -1,120 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- assembly-objectfile (1.5.7)
5
- activesupport (~> 3.2.0)
6
- mime-types
7
- mini_exiftool (~> 1.6)
8
- nokogiri (~> 1.5.0)
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- remote: http://sul-gems.stanford.edu/
13
- specs:
14
- actionmailer (3.2.14)
15
- actionpack (= 3.2.14)
16
- mail (~> 2.5.4)
17
- actionpack (3.2.14)
18
- activemodel (= 3.2.14)
19
- activesupport (= 3.2.14)
20
- builder (~> 3.0.0)
21
- erubis (~> 2.7.0)
22
- journey (~> 1.0.4)
23
- rack (~> 1.4.5)
24
- rack-cache (~> 1.2)
25
- rack-test (~> 0.6.1)
26
- sprockets (~> 2.2.1)
27
- activemodel (3.2.14)
28
- activesupport (= 3.2.14)
29
- builder (~> 3.0.0)
30
- activesupport (3.2.14)
31
- i18n (~> 0.6, >= 0.6.4)
32
- multi_json (~> 1.0)
33
- builder (3.0.4)
34
- capistrano (2.15.5)
35
- highline
36
- net-scp (>= 1.0.0)
37
- net-sftp (>= 2.0.0)
38
- net-ssh (>= 2.0.14)
39
- net-ssh-gateway (>= 1.1.0)
40
- diff-lcs (1.2.4)
41
- erubis (2.7.0)
42
- grit (2.5.0)
43
- diff-lcs (~> 1.1)
44
- mime-types (~> 1.15)
45
- posix-spawn (~> 0.3.6)
46
- highline (1.6.19)
47
- hike (1.2.3)
48
- holepicker (0.3.1)
49
- json (>= 1.7.7)
50
- rainbow (>= 1.1.4)
51
- i18n (0.6.5)
52
- journey (1.0.4)
53
- json (1.8.0)
54
- lyberteam-capistrano-devel (1.3.0)
55
- actionmailer
56
- capistrano (>= 2.11.0)
57
- grit
58
- holepicker
59
- rake (>= 0.8.7)
60
- rest-client
61
- lyberteam-devel (1.0.1)
62
- lyberteam-capistrano-devel (~> 1.0, >= 1.0.7)
63
- lyberteam-gems-devel (~> 1.0, >= 1.0.1)
64
- lyberteam-gems-devel (1.0.1)
65
- rake (>= 0.8.7)
66
- rest-client
67
- mail (2.5.4)
68
- mime-types (~> 1.16)
69
- treetop (~> 1.4.8)
70
- mime-types (1.25)
71
- mini_exiftool (1.7.0)
72
- multi_json (1.7.9)
73
- net-scp (1.1.2)
74
- net-ssh (>= 2.6.5)
75
- net-sftp (2.1.2)
76
- net-ssh (>= 2.6.5)
77
- net-ssh (2.6.8)
78
- net-ssh-gateway (1.2.0)
79
- net-ssh (>= 2.6.5)
80
- nokogiri (1.5.10)
81
- polyglot (0.3.3)
82
- posix-spawn (0.3.6)
83
- rack (1.4.5)
84
- rack-cache (1.2)
85
- rack (>= 0.4)
86
- rack-test (0.6.2)
87
- rack (>= 1.0)
88
- rainbow (1.1.4)
89
- rake (10.1.0)
90
- rest-client (1.6.7)
91
- mime-types (>= 1.16)
92
- rspec (2.14.1)
93
- rspec-core (~> 2.14.0)
94
- rspec-expectations (~> 2.14.0)
95
- rspec-mocks (~> 2.14.0)
96
- rspec-core (2.14.5)
97
- rspec-expectations (2.14.2)
98
- diff-lcs (>= 1.1.3, < 2.0)
99
- rspec-mocks (2.14.3)
100
- sprockets (2.2.2)
101
- hike (~> 1.2)
102
- multi_json (~> 1.0)
103
- rack (~> 1.0)
104
- tilt (~> 1.1, != 1.3.0)
105
- tilt (1.4.1)
106
- treetop (1.4.15)
107
- polyglot
108
- polyglot (>= 0.3.1)
109
- yard (0.8.7)
110
-
111
- PLATFORMS
112
- ruby
113
-
114
- DEPENDENCIES
115
- assembly-objectfile!
116
- json
117
- lyberteam-devel (>= 1.0.1)
118
- lyberteam-gems-devel (> 1.0.0)
119
- rspec (~> 2.6)
120
- yard