fotoramajs 4.2.3 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +3 -3
- data/lib/fotoramajs/updater.rb +2 -1
- data/lib/fotoramajs/version.rb +1 -1
- data/lib/fotoramajs.rb +3 -1
- data/vendor/assets/javascripts/fotorama.js +2827 -2
- data/vendor/assets/stylesheets/fotorama.css.scss +734 -2
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fotoramajs (4.
|
4
|
+
fotoramajs (4.3.0)
|
5
5
|
jquery-rails (>= 2.1.0)
|
6
6
|
sprockets (>= 2)
|
7
7
|
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
multi_json (~> 1.3)
|
21
21
|
thread_safe (~> 0.1)
|
22
22
|
tzinfo (~> 0.3.37)
|
23
|
-
atomic (1.1.
|
23
|
+
atomic (1.1.12)
|
24
24
|
builder (3.1.4)
|
25
25
|
erubis (2.7.0)
|
26
26
|
hike (1.2.3)
|
@@ -30,7 +30,7 @@ GEM
|
|
30
30
|
railties (>= 3.0, < 5.0)
|
31
31
|
thor (>= 0.14, < 2.0)
|
32
32
|
minitest (4.7.5)
|
33
|
-
multi_json (1.7.
|
33
|
+
multi_json (1.7.8)
|
34
34
|
rack (1.5.2)
|
35
35
|
rack-test (0.6.2)
|
36
36
|
rack (>= 1.0)
|
data/lib/fotoramajs/updater.rb
CHANGED
@@ -23,7 +23,8 @@ class Updater
|
|
23
23
|
def fetch(tag)
|
24
24
|
cdn = "http://fotorama.s3.amazonaws.com/#{tag}"
|
25
25
|
%w(fotorama.js fotorama.css fotorama.png fotorama@2x.png).each do |file|
|
26
|
-
|
26
|
+
from = "#{cdn}/#{file}".sub(/(.css|.js)$/, '.uncompressed\\1')
|
27
|
+
get from, asset(file)
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
data/lib/fotoramajs/version.rb
CHANGED
data/lib/fotoramajs.rb
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
module Fotoramajs
|
3
3
|
class Railtie < Rails::Railtie
|
4
4
|
initializer 'fotorama.config' do |app|
|
5
|
-
|
5
|
+
if Gem::Version.new(::Rails.version) >= Gem::Version.new("4.0.0")
|
6
|
+
app.config.assets.precompile += ['fotorama.png', 'fotorama@2x.png']
|
7
|
+
end
|
6
8
|
end
|
7
9
|
end
|
8
10
|
|