railjet 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/.semaphore/semaphore.yml +24 -0
- data/README.md +11 -3
- data/VERSION +1 -1
- data/lib/railjet/repository/active_record.rb +4 -0
- data/lib/railjet/version.rb +1 -1
- data/railjet.gemspec +3 -3
- metadata +14 -15
- data/Gemfile.lock +0 -94
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7fd0eeccd892fe25d1d16c29b32005c450cc2fb8a4117eedb3285841a0b17fc9
|
4
|
+
data.tar.gz: d49747d24cb15b3a18a4cec177e8d5bef8356fbbd29031586359552368d3178c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c5edeaee7236db8b358f02b8c8e5173913b3fef0abcc01f4d8c1bb54d7c0d808cdc0d06c202fb778b8d65c2f52f3f1bc7db7c67d75ec069db5c599ec433c257
|
7
|
+
data.tar.gz: 6d989eeb3f1d36564a6ad5f9253224729c3f013fdd41857a6c4a5f860b742408e9f6e4b60aa72b7a4184b36c13a60748b9964fc3f87e6d0381929c644b6abb0f
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.6
|
@@ -0,0 +1,24 @@
|
|
1
|
+
version: v1.0
|
2
|
+
name: Initial Pipeline
|
3
|
+
agent:
|
4
|
+
machine:
|
5
|
+
type: e1-standard-2
|
6
|
+
os_image: ubuntu1804
|
7
|
+
auto_cancel:
|
8
|
+
running:
|
9
|
+
when: "branch != 'master'"
|
10
|
+
blocks:
|
11
|
+
- name: 'Block #1'
|
12
|
+
task:
|
13
|
+
jobs:
|
14
|
+
- name: specs
|
15
|
+
matrix:
|
16
|
+
- env_var: RUBY_VERSION
|
17
|
+
values: [ "2.4.10", "2.5.8", "2.6.6", "2.7.1" ]
|
18
|
+
commands:
|
19
|
+
- sem-version ruby $RUBY_VERSION
|
20
|
+
- bundle install --path vendor/bundle
|
21
|
+
- bundle exec rake spec
|
22
|
+
prologue:
|
23
|
+
commands:
|
24
|
+
- checkout
|
data/README.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
|
-
# Railjet, architecture for high-speed railway [![Build Status](https://semaphoreci.com/
|
1
|
+
# Railjet, architecture for high-speed railway [![Build Status](https://nedap-opensource.semaphoreci.com/badges/railjet/branches/master.svg?style=shields)](https://semaphoreci.com/nedap/railjet)
|
2
2
|
|
3
3
|
|
4
4
|
![Railjet](https://www.swisspasses.com/railpass/popup/railjet/slideshow/RailJet-Zuerich-St.-Anton-Transfer-Ticket-from-Swisspasses.com.jpg)
|
5
5
|
|
6
|
+
## Philosophy
|
7
|
+
|
8
|
+
We all know how good it feels to start a greenfield project in Rails. At that point Rails Way makes you move amazingly fast - you just create your models, include some gems in Gemfile and boom, your prototype is almost there. This is what almost every tutorial or a book will show you. But what's going to happen when your app is not generic small-to-mid-size-app? What if you have to start breaking those Rails conventions that made you fall in love with Rails in the first place? That could be because of using multiple data storages, working with legacy URLs or DB schemas, having tons of domain logic that is making your ActiveModel so fat that no diet can help. We all know DHH's answer to that - Concerns. And yeah, they're cool for extracting shared behaviour out of models, but that's it.
|
9
|
+
|
10
|
+
Seems like Rails does not have a good answer. But what if someone else already had it? People are writing complex software for decades now, they had to come up with some ideas how to keep them clean, simple and maintainable.
|
11
|
+
|
12
|
+
See our [wiki](https://github.com/nedap/railjet/wiki) for more extended information on railjet why and how
|
13
|
+
|
6
14
|
## Installation
|
7
15
|
|
8
16
|
Add this line to your application's Gemfile:
|
@@ -19,7 +27,7 @@ Or install it yourself as:
|
|
19
27
|
|
20
28
|
$ gem install railjet
|
21
29
|
|
22
|
-
## Usage
|
30
|
+
## Example Usage
|
23
31
|
|
24
32
|
### Repository
|
25
33
|
|
@@ -243,7 +251,7 @@ end
|
|
243
251
|
|
244
252
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
245
253
|
|
246
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, run rake task to bump the version
|
254
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, run rake task to bump the version `rake version:bump:<major,minor,patch>` and then run `rake release` to release it to gemfury
|
247
255
|
|
248
256
|
## Contributing
|
249
257
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.0
|
data/lib/railjet/version.rb
CHANGED
data/railjet.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler"
|
23
|
-
spec.add_development_dependency "rake", "
|
22
|
+
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "rake", "> 13"
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
25
|
spec.add_development_dependency "pry"
|
26
26
|
spec.add_development_dependency "gemfury"
|
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency "activesupport", '> 4'
|
30
30
|
spec.add_dependency "activemodel", '> 4'
|
31
31
|
spec.add_dependency "virtus", "~> 1.0.2"
|
32
|
-
spec.add_dependency "validates_timeliness", "~> 4.
|
32
|
+
spec.add_dependency "validates_timeliness", "~> 4.1"
|
33
33
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railjet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Zalewski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 4.
|
145
|
+
version: '4.1'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 4.
|
152
|
+
version: '4.1'
|
153
153
|
description: Design patterns for Ruby on Rails
|
154
154
|
email:
|
155
155
|
- zlw.zalewski@gmail.com
|
@@ -161,8 +161,8 @@ files:
|
|
161
161
|
- ".rspec"
|
162
162
|
- ".ruby-gemset"
|
163
163
|
- ".ruby-version"
|
164
|
+
- ".semaphore/semaphore.yml"
|
164
165
|
- Gemfile
|
165
|
-
- Gemfile.lock
|
166
166
|
- LICENSE.txt
|
167
167
|
- README.md
|
168
168
|
- Rakefile
|
@@ -217,8 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
- !ruby/object:Gem::Version
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
|
-
|
221
|
-
rubygems_version: 2.5.2
|
220
|
+
rubygems_version: 3.0.3
|
222
221
|
signing_key:
|
223
222
|
specification_version: 4
|
224
223
|
summary: Better architecture for high-speed railway
|
data/Gemfile.lock
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
railjet (3.0.0)
|
5
|
-
activemodel (> 4)
|
6
|
-
activesupport (> 4)
|
7
|
-
validates_timeliness (~> 4.0.2)
|
8
|
-
virtus (~> 1.0.2)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
activemodel (5.2.3)
|
14
|
-
activesupport (= 5.2.3)
|
15
|
-
activesupport (5.2.3)
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (>= 0.7, < 2)
|
18
|
-
minitest (~> 5.1)
|
19
|
-
tzinfo (~> 1.1)
|
20
|
-
axiom-types (0.1.1)
|
21
|
-
descendants_tracker (~> 0.0.4)
|
22
|
-
ice_nine (~> 0.11.0)
|
23
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
24
|
-
coderay (1.1.2)
|
25
|
-
coercible (1.0.0)
|
26
|
-
descendants_tracker (~> 0.0.1)
|
27
|
-
concurrent-ruby (1.1.5)
|
28
|
-
descendants_tracker (0.0.4)
|
29
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
30
|
-
diff-lcs (1.3)
|
31
|
-
equalizer (0.0.11)
|
32
|
-
faraday (0.11.0)
|
33
|
-
multipart-post (>= 1.2, < 3)
|
34
|
-
gemfury (0.7.0)
|
35
|
-
faraday (>= 0.9.0, < 0.12.0.pre)
|
36
|
-
highline (~> 1.6)
|
37
|
-
multi_json (~> 1.10)
|
38
|
-
netrc (>= 0.10.0, < 0.12.0.pre)
|
39
|
-
thor (>= 0.14.0, < 1.0.0.pre)
|
40
|
-
highline (1.7.8)
|
41
|
-
i18n (1.6.0)
|
42
|
-
concurrent-ruby (~> 1.0)
|
43
|
-
ice_nine (0.11.2)
|
44
|
-
method_source (0.9.0)
|
45
|
-
minitest (5.11.3)
|
46
|
-
multi_json (1.12.2)
|
47
|
-
multipart-post (2.0.0)
|
48
|
-
netrc (0.11.0)
|
49
|
-
pry (0.11.1)
|
50
|
-
coderay (~> 1.1.0)
|
51
|
-
method_source (~> 0.9.0)
|
52
|
-
rake (11.3.0)
|
53
|
-
rake-version (1.0.0)
|
54
|
-
rake (~> 11.1)
|
55
|
-
rspec (3.6.0)
|
56
|
-
rspec-core (~> 3.6.0)
|
57
|
-
rspec-expectations (~> 3.6.0)
|
58
|
-
rspec-mocks (~> 3.6.0)
|
59
|
-
rspec-core (3.6.0)
|
60
|
-
rspec-support (~> 3.6.0)
|
61
|
-
rspec-expectations (3.6.0)
|
62
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
63
|
-
rspec-support (~> 3.6.0)
|
64
|
-
rspec-mocks (3.6.0)
|
65
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
66
|
-
rspec-support (~> 3.6.0)
|
67
|
-
rspec-support (3.6.0)
|
68
|
-
thor (0.20.0)
|
69
|
-
thread_safe (0.3.6)
|
70
|
-
timeliness (0.3.10)
|
71
|
-
tzinfo (1.2.5)
|
72
|
-
thread_safe (~> 0.1)
|
73
|
-
validates_timeliness (4.0.2)
|
74
|
-
timeliness (~> 0.3.7)
|
75
|
-
virtus (1.0.5)
|
76
|
-
axiom-types (~> 0.1)
|
77
|
-
coercible (~> 1.0)
|
78
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
79
|
-
equalizer (~> 0.0, >= 0.0.9)
|
80
|
-
|
81
|
-
PLATFORMS
|
82
|
-
ruby
|
83
|
-
|
84
|
-
DEPENDENCIES
|
85
|
-
bundler (~> 1.11)
|
86
|
-
gemfury
|
87
|
-
pry
|
88
|
-
railjet!
|
89
|
-
rake (~> 11.0)
|
90
|
-
rake-version (~> 1.0)
|
91
|
-
rspec (~> 3.0)
|
92
|
-
|
93
|
-
BUNDLED WITH
|
94
|
-
1.17.3
|