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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d520b8d56b0ef067e1a02228e1982541de4abce283d83ccdf7d168ee3cbb52f
4
- data.tar.gz: b4b3eb85928de3ee6dd2a86f3e93e89567b37996af3e2476baa074de3cf5dc47
3
+ metadata.gz: fc7c266e2cb4bb91515fb490ec2986262f6b2031c6ddf930aa4b9a4951c73f18
4
+ data.tar.gz: '079506cb2cf5f62702490733b0759501a48aff202dc2d77616540e9b7d585734'
5
5
  SHA512:
6
- metadata.gz: 1190af3d7a5e4bb953007b9c2f31668ba0e6048b9958af0927c9be59d01ce4f3f8139c205354e2b931bc08c831c8f9a6e40e94bc40410b9329dc709bc212c5a4
7
- data.tar.gz: 24f7eba242e5879ec229b80e2d4b24af920bcfa4bfef2a5b0b12b1c8c9e408011b2bd7f0954fcfd27de64d4c7429b185dc9945073a78e1192868ea414a2cfc02
6
+ metadata.gz: d546243d3989cc7545fd1afe5c54973139df71cd32bbf6cbeb2c052ef657603154e7ec0f6f690c494e87cc808d94f07adce0a44f6a0f1fd62a862de912184c5b
7
+ data.tar.gz: 9813c0f55a7075a9e23ba9abb1dbcfe50990a868f6a0ccd2f08424cc58cb2491761008ef7e689dc7cdd617194223bcfbf4e51a201ca7c934ca932d3c092e4e38
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailwayIpc
4
- VERSION = '5.0.0'
4
+ VERSION = '5.1.0'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AddRailwayIpcConsumedMessages < ActiveRecord::Migration
3
+ class AddRailwayIpcConsumedMessages < ActiveRecord::Migration[4.2]
4
4
  def change
5
5
  create_table :railway_ipc_consumed_messages do |t|
6
6
  t.uuid :uuid, null: false
@@ -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', '~> 0.18'
50
+ spec.add_development_dependency 'pg', '~> 1.1'
51
51
  spec.add_development_dependency 'pry', '~> 0.13'
52
- spec.add_development_dependency 'rails', '~> 5.0.7'
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.0.0
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: 2021-02-17 00:00:00.000000000 Z
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: '0.18'
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: '0.18'
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: 5.0.7
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: 5.0.7
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.0.3
300
+ rubygems_version: 3.1.4
301
301
  signing_key:
302
302
  specification_version: 4
303
303
  summary: IPC components for Rails