bigbro 0.9.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 15174ae0f3a27074016ff1c99e41e101891c3c77
4
+ data.tar.gz: c2b5403492dcda239be91ab8237a2e01a9d6cd87
5
+ SHA512:
6
+ metadata.gz: 09cc9b48def8fbb665954d2e2265bcf6b64df289f2d383d48e6b133a1b598b4cd65c8b3dc9240520e61d8fd186d4a70114da093ca638a74531059bd2dc6324fa
7
+ data.tar.gz: 50c2130dbdac58f0c3b554e6930c19da373152ed1b3266ee681a5a842ad8c515ac3a78eda82e9be2b0c017db9a88fff4340d5cf408778a0847a2efa95c90ffda
@@ -0,0 +1,4 @@
1
+ html
2
+ pkg
3
+ .*.sw?
4
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,86 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bigbro (1.0.0)
5
+ rails (>= 3.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.0.1)
11
+ actionpack (= 4.0.1)
12
+ mail (~> 2.5.4)
13
+ actionpack (4.0.1)
14
+ activesupport (= 4.0.1)
15
+ builder (~> 3.1.0)
16
+ erubis (~> 2.7.0)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ activemodel (4.0.1)
20
+ activesupport (= 4.0.1)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.1)
23
+ activemodel (= 4.0.1)
24
+ activerecord-deprecated_finders (~> 1.0.2)
25
+ activesupport (= 4.0.1)
26
+ arel (~> 4.0.0)
27
+ activerecord-deprecated_finders (1.0.3)
28
+ activesupport (4.0.1)
29
+ i18n (~> 0.6, >= 0.6.4)
30
+ minitest (~> 4.2)
31
+ multi_json (~> 1.3)
32
+ thread_safe (~> 0.1)
33
+ tzinfo (~> 0.3.37)
34
+ arel (4.0.1)
35
+ atomic (1.1.14)
36
+ builder (3.1.4)
37
+ erubis (2.7.0)
38
+ hike (1.2.3)
39
+ i18n (0.6.5)
40
+ mail (2.5.4)
41
+ mime-types (~> 1.16)
42
+ treetop (~> 1.4.8)
43
+ mime-types (1.25.1)
44
+ minitest (4.7.5)
45
+ multi_json (1.8.2)
46
+ polyglot (0.3.3)
47
+ rack (1.5.2)
48
+ rack-test (0.6.2)
49
+ rack (>= 1.0)
50
+ rails (4.0.1)
51
+ actionmailer (= 4.0.1)
52
+ actionpack (= 4.0.1)
53
+ activerecord (= 4.0.1)
54
+ activesupport (= 4.0.1)
55
+ bundler (>= 1.3.0, < 2.0)
56
+ railties (= 4.0.1)
57
+ sprockets-rails (~> 2.0.0)
58
+ railties (4.0.1)
59
+ actionpack (= 4.0.1)
60
+ activesupport (= 4.0.1)
61
+ rake (>= 0.8.7)
62
+ thor (>= 0.18.1, < 2.0)
63
+ rake (10.1.0)
64
+ sprockets (2.10.1)
65
+ hike (~> 1.2)
66
+ multi_json (~> 1.0)
67
+ rack (~> 1.0)
68
+ tilt (~> 1.1, != 1.3.0)
69
+ sprockets-rails (2.0.1)
70
+ actionpack (>= 3.0)
71
+ activesupport (>= 3.0)
72
+ sprockets (~> 2.8)
73
+ thor (0.18.1)
74
+ thread_safe (0.1.3)
75
+ atomic
76
+ tilt (1.4.1)
77
+ treetop (1.4.15)
78
+ polyglot
79
+ polyglot (>= 0.3.1)
80
+ tzinfo (0.3.38)
81
+
82
+ PLATFORMS
83
+ ruby
84
+
85
+ DEPENDENCIES
86
+ bigbro!
data/Rakefile CHANGED
@@ -1,38 +1,7 @@
1
- require 'rake'
2
- require 'rake/rdoctask'
3
-
4
- require 'lib/bigbro'
5
-
6
- begin
7
- require 'jeweler'
8
- Jeweler::Tasks.new do |gemspec|
9
- gemspec.name = 'bigbro'
10
-
11
- gemspec.summary = 'A Google Analytics plugin for Rails'
12
- gemspec.description = 'BigBro provides view helpers to generate Analytics code ' \
13
- '(with the noscript counterpart), test helpers to assert your ' \
14
- 'page contains the tracking code and a configuration method to '\
15
- 'set your GA account from environment.rb'
16
-
17
- gemspec.authors = ['Marcello Barnaba']
18
- gemspec.email = 'vjt@openssl.it'
19
- gemspec.homepage = 'http://github.com/vjt/bigbro'
20
-
21
- gemspec.files = %w( README.md Rakefile rails/init.rb ) + Dir['lib/**/*']
22
- gemspec.extra_rdoc_files = %w( README.md )
23
- gemspec.has_rdoc = true
24
-
25
- gemspec.version = BigBro::Version
26
- gemspec.date = '2010-11-23'
27
-
28
- gemspec.require_path = 'lib'
29
-
30
- gemspec.add_dependency('rails', '~> 3.0')
31
- end
32
- rescue LoadError
33
- puts 'Jeweler not available. Install it with: gem install jeweler'
34
- end
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
35
3
 
