client_variable 0.0.4 → 0.0.5
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 +4 -4
- data/README.md +9 -0
- data/lib/client_variable/version.rb +1 -1
- data/vendor/assets/javascripts/variable.js +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: 4f7c94ffc24ff4e1ffde03b09ace0e0e4aa2d9ca
|
|
4
|
+
data.tar.gz: f2b764f1283f1613ec5fe67db04c416da6be69e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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`
|
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
|
+
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-
|
|
11
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|