blobject 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.markdown +15 -15
- data/lib/blobject.rb +4 -5
- data/lib/blobject/version.rb +1 -1
- metadata +9 -9
data/Gemfile.lock
CHANGED
data/README.markdown
CHANGED
@@ -121,27 +121,27 @@ The runtime performance of something as low level as blobject deserves considera
|
|
121
121
|
|
122
122
|
see `/benchmarks`
|
123
123
|
|
124
|
-
ITERATIONS: 1000000
|
124
|
+
ITERATIONS: 1000000
|
125
125
|
|
126
126
|
|
127
|
-
BENCHMARK: assign
|
127
|
+
BENCHMARK: assign
|
128
128
|
|
129
|
-
|
130
|
-
Object: 0.190000 0.000000 0.190000 ( 0.229685)
|
131
|
-
Hash: 0.220000 0.000000 0.220000 ( 0.230500)
|
132
|
-
OpenStruct: 0.520000 0.000000 0.520000 ( 0.529861)
|
133
|
-
Blobject: 0.790000 0.000000 0.790000 ( 0.808610)
|
134
|
-
Hashie: 8.270000 0.030000 8.300000 ( 9.291184)
|
129
|
+
user system total real
|
130
|
+
Object: 0.190000 0.000000 0.190000 ( 0.229685)
|
131
|
+
Hash: 0.220000 0.000000 0.220000 ( 0.230500)
|
132
|
+
OpenStruct: 0.520000 0.000000 0.520000 ( 0.529861)
|
133
|
+
Blobject: 0.790000 0.000000 0.790000 ( 0.808610)
|
134
|
+
Hashie: 8.270000 0.030000 8.300000 ( 9.291184)
|
135
135
|
|
136
136
|
|
137
|
-
BENCHMARK: read
|
137
|
+
BENCHMARK: read
|
138
138
|
|
139
|
-
|
140
|
-
Hash: 0.160000 0.000000 0.160000 ( 0.165141)
|
141
|
-
Object: 0.170000 0.000000 0.170000 ( 0.170228)
|
142
|
-
OpenStruct: 0.340000 0.000000 0.340000 ( 0.342430)
|
143
|
-
Blobject: 0.410000 0.000000 0.410000 ( 0.410574)
|
144
|
-
Hashie: 1.880000 0.000000 1.880000 ( 1.921718)
|
139
|
+
user system total real
|
140
|
+
Hash: 0.160000 0.000000 0.160000 ( 0.165141)
|
141
|
+
Object: 0.170000 0.000000 0.170000 ( 0.170228)
|
142
|
+
OpenStruct: 0.340000 0.000000 0.340000 ( 0.342430)
|
143
|
+
Blobject: 0.410000 0.000000 0.410000 ( 0.410574)
|
144
|
+
Hashie: 1.880000 0.000000 1.880000 ( 1.921718)
|
145
145
|
|
146
146
|
Host CPU: 2.13GHz Core2
|
147
147
|
|
data/lib/blobject.rb
CHANGED
@@ -128,14 +128,13 @@ class Blobject
|
|
128
128
|
super
|
129
129
|
end
|
130
130
|
|
131
|
-
def as_json
|
132
|
-
|
131
|
+
def as_json *args
|
132
|
+
return hash.as_json(*args) if hash.respond_to? :as_json
|
133
133
|
to_hash
|
134
134
|
end
|
135
135
|
|
136
|
-
def to_json
|
137
|
-
|
138
|
-
as_json.to_json
|
136
|
+
def to_json *args
|
137
|
+
as_json.to_json *args
|
139
138
|
end
|
140
139
|
|
141
140
|
def as_yaml
|
data/lib/blobject/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blobject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
16
|
-
requirement: &
|
16
|
+
requirement: &70361576205220 !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: *
|
24
|
+
version_requirements: *70361576205220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: minitest-reporters
|
27
|
-
requirement: &
|
27
|
+
requirement: &70361576203480 !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: *
|
35
|
+
version_requirements: *70361576203480
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: pry
|
38
|
-
requirement: &
|
38
|
+
requirement: &70361576201740 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70361576201740
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: debugger
|
49
|
-
requirement: &
|
49
|
+
requirement: &70361576197280 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70361576197280
|
58
58
|
description: Blobject provides a free flowing syntax for creating blobs of data.
|
59
59
|
email:
|
60
60
|
- sjltaylor@gmail.com
|