foliokit 1.4.0 → 1.4.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: d21590c44ca84b89b4b81543d5436decc60fafbe
4
- data.tar.gz: b74b89ad89350dbeb53526422f7cadf02ff1783e
3
+ metadata.gz: 07f354064ac53e870ca6eec300779c5e43fd0d9f
4
+ data.tar.gz: 065ac1a51be33ec34df9680e45d8c188a6754133
5
5
  SHA512:
6
- metadata.gz: afc15b37bbca68379525de620207622cf7a5f3018d4fb72bc00c53fdd380d7ada401082f76c80c9d3ce94363e2b458d86237aff2b1e6a186296bfc278ad936c6
7
- data.tar.gz: 5f3cb246d0d78c8bea98e6f065d5c727e532880687c2c18da4dad8565be53dddadd0dfef1c66e2c27b483a298d34da1ba99514a60913ea23581ef4c5ecf5ab5f
6
+ metadata.gz: ecb71ea1d6cf74c718c6a2504ccd92a8ec8f00a3a293dd1b81c9b86928c7d080804ebb68adcd89cf78389fe770eaa50b47bcfc6260dbe792b55d0f8cb8553a98
7
+ data.tar.gz: b3921e10ceca4627fa00db80a394d1d1b25de86a96e97f423f3b85d3207a840a049f97ea36ae342e26a0ed475fac2ddf715727f3476ccd4a0b6c7904288209ec
data/assets/inject.js ADDED
@@ -0,0 +1 @@
1
+ function attachSwiperListener(){const{MagLoftReader:t}=window;if(t.initialized){const{swiper:e}=t;e.on("slideChangeTransitionEnd",()=>{const{xIndex:e,yIndex:n}=t;gtag("config","UA-89717859-63",{page_path:`/${e}/${n}/`})})}else setTimeout(attachSwiperListener,500)}document.addEventListener("DOMContentLoaded",function(){if(!/https?:/.test(window.location.protocol))return;if("digipubs.amwaycentral.com"!==window.location.host)return;const t=document.createElement("script");t.setAttribute("async",""),t.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=UA-89717859-63"),document.body.appendChild(t);const e=document.createElement("script");e.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'UA-89717859-63');\n ",document.body.appendChild(e),attachSwiperListener()});
@@ -18,6 +18,7 @@ module Foliokit
18
18
  issue_dir.dir("html").copy(dir.dir("html")) if issue_dir.dir("html").exists?
19
19
  assets_dir.file("foliokit.css").copy(dir.file("foliokit.css"))
20
20
  assets_dir.file("foliokit.js").copy(dir.file("foliokit.js"))
21
+ assets_dir.file("inject.js").copy(dir.file("inject.js")) # Amway tracking js file
21
22
  @output_dir = dir
22
23
  @converted = true
23
24
  true
@@ -97,6 +98,7 @@ module Foliokit
97
98
  end
98
99
  end
99
100
  b.script(type: 'text/javascript', src: "foliokit.js")
101
+ b.script(type: 'text/javascript', src: "inject.js")
100
102
  end
101
103
  end
102
104
  end
@@ -1,3 +1,3 @@
1
1
  module Foliokit
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foliokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-30 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -210,6 +210,7 @@ files:
210
210
  - README.md
211
211
  - assets/foliokit.css
212
212
  - assets/foliokit.js
213
+ - assets/inject.js
213
214
  - bin/foliokit
214
215
  - lib/foliokit.rb
215
216
  - lib/foliokit/article.rb