slayer 0.5.0.beta → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc095dc4fad61e836560eb30851324c846f8a5a1b3fd51bdc48d692ab576d8a3
4
- data.tar.gz: 9a77c6b602b544462311a897bb53685434a51dde783602274fce9d83096f3644
3
+ metadata.gz: f88c862cf4596840150934c88372a6cda656557e34da5a3918e98f19b159c645
4
+ data.tar.gz: 84d431982bad263f5a8cad99e3cd7fdb62610b9b75a80621c8ad457d01f93600
5
5
  SHA512:
6
- metadata.gz: 3a95c4d4b95bffc5d4f129e07fae690fcccd3543c6f7f745471aeaa8093bbfd9e5b377ffc931d52c0bb0f4f3048330f7b9421233246f633dde19de52526a6851
7
- data.tar.gz: 2de8ba806e4210a197ec87323f8a48777f6e024e9546170cee4ce15a651cfad2dc62134f3e4021003fde1ef378e57771778d98eec49a9747110955c675956926
6
+ metadata.gz: e390d010a072ec169f4c8a776547a4e3d562599db94a11a91534c7f0a2cc0667ce10c94fcfe765de658edb1bd477f38a4ac14b1972cbc183c03c666391193fbf
7
+ data.tar.gz: 13adcd8d46c0e28e1f4c243426ca1ad628157ca056d8298932dbdbf946d288661358a1c6e2a6ebbcf2e497a9efea45811579cb6063c28e46e80410f1a6f6d0e4
@@ -4,7 +4,6 @@ name: Release
4
4
 
5
5
  on:
6
6
  workflow_dispatch:
7
- pull_request:
8
7
 
9
8
  jobs:
10
9
  release:
@@ -2,7 +2,7 @@ name: Test & Lint
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [master]
5
+ branches: [main]
6
6
  pull_request:
7
7
 
8
8
  jobs:
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:
@@ -0,0 +1,12 @@
1
+ # :nocov:
2
+
3
+ require 'minitest/assertions'
4
+
5
+ module Minitest::Assertions
6
+ alias assert_success assert_ok
7
+ alias refute_failed assert_ok
8
+ alias assert_failed refute_ok
9
+ alias refute_success refute_ok
10
+ end
11
+
12
+ # :nocov:
@@ -0,0 +1,8 @@
1
+ # :nocov:
2
+
3
+ require 'rspec/expectations'
4
+
5
+ RSpec::Matchers.alias_matcher :be_failed_result, :be_err_result
6
+ RSpec::Matchers.alias_matcher :be_success_result, :be_ok_result
7
+
8
+ # :nocov:
@@ -1,3 +1,3 @@
1
1
  module Slayer
2
- VERSION = '0.5.0.beta'
2
+ VERSION = '0.5.1'
3
3
  end
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.0.beta
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: 2022-12-20 00:00:00.000000000 Z
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: 1.3.1
215
+ version: '0'
214
216
  requirements: []
215
217
  rubygems_version: 3.2.3
216
218
  signing_key: