the_garage 2.2.0 → 2.3.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: 9fd5236927149e28d864fc078a00f74ec277256c
4
- data.tar.gz: 276a5eef44c831fd2f9272deed9473a08605631d
3
+ metadata.gz: f0e9e75947fee22c7643a1fd1eebfed3a7991fcf
4
+ data.tar.gz: d81268e4f2bdfa93fc9b80caa943bd9750705189
5
5
  SHA512:
6
- metadata.gz: a2703abd920d19305363b0ab9de90d57a3feeb3808ea155d716ba2588df097fd5bfee5ab00950849a3e28e5ca2569d3bee7d3fc4f314895a344bf1a9acb49775
7
- data.tar.gz: c19f31948ad180ba53ea10981a7ee9e53efd5a6f99a3d53be961a8e47b4f06f34a77ca34fb77e99a4c3dec2219e92fc3802fcb9dabaa3464ba125c8aa0b41152
6
+ metadata.gz: 398c5c8d933462fca115feaa0183502591a3f373811a9e6189adb135e698055b4c5dc742941cdd8ee8c30380f3c02d0687c52f90c82a23bd04fa2f2c80dd31a9
7
+ data.tar.gz: 52cb284327cb6a86bf6e0517f5313f5cabcfd6b4576be12d844564793fb8028e90b4b0bdc32557769987e9d2ced00d9290f7bab4478d3e107a92f2a54a13dff9
data/README.md CHANGED
@@ -181,6 +181,10 @@ module MyStrategy
181
181
  end
182
182
  ```
183
183
 
184
+ ## Development
185
+
186
+ See [DEVELOPMENT.md](DEVELOPMENT.md).
187
+
184
188
  ## Authors
185
189
 
186
190
  * Tatsuhiko Miyagawa
@@ -88,3 +88,12 @@ jQuery ()->
88
88
  if token
89
89
  $('#access_token').val(token)
90
90
  $('form.oauth-callback-redirect').submit()
91
+
92
+ $('#oauth-dialog .token-scope-check-all').click (ev) ->
93
+ $('.token-scope-checkbox').prop('checked', this.checked)
94
+
95
+ $('#oauth-dialog .token-scope-checkbox').click (ev) ->
96
+ if $('.token-scope-checkbox:not(:checked)').length == 0
97
+ $('.token-scope-check-all').prop('checked', true)
98
+ else if not this.checked
99
+ $('.token-scope-check-all').prop('checked', false)
@@ -37,9 +37,14 @@
37
37
  = hidden_field_tag :return_to, request.fullpath
38
38
  .modal-body
39
39
  - Garage::TokenScope.revealed_scopes.each do |scope|
40
- = check_box_tag "scopes[]", scope, :selected => true
41
- = scope
40
+ %label
41
+ = check_box_tag "scopes[]", scope, { :selected => true }, :class => 'token-scope-checkbox'
42
+ = scope
42
43
  %br
43
44
  .modal-footer
45
+ %label
46
+ = check_box_tag nil, nil, { :selected => true }, :class => 'token-scope-check-all'
47
+ Check all
48
+ %br
44
49
  = button_tag "Close", :class => "modal-close"
45
50
  = submit_tag "Authenticate"
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.2.0'
2
+ VERSION = '2.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_garage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuhiko Miyagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  version: '0'
270
270
  requirements: []
271
271
  rubyforge_project:
272
- rubygems_version: 2.5.1
272
+ rubygems_version: 2.4.5.1
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: Garage Platform Engine