4
+ require 'rdoc/task'
36
5
  desc 'Generate the rdoc'
37
6
  Rake::RDocTask.new do |rdoc|
38
7
  rdoc.rdoc_files.add %w( README.md lib/**/*.rb )
@@ -0,0 +1,24 @@
1
+ require './lib/bigbro/version'
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'bigbro'
5
+
6
+ s.summary = 'A Google Analytics plugin for Rails'
7
+
8
+ s.description = 'BigBro provides view helpers to generate Analytics code ' \
9
+ '(with the noscript counterpart), test helpers to assert your ' \
10
+ 'page contains the tracking code and a configuration method to '\
11
+ 'set your GA account from environment.rb'
12
+
13
+ s.authors = ['Marcello Barnaba']
14
+ s.email = 'vjt@openssl.it'
15
+ s.homepage = 'http://github.com/vjt/bigbro'
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+
19
+ s.version = BigBro::Version
20
+ s.date = '2013-12-02'
21
+
22
+ s.add_dependency('rails', '>= 3.0')
23
+
24
+ end
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Panmind Analytics JS API
3
+ *
4
+ * TODO: Documentation
5
+ */
6
+ (function ($) {
7
+ $.pmTrackAjaxView = function () {
8
+ if (typeof (_gaq) == 'undefined') return;
9
+
10
+ try {
11
+ _gaq.push (['_trackPageview', $.location.getPathForTracking ()]);
12
+ } catch (e) { }
13
+ };
14
+
15
+ $.pmTrackEvent = function (category, action) {
16
+ if (typeof (_gaq) != 'undefined')
17
+
18
+ try {
19
+ _gaq.push (['_trackEvent', category, action]);
20
+ } catch (e) { }
21
+ };
22
+
23
+ var trackClick = function (elem, fn) {
24
+ if (typeof (_gaq) != 'undefined')
25
+ $(elem).click (function () {
26
+ try { fn.apply (this); } catch (e) { }
27
+ });
28
+
29
+ return elem;
30
+ };
31
+
32
+ $.fn.pmTrackPageView = function () {
33
+ return trackClick (this, function () {
34
+ _gaq.push (['_trackPageview', $(this).attr ('href')]);
35
+ });
36
+ };
37
+
38
+ $.fn.pmTrackDownload = function () {
39
+ return trackClick (this, function () {
40
+ _gaq.push (['_trackEvent', 'download', $(this).attr ('href')]);
41
+ });
42
+ };
43
+
44
+ $.fn.pmTrackOutboundLink = function () {
45
+ return trackClick (this, function () {
46
+ _gaq.push (['_trackEvent', 'outbound', $(this).attr ('href')]);
47
+ });
48
+ };
49
+ }) (jQuery);
@@ -1,7 +1,7 @@
1
1
  require 'bigbro/railtie' if defined? Rails
2
+ require 'bigbro/version'
2
3
 
3
4
  module BigBro
4
- Version = '0.9.1'
5
5
 
6
6
  module Helpers
7
7
  # Embeds the optimized Analytics code and the noscript tag with
@@ -0,0 +1,6 @@
1
+
2
+ module BigBro
3
+
4
+ Version = '1.0.0'
5
+
6
+ end
metadata CHANGED
@@ -1,81 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: bigbro
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 9
8
- - 1
9
- version: 0.9.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Marcello Barnaba
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-11-23 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
- version: "3.0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- description: BigBro provides view helpers to generate Analytics code (with the noscript counterpart), test helpers to assert your page contains the tracking code and a configuration method to set your GA account from environment.rb
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: BigBro provides view helpers to generate Analytics code (with the noscript
28
+ counterpart), test helpers to assert your page contains the tracking code and a
29
+ configuration method to set your GA account from environment.rb
35
30
  email: vjt@openssl.it
36
31
  executables: []
37
-
38
32
  extensions: []
39
-
40
- extra_rdoc_files:
41
- - README.md
42
- files:
33
+ extra_rdoc_files: []
34
+ files:
35
+ - .gitignore
36
+ - Gemfile
37
+ - Gemfile.lock
43
38
  - README.md
44
39
  - Rakefile
40
+ - bigbro.gemspec
41
+ - js/jquery.analytics.js
45
42
  - lib/bigbro.rb
46
43
  - lib/bigbro/railtie.rb
44
+ - lib/bigbro/version.rb
47
45
  - rails/init.rb
48
- has_rdoc: true
49
46
  homepage: http://github.com/vjt/bigbro
50
47
  licenses: []
51
-
48
+ metadata: {}
52
49
  post_install_message:
53
50
  rdoc_options: []
54
-
55
- require_paths:
51
+ require_paths:
56
52
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- segments:
63
- - 0
64
- version: "0"
65
- required_rubygems_version: !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- version: "0"
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
73
63
  requirements: []
74
-
75
64
  rubyforge_project:
76
- rubygems_version: 1.3.7
65
+ rubygems_version: 2.0.3
77
66
  signing_key:
78
- specification_version: 3
67
+ specification_version: 4
79
68
  summary: A Google Analytics plugin for Rails
80
69
  test_files: []
81
-