railway-ipc 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/railway_ipc/models/consumed_message.rb +10 -0
- data/lib/railway_ipc/models/published_message.rb +10 -0
- data/lib/railway_ipc/version.rb +1 -1
- data/priv/migrations/add_railway_ipc_consumed_messages.rb +1 -1
- data/priv/migrations/add_railway_ipc_published_messages.rb +1 -1
- data/railway_ipc.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7c266e2cb4bb91515fb490ec2986262f6b2031c6ddf930aa4b9a4951c73f18
|
4
|
+
data.tar.gz: '079506cb2cf5f62702490733b0759501a48aff202dc2d77616540e9b7d585734'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d546243d3989cc7545fd1afe5c54973139df71cd32bbf6cbeb2c052ef657603154e7ec0f6f690c494e87cc808d94f07adce0a44f6a0f1fd62a862de912184c5b
|
7
|
+
data.tar.gz: 9813c0f55a7075a9e23ba9abb1dbcfe50990a868f6a0ccd2f08424cc58cb2491761008ef7e689dc7cdd617194223bcfbf4e51a201ca7c934ca932d3c092e4e38
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
@@ -54,8 +54,18 @@ module RailwayIpc
|
|
54
54
|
|
55
55
|
private
|
56
56
|
|
57
|
+
# rails <= 5.1 uses this method to know the name of the created_at/updated_at fields
|
57
58
|
def timestamp_attributes_for_create
|
58
59
|
super << :inserted_at
|
59
60
|
end
|
61
|
+
|
62
|
+
# rails >= 6.0 moved this to the class level and uses strings instead of symbols
|
63
|
+
class << self
|
64
|
+
private
|
65
|
+
|
66
|
+
def timestamp_attributes_for_create
|
67
|
+
super << 'inserted_at'
|
68
|
+
end
|
69
|
+
end
|
60
70
|
end
|
61
71
|
end
|
@@ -21,8 +21,18 @@ module RailwayIpc
|
|
21
21
|
|
22
22
|
private
|
23
23
|
|
24
|
+
# rails <= 5.1 uses this method to know the name of the created_at/updated_at fields
|
24
25
|
def timestamp_attributes_for_create
|
25
26
|
super << :inserted_at
|
26
27
|
end
|
28
|
+
|
29
|
+
# rails >= 6.0 moved this to the class level and uses strings instead of symbols
|
30
|
+
class << self
|
31
|
+
private
|
32
|
+
|
33
|
+
def timestamp_attributes_for_create
|
34
|
+
super << 'inserted_at'
|
35
|
+
end
|
36
|
+
end
|
27
37
|
end
|
28
38
|
end
|
data/lib/railway_ipc/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class AddRailwayIpcPublishedMessages < ActiveRecord::Migration
|
3
|
+
class AddRailwayIpcPublishedMessages < ActiveRecord::Migration[4.2]
|
4
4
|
def change
|
5
5
|
create_table :railway_ipc_published_messages, id: false do |t|
|
6
6
|
t.uuid :uuid, null: false
|
data/railway_ipc.gemspec
CHANGED
@@ -47,9 +47,9 @@ Gem::Specification.new do |spec|
|
|
47
47
|
# Setup for testing Rails type code within mock Rails app
|
48
48
|
spec.add_development_dependency 'database_cleaner', '~> 1.7'
|
49
49
|
spec.add_development_dependency 'listen', '~> 3.0.5'
|
50
|
-
spec.add_development_dependency 'pg', '~>
|
50
|
+
spec.add_development_dependency 'pg', '~> 1.1'
|
51
51
|
spec.add_development_dependency 'pry', '~> 0.13'
|
52
|
-
spec.add_development_dependency 'rails', '~>
|
52
|
+
spec.add_development_dependency 'rails', '~> 6.0'
|
53
53
|
spec.add_development_dependency 'rspec-rails'
|
54
54
|
spec.add_development_dependency 'shoulda-matchers', '~> 4.2'
|
55
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railway-ipc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '1.1'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '1.1'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: pry
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: '6.0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: '6.0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: rspec-rails
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
297
297
|
- !ruby/object:Gem::Version
|
298
298
|
version: '0'
|
299
299
|
requirements: []
|
300
|
-
rubygems_version: 3.
|
300
|
+
rubygems_version: 3.1.4
|
301
301
|
signing_key:
|
302
302
|
specification_version: 4
|
303
303
|
summary: IPC components for Rails
|