cli-mastermind 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: b77931d1ca0f264d32626bd535ac1b865230156182f46e1c52eea2d77dac0684
4
- data.tar.gz: 170465e4aed0ac88fb1faf9a586b70276f32dea2eec30f194b7edbc8cbce87dd
3
+ metadata.gz: 665b35d4768aadf8c4f322eefc4724e8baa5ad62efb24e5abd9992d0c6c7e920
4
+ data.tar.gz: 28526d6c94c5ff46cda54c04fa44009eaeabaa46b5787a5be327f5d0f60fbecd
5
5
  SHA512:
6
- metadata.gz: 98a87cf788c133fdc60d3ee14a0e356839c85f6b45ca9b95e490619126a511f261d81b949ae46cd16912d27325a214cbb27982be4d0eae830ec9074e41e92424
7
- data.tar.gz: 7cf8df99f7168abb8510c87a24b9568d3e3cfec599424ab698279abec36f57ade58b51f4f812860f2d8101ade4fec76b1236150fef5e54877b91c40a45e29369
6
+ metadata.gz: 22dcafdc16a3c88699b70702319403b3df5b7d9113a993ca9a04bfe354a55094b549fbae02a1b1be22cbc86bc33bf85ef564409405b65231e2cd07cecb008fe1
7
+ data.tar.gz: f0b19448539416003f3e16fde716bc888ee27c0a70b679c790580e5cae86e6b6a8fcf7280dacf3da35c7c6dec89e5836da96f97a8cd47d2f0e247f2ca746ccb6
@@ -76,7 +76,7 @@ module CLI
76
76
  was_callable = false
77
77
  end
78
78
 
79
- name = attribute.to_s.delete_prefix('@')
79
+ name = attribute.to_s.sub(/^@/, '')
80
80
 
81
81
  suffix = was_callable ? '{{*}}' : ' '
82
82
 
@@ -28,11 +28,11 @@ module CLI
28
28
  def self.add_attribute(attribute)
29
29
  return if self.method_defined? attribute
30
30
 
31
- self.define_method "#{attribute}=" do |new_value=nil,&block|
31
+ define_method "#{attribute}=" do |new_value=nil,&block|
32
32
  self.instance_variable_set("@#{attribute}", new_value||block) if self.instance_variable_get("@#{attribute}").nil?
33
33
  end
34
34
 
35
- self.define_method attribute do
35
+ define_method attribute do
36
36
  value = self.instance_variable_get("@#{attribute}")
37
37
  return value unless value.respond_to?(:call)
38
38
 
@@ -8,7 +8,7 @@ module CLI
8
8
  module VERSION
9
9
  RELEASE = 0
10
10
  MAJOR = 0
11
- MINOR = 3
11
+ MINOR = 4
12
12
  PATCH = nil
13
13
 
14
14
  STRING = [RELEASE, MAJOR, MINOR, PATCH].compact.join('.').freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli-mastermind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hall