hemju-google-analytics 0.0.19 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ module Hemju
2
+ module GoogleAnalytics
3
+ attr_accessor :account
4
+ attr_accessor :domain
5
+
6
+ attr_accessor :production_only
7
+
8
+ def self.setup
9
+ yield self
10
+ end
11
+
12
+ end
13
+ 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
@@ -1,4 +1,4 @@
1
- HemjuGoogleAnalytics.setup do |config|
1
+ Hemju::GoogleAnalytics.setup do |config|
2
2
 
3
3
  config.account = "'UA-xxxxxxx-x'"
4
4
  config.domain = ".your-domain"
@@ -0,0 +1,5 @@
1
+ module Hemju
2
+ module GoogleAnalytics
3
+ VERSION = "0.9.0"
4
+ end
5
+ end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hemju-google-analytics
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 19
10
- version: 0.0.19
4
+ prerelease:
5
+ version: 0.9.0
11
6
  platform: ruby
12
7
  authors:
13
8
  - Helmut Michael Juskewycz
@@ -15,31 +10,25 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-06-22 00:00:00 +02:00
19
- default_executable:
13
+ date: 2011-04-25 00:00:00 Z
20
14
  dependencies: []
21
15
 
22
16
  description: A gem that generates Google Analytics Javascript code.
23
- email: hjuskewycz@hemju.com
17
+ email:
18
+ - hjuskewycz@hemju.com
24
19
  executables: []
25
20
 
26
21
  extensions: []
27
22
 
28
- extra_rdoc_files:
29
- - README
30
- - LICENSE
23
+ extra_rdoc_files: []
24
+
31
25
  files:
26
+ - lib/google_analytics/generators/install_generator.rb
27
+ - lib/google_analytics/templates/initializer.rb
28
+ - lib/google_analytics/version.rb
29
+ - lib/google_analytics.rb
32
30
  - LICENSE
33
- - README
34
- - Rakefile
35
- - lib/generators/install/install_generator.rb
36
- - lib/generators/install/templates/hemju_google_analytics.rb
37
- - lib/hemju-google-analytics.rb
38
- - lib/hemju_google_analytics/_google_analytics.html.erb
39
- - lib/hemju_google_analytics/version.rb
40
- - lib/hemju_google_analytics.rb
41
- has_rdoc: true
42
- homepage:
31
+ homepage: https://github.com/hemju/hemju-google-analytics
43
32
  licenses: []
44
33
 
45
34
  post_install_message:
@@ -52,23 +41,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
41
  requirements:
53
42
  - - ">="
54
43
  - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
44
  version: "0"
59
45
  required_rubygems_version: !ruby/object:Gem::Requirement
60
46
  none: false
61
47
  requirements:
62
48
  - - ">="
63
49
  - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
50
+ version: 1.3.7
68
51
  requirements: []
69
52
 
70
53
  rubyforge_project:
71
- rubygems_version: 1.3.7
54
+ rubygems_version: 1.7.2
72
55
  signing_key:
73
56
  specification_version: 3
74
57
  summary: A gem that generates Google Analytics Javascript code.
data/README DELETED
@@ -1,3 +0,0 @@
1
- == google_analytics_plugin
2
-
3
- You should document your project here.
data/Rakefile DELETED
@@ -1,40 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require 'rake/clean'
4
- require 'rake/gempackagetask'
5
- require 'rake/rdoctask'
6
- require 'rake/testtask'
7
-
8
- spec = Gem::Specification.new do |s|
9
- s.name = 'hemju-google-analytics'
10
- s.version = '0.0.19'
11
- s.has_rdoc = true
12
- s.extra_rdoc_files = ['README', 'LICENSE']
13
- s.summary = "A gem that generates Google Analytics Javascript code."
14
- s.description = s.summary
15
- s.author = 'Helmut Michael Juskewycz'
16
- s.email = 'hjuskewycz@hemju.com'
17
- # s.executables = ['your_executable_here']
18
- s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
19
- s.require_path = "lib"
20
- s.bindir = "bin"
21
- end
22
-
23
- Rake::GemPackageTask.new(spec) do |p|
24
- p.gem_spec = spec
25
- p.need_tar = true
26
- p.need_zip = true
27
- end
28
-
29
- Rake::RDocTask.new do |rdoc|
30
- files =['README', 'LICENSE', 'lib/**/*.rb']
31
- rdoc.rdoc_files.add(files)
32
- rdoc.main = "README" # page to start on
33
- rdoc.title = "hemju-google-analytics Docs"
34
- rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
35
- rdoc.options << '--line-numbers'
36
- end
37
-
38
- Rake::TestTask.new do |t|
39
- t.test_files = FileList['test/**/*.rb']
40
- end
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
1
- require 'hemju_google_analytics'
@@ -1,11 +0,0 @@
1
- module HemjuGoogleAnalytics
2
- mattr_accessor :account
3
- mattr_accessor :domain
4
-
5
- mattr_accessor :environments
6
-
7
- def self.setup
8
- yield self
9
- end
10
-
11
- end
@@ -1,5 +0,0 @@
1
- <% if HemjuGoogleAnalytics.environments.nil? || HemjuGoogleAnalytics.environments.include?(Rails.env) %>
2
- <script type="text/javascript">
3
- var _gaq = _gaq || [];_gaq.push(['_setAccount', HemjuGoogleAnalytics.account]);_gaq.push(['_setDomainName', HemjuGoogleAnalytics.domain]);_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script');ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';ga.setAttribute('async', 'true');document.documentElement.firstChild.appendChild(ga);})();
4
- </script>
5
- <% end -%>
@@ -1,3 +0,0 @@
1
- module HemjuGoogleAnalytics
2
- VERSION = "0.0.19"
3
- end