hemju-google-analytics 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/generators/install/install_generator.rb +13 -0
- data/lib/{hemju/generators → generators/install}/templates/hemju_google_analytics.rb +0 -0
- data/lib/hemju_google_analytics/version.rb +1 -1
- metadata +5 -5
- data/lib/hemju/generators/google_analytics/install_generator.rb +0 -11
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
|
|
7
7
|
|
8
8
|
spec = Gem::Specification.new do |s|
|
9
9
|
s.name = 'hemju-google-analytics'
|
10
|
-
s.version = '0.0.
|
10
|
+
s.version = '0.0.19'
|
11
11
|
s.has_rdoc = true
|
12
12
|
s.extra_rdoc_files = ['README', 'LICENSE']
|
13
13
|
s.summary = "A gem that generates Google Analytics Javascript code."
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Hemju
|
2
|
+
module GoogleAnalytics
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path("../templates", __FILE__)
|
5
|
+
|
6
|
+
# all public methods in here will be run in order
|
7
|
+
desc 'Creates a template initializer file for the hemju Google Analytics plugin. You will find the generated file in config/initializers/google_analytics_initializer.rb.'
|
8
|
+
def add_my_initializer
|
9
|
+
copy_file "hemju_google_analytics.rb", "config/initializers/hemju_google_analytics.rb"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hemju-google-analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 19
|
10
|
+
version: 0.0.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Helmut Michael Juskewycz
|
@@ -32,8 +32,8 @@ files:
|
|
32
32
|
- LICENSE
|
33
33
|
- README
|
34
34
|
- Rakefile
|
35
|
-
- lib/
|
36
|
-
- lib/
|
35
|
+
- lib/generators/install/install_generator.rb
|
36
|
+
- lib/generators/install/templates/hemju_google_analytics.rb
|
37
37
|
- lib/hemju-google-analytics.rb
|
38
38
|
- lib/hemju_google_analytics/_google_analytics.html.erb
|
39
39
|
- lib/hemju_google_analytics/version.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
module GoogleAnalytics
|
2
|
-
class InstallGenerator < Rails::Generators::Base
|
3
|
-
source_root File.expand_path("../templates", __FILE__)
|
4
|
-
|
5
|
-
# all public methods in here will be run in order
|
6
|
-
desc 'Creates a template initializer file for the hemju Google Analytics plugin. You will find the generated file in config/initializers/google_analytics_initializer.rb.'
|
7
|
-
def add_my_initializer
|
8
|
-
copy_file "hemju_google_analytics.rb", "config/initializers/hemju_google_analytics.rb"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|