scalaroid 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/scalaroid +3 -3
- data/lib/scalaroid/version.rb +1 -1
- data/scalaroid.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a36a4d49a0a9f966e0e035467253ef6259f556c
|
4
|
+
data.tar.gz: b6d2de48e024256db8a89e2ad62153ebd3819c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25548fda888cf005d9a63c6c876fe6d715409ffe54a5cc80fbbdaa18c7207d64e815c1d5c89271118fec366afe40973b570dbd54b43bccc60c5e35d0fd6003a1
|
7
|
+
data.tar.gz: d4c7d191bdc12dc0eed503ef8043e674f235cbe3e049b5aa80b01d2b4810c89be88254de2d9b6048ee95dcb623f6047665515315225fa3f08e56a95a5286153c
|
data/bin/scalaroid
CHANGED
@@ -39,7 +39,7 @@ def add_on_nr(sc, key_value_list)
|
|
39
39
|
begin
|
40
40
|
key, to_add = key_value_list
|
41
41
|
sc.add_on_nr(key, to_add)
|
42
|
-
rescue
|
42
|
+
rescue Scalaroid::NotANumberError
|
43
43
|
$stderr.print "Error: " + $!.to_s.to_json + "\n"
|
44
44
|
exit
|
45
45
|
end
|
@@ -49,7 +49,7 @@ def add_del_on_list(sc, key_value_list)
|
|
49
49
|
begin
|
50
50
|
key, to_add, to_remove = key_value_list
|
51
51
|
sc.add_del_on_list(key, to_add, to_remove)
|
52
|
-
rescue
|
52
|
+
rescue Scalaroid::NotAListError
|
53
53
|
$stderr.print "Error: " + $!.to_s.to_json + "\n"
|
54
54
|
exit
|
55
55
|
end
|
@@ -107,7 +107,7 @@ rescue OptionParser::ParseError
|
|
107
107
|
exit
|
108
108
|
end
|
109
109
|
|
110
|
-
sc =
|
110
|
+
sc = Scalaroid::TransactionSingleOp.new
|
111
111
|
|
112
112
|
pp sc.read(options[:read]) unless options[:read] == nil
|
113
113
|
pp write(sc, options[:write]) unless options[:write] == nil
|
data/lib/scalaroid/version.rb
CHANGED
data/scalaroid.gemspec
CHANGED