flammarion_rails 0.3.1 → 0.3.2

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: 533ef538f980cf22d44c98c61bd2bf56102f3fd9
4
- data.tar.gz: d9c0c69d88f1345265a743e9e77c7ea824e5cd37
3
+ metadata.gz: 44ce507f7d3bf8082f68e808a018c5cc8b5466b7
4
+ data.tar.gz: b04f14799b1c17fe6ffd434f259cc779ed144483
5
5
  SHA512:
6
- metadata.gz: 39f3d6135d5c3e641b7b6f22d7a97324259f34e3493c0bbaa50f4093264e9e418aafdaa54bc740a39b36f8dc85988b126cc598edd50222ee3a55bb89b19771d7
7
- data.tar.gz: 8300f6a42c09ccb9534cc40676de7e7a504668a5ed76827049dffb5a3486589cab36120202474418997a532b039908f5941240f48d677c6bf889018d688a47ff
6
+ metadata.gz: 89f822e5ac1170735ba91398e9a196bae3d6a0e8c8f92be302fe352329ad86c013650db5d8848698728ab14628d396930f65fdefc552475ea7371de842cafec5
7
+ data.tar.gz: 44c69caf25426ff9e69dfd5d346f4f9d3495602333d7122dfe5021b220f516d6e5159a1c9f09b348f2c580dcec2485426ca9472c256eb0f9ae40ae3388789790
@@ -24,7 +24,7 @@ ws.onmessage_actions.page = (event) ->
24
24
  $('head').html(head)
25
25
  $('body').html(body)
26
26
  $(window).scrollTop(0)
27
- $.ready()
27
+ $.triggerReady()
28
28
 
29
29
  # NProgress
30
30
  ########################################
@@ -0,0 +1,17 @@
1
+ # https://stackoverflow.com/questions/2238030/trigger-document-ready-so-ajax-code-i-cant-modify-is-executed#answer-8125920
2
+ window.readyList = []
3
+
4
+ # Store a reference to the original ready method.
5
+ window.originalReadyMethod = $.fn.ready
6
+
7
+ # Override jQuery.fn.ready
8
+ $.fn.ready = ->
9
+ if arguments.length && arguments.length > 0 && typeof arguments[0] == 'function'
10
+ window.readyList.push(arguments[0])
11
+
12
+ # Execute the original method.
13
+ window.originalReadyMethod.apply(this, arguments)
14
+
15
+ # Used to trigger all ready events
16
+ $.triggerReady = ->
17
+ $(window.readyList).each(-> this())
@@ -1,3 +1,3 @@
1
1
  module FlammarionRails
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flammarion_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2017-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -245,7 +245,8 @@ files:
245
245
  - README.md
246
246
  - Rakefile
247
247
  - app/assets/javascripts/flammarion_rails/actions.coffee
248
- - app/assets/javascripts/flammarion_rails/all.coffee
248
+ - app/assets/javascripts/flammarion_rails/boot.coffee
249
+ - app/assets/javascripts/flammarion_rails/ui.coffee
249
250
  - lib/flammarion/engraving.rb
250
251
  - lib/flammarion/recognize_path.rb
251
252
  - lib/flammarion/revelator.rb