switch_access-rails 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d977407d19c942a123733bfa42988683a18c80b
4
+ data.tar.gz: 8fa74c01f5418d5ab365327bd9895c907bf10be2
5
+ SHA512:
6
+ metadata.gz: 6a05f43a0796f8421ee92262b7dbf8c12064b220baf8afca20b127d20f89cc4ee13f7ba003a9f2e2a5010f2522eb9d50e4144fb09794a1c04ad31bc410e4a7a5
7
+ data.tar.gz: 3f657e6b213d31cf186a2b6e0a2708246becb36f09c7563877587135fd323f6fe0016e990d4e71eae6e7e01e2c7caca9c334b57d3e21229084f9796e9a4fecfc
@@ -1,6 +1,6 @@
1
1
  module SwitchAccess
2
2
  module Rails
3
- VERSION = '1.1.8'
4
- SWITCHACCESSLIB_VERSION = '1.1.7'
3
+ VERSION = '1.1.9'
4
+ SWITCHACCESSLIB_VERSION = '1.1.8'
5
5
  end
6
6
  end
@@ -7,13 +7,13 @@ Gem::Specification.new do |s|
7
7
  s.version = SwitchAccess::Rails::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.summary = 'Rails 3.2 integration Jquery Switch access.'
10
- s.description = "Integrates jquery switch access plugin #{SwitchAccess::Rails::SWITCHACCESSLIB_VERSION} into rails apps."
10
+ s.description = "Integrates jquery Switch Access plugin #{SwitchAccess::Rails::SWITCHACCESSLIB_VERSION} into rails apps."
11
11
  s.homepage = 'https://github.com/leifcr/switch_access-rails'
12
12
  s.files = Dir['README.md', 'LICENSE', 'Rakefile', 'lib/**/*', 'vendor/**/*', 'switch_access-rails.gemspec']
13
13
  s.authors = ['Leif Ringstad']
14
14
  s.email = 'leifcr@gmail.com'
15
15
 
16
- s.add_dependency 'actionpack', '~> 3.2.0'
16
+ s.add_dependency 'actionpack', '>= 3.2'
17
17
  s.add_dependency 'jquery-rails', '>= 2.2.0'
18
18
  s.add_dependency 'coffee-rails', '>= 3.2.2'
19
19
 
@@ -1,9 +1,9 @@
1
1
  ###
2
2
  Switch Access for webpages
3
- (c) 2012 Leif Ringstad
3
+ (c) 2012-2013 Leif Ringstad
4
4
  Dual-licensed under GPL or commercial license (LICENSE and LICENSE.GPL)
5
5
  Source: http://github.com/leifcr/switch_access
6
- v 1.1.7
6
+ v 1.1.8
7
7
  ###
8
8
 
9
9
  SwitchAccessCommon =
@@ -23,7 +23,7 @@ SwitchAccessCommon =
23
23
  Default: true
24
24
  ###
25
25
  use: true
26
-
26
+
27
27
  ###
28
28
  Additional content for the highlighter
29
29
  Note: The content is placed within every highlighter and multiple
@@ -33,7 +33,7 @@ SwitchAccessCommon =
33
33
  Default: ""
34
34
  ###
35
35
  content: ""
36
-
36
+
37
37
  ###
38
38
  Class for the highlighter
39
39
  Default: "highlighter"
@@ -52,7 +52,7 @@ SwitchAccessCommon =
52
52
  Default: "activate"
53
53
  ###
54
54
  activate_class: "activate"
55
-
55
+
56
56
  ###
57
57
  Margin between the highlighter and the element
58
58
  Default: 5
@@ -63,7 +63,7 @@ SwitchAccessCommon =
63
63
  Selector to set size on. (Change in case you have content inside the highlighter you wish to highlight)
64
64
  ###
65
65
  selector_for_set_to_size: ".highlighter"
66
-
66
+
67
67
  ###
68
68
  Use CSS watch to watch the element for changes in position and dimensions
