zooniverse_data 0.0.19 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5e3e22f8024087c4434f636180f417a08b418b9
4
- data.tar.gz: 5d80b0880140cb623a429de605e88a99e1d418f0
3
+ metadata.gz: f2bd5c889ec2fa5383d4f6a70852e6a8482aa308
4
+ data.tar.gz: d7c152490e0a2eda035d3fc9962fd297ac104b29
5
5
  SHA512:
6
- metadata.gz: 38bfdf09d9000c057af10a43694d667d14a8fdb99f16f467ea0e81611acc18a482d17fd1ec31de83673f52646f49591108003e1a3506f49dbfc72aec848d150c
7
- data.tar.gz: f5186f2345c1fe62f37484b739a16d281050ffe37964dcf44bb7b8f2cbee74cdaf45bc3fe9a05717e776673bc620031b1a0cf6c25f166090a007ad1fd2abb5f5
6
+ metadata.gz: 9f45f2f268fec408f24a09bf4e3ee412e1f9708037a58d94d18e723378eae8d125306f6a692b0bf0838440d36c3c4fbcdca543f65dfdcaf7c8cdfbafc729def4
7
+ data.tar.gz: bf85dc795abda17da3ad157938c4e7c8a4fb4b73c21aec8be140cc5cd57a0eab05f5d446e3f3cfdc55ef8e0847151c967233aa901a8211f7d3ff32f34491b1ea
@@ -8,7 +8,7 @@ module ZooniverseData
8
8
  attr_accessor :entry
9
9
  end
10
10
 
11
- def customize(manifest: manifest, entry: entry)
11
+ def customize(manifest: nil, entry: nil)
12
12
  self.manifest = manifest
13
13
  self.entry = entry
14
14
 
@@ -10,7 +10,7 @@ module ZooniverseData
10
10
  class Image
11
11
  attr_accessor :path, :raise_exceptions
12
12
 
13
- def initialize(path: path, raise_exceptions: true)
13
+ def initialize(path: nil, raise_exceptions: true)
14
14
  self.path = path
15
15
  self.raise_exceptions = raise_exceptions
16
16
  end
@@ -77,7 +77,7 @@ module ZooniverseData
77
77
  attr_accessor :input_image, :output_image, :flags
78
78
  attr_accessor :raise_exceptions, :remove_original, :optimize
79
79
 
80
- def initialize(path: path, raise_exceptions: true, remove_original: true, optimize: true)
80
+ def initialize(path: nil, raise_exceptions: true, remove_original: true, optimize: true)
81
81
  self.input_image = Image.new path: path, raise_exceptions: raise_exceptions
82
82
  self.remove_original = remove_original
83
83
  self.optimize = optimize
@@ -102,7 +102,7 @@ module ZooniverseData
102
102
  end
103
103
  end
104
104
 
105
- def adaptive_resize(width: width, height: height, force: true)
105
+ def adaptive_resize(width: nil, height: nil, force: true)
106
106
  resize width: width, height: height, type: 'adaptive', force: force
107
107
  end
108
108
 
@@ -123,13 +123,13 @@ module ZooniverseData
123
123
  end
124
124
  end
125
125
 
126
- def crop(width: width, height: height, top: top, left: left)
126
+ def crop(width: nil, height: nil, top: nil, left: nil)
127
127
  tap do
128
128
  self.flags << "-crop #{ width }x#{ height }+#{ left }+#{ top } +repage"
129
129
  end
130
130
  end
131
131
 
132
- def crop_center(width: width, height: height, top: 0, left: 0)
132
+ def crop_center(width: nil, height: nil, top: 0, left: 0)
133
133
  tap do
134
134
  self.flags << "-gravity Center -crop #{ width }x#{ height }+#{ left }+#{ top } +repage"
135
135
  end
@@ -47,7 +47,7 @@ module ZooniverseData
47
47
  @bucket_path ||= manifest.project.bucket_path
48
48
  end
49
49
 
50
- def spawn_with_timeout(command: command, timeout: timeout)
50
+ def spawn_with_timeout(command: nil, timeout: nil)
51
51
  pid = Process.spawn command, close_others: true
52
52
 
53
53
  begin
@@ -22,7 +22,7 @@ module ZooniverseData
22
22
  .path
23
23
  end
24
24
 
25
- def converter_for(path, type: type, max_size: max_size)
25
+ def converter_for(path, type: nil, max_size: nil)
26
26
  convert_image(path, remove_original: false)
27
27
  .resize(width: max_size, height: max_size, force: false)
28
28
  .quality(80)
@@ -27,7 +27,7 @@ module ZooniverseData
27
27
  .path
28
28
  end
29
29
 
30
- def converter_for(path, type: type, max_size: max_size)
30
+ def converter_for(path, type: nil, max_size: nil)
31
31
  convert_image(path, remove_original: false)
32
32
  .resize(width: max_size, height: max_size, force: false)
33
33
  .quality(80)
@@ -1,3 +1,3 @@
1
1
  module ZooniverseData
2
- VERSION = '0.0.19'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -6,7 +6,7 @@ module ZooniverseData
6
6
  end
7
7
  self.projects = { }
8
8
 
9
- def self.dispatch(manifest: manifest, entry: entry)
9
+ def self.dispatch(manifest: nil, entry: nil)
10
10
  klass = self.projects[manifest.project_id]
11
11
 
12
12
  unless klass
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooniverse_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: 10.1.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.1.0
41
41
  - !ruby/object:Gem::Dependency
@@ -84,14 +84,14 @@ dependencies:
84
84
  name: aws-sdk
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: 1.30.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.30.0
97
97
  description:
@@ -101,8 +101,8 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".gitignore"
105
- - ".ruby-version"
104
+ - .gitignore
105
+ - .ruby-version
106
106
  - Dockerfile
107
107
  - Gemfile
108
108
  - LICENSE.txt
@@ -136,17 +136,17 @@ require_paths:
136
136
  - lib
137
137
  required_ruby_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - ">="
139
+ - - '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: 2.0.0
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
144
+ - - '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.4.6
149
+ rubygems_version: 2.4.4
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Zooniverse data library