faststep 0.0.8 → 0.0.8.1
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.
@@ -50,12 +50,13 @@ VALUE bool_to_ruby(const bson_bool_t result) {
|
|
50
50
|
|
51
51
|
VALUE ensure_document_ok(const VALUE document) {
|
52
52
|
if(rb_funcall(rb_mFaststepSupport, rb_intern("ok?"), 1, document) == Qfalse) {
|
53
|
-
|
53
|
+
VALUE e = rb_exc_new3(rb_eFaststepOperationFailure, _invalid_command_description(document));
|
54
|
+
rb_exc_raise(e);
|
54
55
|
}
|
55
56
|
return Qtrue;
|
56
57
|
}
|
57
58
|
|
58
|
-
static
|
59
|
+
static VALUE _invalid_command_description(const VALUE document) {
|
59
60
|
VALUE message = rb_str_new2("");
|
60
61
|
|
61
62
|
if(RTEST(rb_hash_aref(document, rb_str_new2("bad cmd")))) {
|
@@ -70,7 +71,7 @@ static char* _invalid_command_description(const VALUE document) {
|
|
70
71
|
rb_str_concat(message, rb_hash_aref(document, rb_str_new2("err")));
|
71
72
|
}
|
72
73
|
|
73
|
-
return
|
74
|
+
return message;
|
74
75
|
}
|
75
76
|
|
76
77
|
static VALUE _map_assoc_ary_to_key_value_pair(const VALUE item, VALUE hash) {
|
@@ -8,6 +8,6 @@ VALUE ruby_array_to_bson_ordered_hash(const VALUE);
|
|
8
8
|
VALUE ruby_hash_from_bson(const bson*);
|
9
9
|
VALUE bool_to_ruby(const bson_bool_t);
|
10
10
|
VALUE ensure_document_ok(const VALUE);
|
11
|
-
static
|
11
|
+
static VALUE _invalid_command_description(const VALUE);
|
12
12
|
static VALUE _map_assoc_ary_to_key_value_pair(const VALUE, VALUE);
|
13
13
|
#endif
|
data/faststep.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.extensions = ["ext/faststep/extconf.rb"]
|
20
20
|
|
21
|
-
s.add_dependency "rake-compiler", "0.7.6"
|
22
|
-
s.add_dependency "bson", "1.2.4"
|
23
|
-
s.add_dependency "bson_ext", "1.2.4"
|
21
|
+
s.add_dependency "rake-compiler", ">= 0.7.6"
|
22
|
+
s.add_dependency "bson", ">= 1.2.4"
|
23
|
+
s.add_dependency "bson_ext", ">= 1.2.4"
|
24
24
|
|
25
|
-
s.add_development_dependency "rspec", "2.5.0"
|
25
|
+
s.add_development_dependency "rspec", ">= 2.5.0"
|
26
26
|
end
|
data/lib/faststep/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: faststep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.8
|
5
|
+
version: 0.0.8.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Josh Clayton
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake-compiler
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
|
-
- - "
|
21
|
+
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.7.6
|
24
24
|
type: :runtime
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 1.2.4
|
35
35
|
type: :runtime
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- - "
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: 1.2.4
|
46
46
|
type: :runtime
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
|
-
- - "
|
54
|
+
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.5.0
|
57
57
|
type: :development
|