graphiti_spec_helpers 1.0.5 → 1.1.0

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: 42c1b2bbc2b746d3b5420a993844d1f8207d4c7839e7abf3ee1e0b2c15c8d098
4
- data.tar.gz: c69f4a27cffc6172a9014c721a37c193dc961a84e9b18bba0d08b6d45f93e71e
3
+ metadata.gz: 6a00691315a444a8df06833ae41d8c7429b3bb259e18f1913cdc160733a08123
4
+ data.tar.gz: 6ed313ef3a0578d01b1714c663b269a5a3c3bac0d1ae8f7a95a0f42dc4ffcbae
5
5
  SHA512:
6
- metadata.gz: 6214a4dd10266fc4ca1a9212b02d452e718c38616fd464b2d03224f4225a64a38025d2c3b7251c6614714e9a5cc68cbcf0cce364f8f4075fa9437d70f38001b9
7
- data.tar.gz: 59a3c5f1af9115101f6b8554f3a1420c316550dc78b2d3c60dd0d7c34b35953c143e3c51075f4c692f8be2ddf16ae68ff2098357d09235458a9f80a197b0e811
6
+ metadata.gz: c74d21897b216b6a39f54fd29da8e85664f43e931499fa32c08af145fba2863f31f07ea16de8bf63c4b36093e0568e8434b4531e793517a56942a3f009ebbc4e
7
+ data.tar.gz: ebeef28459f67952117255eac8c9871b6ee77ffd64da610fbf32408fee3ce5c1da6610f143270e608daef8e9421212ca207053a1ce84d5f9aff9ba7ac92ff86c
@@ -9,7 +9,11 @@ module GraphitiSpecHelpers
9
9
  end
10
10
 
11
11
  def id
12
- rawid.to_i
12
+ begin
13
+ Integer(rawid) # Only convert if using integer ids
14
+ rescue ArgumentError
15
+ rawid
16
+ end
13
17
  end
14
18
 
15
19
  def rawid
@@ -1,3 +1,3 @@
1
1
  module GraphitiSpecHelpers
2
- VERSION = "1.0.5"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-03 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti
@@ -133,11 +133,11 @@ files:
133
133
  - lib/graphiti_spec_helpers/node.rb
134
134
  - lib/graphiti_spec_helpers/rspec.rb
135
135
  - lib/graphiti_spec_helpers/version.rb
136
- homepage:
136
+ homepage:
137
137
  licenses:
138
138
  - MIT
139
139
  metadata: {}
140
- post_install_message:
140
+ post_install_message:
141
141
  rdoc_options: []
142
142
  require_paths:
143
143
  - lib
@@ -152,9 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.7.6
157
- signing_key:
155
+ rubygems_version: 3.2.22
156
+ signing_key:
158
157
  specification_version: 4
159
158
  summary: Spec helpers for Graphiti and JSONAPI
160
159
  test_files: []