jekyll-uj-powertools 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 8f3869c515bb5ef7e647aeae0f67b907f6e28a21c78ac1e624015c40e3d46b78
4
- data.tar.gz: 6ad418fb8135c2a9882f133493ef71f28a4f362359bbcba8a4bb12a1affa47d5
3
+ metadata.gz: 03ac621e688b959799d869bb123f7f13c8cdf34f19c4235a15662b1d4f2923e4
4
+ data.tar.gz: 9872019926ed7145e16a93bce782221d844b38b4ce0ef6efcf131e522d345746
5
5
  SHA512:
6
- metadata.gz: fa4ede6097abc6daee51c51ae4c48ed3db36923574b47ff9e5fae90ff3ba222538bdfb9caad145c804f3922283081f253fc28ddf530bc71b75121f28b2da8df9
7
- data.tar.gz: ab7f032283068599490c96c01706c9b1949e33228deb65ace74b8491dd15b20fffe1c5bb70cf8f85014ca5e34e66e7d8d83f0abd692dd86bd97f7e7378d2748e
6
+ metadata.gz: c3c8dd260b55fb2e205a5deae79a3ac51d43881953c9f0530a52542f138dd75b4309c22aa6da08743bfe76cc4c17faf0fcaac4b5d00a455cfd6507685bb96600
7
+ data.tar.gz: d82e22aa4b14dfb2709d6a9805418497c2ecd6479af8c1ba41e8dc00e8f72188a1b5f1fa490666a9a83220bea44eb47122474227e73a392b87efb37363380dc2
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module UJPowertools
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
@@ -2,6 +2,9 @@ require "jekyll"
2
2
 
3
3
  module Jekyll
4
4
  module UJPowertools
5
+ # Initialize a timestamp that will remain consistent across calls
6
+ @cache_timestamp = Time.now.to_i.to_s
7
+
5
8
  # Strip ads from the input
6
9
  def uj_strip_ads(input)
7
10
  input
@@ -44,14 +47,22 @@ module Jekyll
44
47
  end
45
48
 
46
49
  # Cache buster
50
+ # def uj_cache(input)
51
+ # Time.now.to_i.to_s
52
+ # end
47
53
  def uj_cache(input)
48
- Time.now.to_i.to_s
54
+ Jekyll::UJPowertools.cache_timestamp
49
55
  end
50
56
 
51
57
  # Title case
52
58
  def uj_title_case(input)
53
59
  input.split(' ').map(&:capitalize).join(' ')
54
60
  end
61
+
62
+ # Accessor for the consistent timestamp
63
+ def self.cache_timestamp
64
+ @cache_timestamp
65
+ end
55
66
  end
56
67
 
57
68
  class InjectData < Generator
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-uj-powertools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ITW Creative Works