globalid 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of globalid might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db37405060de11d6af715c038fa47349a94f23d6
4
- data.tar.gz: a2fc2891e16182cf893b690731c193659e03b349
3
+ metadata.gz: 8de6b91a01618007f9a6e49dbd58a90624388f7f
4
+ data.tar.gz: 43b53c7a32f09a2460aba23c8dfad3a0c216dd15
5
5
  SHA512:
6
- metadata.gz: 5be8760a5728d9ff3b3c3cd6d8cae89d009fd9f9152449211fe0107fc92d56ef34c8357b9e7d565aed5f1dd0c7e5d3981ed56c056d403076b682ddc7891dbaba
7
- data.tar.gz: f6a1fec5024a193076ebe07076163685abccc6e4348b2afa67f90bbd1dfc080fe6858de3391b7693956f29b196cb735d0012168e6722be9c7de2ab176556cddc
6
+ metadata.gz: 22b319f6839af32cb2ae8b9f6a9f08a261655ec9e879ba5ad49c1cc2236c630e30fcff0ac4a070db2a96adbb5f9a70716d46ef8467c633b942980943c26da93d
7
+ data.tar.gz: 265231350914b1259566b568a4dd1d69a5790a397792da0eeea658a9abb1468ff61db1337051251aceaf9c72910dd15589c98d5283cb4e2e383855987601b887
@@ -9,9 +9,17 @@ class GlobalID
9
9
  end
10
10
  alias to_gid to_global_id
11
11
 
12
+ def to_gid_param
13
+ to_global_id.to_param
14
+ end
15
+
12
16
  def to_signed_global_id(options = {})
13
17
  SignedGlobalID.create(self, options)
14
18
  end
15
19
  alias to_sgid to_signed_global_id
20
+
21
+ def to_sgid_param(options = {})
22
+ to_signed_global_id(options).to_param
23
+ end
16
24
  end
17
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globalid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson