simple_analytics_rails 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: 8db63b53e66fd564ccdd500db934288a873d6e59259352e78281cd76693e6367
4
- data.tar.gz: 7adcdc3bf953b91b2b5539ebbb843c7615dee061054eb36b513eb5064b1579bd
3
+ metadata.gz: f13ab8f00a4527e18f74ef48c57185037ea4fd76934ba3621f612db57afb8647
4
+ data.tar.gz: 85c354189ea37e4e730f1f1e29813f4f835c9fd9a28fec861b12a88a8c8524b1
5
5
  SHA512:
6
- metadata.gz: d6cfaf71f7eab6bcd366a563eafcdbc4615727be5559fdea9d9545333ec192fa5688ecbb909fe80754d886833dbff98d7cd29f6475f6d37566ade7bc529a11ac
7
- data.tar.gz: 0f67676aed36c809d35c7cbeabb2f50bd3edeb2a7bb01feabf4376c1796d3185b6a2a3bf160458e5c8b94b3e30f240125cfa9842a88171d7f7d0a241c69bcd01
6
+ metadata.gz: 253db31a5380c7a681d3e96843129eec1427280bba36b2cca9bb10b00a6331bb79d3581c3b5298d2d562cff1ca4f5a99f6abe38e55c5095bfa4b7beccb96475a
7
+ data.tar.gz: b95cb39c2186a9f22ce8a7eacf647bc49ff160329ccd0b28b10b51d65bb71320055a2aec75c5711045df0cd369aae2417d1aa9c65d8b95a14372296b258fad9b
data/CHANGELOG.md CHANGED
@@ -2,7 +2,19 @@
2
2
 
3
3
  ## [Unreleased](https://github.com/simpleanalytics/rubyonrails-plugin/tree/HEAD)
4
4
 
5
- [Full Changelog](https://github.com/simpleanalytics/rubyonrails-plugin/compare/v0.2.0...HEAD)
5
+ [Full Changelog](https://github.com/simpleanalytics/rubyonrails-plugin/compare/v0.3.0...HEAD)
6
+
7
+ **Closed issues:**
8
+
9
+ - NoMethodError: undefined method `gsub!' for nil:NilClass [\#13](https://github.com/simpleanalytics/rubyonrails-plugin/issues/13)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - fix: use the safe navigation for nil responses. [\#15](https://github.com/simpleanalytics/rubyonrails-plugin/pull/15) ([ParamagicDev](https://github.com/ParamagicDev))
14
+
15
+ ## [v0.3.0](https://github.com/simpleanalytics/rubyonrails-plugin/tree/v0.3.0) (2021-07-09)
16
+
17
+ [Full Changelog](https://github.com/simpleanalytics/rubyonrails-plugin/compare/v0.2.0...v0.3.0)
6
18
 
7
19
  **Merged pull requests:**
8
20
 
@@ -20,8 +20,8 @@ module SimpleAnalyticsRails::Middleware
20
20
 
21
21
  def inject_javascript_to_response(response)
22
22
  if SimpleAnalyticsRails.configuration.enabled? && response.respond_to?("[]")
23
- response[0].gsub!("</head>", "#{javascript_script.head_html}</head>")
24
- response[0].gsub!("</body>", "#{javascript_script.body_html}</body>")
23
+ response[0]&.gsub!("</head>", "#{javascript_script.head_html}</head>")
24
+ response[0]&.gsub!("</body>", "#{javascript_script.body_html}</body>")
25
25
  end
26
26
 
27
27
  response
@@ -1,3 +1,3 @@
1
1
  module SimpleAnalyticsRails
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_analytics_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Rogers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-09 00:00:00.000000000 Z
11
+ date: 2021-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubygems_version: 3.2.15
172
+ rubygems_version: 3.2.22
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: Add the Simple Analytics JavaScript Script to your Rails app