Checked 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,18 +114,6 @@ class Checked
114
114
  end
115
115
  true
116
116
  end
117
-
118
- def get_or_set *args
119
- Size! args, 1..2
120
- name = args.shift
121
- raise ArgumentError, "Instance variable #{name.inspect} has not been defined." unless instance_variable_defined?(name)
122
-
123
- if args.empty?
124
- instance_variable_get name
125
- else
126
- instance_variable_set name, args.first
127
- end
128
- end
129
117
 
130
118
  end # === module Ruby
131
119
 
@@ -1,3 +1,3 @@
1
1
  class Checked
2
- VERSION = "3.3.0"
2
+ VERSION = "3.4.0"
3
3
  end
@@ -65,46 +65,6 @@ describe "Size!" do
65
65
 
66
66
  end # === describe Sizes_0_1!
67
67
 
68
- describe "get_or_set :@var" do
69
-
70
- behaves_like :racked_dsl
71
-
72
- it 'raises ArgumentError if instance variable has not been initialized.' do
73
- lambda { get_or_set :@something }
74
- .should.raise(ArgumentError)
75
- .message.should.match %r!@something has not been defined!
76
- end
77
-
78
- it 'gets instance variable if array is empty.' do
79
- @server = :hi
80
- get_or_set( :@server ).should == @server
81
- end
82
-
83
- end # === describe get_or_set
84
-
85
- describe "get_or_set :@var, var" do
86
-
87
- behaves_like :racked_dsl
88
-
89
- it 'raises ArgumentError if instance variable has not been initialized.' do
90
- lambda { get_or_set :@someg, :hi}
91
- .should.raise(ArgumentError)
92
- .message.should.match %r!@someg has not been defined!
93
- end
94
-
95
- it 'sets instance variable.' do
96
- @server = :hi
97
- get_or_set( :@server, :bye)
98
- @server.should == :bye
99
- end
100
-
101
- it 'returns last value' do
102
- @server = :hi
103
- get_or_set( :@server, :bye ).should == :bye
104
- end
105
-
106
- end # === describe get_or_set
107
-
108
68
  describe "string! " do
109
69
 
110
70
  behaves_like :ruby_dsl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Checked
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &15476740 !ruby/object:Gem::Requirement
16
+ requirement: &14833040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *15476740
24
+ version_requirements: *14833040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bacon
27
- requirement: &15412400 !ruby/object:Gem::Requirement
27
+ requirement: &14831340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *15412400
35
+ version_requirements: *14831340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: Bacon_Colored
38
- requirement: &15410880 !ruby/object:Gem::Requirement
38
+ requirement: &14744240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *15410880
46
+ version_requirements: *14744240
47
47
  description: ! "\n Various DSLs to clean, question (Ask), and validate (Demand)
48
48
  your objects,\n their classes (data types), and their properties.\n "
49
49
  email: