zooniverse_data 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zooniverse_data/projects/sunspot.rb +6 -2
- data/lib/zooniverse_data/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e7fad0328799e864d6969d8b8dff3bbf63027bf
|
4
|
+
data.tar.gz: 561683b823a9fb7a8909d71261c7b2b6a0db7d76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a99e17fccb401d74149638524979b579b87b848153374248de025b94d1084099b4c3285c06123982da811a3e353798342a6bcfa0da6e9d86728afe2591aedcb
|
7
|
+
data.tar.gz: 14281775a0b77af3c13b8976895dbb6f6ea83a7d96fc167e0233ccdccc32f7abdf9dee3832f007dc74d5da6d8ed3b8f7884ac3f6df2b2292429682b68f821ef5
|
@@ -4,8 +4,12 @@ module ZooniverseData
|
|
4
4
|
include Helpers
|
5
5
|
|
6
6
|
def customize_subject
|
7
|
-
|
8
|
-
|
7
|
+
standard_path = entry.location['standard']
|
8
|
+
standard_jpg_path = standard_path.sub '.eps', '.jpg'
|
9
|
+
|
10
|
+
standard = convert_image(standard_path).resize(width: 360, height: 360, force: true).write_to path: standard_jpg_path
|
11
|
+
inverted = convert_image(standard.path, remove_original: false).invert.write_to prefix: 'inverted'
|
12
|
+
|
9
13
|
if entry.location['context']
|
10
14
|
context_image = convert_to_jpeg(entry.location['context'])
|
11
15
|
set_location standard: standard.path, inverted: inverted.path, context: context_image.try(:path)
|
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.14
|
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-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.2.
|
144
|
+
rubygems_version: 2.2.1
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Zooniverse data library
|