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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da825a5c256dc442202d432cd7af4ebeef01d4f4
4
- data.tar.gz: a3846238d471307b17c7fa45a03b4205097236a9
3
+ metadata.gz: 12a97debf15fb02d9d0712a243678e4e22254248
4
+ data.tar.gz: 4c3d1dae9566fbd56c0533214a6a31f737ad7fea
5
5
  SHA512:
6
- metadata.gz: f79bd8f2a6e602f0a0e466d3812c4b455098db4c4750f255b8548a946dd4110f1b446da9c81a6efd560b82f6dafe3f8374123647746c08d6771671c062e6612d
7
- data.tar.gz: 96d74895cc4a790b3720958947efe14c6ca3ae8b10454737b1c980ffcec6d9ff99c386ab43ff6783979c1d3a3988e33d4314202e2575eca1a742d1020bb447ce
6
+ metadata.gz: 6f51d8fea3829038ce485565dfe746eef460cf767841552fdf92a2078988bdba0cc84e5e42176065f736107eb687387571e2e2f8ae1c8837d003e2629df32d68
7
+ data.tar.gz: d429eaf005ca857dfd8336a26db0153a8725b27348ac86d3c49f05778caab97603bcead186ddf68890f0c14fb32de0ee8f770a23830df68807046c1081dbed91
@@ -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.12'
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.adcurve_configuration = {};
2
+ window.s2m_configuration = {};
3
3
  <% case controller.controller_name %>
4
4
  <% when "home" %>
5
- window.adcurve_configuration.adcurve_page = "home";
5
+ window.s2m_configuration.adcurve_page = "home";
6
6
  <% when "orders" %>
7
7
  <% if controller.action_name == "edit" %>
8
- window.adcurve_configuration.adcurve_page = "cart";
9
- window.adcurve_configuration.adcurve_cart_items = <%= raw @order.line_items.map{|li| {
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.adcurve_configuration.adcurve_page = "product";
15
- window.adcurve_configuration.adcurve_product_id = <%= raw @product.sku.to_json %>
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.adcurve_configuration.adcurve_page = "category";
19
- window.adcurve_configuration.adcurve_category_path = "<%= raw params[:id].split("\/")[1..-1].join(" > ") %>";
20
- window.adcurve_configuration.adcurve_products = <%=raw @products.map{|product| { :adcurve_product_id => product.sku } }.to_json %>;
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.12
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-16 00:00:00.000000000 Z
12
+ date: 2016-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core