simple_analytics_rails 0.3.0 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f13ab8f00a4527e18f74ef48c57185037ea4fd76934ba3621f612db57afb8647
|
4
|
+
data.tar.gz: 85c354189ea37e4e730f1f1e29813f4f835c9fd9a28fec861b12a88a8c8524b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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]
|
24
|
-
response[0]
|
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
|
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.
|
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-
|
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.
|
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
|