fotoramajs 4.2.3 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fotoramajs (4.2.3)
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.10)
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.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)
@@ -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
- get "#{cdn}/#{file}", asset(file)
26
+ from = "#{cdn}/#{file}".sub(/(.css|.js)$/, '.uncompressed\\1')
27
+ get from, asset(file)
27
28
  end
28
29
  end
29
30
 
@@ -1,3 +1,3 @@
1
1
  module Fotoramajs
2
- VERSION = "4.2.3"
2
+ VERSION = "4.3.0"
3
3
  end
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
- app.config.assets.precompile += ['fotorama.png', 'fotorama@2x.png']
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