light-services 2.0.0.rc1 → 2.0.0.rc2

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: 3274d2f86c3525ce73f2bcdc5e90f3da5e09979ee4f5f6425a5a41ef482489a2
4
- data.tar.gz: 2b4a0f8657f730b184b22c5eccd3273e7bdfc8abcfe7c9ec61852b38260eee48
3
+ metadata.gz: 87f3143772cbfb27b9714d3d92542d07fb949e3ee99213f8e6674e70e3aed4a2
4
+ data.tar.gz: 0f5443f6e200c0421c9c176610c7068d7dde55b9d23799ed6713411c04c83088
5
5
  SHA512:
6
- metadata.gz: 1420e6b25d7b48cc2924a02fde1fc0f9aa9701a9c2d0faf0643ebc508e6d2eca3be6e650b42ecdd3947683899acb9ca47388bf392d0372157b73208b17f8b294
7
- data.tar.gz: 44e1641a0ce332a8f4904ee278f3d116452335cb5186025536242a7b9714aedea55c0a3e629159b6d46feb82f4b979d1fab41baef0e4fa5fb35aa47151c778fe
6
+ metadata.gz: 2c6adacbe7c8e00c5dc5891a65d86644cdc583805966f3792528aa802540f8e9c81333a3d72cbe8d55383a05799e33a804881ed6554d9d3e695e9c2192fc725c
7
+ data.tar.gz: 2f672d7d41608a9b6f19fa8368c1774f82e7f98075df042efcc15a502f60fd4498eac4b02190615aeba01dcd8e3ad930d38799ec2741ae250382b37d46d153b9
data/.gitignore CHANGED
@@ -15,3 +15,6 @@
15
15
  # Ignore IDE files
16
16
  /.idea
17
17
  *.iml
18
+
19
+ # Ignore gem files
20
+ *.gem
@@ -12,12 +12,7 @@ module Light
12
12
 
13
13
  def add(key, message, opts = {})
14
14
  @messages[key] ||= []
15
-
16
- if message.is_a?(Array)
17
- @messages[key] += message
18
- else
19
- @messages[key] << message
20
- end
15
+ @messages[key] += [*message]
21
16
 
22
17
  raise!(key, message)
23
18
  break!(opts[:break])
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Light
4
4
  module Services
5
- VERSION = "2.0.0.rc1"
5
+ VERSION = "2.0.0.rc2"
6
6
  end
7
7
  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: 2.0.0.rc1
4
+ version: 2.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Emelianenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-10 00:00:00.000000000 Z
11
+ date: 2021-07-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Powerful implementation of Service Object pattern for Ruby and Rails
14
14
  email: