railjet 3.4.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +11 -11
- data/.ruby-version +1 -1
- data/Gemfile +5 -1
- data/VERSION +1 -1
- data/lib/railjet/repository/generic.rb +4 -1
- data/lib/railjet/version.rb +1 -1
- data/railjet.gemspec +1 -2
- metadata +8 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e33627f6efdbb429475caff7f3f4edf941124f1801f99c7aa92ced6e4e5e56e
|
4
|
+
data.tar.gz: c606e7ca2d998f84533f4b33d98f9e99afd1fc1059597648772db6aa889b3e6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 790c62db9e16ee20b6533409cce4df9b40bdda19e5e8b78fd0b60b6908b9536ef4fe3acb03f0f32226f0972816032e16d20465cbfa56e2fab6ed19a99c8602ca
|
7
|
+
data.tar.gz: 1f85799f3aa71ace32339e4c4bd1973a7c8a2bc2a4a94235d815068cb9741464d155048ab54df668e06f81f80878bbf730056c9b3d9c823c9ba49c8308780024
|
data/.github/workflows/test.yml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
name: Test
|
2
|
-
|
3
|
-
on: [push]
|
2
|
+
on: [ workflow_dispatch, push ]
|
4
3
|
|
5
4
|
jobs:
|
6
5
|
test:
|
7
6
|
runs-on: ubuntu-latest
|
8
|
-
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
ruby: [3.0, 3.1, 3.2]
|
10
|
+
rails: ['~> 6.0', '~> 6.1', '~> 7.0']
|
11
|
+
env:
|
12
|
+
RAILS_VERSION: ${{ matrix.rails }}
|
9
13
|
steps:
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
- name: Setup Ruby
|
14
|
-
uses: ruby/setup-ruby@v1
|
14
|
+
- uses: actions/checkout@v3
|
15
|
+
- uses: ruby/setup-ruby@v1
|
15
16
|
with:
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
16
18
|
bundler-cache: true
|
17
|
-
|
18
|
-
- name: Run tests
|
19
|
-
run: bundle exec rspec spec
|
19
|
+
- run: bundle exec rspec
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
3.2.0
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
4.0.0
|
@@ -25,7 +25,10 @@ module Railjet
|
|
25
25
|
|
26
26
|
def define_dao_accessor(type, dao)
|
27
27
|
define_method type do
|
28
|
-
|
28
|
+
@cached_dao_class ||= begin
|
29
|
+
dao_klass = instance_variable_get("@#{type}") || instance_variable_set("@#{type}", (dao.constantize if dao.respond_to?(:constantize)))
|
30
|
+
dao_klass.is_a?(String) ? dao_klass.safe_constantize : dao_klass
|
31
|
+
end
|
29
32
|
end
|
30
33
|
end
|
31
34
|
|
data/lib/railjet/version.rb
CHANGED
data/railjet.gemspec
CHANGED
@@ -23,11 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "rake", "> 13"
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
25
|
spec.add_development_dependency "pry"
|
26
|
-
spec.add_development_dependency "rake-version", "~> 1.0"
|
27
26
|
spec.add_development_dependency "simplecov", "~> 0.17.1"
|
28
27
|
|
29
28
|
spec.add_dependency "activesupport", '> 5.2'
|
30
29
|
spec.add_dependency "activemodel", '> 5.2'
|
31
30
|
spec.add_dependency "virtus", "~> 1.0.2"
|
32
|
-
spec.add_dependency "validates_timeliness", "6.0.0.beta2" # Update this to ~>
|
31
|
+
spec.add_dependency "validates_timeliness", ">= 6.0.0.beta2" # Update this to ~> 7.0 if an official release is made
|
33
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railjet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Zalewski
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake-version
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: simplecov
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,14 +126,14 @@ dependencies:
|
|
140
126
|
name: validates_timeliness
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
|
-
- -
|
129
|
+
- - ">="
|
144
130
|
- !ruby/object:Gem::Version
|
145
131
|
version: 6.0.0.beta2
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
|
-
- -
|
136
|
+
- - ">="
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: 6.0.0.beta2
|
153
139
|
description: Design patterns for Ruby on Rails
|
@@ -203,7 +189,7 @@ homepage: https://github.com/nedap/railjet
|
|
203
189
|
licenses:
|
204
190
|
- MIT
|
205
191
|
metadata: {}
|
206
|
-
post_install_message:
|
192
|
+
post_install_message:
|
207
193
|
rdoc_options: []
|
208
194
|
require_paths:
|
209
195
|
- lib
|
@@ -218,8 +204,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
204
|
- !ruby/object:Gem::Version
|
219
205
|
version: '0'
|
220
206
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
222
|
-
signing_key:
|
207
|
+
rubygems_version: 3.4.6
|
208
|
+
signing_key:
|
223
209
|
specification_version: 4
|
224
210
|
summary: Better architecture for high-speed railway
|
225
211
|
test_files: []
|