File tree 4 files changed +6
-5
lines changed
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- c66-copper (0.0.4 )
4
+ c66-copper (0.0.5 )
5
5
colorize (~> 0.8 )
6
6
ipaddress (~> 0.8 )
7
7
json (~> 1.4 )
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ def value(vars = {})
6
6
comp_op = elements [ 1 ] . value ( vars )
7
7
rhs = elements [ 2 ] . value ( vars )
8
8
9
- raise ParseError , "cannot compare nil" if rhs . nil? || lhs . nil?
9
+ return true if rhs . nil? && lhs . nil?
10
+ return false if rhs . nil? || lhs . nil?
10
11
11
12
puts "[DEBUG] Comparing #{ lhs } (#{ lhs . class . name } ) #{ comp_op } #{ rhs } (#{ rhs . class . name } )" if $debug
12
13
begin
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ def count
7
7
end
8
8
9
9
def first
10
- raise RuntimeError , "cannot call first on an empty array" if @value . empty?
10
+ return nil if @value . empty?
11
11
return @value . first
12
12
end
13
13
14
14
def last
15
- raise RuntimeError , "cannot call last on an empty array" if @value . empty?
15
+ return nil if @value . empty?
16
16
return @value . last
17
17
end
18
18
Original file line number Diff line number Diff line change 1
1
module Copper
2
- VERSION = '0.0.5 '
2
+ VERSION = '0.0.6 '
3
3
COPYRIGHT_MESSAGE = "(c) 2018 Cloud66 Inc."
4
4
APP_NAME = 'Copper'
5
5
end
You can’t perform that action at this time.
0 commit comments