resizeend-rails 1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 241f34f2d45058557c58ac862f37fb45a9824dc1
4
+ data.tar.gz: 322d777a69b52e256a46e9ef625a31e3476cd7bd
5
+ SHA512:
6
+ metadata.gz: d5b850b00a88ae77e709d033cb8b5f4b8c60e746dff0719b8216dbb4734d41dcc3d1e18ea7599bf8f2a862a8624817359bf4c06a7baa87035d01507dc4e7e181
7
+ data.tar.gz: b8f4fc39b6072a1f90c37bf147f8843e7bbdfbd29b3d123a9b8dd6b64f9ff52d8fad828019169ef7afdae76c5c9667483e5239a1a8339abd75d129b633766b77
@@ -1,5 +1,5 @@
1
1
  module ResizeEnd
2
2
  module Rails
3
- VERSION = '1.1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
@@ -2,23 +2,24 @@
2
2
  # resizeend.coffee © 2012–2013 Dominik Porada · http://porada.mit-license.org
3
3
  # ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
4
4
 
5
- do (window, document) ->
5
+ do (window) ->
6
+ document = window.document
6
7
  return unless window.addEventListener and document.createEvent
7
8
 
8
- event = null
9
+ # Preparing for v2.0
10
+ events = ['resize:end', 'resizeend'].map (event) ->
11
+ event = document.createEvent 'Event'
12
+ event.initEvent 'resizeend', false, false
13
+ event
9
14
 
10
15
  dispatchResizeEndEvent = ->
11
- unless event
12
- event = document.createEvent 'Event'
13
- event.initEvent 'resizeend', false, false
14
- window.dispatchEvent event
16
+ events.forEach window.dispatchEvent
15
17
 
16
18
  # Assuming `window.orientation` is all about degrees (or nothing),
17
19
  # the function expression returns either 0 or 90
18
- getCurrentOrientation = ->
19
- Math.abs(+window.orientation or 0) % 180
20
-
20
+ getCurrentOrientation = -> Math.abs(+window.orientation or 0) % 180
21
21
  initialOrientation = getCurrentOrientation()
22
+
22
23
  currentOrientation = null
23
24
  resizeDebounceTimeout = null
24
25
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resizeend-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dominik Porada
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-17 00:00:00.000000000 Z
11
+ date: 2013-05-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,17 +27,15 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description:
@@ -61,26 +56,25 @@ files:
61
56
  homepage: https://github.com/rails-assets/resizeend-rails
62
57
  licenses:
63
58
  - MIT
59
+ metadata: {}
64
60
  post_install_message:
65
61
  rdoc_options: []
66
62
  require_paths:
67
63
  - lib
68
64
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
65
  requirements:
71
- - - ! '>='
66
+ - - '>='
72
67
  - !ruby/object:Gem::Version
73
68
  version: '0'
74
69
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
70
  requirements:
77
- - - ! '>='
71
+ - - '>='
78
72
  - !ruby/object:Gem::Version
79
73
  version: '0'
80
74
  requirements: []
81
75
  rubyforge_project:
82
- rubygems_version: 1.8.23
76
+ rubygems_version: 2.0.3
83
77
  signing_key:
84
- specification_version: 3
78
+ specification_version: 4
85
79
  summary: resizeend packaged for Rails assets pipeline
86
80
  test_files: []