planbcd-rails 0.1.0 → 0.1.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93ddcc96189a797707107d7dc5019c47c588e6d8
|
|
4
|
+
data.tar.gz: 4577ed7c5f3062f898f5c7b5ad0fc21fbdf98c4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d81c4d293db6016cbd1a40a991a352d9a2440749e3ca5398eba940feee045d83c5ff10ba3ec87d611a9c1ee9864478736360492b471e4a4ee0083a79bdccbc89
|
|
7
|
+
data.tar.gz: 87a358b4153eea77f59cb7745aec1745416fc90058c1bb95015601c9ea0c45102ffc1a1385f01362d1f68f3667eed5e8ae415df9842cfbb6b86400c3b8302680
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PlanBCD::Rails.configure do |c|
|
|
2
|
-
# Set your JS
|
|
3
|
-
# c.
|
|
4
|
-
# c.
|
|
2
|
+
# Set your JS URL found in your offer page.
|
|
3
|
+
# c.js_url = "//localhost/abc/def.js"
|
|
4
|
+
# c.js_url = proc { |controller| controller.is_something? ? "//localhost/abc/def_1.js" : "//localhost/abc/def_2.js" }
|
|
5
5
|
|
|
6
6
|
# Insert PlanBCD js code to any response for html request
|
|
7
7
|
# c.auto_insert = true
|
|
@@ -45,7 +45,7 @@ describe PlanBCD::Rails::Middleware do
|
|
|
45
45
|
expect(body).to eq(['{}'])
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
|
-
context "no
|
|
48
|
+
context "no js_url" do
|
|
49
49
|
let(:js_url) { nil }
|
|
50
50
|
it "does not raise error but write the log" do
|
|
51
51
|
expect($stderr).to receive(:write).with(/^Failed to insert planbcd tag: /)
|