flavour_saver 2.0.1 → 2.0.2

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
  SHA256:
3
- metadata.gz: 84400b205e22ad2023904cb71e30cab4812d79c966fd111fe3c0d880e3af0c66
4
- data.tar.gz: 624ec57f20ed02bcaca7b4f2ff64854688f360e4736b70b179099ac6f8ecc397
3
+ metadata.gz: 5bd75dc7f4e17072e0e18ffdefdfa81c6f24e98859786bb37c45191095964f2c
4
+ data.tar.gz: 41ac8be61e4a0969a7aa669a7f1cb488530f8a4d5514aca979fa37da151aca32
5
5
  SHA512:
6
- metadata.gz: deb3fb00ba1a49c1749311fce614a3fa9f004c0ef1d483d5023fd5357c4fbed5d3d1c38ebe558dbf59b94e69ee260fdfef103e5982fcade8532259c60c55c828
7
- data.tar.gz: e2155e1ee69d3cbc6b686b1f826db302731164240eb03188e9f6f9392628c6c995196e481c3ec334ee4174ea949d74083a9e81760f3f11f1068de12cd3c85d0a
6
+ metadata.gz: d771d2bdc69eea05f39b747299a962f914a53a3e1475a26089ea951eef505acd5d7e8511b9fd1d61e2d22cdceaf3bd52e7b7326901c3cd7cdb1216eb3c4ba4d2
7
+ data.tar.gz: ba14f4e5d4c62ace6ae2c8a1776cd8f7d9757333a1545473169d5f3c7f12c621149804736c1ff453927d8ed87b6ed31c756df8aee53cde2c54c2a094eefd2cb5
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.2]
11
+
12
+ ### Fixed
13
+
14
+ * Deprecation warning for template handler (#59)
15
+
16
+ ### Changed
17
+
18
+ * Relaxed version constraint on activesupport dependency (#60)
19
+
10
20
  ## [2.0.1]
11
21
 
12
22
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flavour_saver (2.0.1)
4
+ flavour_saver (2.0.2)
5
5
  rltk (~> 2.2.0)
6
6
  tilt
7
7
 
@@ -45,7 +45,7 @@ PLATFORMS
45
45
  ruby
46
46
 
47
47
  DEPENDENCIES
48
- activesupport (< 7.0)
48
+ activesupport (< 8.0)
49
49
  flavour_saver!
50
50
  rake
51
51
  rspec
@@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
26
26
 
27
27
  gem.add_development_dependency 'rake'
28
28
  gem.add_development_dependency 'rspec'
29
- gem.add_development_dependency 'activesupport', '< 7.0'
29
+ gem.add_development_dependency 'activesupport', '< 8.0'
30
30
 
31
31
  gem.add_dependency 'rltk', '~> 2.2.0'
32
32
  gem.add_dependency 'tilt'
@@ -1,3 +1,3 @@
1
1
  module FlavourSaver
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
data/lib/flavour_saver.rb CHANGED
@@ -17,10 +17,11 @@ module FlavourSaver
17
17
  end
18
18
 
19
19
  ActiveSupport.on_load(:action_view) do
20
- handler = proc do |template|
20
+ handler = proc do |template, source|
21
+ source ||= template.source
21
22
  # I'd rather be caching the Runtime object ready to fire, but apparently I don't get that luxury.
22
23
  <<-SOURCE
23
- FlavourSaver.evaluate((begin;#{template.source.inspect};end),self)
24
+ FlavourSaver.evaluate((begin;#{source.inspect};end),self)
24
25
  SOURCE
25
26
  end
26
27
  ActionView::Template.register_template_handler(:hbs, handler)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flavour_saver
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clayton Passmore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-26 00:00:00.000000000 Z
12
+ date: 2022-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "<"
47
47
  - !ruby/object:Gem::Version
48
- version: '7.0'
48
+ version: '8.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "<"
54
54
  - !ruby/object:Gem::Version
55
- version: '7.0'
55
+ version: '8.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rltk
58
58
  requirement: !ruby/object:Gem::Requirement