light-services 0.3.0 → 0.4.0
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/gemfiles/rails_4_0.gemfile.lock +1 -1
- data/gemfiles/rails_4_1.gemfile.lock +1 -1
- data/gemfiles/rails_4_2.gemfile.lock +1 -1
- data/gemfiles/rails_5_0.gemfile.lock +1 -1
- data/lib/light/services/parameters.rb +2 -4
- data/lib/light/services/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: b5d5af71c37d915d5741ba52356484ea6121ac29
|
4
|
+
data.tar.gz: 6a35e6ab96052a259bdaf42d319fe8b0913ee009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0421bb949eceebc21770be208e4b5251a1fa7b41f9203e5c38bc2475c755247476be354a06b6955cbfe8f3564883096a8dc58a7968218972432946778148b40
|
7
|
+
data.tar.gz: 53621854a4364c21e936f304deb2ee5633fe98c86230fe3f4f0757eb67eaa0bed5c0382c13c8b0e4760f55f263d2c3e56957f058ba74d9af9c7c05ab2697a1e4
|
data/README.md
CHANGED
@@ -25,10 +25,8 @@ module Light
|
|
25
25
|
@parameters_storage = Light::Services::Variables.new
|
26
26
|
|
27
27
|
(self.class.parameters || []).each do |options|
|
28
|
-
#
|
29
|
-
|
30
|
-
next unless options[:required]
|
31
|
-
next if options[:allow_nil]
|
28
|
+
# Raise exception if parameter not exist
|
29
|
+
if !args.key?(options[:name]) && options[:required] && !options[:allow_nil]
|
32
30
|
raise Light::Services::ParamRequired, "Parameter \"#{options[:name]}\" is required"
|
33
31
|
end
|
34
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: light-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Emelianenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|