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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f669546857f4f082af77eff9a314f3cab6d4f366
4
- data.tar.gz: 7ce537826d85a42679b586b8adc88cb77013d934
3
+ metadata.gz: 9e7fad0328799e864d6969d8b8dff3bbf63027bf
4
+ data.tar.gz: 561683b823a9fb7a8909d71261c7b2b6a0db7d76
5
5
  SHA512:
6
- metadata.gz: b13b0ff745c30acd9b509715d69657a6c539fd3c85ecd6a3cdfd3707cc1b067b8a07162fdcf41ad0a023bd906a37b5f6765f914894814e75b823bc0ca5b50061
7
- data.tar.gz: 88269d575c3004667323b66feee96ceee5a0129f3e7882199fedeb281ec099305636c827974e55c4f0a7ac546e14f507094ec53b1056b194e1990ed836010dc5
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
- standard = convert_to_jpeg entry.location['standard']
8
- inverted = convert_image(standard.path, remove_original: false).invert.write_to(prefix: 'inverted')
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)
@@ -1,3 +1,3 @@
1
1
  module ZooniverseData
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  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.13
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-05-15 00:00:00.000000000 Z
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.2
144
+ rubygems_version: 2.2.1
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Zooniverse data library