react-rails-img 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92bbf43b988ae4241a44c672de0056376640608a
4
- data.tar.gz: a873991113e97b07633fc36fd5cdd3b3f5c59d2d
3
+ metadata.gz: 48b1873a1443e2881d51eb6544a5b68c7c080e50
4
+ data.tar.gz: ef8eeccd70627f054bd740d6f07637e217548f86
5
5
  SHA512:
6
- metadata.gz: c7226114309a51b81f40c45f8caed43f66a20176f992ab32398b198bb1b50dde9166d040162d3c1ff0364a72dd7ee47f4ea39824465355e4ae2d6cda8792efbb
7
- data.tar.gz: e197d567926bc03fecaab7af1af528ff09cf1d92014984a0d1e8b2d521c5d0f0ec16806bc8276a8ca5fd95a20037f98559cbaf607548366963ceaa0b394073c3
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/[my-github-username]/react-rails-img/fork )
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
  module React
2
2
  module Rails
3
3
  module Img
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
@@ -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.2
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-07 00:00:00.000000000 Z
11
+ date: 2016-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler