slayer 0.5.0.beta → 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/.github/workflows/release.yml +0 -1
- data/.github/workflows/test.yml +1 -1
- data/README.md +28 -0
- data/lib/slayer/compat/compat_040.rb +0 -12
- data/lib/slayer/compat/minitest_compat_040.rb +12 -0
- data/lib/slayer/compat/rspec_compat_040.rb +8 -0
- data/lib/slayer/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f88c862cf4596840150934c88372a6cda656557e34da5a3918e98f19b159c645
|
4
|
+
data.tar.gz: 84d431982bad263f5a8cad99e3cd7fdb62610b9b75a80621c8ad457d01f93600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e390d010a072ec169f4c8a776547a4e3d562599db94a11a91534c7f0a2cc0667ce10c94fcfe765de658edb1bd477f38a4ac14b1972cbc183c03c666391193fbf
|
7
|
+
data.tar.gz: 13adcd8d46c0e28e1f4c243426ca1ad628157ca056d8298932dbdbf946d288661358a1c6e2a6ebbcf2e497a9efea45811579cb6063c28e46e80410f1a6f6d0e4
|
data/.github/workflows/test.yml
CHANGED
data/README.md
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
Slayer is intended to operate as a minimal service layer for your ruby application. To achieve this, Slayer provides base classes for business logic.
|
8
8
|
|
9
|
+
**Slayer is still under development, and not yet ready for production use. We are targetting a stable API with the 0.4.0 launch, so expect breaking changes until then.**
|
10
|
+
|
9
11
|
## Application Structure
|
10
12
|
|
11
13
|
Slayer provides 2 base classes for organizing your business logic: `Forms` and `Commands`. These each have a distinct role in your application's structure.
|
@@ -366,6 +368,24 @@ $ bin/rails g slayer:form foo_form
|
|
366
368
|
$ bin/rails g slayer:command foo_command
|
367
369
|
```
|
368
370
|
|
371
|
+
## Compatability
|
372
|
+
|
373
|
+
Backwards compatability with previous versions requires additional includes.
|
374
|
+
|
375
|
+
```ruby
|
376
|
+
require 'slayer/compat/compat_040'
|
377
|
+
```
|
378
|
+
|
379
|
+
If you use test matchers, you will have to separately require the compatability layer for your test runner:
|
380
|
+
|
381
|
+
```ruby
|
382
|
+
require 'slayer/compat/minitest_compat_040'
|
383
|
+
|
384
|
+
# OR
|
385
|
+
|
386
|
+
require 'slayer/compat/rspec_compat_040'
|
387
|
+
```
|
388
|
+
|
369
389
|
## Development
|
370
390
|
|
371
391
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -389,3 +409,11 @@ Any PRs should be accompanied with documentation in `README.md`, and changes doc
|
|
389
409
|
## License
|
390
410
|
|
391
411
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
412
|
+
|
413
|
+
---
|
414
|
+
|
415
|
+
# Built by Apsis
|
416
|
+
|
417
|
+
[![apsis](https://s3-us-west-2.amazonaws.com/apsiscdn/apsis.png)](https://www.apsis.io)
|
418
|
+
|
419
|
+
`slayer` was built by Apsis Labs. We love sharing what we build! Check out our [other libraries on Github](https://github.com/apsislabs), and if you like our work you can [hire us](https://www.apsis.io/work-with-us/) to build your vision.
|
@@ -1,6 +1,4 @@
|
|
1
1
|
# :nocov:
|
2
|
-
require 'minitest/assertions'
|
3
|
-
require 'rspec/expectations'
|
4
2
|
|
5
3
|
module Slayer
|
6
4
|
class Command
|
@@ -51,14 +49,4 @@ module Slayer
|
|
51
49
|
end
|
52
50
|
end
|
53
51
|
|
54
|
-
module Minitest::Assertions
|
55
|
-
alias assert_success assert_ok
|
56
|
-
alias refute_failed assert_ok
|
57
|
-
alias assert_failed refute_ok
|
58
|
-
alias refute_success refute_ok
|
59
|
-
end
|
60
|
-
|
61
|
-
RSpec::Matchers.alias_matcher :be_failed_result, :be_err_result
|
62
|
-
RSpec::Matchers.alias_matcher :be_success_result, :be_ok_result
|
63
|
-
|
64
52
|
# :nocov:
|
data/lib/slayer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slayer
|
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
|
- Wyatt Kirby
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtus
|
@@ -183,6 +183,8 @@ files:
|
|
183
183
|
- lib/slayer.rb
|
184
184
|
- lib/slayer/command.rb
|
185
185
|
- lib/slayer/compat/compat_040.rb
|
186
|
+
- lib/slayer/compat/minitest_compat_040.rb
|
187
|
+
- lib/slayer/compat/rspec_compat_040.rb
|
186
188
|
- lib/slayer/cops/return_matcher.rb
|
187
189
|
- lib/slayer/errors.rb
|
188
190
|
- lib/slayer/form.rb
|
@@ -208,9 +210,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
210
|
version: '0'
|
209
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
212
|
requirements:
|
211
|
-
- - "
|
213
|
+
- - ">="
|
212
214
|
- !ruby/object:Gem::Version
|
213
|
-
version:
|
215
|
+
version: '0'
|
214
216
|
requirements: []
|
215
217
|
rubygems_version: 3.2.3
|
216
218
|
signing_key:
|