69
69
  This is only needed if you have javascript or other DOM elements
@@ -72,13 +72,13 @@ SwitchAccessCommon =
72
72
  ###
73
73
  watch_for_resize: false
74
74
  # use_size_position_check: true
75
-
75
+
76
76
  ###
77
77
  The ID for the holder for all highlighters. Unlikely to need changing
78
78
  Default: "sw-highlighter-holder"
79
79
  ###
80
80
  holder_id: "sw-highlighter-holder"
81
-
81
+
82
82
  ###
83
83
  Read out the z-index for the element to be highlighted and set to 1 less than the value specified
84
84
  on the element.
@@ -120,7 +120,7 @@ SwitchAccessCommon =
120
120
  Default: "sw-elem"
121
121
  ###
122
122
  unique_element_data_attribute: "sw-elem"
123
-
123
+
124
124
  ###
125
125
  Set a unique class on each element
126
126
  Default: false
@@ -176,15 +176,15 @@ class SwitchAccess
176
176
  Default: [[32, 9], [13]] (9 = 'Tab, 32 = 'Space', 13 = 'Enter')
177
177
  ###
178
178
  keys_2: [[9, 32], [13]] # Tab + Space / Enter
179
-
179
+
180
180
  #keys_3: # forward/backward and select
181
-
181
+
182
182
  ###
183
183
  Time for single switch scanning to move from element to element
184
184
  Default: 1500 milliseconds
185
185
  ###
186
186
  single_switch_move_time: 1500
187
-
187
+
188
188
  ###
189
189
  If the single switch movement should restart/go to index 0 when restarted
190
190
  Default: true
@@ -233,7 +233,7 @@ class SwitchAccess
233
233
  ###
234
234
  # Use .search where you have class="search" or #search for id="search" (jQuery selectors)
235
235
  key_filter_skip: [".search"]
236
-
236
+
237
237
  ###
238
238
  If set to true, the first link within the element is "clicked".
239
239
  Else the actual element is clicked.
@@ -311,10 +311,10 @@ class SwitchAccess
311
311
  activate_triggered: false # if the activate action has been triggered
312
312
 
313
313
  highlighter_holder: null # The highlighter holder as a jquery object
314
-
314
+
315
315
  @setoptions(options)
316
316
  @init()
317
-
317
+
318
318
  init: ->
319
319
  if (@options.debug)
320
320
  appender = null
@@ -524,7 +524,7 @@ class SwitchAccess
524
524
  if @runtime.element.next_level < 0
525
525
  @runtime.element.next_level = 0
526
526
  @runtime.element.next_idx = 0
527
-
527
+
528
528
  if @moveToNext()
529
529
  @runtime.element.current.jq_element().triggerHandler("switch-access-leave-group", [@runtime.element.idx, @runtime.element.level, @runtime.element.current])
530
530
  return SwitchAccessCommon.actions.moved_to_previous_level
@@ -653,7 +653,7 @@ class SwitchAccess
653
653
  # choose correct element to "activate"
654
654
  # first child if there is one
655
655
  if @runtime.element.current.children().length == 1
656
- el = @runtime.element.current.jq_element()[0]
656
+ el = $(@runtime.element.current.jq_element()[0]) # This might not always be a jquery object.
657
657
  else # activate the current element
658
658
  el = @runtime.element.current.jq_element()
659
659
 
@@ -715,7 +715,7 @@ class SwitchAccess
715
715
  event.stopPropagation()
716
716
  return false
717
717
  # check if stayed at element and if element has "trigger" action
718
- if @runtime.element.current.jq_element().data("sw-single-stay") == true
718
+ if @runtime.element.current.jq_element().data("sw-single-stay") == true
719
719
  if @runtime.element.current.jq_element().data("sw-single-noaction") == true or @runtime.single_switch.activate_triggered == true
720
720
  action = @moveToNextElementAtLevel()
721
721
  if @runtime.element.current.jq_element().data("sw-single-stay") != true
@@ -804,9 +804,9 @@ class SwitchAccessElement
804
804
 
805
805
 
806
806
  @runtime.highlight_holder = if highlight_holder == null then $('body') else highlight_holder
807
-
807
+
808
808
  @init(@runtime.highlight_holder)
809
-
809
+
810
810
  init: (highlight_holder)->
811
811
  @uniqueDataAttr(true)
812
812
  @createHighlighter(highlight_holder)
@@ -894,7 +894,7 @@ class SwitchAccessElement
894
894
  if @children().length > 0 and check_children == true
895
895
  child.removeHighlight(false) for child in @children()
896
896
  return
897
-
897
+
898
898
  @runtime.jq_element.removeClass(SwitchAccessCommon.options.highlight.element.current_class)
899
899
  @runtime.jq_element.removeClass(SwitchAccessCommon.options.highlight.element.activate_class)
900
900
  return unless SwitchAccessCommon.options.highlighter.use
@@ -947,7 +947,7 @@ class SwitchAccessElement
947
947
  setHighlighterSize: (element, highlighter) ->
948
948
  w = element.outerWidth(false) + (SwitchAccessCommon.options.highlighter.margin_to_element * 2)
949
949
  h = element.outerHeight(false) + (SwitchAccessCommon.options.highlighter.margin_to_element * 2)
950
-
950
+
951
951
  highlighter.width(w)
952
952
  highlighter.height(h)
953
953
  @log "setHighlighterSize w: #{w}, h: #{h}", "trace" if (@options.debug)
@@ -971,7 +971,7 @@ class SwitchAccessElement
971
971
  # check if content contains selector to use for resizeing
972
972
  if @runtime.jq_highlighter.find(SwitchAccessCommon.options.highlighter.selector_for_set_to_size).length == 0
973
973
  @runtime.jq_highlighter.addClass(SwitchAccessCommon.options.highlighter.selector_for_set_to_size)
974
-
974
+
975
975
  ###
976
976
  Destroy the highlighter DOM object
977
977
  ###
metadata CHANGED
@@ -1,68 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switch_access-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
5
- prerelease:
4
+ version: 1.1.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Leif Ringstad
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-11 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: actionpack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.0
19
+ version: '3.2'
22
20
  type: :runtime
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
29
- version: 3.2.0
26
+ version: '3.2'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: jquery-rails
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 2.2.0
38
34
  type: :runtime
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: 2.2.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: coffee-rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 3.2.2
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 3.2.2
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,12 +62,11 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
77
68
  version: 10.0.2
78
- description: Integrates jquery switch access plugin 1.1.7 into rails apps.
69
+ description: Integrates jquery Switch Access plugin 1.1.8 into rails apps.
79
70
  email: leifcr@gmail.com
80
71
  executables: []
81
72
  extensions: []
@@ -101,26 +92,25 @@ files:
101
92
  - switch_access-rails.gemspec
102
93
  homepage: https://github.com/leifcr/switch_access-rails
103
94
  licenses: []
95
+ metadata: {}
104
96
  post_install_message:
105
97
  rdoc_options: []
106
98
  require_paths:
107
99
  - lib
108
100
  required_ruby_version: !ruby/object:Gem::Requirement
109
- none: false
110
101
  requirements:
111
- - - ! '>='
102
+ - - '>='
112
103
  - !ruby/object:Gem::Version
113
104
  version: '0'
114
105
  required_rubygems_version: !ruby/object:Gem::Requirement
115
- none: false
116
106
  requirements:
117
- - - ! '>='
107
+ - - '>='
118
108
  - !ruby/object:Gem::Version
119
109
  version: '0'
120
110
  requirements: []
121
111
  rubyforge_project:
122
- rubygems_version: 1.8.25
112
+ rubygems_version: 2.1.4
123
113
  signing_key:
124
- specification_version: 3
114
+ specification_version: 4
125
115
  summary: Rails 3.2 integration Jquery Switch access.
126
116
  test_files: []