c66-copper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/copper/comparison.rb +2 -1
- data/lib/copper/data_types/array.rb +2 -2
- data/lib/copper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7479c126a34eb20484f9ef702358d22bbdeb72c01ce2b23852c8a1409b278102
|
4
|
+
data.tar.gz: b8991d855e7a276bcbe7e2bbd5964e54b20d4577d0ef154e6c78ba52aa7a054f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a83e0cf89ec33580a0dc6e4b2848b877586de77ff49a5d80b8a538ae6f6aba20b6e8e98f70f2e8f8c0609a5159fc08c576fcf581d2c7516f9f6ae94a6c77cda5
|
7
|
+
data.tar.gz: 074eba1527e2f5aa84d82f2bc6247ae121a4ef5c76a82c3ac1e69b2ef80336c7d25c2b5e87c8f6fd20599d6764ed11d8b02fca7ed05a317e10c2e6856541780c
|
data/lib/copper/comparison.rb
CHANGED
@@ -6,7 +6,8 @@ module Copper
|
|
6
6
|
comp_op = elements[1].value(vars)
|
7
7
|
rhs = elements[2].value(vars)
|
8
8
|
|
9
|
-
|
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
|
@@ -7,12 +7,12 @@ module Copper
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def first
|
10
|
-
|
10
|
+
return nil if @value.empty?
|
11
11
|
return @value.first
|
12
12
|
end
|
13
13
|
|
14
14
|
def last
|
15
|
-
|
15
|
+
return nil if @value.empty?
|
16
16
|
return @value.last
|
17
17
|
end
|
18
18
|
|
data/lib/copper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c66-copper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khash Sajadi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|