lytix 0.1.2 → 0.1.3
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.
- data/VERSION +1 -1
- data/lib/lytix/controller_methods.rb +2 -0
- data/lytix.gemspec +3 -3
- metadata +18 -9
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
|
@@ -15,6 +15,7 @@ module Lytix
|
|
|
15
15
|
module ClassMethods
|
|
16
16
|
def skip_google_analytics
|
|
17
17
|
skip_before_filter :google_analytics
|
|
18
|
+
skip_after_filter :insert_google_analytics
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
|
|
@@ -28,6 +29,7 @@ module Lytix
|
|
|
28
29
|
if @google_analytics && request.format.html? && response.body.respond_to?(:sub!)
|
|
29
30
|
response.body.sub!(/([ \t]*)<\/body>/i){ [($1 + @google_analytics.to_s), $&].join($/) }
|
|
30
31
|
end
|
|
32
|
+
nil
|
|
31
33
|
end
|
|
32
34
|
end
|
|
33
35
|
end
|
data/lytix.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{lytix}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Steve Richert"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-03-04}
|
|
13
13
|
s.description = %q{Easily include Google Analytics in your Rails app}
|
|
14
14
|
s.email = %q{steve.richert@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
|
39
39
|
s.homepage = %q{http://github.com/laserlemon/lytix}
|
|
40
40
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
41
41
|
s.require_paths = ["lib"]
|
|
42
|
-
s.rubygems_version = %q{1.3.
|
|
42
|
+
s.rubygems_version = %q{1.3.6}
|
|
43
43
|
s.summary = %q{Easily include Google Analytics in your Rails app}
|
|
44
44
|
s.test_files = [
|
|
45
45
|
"test/helper.rb",
|
metadata
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lytix
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 1
|
|
8
|
+
- 3
|
|
9
|
+
version: 0.1.3
|
|
5
10
|
platform: ruby
|
|
6
11
|
authors:
|
|
7
12
|
- Steve Richert
|
|
@@ -9,19 +14,21 @@ autorequire:
|
|
|
9
14
|
bindir: bin
|
|
10
15
|
cert_chain: []
|
|
11
16
|
|
|
12
|
-
date: 2010-
|
|
17
|
+
date: 2010-03-04 00:00:00 -05:00
|
|
13
18
|
default_executable:
|
|
14
19
|
dependencies:
|
|
15
20
|
- !ruby/object:Gem::Dependency
|
|
16
21
|
name: shoulda
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
prerelease: false
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
20
24
|
requirements:
|
|
21
25
|
- - ">="
|
|
22
26
|
- !ruby/object:Gem::Version
|
|
27
|
+
segments:
|
|
28
|
+
- 0
|
|
23
29
|
version: "0"
|
|
24
|
-
|
|
30
|
+
type: :development
|
|
31
|
+
version_requirements: *id001
|
|
25
32
|
description: Easily include Google Analytics in your Rails app
|
|
26
33
|
email: steve.richert@gmail.com
|
|
27
34
|
executables: []
|
|
@@ -63,18 +70,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
63
70
|
requirements:
|
|
64
71
|
- - ">="
|
|
65
72
|
- !ruby/object:Gem::Version
|
|
73
|
+
segments:
|
|
74
|
+
- 0
|
|
66
75
|
version: "0"
|
|
67
|
-
version:
|
|
68
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
77
|
requirements:
|
|
70
78
|
- - ">="
|
|
71
79
|
- !ruby/object:Gem::Version
|
|
80
|
+
segments:
|
|
81
|
+
- 0
|
|
72
82
|
version: "0"
|
|
73
|
-
version:
|
|
74
83
|
requirements: []
|
|
75
84
|
|
|
76
85
|
rubyforge_project:
|
|
77
|
-
rubygems_version: 1.3.
|
|
86
|
+
rubygems_version: 1.3.6
|
|
78
87
|
signing_key:
|
|
79
88
|
specification_version: 3
|
|
80
89
|
summary: Easily include Google Analytics in your Rails app
|