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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Nzk0YTYzYzQ3ZjRhZjEwZTY2MGViNDllNzIzNzY1ZTljYjY4NzIzZg==
4
+ NDEzNzUyNjM1MmVhOGM1YmRhODUzYTI3Njg0ZDk4Mjc3MDY3OWFjYQ==
5
5
  data.tar.gz: !binary |-
6
- MTkyYmZjNTA4ZWUwYTQzNmE5NDE5NGQ2MjgyMDA4ODI5Y2I1MzQ2ZA==
6
+ NjE4N2Q4MDc1YjFmNmM0MDUxZDEwYzA5NzQ5ODY2ZjNlMDQ1NTgyMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzI3NjNhNjQ1NWY2ZDliNDNkODdkYWM0Yzk5OTQyZTc4NjQ3MWU3YmIxODc4
10
- OTcwOGNlOGQ4MTJiNTRhY2ZjNjIxZjQ2ZmJhNjBkNGJkNDE2ZmUxZTQ3NTJk
11
- M2E5ODAzZmE3ZjNjNzc2ZmUzMTkxZTgxYmRlMWNiMmI5ZTYzMmE=
9
+ NGY3ZGFkYzU5MjE0MmI0YjZhNDRmZGRhMjM3NWM4MmJjNmNmZDlmMGY1MzQw
10
+ NzM5MWVhNzU0ODEyMTZmZDU1Y2NjZDZiMTRlYmNmZTNjMDFkMmMwMGIzMWUz
11
+ MjNmNTRkZDg4OTc5Mzg2ZGJjMTNiNzM0YjQyNWNhMjBhOTU3MDI=
12
12
  data.tar.gz: !binary |-
13
- YTM3ODBmYmQyMDNiOWI5MzI5ZjM2OGY4ZThmMjNjZmMzMmMyNDBkOTBjYWNi
14
- YzYyNTZmNjY2MTg5ODI2YmI5M2ZkNjUxYmM3ODg1ODVjODZhNDAyM2EyZDM4
15
- ZDg0NmQ2ZDQ5ZjM0YTAxZDA1MDNjNWNhYWY2ZWRlMzFkZTUyZWQ=
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.0, or JRuby 1.7.9
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.
@@ -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[:event_name]
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!
@@ -1,3 +1,3 @@
1
1
  module MetaEvents
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -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.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-27 00:00:00.000000000 Z
11
+ date: 2014-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json