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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dc81950e4f4b54c022aaf5541706b2571f65f5a
4
- data.tar.gz: 114558b414ac617bf67aeb62ab24ed5e846b89b0
3
+ metadata.gz: b5d5af71c37d915d5741ba52356484ea6121ac29
4
+ data.tar.gz: 6a35e6ab96052a259bdaf42d319fe8b0913ee009
5
5
  SHA512:
6
- metadata.gz: 8447dc3a9f85f4fdf24d1ab6bc7f789a9caab8ffd81d9883de94e5f8c16b198a9b55a7837408383cb7b3610c409bf0067ffe5e0e4da33bcd8d5db40fff0d4a28
7
- data.tar.gz: 7ef1779434b7836916605df9d05c09f613f79cf6d1cfd11d1ee2975a47ee64a8ec830be67ea09f1020130206ccdd413cccd6148019ad5118e988465fdad282b6
6
+ metadata.gz: e0421bb949eceebc21770be208e4b5251a1fa7b41f9203e5c38bc2475c755247476be354a06b6955cbfe8f3564883096a8dc58a7968218972432946778148b40
7
+ data.tar.gz: 53621854a4364c21e936f304deb2ee5633fe98c86230fe3f4f0757eb67eaa0bed5c0382c13c8b0e4760f55f263d2c3e56957f058ba74d9af9c7c05ab2697a1e4
data/README.md CHANGED
@@ -15,7 +15,7 @@ TODO: Delete this and the text above, and describe your gem
15
15
  Add this line to your application's Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'light-services', '~> 0.1'
18
+ gem 'light-services', '~> 0.4'
19
19
  ```
20
20
 
21
21
  And then execute:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.2.0)
4
+ light-services (0.4.0)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.2.0)
4
+ light-services (0.4.0)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.2.0)
4
+ light-services (0.4.0)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.2.0)
4
+ light-services (0.4.0)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -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
- # Skip or raise exception if parameter not exist
29
- unless args.key?(options[:name])
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
 
@@ -1,5 +1,5 @@
1
1
  module Light
2
2
  module Services
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
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.3.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-02-20 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails