exvo_helpers 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abb2a6d274626611ab27e8d4cf26a56ab7ec8fbd
4
- data.tar.gz: 8728aa4179edbf63eaae04e27cce1bc11cb79eb5
3
+ metadata.gz: 87404b90ad4e5c91fe6a1a681499becda71203fe
4
+ data.tar.gz: 0c0e32f74749f1f923562778d9bed6e6bc6a6c10
5
5
  SHA512:
6
- metadata.gz: 76b538088cfcd10b3454be410d5f503d55ac172f35a8545a22aaf3c1ed94e8bd8ecfdf6c02e0ff7a5c230ebb23c97875b3ce9b194a8c00377f88557a8c012fb2
7
- data.tar.gz: 8bd7190ed80e18fdd84d054cfb9b608c50b4d284bcf3466267afa3f85aeddc12c9e8fe0f9579d6301565d6d563514ad2c8894129ff3b6e0a911362cd0cb9d6cd
6
+ metadata.gz: c56fdabde71473f233adf9f35d940bc8376b488e6eac9e72ca17744d8253c4b237824b18b37eefff59b68aa0533b8ba6e2533a4948f97c9af611c2fc7eaff303
7
+ data.tar.gz: 717bc9b7665a7acb20360cac1b7f3122c6ce6b7be2fe59a18c2d5a722752578478f32e5d09c30614a11b75e756ba071584bca2a8ba4b1ba66519b16f0ea740c6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Note, that only significant changes are listed.
4
4
 
5
+ ## 0.6.4 (2013-11-29)
6
+
7
+ * output `google_analytics` snippet in all environments
8
+
9
+
5
10
  ## 0.6.3 (2013-07-02)
6
11
 
7
12
  * new `zendesk` view helper
data/README.md CHANGED
@@ -10,8 +10,7 @@ This gem is used by both [omniauth-exvo](https://github.com/Exvo/omniauth-exvo/)
10
10
  Results are from the 'development' Rails environment:
11
11
 
12
12
  ```ruby
13
- Exvo::Helpers.auth_debug => false
14
-
13
+ Exvo::Helpers.auth_debug => false
15
14
  Exvo::Helpers.auth_client_id => nil
16
15
  Exvo::Helpers.auth_client_secret => nil
17
16
 
@@ -153,7 +152,7 @@ Note, that this helper does not support full API of Rails' `stylesheet_link_tag`
153
152
 
154
153
  ### google_analytics(account, opts = {})
155
154
 
156
- Asynchronous Google Analytics javascript snippet to track page views. Note, that it will output the javascript analytics snippet only in production environment.
155
+ Asynchronous Google Analytics javascript snippet to track page views.
157
156
 
158
157
  ```ruby
159
158
  = google_analytics('UA-XXXXXXX-X', :domain => 'none', :track_hash_changes => true)
@@ -1,5 +1,5 @@
1
1
  module Exvo
2
2
  module Helpers
3
- VERSION = '0.6.3'
3
+ VERSION = '0.6.4'
4
4
  end
5
5
  end
@@ -70,9 +70,7 @@ END
70
70
  </script>
71
71
  END
72
72
 
73
- if Exvo::Helpers.env.to_sym == :production
74
- out.respond_to?(:html_safe) ? out.html_safe : out
75
- end
73
+ out.respond_to?(:html_safe) ? out.html_safe : out
76
74
  end
77
75
 
78
76
  def kissmetrics
@@ -36,6 +36,16 @@ describe Exvo::ViewHelpers do
36
36
  specify { snippet.should match(/'_setAccount', '123'/) }
37
37
  specify { snippet.should match(/'_setDomainName', 'exvo.com'/) }
38
38
  specify { snippet.should match(/window.location.hash/) }
39
+
40
+ context 'development environment' do
41
+ before do
42
+ Exvo::Helpers.env = :development
43
+ end
44
+
45
+ it 'outputs the google analytics snippet even in development environment' do
46
+ snippet.should match(/<script type/)
47
+ end
48
+ end
39
49
  end
40
50
 
41
51
  describe "#kissmetrics" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Gościcki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-02 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.0.3
154
+ rubygems_version: 2.1.11
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Collection of helper methods for various Exvo related apps/services