resizeend-rails 1.1.2 → 1.2.0

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: 241f34f2d45058557c58ac862f37fb45a9824dc1
4
- data.tar.gz: 322d777a69b52e256a46e9ef625a31e3476cd7bd
3
+ metadata.gz: ce3b55f182ce0d94476368aa0246a1e4d753c610
4
+ data.tar.gz: a6c19293a6ec7c0f1b5196483a8c300bd8ca27f4
5
5
  SHA512:
6
- metadata.gz: d5b850b00a88ae77e709d033cb8b5f4b8c60e746dff0719b8216dbb4734d41dcc3d1e18ea7599bf8f2a862a8624817359bf4c06a7baa87035d01507dc4e7e181
7
- data.tar.gz: b8f4fc39b6072a1f90c37bf147f8843e7bbdfbd29b3d123a9b8dd6b64f9ff52d8fad828019169ef7afdae76c5c9667483e5239a1a8339abd75d129b633766b77
6
+ metadata.gz: f5cb8fb075065c6a86715ae0616126d91c747ac1808045e473d3e9250588ea963c12ea8bf0f47683c3415850c22a00d0cc01c74e8326a306916b25e73e497be4
7
+ data.tar.gz: 507ec0ce69647f64497bcc2441f516fc26f61c5325854e4d5864276c908609cdbf4756811abd69f2c9a7e3ddef5fecf4d3664fbfe6e9cd150253b2a79fcbf0b5
@@ -1,5 +1,5 @@
1
1
  module ResizeEnd
2
2
  module Rails
3
- VERSION = '1.1.2'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -7,13 +7,13 @@ do (window) ->
7
7
  return unless window.addEventListener and document.createEvent
8
8
 
9
9
  # Preparing for v2.0
10
- events = ['resize:end', 'resizeend'].map (event) ->
10
+ events = ['resize:end', 'resizeend'].map (name) ->
11
11
  event = document.createEvent 'Event'
12
- event.initEvent 'resizeend', false, false
12
+ event.initEvent name, false, false
13
13
  event
14
14
 
15
15
  dispatchResizeEndEvent = ->
16
- events.forEach window.dispatchEvent
16
+ events.forEach window.dispatchEvent.bind(window)
17
17
 
18
18
  # Assuming `window.orientation` is all about degrees (or nothing),
19
19
  # the function expression returns either 0 or 90
@@ -27,7 +27,7 @@ do (window) ->
27
27
  currentOrientation = getCurrentOrientation()
28
28
 
29
29
  # If `window` is resized due to an orientation change,
30
- # dispatch `resizeend` immediately; otherwise, slightly delay it
30
+ # dispatch `resize:end` immediately; otherwise, slightly delay it
31
31
  unless currentOrientation is initialOrientation
32
32
  dispatchResizeEndEvent()
33
33
  initialOrientation = currentOrientation
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resizeend-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Porada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-24 00:00:00.000000000 Z
11
+ date: 2013-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description:
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - README.md
51
51
  - Rakefile
@@ -63,18 +63,19 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.0.3
76
+ rubygems_version: 2.1.5
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: resizeend packaged for Rails assets pipeline
80
80
  test_files: []
81
+ has_rdoc: