hemju-google-analytics 0.0.9 → 0.0.10
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/Rakefile +1 -1
- data/lib/generators/install_generator.rb +9 -8
- data/lib/generators/templates/{initializer.rb → config/initializer/hemju_google_analytics.rb} +0 -0
- data/lib/{generators/templates/_google_analytics.html.erb.erb → hemju_google_analytics/_google_analytics.html.erb} +0 -0
- data/lib/hemju_google_analytics/version.rb +1 -1
- metadata +5 -5
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.10'
|
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."
|
@@ -1,10 +1,11 @@
|
|
1
|
-
module
|
2
|
-
|
3
|
-
|
1
|
+
module GoogleAnalytics
|
2
|
+
class InstallGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path("../templates", __FILE__)
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
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 "config/initializers/google_analytics_initializer.rb", "config/initializers/google_analytics_initializer.rb"
|
9
|
+
end
|
8
10
|
end
|
9
|
-
end
|
10
|
-
end
|
11
|
+
end
|
data/lib/generators/templates/{initializer.rb → config/initializer/hemju_google_analytics.rb}
RENAMED
File without changes
|
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: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Helmut Michael Juskewycz
|
@@ -33,9 +33,9 @@ files:
|
|
33
33
|
- README
|
34
34
|
- Rakefile
|
35
35
|
- lib/generators/install_generator.rb
|
36
|
-
- lib/generators/templates/
|
37
|
-
- lib/generators/templates/initializer.rb
|
36
|
+
- lib/generators/templates/config/initializer/hemju_google_analytics.rb
|
38
37
|
- lib/hemju-google-analytics.rb
|
38
|
+
- lib/hemju_google_analytics/_google_analytics.html.erb
|
39
39
|
- lib/hemju_google_analytics/version.rb
|
40
40
|
- lib/hemju_google_analytics.rb
|
41
41
|
has_rdoc: true
|