carrierwave-tinypng 0.0.1 → 0.0.2

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: 4e041d06496ede82e4f91ad61a5856004467c2c0
4
- data.tar.gz: 89fa57dfb16071cc06edd20dfafbb8c66aaa2d83
3
+ metadata.gz: 65acdef4b87fdf8433560924278ab6cb4e9eb662
4
+ data.tar.gz: 5fffe0e0f5df1e520fc21500de817cb234615b55
5
5
  SHA512:
6
- metadata.gz: 8432b26687de9d32387eb687da03b2ca7459909837a7bdc3a251a12bddc9b987eb8a2e8b80f3c78fab421a51d4503a752ab7455da62ed6c89ce453811e801f1e
7
- data.tar.gz: 0d967ec3aec624177b1a428e053a69172c6b11c00589572f4a99b2ce424ae886dfb1727f870ab251279967c37c6f69d309f03340dc6335e0eac7387f09c3f9cd
6
+ metadata.gz: 4c553a5faf3a6320176119120d81c94be851d8a23475e430b3323be57ff04bb74caccd0128393e36a19937af1506f669a71ad5b5cd1113126393af4c06de97db
7
+ data.tar.gz: 25dfcb3a66ae7ddbea7b0d1399e922d000ac529d74d759d25c5cf7b3e9a05d5785780e059698fb6ca79220b2826329e07e58a3921b592cb2411f398d7ee9c517
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Carrierwave::Tinypng
1
+ # CarrierWave::TinyPNG
2
2
 
3
3
  TinyPNG support for CarrierWave
4
4
 
@@ -47,3 +47,22 @@ module CarrierWave
47
47
  end
48
48
  end
49
49
  end
50
+
51
+ if defined?(Rails)
52
+ module CarrierWave
53
+ module TinyPNG
54
+ class Railtie < Rails::Railtie
55
+ initializer 'carrierwave_tinypng.setup_paths' do |app|
56
+ available_locales = app.config.i18n.available_locales.present? ?
57
+ [app.config.i18n.available_locales].flatten : []
58
+ available_locales_pattern = available_locales.empty? ?
59
+ '*' : "{#{ available_locales.join(',') }}"
60
+ files = Dir[File.join(File.dirname(__FILE__),
61
+ 'locale',
62
+ "#{available_locales_pattern}.yml")]
63
+ I18n.load_path = files.concat(I18n.load_path)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module TinyPNG
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-tinypng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuichi Takeuchi