client_variable 0.0.4 → 0.0.5

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: 7c1f683f3718051f6fd9f4933e5f286aa5956074
4
- data.tar.gz: 3e4903506523c9f8ddec3e3035b55cd6c78ca819
3
+ metadata.gz: 4f7c94ffc24ff4e1ffde03b09ace0e0e4aa2d9ca
4
+ data.tar.gz: f2b764f1283f1613ec5fe67db04c416da6be69e8
5
5
  SHA512:
6
- metadata.gz: 41e4cb10adc3372490d8c6fca1b1474c15385d2eb37733ba67478ff6af7523762770aed3a4fc0310d8c0509ad6658f4cc781925f4cf6b77cedb2ff651d5262dc
7
- data.tar.gz: 4196d97c956b7fb2ac7ce83a108b55b6e61904eb52882cb24dd4eaa0fbb4e4359440278b8cadbac48d2cc0224f070e96ae6133ddf8b26053b4f2c07ce01e57eb
6
+ metadata.gz: c87745189d44cff603ae4438452bf18655d67e32c9418b100487188e02842c246dcbcb4e65250e530bae8f384153bdaf00052f02fe1bfe19b8dc868a40967f76
7
+ data.tar.gz: 57452bc6a541eb9a33644b6198f35ed926579c40684b57b4ec3b7acb58d7ec892312bdf5980bb1d0ea0ba9565d52a6fac04c5d678d98d2820ad3e391f9785d05
data/README.md CHANGED
@@ -14,6 +14,15 @@ After you install and add it to your Gemfile, you need to run the generator:
14
14
 
15
15
  It will create client_variable.yml in config folder, these variable in this file will be merged with variables defined through controller, exported to client-side
16
16
 
17
+ ####client_variable.yml
18
+ ``` ruby
19
+ development:
20
+ app_name: <%= Rails.application.class.parent_name%>
21
+
22
+ production:
23
+ app_name: <%= Rails.application.class.parent_name%>
24
+ ```
25
+
17
26
  ## Usage
18
27
 
19
28
  Add this line to `app/views/layouts/application.html.erb`
@@ -1,3 +1,3 @@
1
1
  module ClientVariable
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -41,4 +41,4 @@ rails = (function(exports, global) {
41
41
  },
42
42
  values: datum
43
43
  }
44
- }(rails || {}, this));
44
+ }(typeof rails === 'undefined' ? {} : rails, this));
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: client_variable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MQuy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-16 00:00:00.000000000 Z
11
+ date: 2013-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler