deep_unrest 0.1.34 → 0.1.35

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
  SHA256:
3
- metadata.gz: f815889fcd3e1c8274e30d4dfb86b589956994dee214636407be555dcca7a963
4
- data.tar.gz: 1391f49a060ba6d4c21cfc7ede987c0d5b65bfdcb883376a8530816accdfe576
3
+ metadata.gz: 5095cf1fc9c37e899a5dd31faf7c91f4a32abca7fd03eefccb7564d515df60d4
4
+ data.tar.gz: 9a1e1acb9f55ba94e5c706c44cce09e0ecd25dcca2763d9761954eca09e2f603
5
5
  SHA512:
6
- metadata.gz: d91e1206a71f5ae2f86ab22ff58d820f052e90f997dfd5ff61d47aa0a0077d36bcfab784dd9287c14e65c537746dba20f475bd7e8decc4b6ad3bf31e8056a8e3
7
- data.tar.gz: 66e3c0c9a853781927ad876d28b270a66ac25cb0e9d187a2ab539009152d62f41d369b9a93f62f8bdff621f415d70e00ed61978727f84ff26abb90e06a722d90
6
+ metadata.gz: a070c77b4b55d24535fc0047f30ca8f8663a232eb02dc7e226ea10458fbfb3ada8a002ad261118286f1b403de71b790b8b9cfec95334eae0beb012870dd4210e
7
+ data.tar.gz: e3af192ce56ed378e9ce197f104065079e21fd5a7ea3ae097d2b2d2298893f6360636d7db850e48c5ee78d66ec7fe7cd0d2585c100e3cad2d9ed69b4ad7d02c3
data/lib/deep_unrest.rb CHANGED
@@ -127,7 +127,7 @@ module DeepUnrest
127
127
  def self.get_scope(scope_type, memo, type, id_str = nil)
128
128
  case scope_type
129
129
  when :show, :update, :destroy
130
- id = /^\.(?<id>\d+)$/.match(id_str)[:id]
130
+ id = /^\.(?<id>[\w-]+)$/.match(id_str)[:id]
131
131
  { base: to_class(type), method: :find, arguments: [id] }
132
132
  when :update_all, :index
133
133
  if memo.empty?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepUnrest
4
- VERSION = '0.1.34'
4
+ VERSION = '0.1.35'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley