exvo_helpers 0.6.3 → 0.6.4
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -3
- data/lib/exvo_helpers/version.rb +1 -1
- data/lib/exvo_helpers/view_helpers.rb +1 -3
- data/spec/exvo_helpers/view_helpers_spec.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87404b90ad4e5c91fe6a1a681499becda71203fe
|
|
4
|
+
data.tar.gz: 0c0e32f74749f1f923562778d9bed6e6bc6a6c10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c56fdabde71473f233adf9f35d940bc8376b488e6eac9e72ca17744d8253c4b237824b18b37eefff59b68aa0533b8ba6e2533a4948f97c9af611c2fc7eaff303
|
|
7
|
+
data.tar.gz: 717bc9b7665a7acb20360cac1b7f3122c6ce6b7be2fe59a18c2d5a722752578478f32e5d09c30614a11b75e756ba071584bca2a8ba4b1ba66519b16f0ea740c6
|
data/CHANGELOG.md
CHANGED
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
|
|
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.
|
|
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)
|
data/lib/exvo_helpers/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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.
|
|
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
|