meta_events 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGES.md +5 -0
- data/README.md +1 -1
- data/lib/meta_events/helpers.rb +1 -1
- data/lib/meta_events/version.rb +1 -1
- data/spec/meta_events/controller_methods_and_helpers_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDEzNzUyNjM1MmVhOGM1YmRhODUzYTI3Njg0ZDk4Mjc3MDY3OWFjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjE4N2Q4MDc1YjFmNmM0MDUxZDEwYzA5NzQ5ODY2ZjNlMDQ1NTgyMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGY3ZGFkYzU5MjE0MmI0YjZhNDRmZGRhMjM3NWM4MmJjNmNmZDlmMGY1MzQw
|
10
|
+
NzM5MWVhNzU0ODEyMTZmZDU1Y2NjZDZiMTRlYmNmZTNjMDFkMmMwMGIzMWUz
|
11
|
+
MjNmNTRkZDg4OTc5Mzg2ZGJjMTNiNzM0YjQyNWNhMjBhOTU3MDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDRhYzExNDUyOTA1ODFkMDFkYmY5ODllZDcxZGIyOWE2N2M0ZTFlN2ZjYWYz
|
14
|
+
NDAwNTY3Njk2YWUyMDA3MzhmMjMyMjQzMjBiZGM0ZmNiNGVhNjNmNjZkYzVh
|
15
|
+
Njc0ZWRmOTQwYWFlNDhkYzMyZTk2ZThlOWY5NTEyMGYyMTc2YTk=
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# `meta_events` Changelog
|
2
2
|
|
3
|
+
### 1.1.2, 29 May 2014
|
4
|
+
|
5
|
+
* The `:external_name` on an Event was not correctly passed (instead of the fully-qualified event name) when using
|
6
|
+
link auto-tracking. This fixes the issue, and adds a spec to make sure it works properly.
|
7
|
+
|
3
8
|
### 1.1.1, 26 May 2014
|
4
9
|
|
5
10
|
* 1.1.0 was accidentally released with a bad dependency that prevented it from installing against anything that used
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ and a powerful properties system that makes it easy to pass large numbers of con
|
|
4
4
|
|
5
5
|
MetaEvents supports:
|
6
6
|
|
7
|
-
* Ruby 1.8.7, 1.9.3, 2.0.0, 2.1.
|
7
|
+
* Ruby 1.8.7, 1.9.3, 2.0.0, 2.1.1, or JRuby 1.7.11
|
8
8
|
|
9
9
|
These are, however, just the versions it's tested against; MetaEvents contains no code that should be at all
|
10
10
|
particularly dependent on exact Ruby versions, and should be compatible with a broad set of versions.
|
data/lib/meta_events/helpers.rb
CHANGED
@@ -76,7 +76,7 @@ module MetaEvents
|
|
76
76
|
output_attributes[:class] = classes
|
77
77
|
|
78
78
|
# Set the data attributes we'll be looking for...
|
79
|
-
output_attributes["data-#{meta_events_prefix_attribute('evt')}"] = props_data[:
|
79
|
+
output_attributes["data-#{meta_events_prefix_attribute('evt')}"] = props_data[:external_name]
|
80
80
|
output_attributes["data-#{meta_events_prefix_attribute('prp')}"] = props_data[:properties].to_json
|
81
81
|
|
82
82
|
# And we're done!
|
data/lib/meta_events/version.rb
CHANGED
@@ -194,6 +194,12 @@ describe MetaEvents::ControllerMethods do
|
|
194
194
|
expect(remaining['data']).to be_nil
|
195
195
|
end
|
196
196
|
|
197
|
+
it "should use the #external_name for the event" do
|
198
|
+
me = { :category => 'foo', :event => 'custom', :properties => { :something => 'awesome' } }
|
199
|
+
remaining = expect_meta4({ :meta_event => me }, %w{mejtp_trk}, 'super-amazing-custom', { 'something' => 'awesome', 'imp1' => 'imp1val1' })
|
200
|
+
expect(remaining['data']).to be_nil
|
201
|
+
end
|
202
|
+
|
197
203
|
it "should combine the class with an existing class string" do
|
198
204
|
me = { :category => 'foo', :event => 'bar', :properties => { :something => 'awesome' } }
|
199
205
|
remaining = expect_meta4({ :meta_event => me, :class => 'bonko baz' }, [ 'bonko baz', 'mejtp_trk' ], 'xy1_foo_bar', { 'something' => 'awesome', 'imp1' => 'imp1val1' })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Geweke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|