sb-styleguide 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ ## 1.2.1
2
+ - Adding missing plugin definition for the Snowplow events JS plugin
3
+
1
4
  ## 1.2.0
2
5
  - Adding Snowplow events JS plugin
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- sb-styleguide (1.2.0)
11
+ sb-styleguide (1.2.1)
12
12
  actionpack (>= 3.1, < 4.1)
13
13
  activesupport (>= 3.1, < 4.1)
14
14
  compass-rails (>= 1.0, < 2.0)
@@ -1,5 +1,5 @@
1
1
  module Sb
2
2
  module Styleguide
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
@@ -39,7 +39,7 @@ plugin = ($) ->
39
39
  #
40
40
  constructor: (el, @content) ->
41
41
  $el = $(el)
42
- @sendEvent (if !(content.split('|') instanceof Array) then content.split('|') else [content]
42
+ @sendEvent if !(content.split('|') instanceof Array) then content.split('|') else [content]
43
43
 
44
44
  _constructor: SPEvent
45
45
 
@@ -61,7 +61,7 @@ plugin = ($) ->
61
61
  removeData = ($el, ev) ->
62
62
  $el.removeAttr('data-' + ev)
63
63
  $el.removeData(ev)
64
-
64
+
65
65
  # SPEvent plugin
66
66
  #
67
67
  $.fn.spEvent = (option, type = "spevent") ->
@@ -76,7 +76,7 @@ plugin = ($) ->
76
76
  $.fn.spEvent.Constructor = SPEvent
77
77
 
78
78
  # Data API
79
- #
79
+ #
80
80
  $ ->
81
81
  $('body').on 'click.spEvent.data-api', '[data-spevent]' , ( e ) ->
82
82
  $this = $(e.target)
@@ -87,3 +87,12 @@ plugin = ($) ->
87
87
 
88
88
  $('[data-spevent-load]').each ->
89
89
  $(this).spEvent null, 'spevent-load'
90
+
91
+
92
+ do ( plugin ) ->
93
+ if typeof define is 'function' and define.amd
94
+ # AMD. Register as an anonymous module.
95
+ define(['jquery'], plugin)
96
+ else
97
+ # Browser globals
98
+ plugin(jQuery)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sb-styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-01-06 00:00:00.000000000 Z
13
+ date: 2014-01-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml
@@ -513,7 +513,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
513
513
  version: '0'
514
514
  segments:
515
515
  - 0
516
- hash: -1342012928098939340
516
+ hash: 508744650872052994
517
517
  required_rubygems_version: !ruby/object:Gem::Requirement
518
518
  none: false
519
519
  requirements:
@@ -522,7 +522,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
522
522
  version: '0'
523
523
  segments:
524
524
  - 0
525
- hash: -1342012928098939340
525
+ hash: 508744650872052994
526
526
  requirements: []
527
527
  rubyforge_project:
528
528
  rubygems_version: 1.8.23