ramen-rails 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/lib/ramen-rails/script_tag.rb +9 -1
- data/lib/ramen-rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2fd11f0f2fdbc4b14251faddb4ec35e2f89902e
|
4
|
+
data.tar.gz: 6f6110a19e75baa8d0fb3143975bc253a9744bde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3b9575bbbf23fa8b13f90b1624c9b342e0c194f5b5d1486f90bed683935fddf3732f51824906047ff558dd76bfa9aa1733cbfff7ca23b0db38bc5f38f824cef
|
7
|
+
data.tar.gz: f6f8dba80bfa1cd796b55e871e55b9a35f37d67ca8d7985fa648de5515ba937bdb183fcaefe08055c221217320b89398e265ba3f236777cb03bf0fd7e3c5e7cf
|
data/CHANGELOG
CHANGED
@@ -8,3 +8,8 @@ Add RamenRails::Import for importing customers directly into Ramen from command
|
|
8
8
|
|
9
9
|
Version 0.3.1
|
10
10
|
Print out time for each import
|
11
|
+
|
12
|
+
Version 0.4.0
|
13
|
+
Add support for window.ramenSettings.onload and window.ramenOnload. Change the way
|
14
|
+
ramenSettings is set so that it can be merged with other options previously defined
|
15
|
+
in <script> tags.
|
@@ -32,7 +32,15 @@ module RamenRails
|
|
32
32
|
|
33
33
|
ramen_script = <<-RAMEN_SCRIPT
|
34
34
|
<script id="RamenSettingsScriptTag">
|
35
|
-
|
35
|
+
(function() {
|
36
|
+
var opts = #{ActiveSupport::JSON.encode(ramen_settings)};
|
37
|
+
window.ramenSettings = window.ramenSettings || {};
|
38
|
+
for (var property in opts) {
|
39
|
+
if (opts.hasOwnProperty(property)) {
|
40
|
+
window.ramenSettings[property] = opts[property];
|
41
|
+
}
|
42
|
+
}
|
43
|
+
})()
|
36
44
|
</script>
|
37
45
|
<script src="#{ramen_js_asset_uri}" async></script>
|
38
46
|
RAMEN_SCRIPT
|
data/lib/ramen-rails/version.rb
CHANGED