argon 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/argon.rb +1 -1
- data/lib/argon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1988bc91260c1f54541de041e0b31a26bd5e875e
|
4
|
+
data.tar.gz: b881290844eb93b562b574232f2f028128749a22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9085799888374f865ccb6049b6ba03c555bc9ec548a109c8c7aaf2818d7c3630119efe6ff8ec924825f9fb704aa4764cb07de06cb1bb776ceffd43bd63315511
|
7
|
+
data.tar.gz: a866a90de5e4e6363783525996bd5013d5afd4b030b595a2c0e810e8853811234601b094e55076d53a1123ef336640daecef612245911e36d0cf4d540e9c350d
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
The `
|
23
|
+
The `Argon` module provides a `state_machine` class method which expects the following args (as demonstrated by the example below).
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
class Report
|
data/lib/argon.rb
CHANGED
@@ -153,7 +153,7 @@ module Argon
|
|
153
153
|
|
154
154
|
if !parameters.nil? && !action_parameters.empty?
|
155
155
|
parameters.select{ |k,v| action_parameters.include?(k) }.each_pair do |param_name, param_details|
|
156
|
-
raise Argon::InvalidParameterError.new("incorrect value for `#{
|
156
|
+
raise Argon::InvalidParameterError.new("incorrect value for `#{ param_details[:name] }`") if !param_details[:check].call(args[param_details[:name]])
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
data/lib/argon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: argon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ajith Hussain
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|