the_garage 2.3.0 → 2.3.1

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: f0e9e75947fee22c7643a1fd1eebfed3a7991fcf
4
- data.tar.gz: d81268e4f2bdfa93fc9b80caa943bd9750705189
3
+ metadata.gz: f344acd67d0d46f09cb35f4b9fe9f3d1e724f61a
4
+ data.tar.gz: 82cbc6655d991f6908f7ffaa8b131dae9e8e0e9b
5
5
  SHA512:
6
- metadata.gz: 398c5c8d933462fca115feaa0183502591a3f373811a9e6189adb135e698055b4c5dc742941cdd8ee8c30380f3c02d0687c52f90c82a23bd04fa2f2c80dd31a9
7
- data.tar.gz: 52cb284327cb6a86bf6e0517f5313f5cabcfd6b4576be12d844564793fb8028e90b4b0bdc32557769987e9d2ced00d9290f7bab4478d3e107a92f2a54a13dff9
6
+ metadata.gz: 4c633e35ede4e8301084608cd441391cd835719e9daf32b13b8e4097f8ff0209c641f79984cd60990afb079e2db4dfb8d24306ad427a778eed422aa3c470b7a7
7
+ data.tar.gz: 5fed38e711aa4517afcddb158efdd0af87226c5179feb44f3be08d170771ba31805dd8feef5ac50cee5f91c1eb17b0407e83c1d1b6b3bda00918258a90e6b51d
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Rails framework to add RESTful hypermedia API to your application.
5
5
 
6
- ## Gem name changed!
6
+ ## Gem name has been changed!
7
7
  We renamed gem name `the_garage` from version 2.0.0. Please update your Gemfile.
8
8
 
9
9
  ## What Is It?
@@ -10,6 +10,7 @@ jQuery ()->
10
10
  ev.preventDefault()
11
11
 
12
12
  $("#oauth-dialog .authenticate").click (ev) ->
13
+ $("#oauth-dialog #return_to").val(window.location.pathname + window.location.search)
13
14
  $("form#oauth-authenticate").submit()
14
15
  ev.preventDefault()
15
16
 
@@ -85,7 +85,7 @@ class Garage::Docs::ResourcesController < Garage::ApplicationController
85
85
 
86
86
  def require_console_application
87
87
  @app = console_application
88
- unless @app[:uid] && @app[:secret]
88
+ if @app[:uid].blank? || @app[:secret].blank?
89
89
  render(text: 'Configuration for console application is missing.', status: :forbidden)
90
90
  end
91
91
  end
@@ -13,7 +13,7 @@ module Garage
13
13
  @document_root = Rails.root.join('doc/garage')
14
14
  @current_user_method = Proc.new { current_user }
15
15
  @authenticate = Proc.new {}
16
- @console_app_uid = ''
16
+ @console_app_uid, @console_app_secret = nil, nil
17
17
  @remote_server = Proc.new {|request| "#{request.protocol}#{request.host_with_port}" }
18
18
  @docs_authorization_method = nil
19
19
  @docs_cache_enabled = true
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
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.3.0
4
+ version: 2.3.1
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-09-02 00:00:00.000000000 Z
11
+ date: 2016-11-11 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.4.5.1
272
+ rubygems_version: 2.5.1
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: Garage Platform Engine