sebastian 0.3.0 → 0.3.1

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: 9ab2d8d9e8a7fbc7a094400734528428bf2a8e9892b3ebaecdf8294d16ee4228
4
- data.tar.gz: 3e15780d1c06f21f3e02d81c500d86d05f66f7feb7fe6712139b8d5f64965ad5
3
+ metadata.gz: cceccb63d31b75fc23c27ded7649e672fa95769927d324df3cc81de7db8be599
4
+ data.tar.gz: baea76e1eee025eefa987f127335a35e58f5c9341183f0591c2d4463acaf8c44
5
5
  SHA512:
6
- metadata.gz: fafc2308d0dfa6fa55da5ab486953941f202d5ba004fc2e0c648146227e66a8281e171371b33e99f4d77603dc28e137253db1fd71a91a572c1262e9ee8b5f4de
7
- data.tar.gz: 89c012ce7d31517d427d995ccee0eb3b1654e8e89e4e928923fefaef13c25856d52c84dba100f963be2ab2845ef4aefb7b8aa9631328d6694921329d8c9309eb
6
+ metadata.gz: 383b4aec949115a881768dc2991a2662bc7291ac62bdc3607af246532fc3d926c8a283c48ff936484593e3c604118efac13b2e6378a515eb647b4b3325ef79b7
7
+ data.tar.gz: ecf8959c9cd8adca0001ed670da61cee469c56cac519e82c361e5298c69d5183fc871dc1761e8c4045f6cb80ebba209fb5247ad85aeccb64b16d03677a296cd4
data/README.md CHANGED
@@ -76,7 +76,7 @@ You can also use `.perform!` to execute. It's like `.perform` but more dangerous
76
76
  CreatePayment.perform!(email: 'ciel@phantomhive.com', amount: 500)
77
77
  # => "payment_created"
78
78
  CreatePayment.perform!(amount: 500)
79
- # =>
79
+ # => Sebastian::InvalidResultError: Payment is not valid
80
80
  ```
81
81
 
82
82
  ### Validations
@@ -26,20 +26,20 @@ module Sebastian
26
26
  extend ActiveModel::Translation
27
27
 
28
28
  class << self
29
- def perform(params = {})
30
- new(params).perform
29
+ def perform(attributes = {})
30
+ new(attributes).perform
31
31
  end
32
32
 
33
- def perform!(params = {})
34
- new(params).perform!
33
+ def perform!(attributes = {})
34
+ new(attributes).perform!
35
35
  end
36
36
 
37
- alias params attr_accessor
38
- alias param params
37
+ alias attributes attr_accessor
38
+ alias attribute attributes
39
39
  end
40
40
 
41
- def initialize(params = {})
42
- assign_attributes(params)
41
+ def initialize(attributes = {})
42
+ assign_attributes(attributes)
43
43
  end
44
44
 
45
45
  def perform
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sebastian
4
- VERSION = '0.3.0'.freeze
4
+ VERSION = '0.3.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sebastian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sander Tuin