hemju-google-analytics 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -1
- data/Rakefile +1 -1
- data/lib/google_analytics.rb +19 -0
- data/lib/google_analytics/generators/install_generator.rb +12 -0
- data/lib/{hemju_google_analytics → google_analytics}/templates/_google_analytics.html.erb.erb +0 -0
- data/lib/{hemju_google_analytics → google_analytics}/templates/initializer.rb +0 -0
- data/lib/{hemju_google_analytics → google_analytics}/version.rb +1 -1
- metadata +8 -8
- data/lib/hemju_google_analytics.rb +0 -17
- data/lib/hemju_google_analytics/generators/install_generator.rb +0 -10
data/README
CHANGED
data/Rakefile
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
module Hemju
|
2
|
+
module GoogleAnalytics
|
3
|
+
class Railtie < ::Rails::Railtie
|
4
|
+
rake_tasks do
|
5
|
+
#load "google_analytics/railties/databases.rake"
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
attr_accessor :account
|
10
|
+
attr_accessor :domain
|
11
|
+
|
12
|
+
attr_accessor :production_only
|
13
|
+
|
14
|
+
def self.setup
|
15
|
+
yield self
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
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
|
+
def add_my_initializer
|
8
|
+
template "initializer.rb", "config/initializers/google_analytics_initializer.rb"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/{hemju_google_analytics → google_analytics}/templates/_google_analytics.html.erb.erb
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: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Helmut Michael Juskewycz
|
@@ -32,11 +32,11 @@ files:
|
|
32
32
|
- LICENSE
|
33
33
|
- README
|
34
34
|
- Rakefile
|
35
|
-
- lib/
|
36
|
-
- lib/
|
37
|
-
- lib/
|
38
|
-
- lib/
|
39
|
-
- lib/
|
35
|
+
- lib/google_analytics/generators/install_generator.rb
|
36
|
+
- lib/google_analytics/templates/_google_analytics.html.erb.erb
|
37
|
+
- lib/google_analytics/templates/initializer.rb
|
38
|
+
- lib/google_analytics/version.rb
|
39
|
+
- lib/google_analytics.rb
|
40
40
|
has_rdoc: true
|
41
41
|
homepage:
|
42
42
|
licenses: []
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Hemju::GoogleAnalytics
|
2
|
-
class Railtie < ::Rails::Railtie
|
3
|
-
rake_tasks do
|
4
|
-
#load "google_analytics/railties/databases.rake"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
attr_accessor :account
|
9
|
-
attr_accessor :domain
|
10
|
-
|
11
|
-
attr_accessor :production_only
|
12
|
-
|
13
|
-
def self.setup
|
14
|
-
yield self
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
module Hemju::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
|
-
def add_my_initializer
|
7
|
-
template "initializer.rb", "config/initializers/google_analytics_initializer.rb"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|