react-rails-img 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/react/rails/img/version.rb +1 -1
- data/vendor/assets/javascripts/react_rails_img.js.jsx.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48b1873a1443e2881d51eb6544a5b68c7c080e50
|
4
|
+
data.tar.gz: ef8eeccd70627f054bd740d6f07637e217548f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87b089e894a40c8fc3811c12c938f6ffe292c6086cf393056eeba18b6e8408bccf0c6da308b93876cb5e59b8b0c815d1e7f70919e1bc6b1fda152204a5141bb3
|
7
|
+
data.tar.gz: d03cba85bf622ded2177dc3a5fc84624f89487672d8e73f9fd42dd9876ad1d7a6e84d9aaf5a591546ca3a0d4434c3571ad58da09c88b5fc61c4e54fcb7c93eb7
|
data/README.md
CHANGED
@@ -61,7 +61,7 @@ and for production, it will be contains the timestamp as
|
|
61
61
|
|
62
62
|
## Contributing
|
63
63
|
|
64
|
-
1. Fork it ( https://github.com/
|
64
|
+
1. Fork it ( https://github.com/rainchen/react-rails-img/fork )
|
65
65
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
66
66
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
67
67
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%
|
2
2
|
images = {}
|
3
3
|
prefix = Rails.application.config.assets.prefix
|
4
|
-
should_compute_assets_path = Rails.env.production? # for performance
|
4
|
+
should_compute_assets_path = Rails.env.production? || Rails.env.staging? # for performance
|
5
5
|
if should_compute_assets_path
|
6
6
|
images_dir = Rails.root.join('app/assets/images/').to_s
|
7
7
|
images_enumerator = defined?(assets) ? assets.each_file : Dir["#{images_dir}**/*.*"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react-rails-img
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RainChen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|