incline 0.3.9 → 0.3.10

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: 73e485f8cd7d0b0d92cc484d39ede6062775ac8c
4
- data.tar.gz: 399a94f985e7dcd057ad19d623363f6248c84062
3
+ metadata.gz: 1d5d1abaffb8b442512be985a626e01eb13b2308
4
+ data.tar.gz: 2095919c34d08a1382643789e09914b7646148d5
5
5
  SHA512:
6
- metadata.gz: b85073719da26ad7a7eb78db0f9f04f5f24ef8009513c571647cbd4ca1a1a82f07f8055c7a5b2f3bb7f02be35f04bbf26d22178696ff85268f55485dd9ab26b1
7
- data.tar.gz: a6bf2341a384488af57b51a07989e5d3a8067ceff0f4957da70e7de1fab5d7a0a0037d7810c0d9eea367f608b55f6fcb6291e163380b5eaf0d760dcc6d41cb1e
6
+ metadata.gz: 243589dbeb90f561f3ab66c33cc95d797cc633aab588cc893a35fcca251c0f9eee35f28a6be411a61eb6245c9b9244746a67ffbedb13418625319d6437bffc80
7
+ data.tar.gz: b73158d1d7cca19585d9620e4f6abf66bb3e1fc72dbb9c87d2d301c194b1bb6a5f67b50bd12bdad2b488b9ffec115a6051d9c590b478ff20511984ec2be24095
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.3.9)
4
+ incline (0.3.10)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -284,9 +284,9 @@ module Incline::Extensions
284
284
 
285
285
  # an authenticated user must exist.
286
286
  unless logged_in?
287
-
287
+
288
288
  store_location
289
-
289
+
290
290
  if (auth_url = ::Incline::UserManager.begin_external_authentication(request))
291
291
  ::Incline::Log.debug 'Redirecting for external authentication.'
292
292
  redirect_to auth_url
@@ -493,11 +493,12 @@ module Incline::Extensions
493
493
 
494
494
  # if the id is in AAAAA_NNN format, then we can extract the ID from it.
495
495
  if id.include?('_')
496
- params[:id] = id.split('_').last.to_i
496
+ id,_, item_id = id.rpartition('_')
497
+ params[:id] = item_id.to_i
497
498
  end
498
499
 
499
500
  # merge the item data into the params array.
500
- params.merge! item
501
+ params.merge!(id => item)
501
502
  end
502
503
 
503
504
  # since we are processing for an API request, we should return JSON.
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.3.9"
2
+ VERSION = "0.3.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-26 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -610,7 +610,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
610
610
  version: '0'
611
611
  requirements: []
612
612
  rubyforge_project:
613
- rubygems_version: 2.6.11
613
+ rubygems_version: 2.6.13
614
614
  signing_key:
615
615
  specification_version: 4
616
616
  summary: A gem designed to get off to an even quicker start with Rails.