zooniverse_data 0.0.3 → 0.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 286f402b39013acb7372d1df4aa5487e4248cb46
|
4
|
+
data.tar.gz: a979559eb0fe82b377ac6a717b35b9147a9cdc30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece0a84364b8f630e88080475df835a1a04dcd52cff32310179e7dd50b9a0a0e1eba947af574615ae1a0ea0d385dbf0eb1e951c696e244b374c0d579e7079c05
|
7
|
+
data.tar.gz: f8a18687e3d0876b94afb6fb052da09ae454518c3f63166b26b076fb51f629862011ecb7df69bdae6924a5fdee31b73575522396a708620937c1798105da412a
|
@@ -6,7 +6,8 @@ module ZooniverseData
|
|
6
6
|
def customize_subject
|
7
7
|
standard = convert_to_jpeg entry.location['standard']
|
8
8
|
inverted = convert_image(standard.path, remove_original: false).invert.write_to(prefix: 'inverted')
|
9
|
-
|
9
|
+
context_image = convert_to_jpeg(entry.location['context']) if entry.location['context']
|
10
|
+
set_location standard: standard.path, inverted: inverted.path, context: context_image.try(:path)
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
@@ -2,6 +2,7 @@ module ZooniverseData
|
|
2
2
|
module Projects
|
3
3
|
autoload :Default, 'zooniverse_data/projects/default'
|
4
4
|
autoload :Asteroid, 'zooniverse_data/projects/asteroid'
|
5
|
+
autoload :MilkyWay, 'zooniverse_data/projects/milky_way'
|
5
6
|
autoload :Sunspot, 'zooniverse_data/projects/sunspot'
|
6
7
|
end
|
7
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zooniverse_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Parrish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/zooniverse_data/projects.rb
|
87
87
|
- lib/zooniverse_data/projects/asteroid.rb
|
88
88
|
- lib/zooniverse_data/projects/default.rb
|
89
|
+
- lib/zooniverse_data/projects/milky_way.rb
|
89
90
|
- lib/zooniverse_data/projects/sunspot.rb
|
90
91
|
- lib/zooniverse_data/version.rb
|
91
92
|
- zooniverse_data.gemspec
|