the_garage 2.3.1 → 2.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: f344acd67d0d46f09cb35f4b9fe9f3d1e724f61a
4
- data.tar.gz: 82cbc6655d991f6908f7ffaa8b131dae9e8e0e9b
3
+ metadata.gz: f9f82e33e1a9c6bff9448ca2b49a8f38e0c8d355
4
+ data.tar.gz: 95809152a36fc6cbb47c908902a36026ffc72ada
5
5
  SHA512:
6
- metadata.gz: 4c633e35ede4e8301084608cd441391cd835719e9daf32b13b8e4097f8ff0209c641f79984cd60990afb079e2db4dfb8d24306ad427a778eed422aa3c470b7a7
7
- data.tar.gz: 5fed38e711aa4517afcddb158efdd0af87226c5179feb44f3be08d170771ba31805dd8feef5ac50cee5f91c1eb17b0407e83c1d1b6b3bda00918258a90e6b51d
6
+ metadata.gz: 17bdd17006908052bd2607c7636da5a782b6c05634c34b177a53826190a754767c255b1d2724ad78ee1be784311cbbc64bd790be5ed7626aa38b42f9599e28b1
7
+ data.tar.gz: 088f5c656a73d4cd575ee54013dc27ebaac68585381cef91576abc3e52476c33cb10c9092cbc369e51842c75b87dac24fea7cc72a4c9d0fda1bc8010027e9b3b
@@ -9,16 +9,6 @@ jQuery ()->
9
9
  $.colorbox.close()
10
10
  ev.preventDefault()
11
11
 
12
- $("#oauth-dialog .authenticate").click (ev) ->
13
- $("#oauth-dialog #return_to").val(window.location.pathname + window.location.search)
14
- $("form#oauth-authenticate").submit()
15
- ev.preventDefault()
16
-
17
- $(".console .validate-token").click (ev) ->
18
- $("#method").val('GET')
19
- $("#location").val("/oauth/token/info")
20
- $('.send-request').click()
21
-
22
12
  buildAuthorizedUrl = (base, location, token) ->
23
13
  url = base + location
24
14
  if url.indexOf('?') > 0
@@ -72,7 +62,9 @@ jQuery ()->
72
62
  dataType: 'json',
73
63
  complete: ->
74
64
  queryString = $.param({'location': $('#location').val(), 'method': $('#method').val()})
75
- history.pushState('', '', "#{location.pathname}?#{queryString}")
65
+ newFullpath = "#{location.pathname}?#{queryString}"
66
+ history.pushState('', '', newFullpath)
67
+ $("#oauth-dialog #return_to").val(newFullpath)
76
68
  success: (data, textStatus, xhr) ->
77
69
  $('#api-headers').text("#{xhr.status} #{xhr.statusText}\n" + xhr.getAllResponseHeaders())
78
70
  $('#api-response').html buildHyperlinks(JSON.stringify(data, undefined, 2))
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_garage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuhiko Miyagawa