virgo 0.3.2 → 0.3.3

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: c1181fc16c38389de89b92494bb7a07349cb9ceb
4
- data.tar.gz: ccb5c412ff3e268b51574c8b74e8b5100e0d5cc8
3
+ metadata.gz: 14fa69989115c154fcfb24d204f64bf8558f71f1
4
+ data.tar.gz: f2a2e1e456a3926ba1daffc7cdd2f07629079f59
5
5
  SHA512:
6
- metadata.gz: 8531bff772542819f7d0f358f713c1031323ddab4a1ef1d754a92a90c88475ba365daa3c96d886a3022fd68c79be7d5c7af9865768fee39343fccfda496a9526
7
- data.tar.gz: 29ace06c5f8789054708beb7707a50f4b5b5365d40f8b8d5e3a613f10672838ced860d5295f22b7c42fe68373df002c1d0753e01e95d484ca5ff8b5abb436602
6
+ metadata.gz: 04130996d4c254973e5494f2b5b8d4addab4afb72653afb4fea0e99fcb741ae55f83f2460d5c701a0462f71340151ac3fa9d2af5277f737a6dc50ea15e077bc6
7
+ data.tar.gz: c3987b29653e0f3afc18017cfa276dfbc11316cc10a0ba72bbae8ce26a9dd59f34414c0005a7994116827f523045128e76aee9a15306c3bf20ce8ad5528eb182
@@ -1,3 +1,5 @@
1
+ window.virgo_page_modules ?= {}
2
+
1
3
  class PostThumbs
2
4
  constructor: ->
3
5
  @bind_events()
@@ -35,9 +37,10 @@ class PostThumbs
35
37
  raise_thumb_overlay: (thumb) =>
36
38
  thumb.addClass('expanded')
37
39
 
38
-
39
40
  $ -> new PostThumbs if $('.post-thumb-box').length
40
41
 
42
+ window.virgo_page_modules.PostThumbs = PostThumbs
43
+
41
44
  class PopularPosts
42
45
  constructor: ->
43
46
  @bind_events()
@@ -76,10 +79,7 @@ class PopularPosts
76
79
  $.get $box.attr("data-uri"), (response) =>
77
80
  $box.html($(response.html).html())
78
81
 
79
-
80
-
81
- $ -> new PopularPosts if $('.popular-post').length
82
-
82
+ window.virgo_page_modules.PopularPosts = PopularPosts
83
83
 
84
84
  class LatestPosts
85
85
  constructor: ->
@@ -101,6 +101,8 @@ class LatestPosts
101
101
 
102
102
  $ -> new LatestPosts if $('.latest-posts-box').length
103
103
 
104
+ window.virgo_page_modules.LatestPosts = LatestPosts
105
+
104
106
  class ListSignup
105
107
  constructor: ->
106
108
  $('body').on 'submit', '#list-signup-form, #header-signup-form, #ouibounce-list-signup-form', @submit
@@ -144,9 +146,10 @@ class ListSignup
144
146
  else
145
147
  $wrap.find('.list-signup-message.error').html(response.message).show()
146
148
 
147
-
148
149
  $ -> new ListSignup if $('.list-signup').length
149
150
 
151
+ window.virgo_page_modules.ListSignup = ListSignup
152
+
150
153
 
151
154
  class ColumnFocus
152
155
  constructor: ->
@@ -154,3 +157,5 @@ class ColumnFocus
154
157
  window.location = $(this).attr('data-uri')
155
158
 
156
159
  $ -> new ColumnFocus if $('.column-box').length
160
+
161
+ window.virgo_page_modules.ColumnFocus = ColumnFocus
data/lib/virgo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Virgo
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Zaillian