futurism 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/futurism/channel.rb~ +1 -1
- data/lib/futurism/helpers.rb +1 -1
- data/lib/futurism/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d6dcb8e42dba12b2e5064b8734578bffbd9c2ec65418361147ebe381369eab
|
4
|
+
data.tar.gz: 4356920e35812c99ead70f5ac3729cd9cb3d7b9e711ab9ee1f0e4b98d6524289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b67fcc1166aed81f6f791ed1253d2cc506f2dbdab8f0267eac4fce2983d7923284781f272e29e175aff82214eb4874119d2b3a98900195e345aca8b828a0ad1
|
7
|
+
data.tar.gz: '009c498af95bef5c56c76e5b026b60979a58bb5edaece53005664f75020254108af0d523ffda646af05118bce1f2251aea0600abf6e554cbcc89245dcdca933c'
|
data/lib/futurism/channel.rb~
CHANGED
@@ -41,7 +41,7 @@ module Futurism
|
|
41
41
|
.application
|
42
42
|
.message_verifier("futurism")
|
43
43
|
.verify(signed_params)
|
44
|
-
.deep_transform_values { |value| value.start_with?("gid://") ? GlobalID::Locator.locate(value) : value }
|
44
|
+
.deep_transform_values { |value| value.is_a?(String) && value.start_with?("gid://") ? GlobalID::Locator.locate(value) : value }
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/lib/futurism/helpers.rb
CHANGED
@@ -69,7 +69,7 @@ module Futurism
|
|
69
69
|
require_relative "shims/deep_transform_values" unless options.respond_to? :deep_transform_values
|
70
70
|
|
71
71
|
options.deep_transform_values do |value|
|
72
|
-
value.is_a?(ActiveRecord::Base) ? value.to_global_id.to_s : value
|
72
|
+
value.is_a?(ActiveRecord::Base) && !value.new_record? ? value.to_global_id.to_s : value
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
data/lib/futurism/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: futurism
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Rubisch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|