djatoka 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/djatoka.gemspec +1 -1
- data/lib/djatoka/metadata.rb +7 -1
- data/test/test_metadata.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: 718756bcc75c71c536d3f053f877845a439eca5b
|
4
|
+
data.tar.gz: f52391cdd94ccbfe04598d2c2bac156726114117
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cd3a74152a741862746270a28d195377709d3128d432ce749d402b4881e5583857b7b59efd51095d05596031a8dd16b714bc98b6e351b4b135cb945b59c658a
|
7
|
+
data.tar.gz: 468f3d35dd1782a6f543250971f6477371a475e135ff3204050cd8e1afd73d581610d98bb8a815e04d159f267dfe95093405845d91d2b24114a5392c049d3a44
|
data/djatoka.gemspec
CHANGED
data/lib/djatoka/metadata.rb
CHANGED
@@ -133,7 +133,8 @@ class Djatoka::Metadata
|
|
133
133
|
tiles["height"] = opts.tile_height.to_i
|
134
134
|
end
|
135
135
|
unless tiles.empty?
|
136
|
-
tiles["scaleFactors"] =
|
136
|
+
tiles["scaleFactors"] = scale_factors
|
137
|
+
|
137
138
|
info.tiles = [tiles]
|
138
139
|
end
|
139
140
|
|
@@ -160,4 +161,9 @@ class Djatoka::Metadata
|
|
160
161
|
all_levels.keys.map{ |l| l.to_i}.sort.reject{|l| l == 0}
|
161
162
|
end
|
162
163
|
|
164
|
+
def scale_factors
|
165
|
+
levels_as_i.map do |i|
|
166
|
+
2**(i - 1)
|
167
|
+
end
|
168
|
+
end
|
163
169
|
end
|
data/test/test_metadata.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: djatoka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Ronallo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project: djatoka
|
229
|
-
rubygems_version: 2.4.
|
229
|
+
rubygems_version: 2.4.5.1
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Djatoka image server helpers for Ruby and Rails.
|