adcurve_spree 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/adcurve_spree.gemspec +1 -1
- data/app/views/spree/adcurve_tag/_configuration.html.erb +9 -9
- 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: 12a97debf15fb02d9d0712a243678e4e22254248
|
4
|
+
data.tar.gz: 4c3d1dae9566fbd56c0533214a6a31f737ad7fea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f51d8fea3829038ce485565dfe746eef460cf767841552fdf92a2078988bdba0cc84e5e42176065f736107eb687387571e2e2f8ae1c8837d003e2629df32d68
|
7
|
+
data.tar.gz: d429eaf005ca857dfd8336a26db0153a8725b27348ac86d3c49f05778caab97603bcead186ddf68890f0c14fb32de0ee8f770a23830df68807046c1081dbed91
|
data/adcurve_spree.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'adcurve_spree'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.13'
|
6
6
|
s.summary = 'Adcurve Spree Integration plugin'
|
7
7
|
s.description = 'Easy install adcurve support in to your spree ecommerce site'
|
8
8
|
s.required_ruby_version = '>= 2.1.6'
|
@@ -1,23 +1,23 @@
|
|
1
1
|
<script type="text/javascript">
|
2
|
-
window.
|
2
|
+
window.s2m_configuration = {};
|
3
3
|
<% case controller.controller_name %>
|
4
4
|
<% when "home" %>
|
5
|
-
window.
|
5
|
+
window.s2m_configuration.adcurve_page = "home";
|
6
6
|
<% when "orders" %>
|
7
7
|
<% if controller.action_name == "edit" %>
|
8
|
-
window.
|
9
|
-
window.
|
8
|
+
window.s2m_configuration.adcurve_page = "cart";
|
9
|
+
window.s2m_configuration.adcurve_cart_items = <%= raw @order.line_items.map{|li| {
|
10
10
|
:adcurve_product_id => li.product.sku, :adcurve_quantity => li.quantity, :adcurve_amount_1 => li.display_amount.to_s, :adcurve_amount_2 => li.display_amount.to_s } }.to_json %>
|
11
11
|
<% end %>
|
12
12
|
<% when "products" %>
|
13
13
|
<% if controller.action_name != "index" %>
|
14
|
-
window.
|
15
|
-
window.
|
14
|
+
window.s2m_configuration.adcurve_page = "product";
|
15
|
+
window.s2m_configuration.adcurve_product_id = <%= raw @product.sku.to_json %>
|
16
16
|
<% end %>
|
17
17
|
<% when "taxons" %>
|
18
|
-
window.
|
19
|
-
window.
|
20
|
-
window.
|
18
|
+
window.s2m_configuration.adcurve_page = "category";
|
19
|
+
window.s2m_configuration.adcurve_category_path = "<%= raw params[:id].split("\/")[1..-1].join(" > ") %>";
|
20
|
+
window.s2m_configuration.adcurve_products = <%=raw @products.map{|product| { :adcurve_product_id => product.sku } }.to_json %>;
|
21
21
|
<% end %>
|
22
22
|
//hello
|
23
23
|
</script>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adcurve_spree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stanislav O. Pogrebnyak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|