rails_erb_credentials 1.0.0 → 1.0.1

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: 578afbd530644f4208763a33b08f988333c50911d7e69cd81f69f3a337d5fcf2
4
- data.tar.gz: 8281af297110a2aa1967c30ebb3dc3f3736bf937d28876cbd177ba9fac62db04
3
+ metadata.gz: 904a3b4da6fb78fd0345033613992f507da09cd1703b2f5c52728622ba9087fb
4
+ data.tar.gz: f9efb59cc9a8311162c806d108ed969ee0328b1e0b14d371e8ec829eb657f589
5
5
  SHA512:
6
- metadata.gz: d0c581b1cabf3d632acc0c50bf3f12df892cad24f510f34053c56a2d4e3de277aa0ff05609e66478d9e40a0e6cb34839c696ff7a7f5d0407a508a969aa7abb6d
7
- data.tar.gz: b73ca5c66d8b5cd899f3e3c56e94ecbb80a3bfd94a11adc98e2b1c6ed5c78287059007c38a1b56d198537f59fb5785a86178172ab51c27f63caafdd4b5ac5832
6
+ metadata.gz: f35254ee9b74e30f0169f2d8232fc6e579e369d3c288db4e9bff49c0ac8baf26a50af468173b82745ee99d904d434b25b8b378f4247e651c8d3ac3fafb2e8804
7
+ data.tar.gz: 3fbf91da9cd08829e82d3c471356859f253e4440c511b21860d3ec2dda3549ffff9be515328cb3f9df7c5d2b039eeba892c10ccf23d873aa735ec2e41e3d6b2e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+
4
+ ## [1.0.1] - 2024-10-05
5
+
6
+ - Fixed a major bug that prevented the credentials from being evaluated
7
+
3
8
  ## [1.0.0] - 2024-10-05
4
9
 
5
10
  - Initial release
@@ -9,16 +9,20 @@ module RailsErbCredentials
9
9
  end
10
10
 
11
11
  def method_missing(method_name, *args, &block)
12
- value = @original_credentials.public_send(method_name)
13
- if value.is_a?(String) && value.include?("<%=")
14
- ERB.new(value).result(binding)
12
+ if @original_credentials.respond_to?(method_name)
13
+ value = @original_credentials.public_send(method_name, *args, &block)
14
+ if value.is_a?(String) && value.include?("<%=")
15
+ ERB.new(value).result(binding)
16
+ else
17
+ value
18
+ end
15
19
  else
16
- value
20
+ super
17
21
  end
18
22
  end
19
23
 
20
24
  def respond_to_missing?(method_name, include_private = false)
21
- @original_credentials.respond_to?(method_name) || super
25
+ @original_credentials.respond_to?(method_name, include_private) || super
22
26
  end
23
27
  end
24
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsErbCredentials
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_erb_credentials
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nuzair46