aye_commander 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41be7b9a74745fe7d3a69b24b334b52900022feb
4
- data.tar.gz: 65b0b4de86fa2fb3d75fbc19002e7f8914c0ed5c
3
+ metadata.gz: 13efe8fd83fdb3729b477d71de97b3f0563a9b4a
4
+ data.tar.gz: 32c1cec5d15a1304acc82a6758c2ad5a71f74fed
5
5
  SHA512:
6
- metadata.gz: d2d9e76e953e642d10fb0e0dba1e043d67c5d6d0df87f1c4291fed06bcc7a03d78eb8806580e363dbcffd45213b27487b2e37d009887d14b2e5409f644bb13c7
7
- data.tar.gz: 32460bc54a9b5abfb10038c6315cfac27551dc48ed1548b65c25f4e6e518dc4e838f52d12b11be82011b81bd4d44183591015fdbad2c5150b5855c07c3921692
6
+ metadata.gz: '028a6c60f92cd4c6c44e19ccf1b0a21cf6d81cb41fce9cf21bebd9990ad71d8f86469106980895c2546c233800dfece3112540ced15a8b12be5bd61aa620b673'
7
+ data.tar.gz: 6d2e656ae2cfed569f61dfc420abd26b088022f146c5c87217d36f1215373d958dc27483d85991c83904512dc423a4248c4d9fcde73492315031813c4852d0ad
@@ -11,7 +11,7 @@ module AyeCommander
11
11
  includer.extend AyeCommander::Command::ClassMethods
12
12
  %i[@limiters @succeeds @hooks].each do |var|
13
13
  if instance_variable_defined? var
14
- includer.instance_variable_set var, instance_variable_get(var)
14
+ includer.instance_variable_set var, instance_variable_get(var).dup
15
15
  end
16
16
  end
17
17
  end
@@ -23,7 +23,7 @@ module AyeCommander
23
23
  super
24
24
  %i[@limiters @succeeds @hooks].each do |var|
25
25
  if instance_variable_defined? var
26
- inheriter.instance_variable_set var, instance_variable_get(var)
26
+ inheriter.instance_variable_set var, instance_variable_get(var).dup
27
27
  end
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module AyeCommander
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
@@ -19,6 +19,12 @@ describe AyeCommander::Shareable::ClassMethods do
19
19
  expect(includer2.succeeds).to include :inclusion
20
20
  expect(includer2.send(:hooks)).to be_empty
21
21
  end
22
+
23
+ it 'does not add the instance variables of the includers to the original' do
24
+ includer.requires :something
25
+ includer2.requires :other
26
+ expect(includer.requires).to_not include :other
27
+ end
22
28
  end
23
29
 
24
30
  context '.inherited' do
@@ -34,5 +40,11 @@ describe AyeCommander::Shareable::ClassMethods do
34
40
  expect(inheriter.succeeds).to include :inclusion
35
41
  expect(inheriter.send(:hooks)).to be_empty
36
42
  end
43
+
44
+ it 'does not add the instance variables of the inheriter to the original' do
45
+ command.requires :something
46
+ inheriter.requires :other
47
+ expect(command.requires).to_not include :other
48
+ end
37
49
  end
38
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aye_commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyzlnar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-03 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A gem that helps to write commands in ruby.
14
14
  email: pyzlnar@gmail.com
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.6.13
71
+ rubygems_version: 2.5.2.1
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: A simple command pattern gem