hash_builder 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +6 -24
- data/README.md +21 -15
- data/hash_builder.gemspec +2 -3
- data/lib/hash_builder/version.rb +1 -1
- metadata +16 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0181ed3016674e142aa3efe8ff727194c394c3fe
|
4
|
+
data.tar.gz: 0bcc8c1e899ea0696870307faa69f57227ab51af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a57e377b0adea23a01c092ad1c3f9bfc468a11086c211a037d079f298209f56aeb4bf95c7cb1d781910f89dd1dd7f6cd88221b1eb1ce2741b2dacec0e5b328
|
7
|
+
data.tar.gz: 6381812932f6ced0ea0e07cba1fffdbf5138cd472083304ddb3d3c576a39591fdcee9c2ff3f7e6bedc8600552d94079e05d0f1e744cec5fc12a26c9264263a30
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,40 +1,23 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hash_builder (0.
|
4
|
+
hash_builder (1.0.0)
|
5
5
|
exec_env
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
i18n (~> 0.6, >= 0.6.4)
|
12
|
-
minitest (~> 4.2)
|
13
|
-
multi_json (~> 1.3)
|
14
|
-
thread_safe (~> 0.1)
|
15
|
-
tzinfo (~> 0.3.37)
|
16
|
-
atomic (1.1.14)
|
17
|
-
diff-lcs (1.2.4)
|
10
|
+
diff-lcs (1.2.5)
|
18
11
|
exec_env (0.1.0)
|
19
|
-
|
20
|
-
json (1.8.1)
|
21
|
-
json_builder (3.1.7)
|
22
|
-
activesupport (>= 2.0.0)
|
23
|
-
json
|
24
|
-
minitest (4.7.5)
|
25
|
-
multi_json (1.8.2)
|
26
|
-
rake (10.1.0)
|
12
|
+
rake (10.1.1)
|
27
13
|
rspec (2.14.1)
|
28
14
|
rspec-core (~> 2.14.0)
|
29
15
|
rspec-expectations (~> 2.14.0)
|
30
16
|
rspec-mocks (~> 2.14.0)
|
31
|
-
rspec-core (2.14.
|
32
|
-
rspec-expectations (2.14.
|
17
|
+
rspec-core (2.14.7)
|
18
|
+
rspec-expectations (2.14.4)
|
33
19
|
diff-lcs (>= 1.1.3, < 2.0)
|
34
|
-
rspec-mocks (2.14.
|
35
|
-
thread_safe (0.1.3)
|
36
|
-
atomic
|
37
|
-
tzinfo (0.3.38)
|
20
|
+
rspec-mocks (2.14.4)
|
38
21
|
|
39
22
|
PLATFORMS
|
40
23
|
ruby
|
@@ -42,6 +25,5 @@ PLATFORMS
|
|
42
25
|
DEPENDENCIES
|
43
26
|
bundler (~> 1.4)
|
44
27
|
hash_builder!
|
45
|
-
json_builder
|
46
28
|
rake (~> 10.1)
|
47
29
|
rspec
|
data/README.md
CHANGED
@@ -10,20 +10,6 @@ manipulation of the results, application in more different circumstances
|
|
10
10
|
and you can generate JSON and YAML with the well known `to_json` and
|
11
11
|
`to_yaml` methods from it.
|
12
12
|
|
13
|
-
## Installation
|
14
|
-
|
15
|
-
Add this line to your application's Gemfile:
|
16
|
-
|
17
|
-
gem 'hash_builder'
|
18
|
-
|
19
|
-
And then execute:
|
20
|
-
|
21
|
-
$ bundle
|
22
|
-
|
23
|
-
Or install it yourself as:
|
24
|
-
|
25
|
-
$ gem install hash_builder
|
26
|
-
|
27
13
|
## Usage
|
28
14
|
|
29
15
|
```ruby
|
@@ -143,7 +129,7 @@ There is a [benchmark script](./benchmark.rb), that returns the
|
|
143
129
|
following results on my machine
|
144
130
|
|
145
131
|
```
|
146
|
-
$ ruby benchmark.rb
|
132
|
+
$ ruby benchmark.rb
|
147
133
|
user system total real
|
148
134
|
HashBuilder 0.650000 0.070000 0.720000 ( 0.714533)
|
149
135
|
HashBuilder + JSON.generate 1.290000 0.060000 1.350000 ( 1.352620)
|
@@ -218,6 +204,26 @@ class User
|
|
218
204
|
end
|
219
205
|
```
|
220
206
|
|
207
|
+
## Installation
|
208
|
+
|
209
|
+
Add this line to your application's Gemfile:
|
210
|
+
|
211
|
+
```ruby
|
212
|
+
gem 'hash_builder'
|
213
|
+
```
|
214
|
+
|
215
|
+
And then execute:
|
216
|
+
|
217
|
+
```sh
|
218
|
+
$ bundle
|
219
|
+
```
|
220
|
+
|
221
|
+
Or install it yourself as:
|
222
|
+
|
223
|
+
```sh
|
224
|
+
$ gem install hash_builder
|
225
|
+
```
|
226
|
+
|
221
227
|
## Contributing
|
222
228
|
|
223
229
|
1. Fork it
|
data/hash_builder.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
4
|
+
require "hash_builder/version"
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "hash_builder"
|
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.4"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.1"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
|
-
spec.add_development_dependency "json_builder"
|
25
24
|
|
26
25
|
spec.add_dependency "exec_env"
|
27
26
|
end
|
data/lib/hash_builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Lienen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.4'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: json_builder
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
52
|
+
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: exec_env
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- -
|
59
|
+
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '0'
|
76
62
|
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- -
|
66
|
+
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
description: Build hashes with the full power of ruby at your fingertips
|
@@ -87,8 +73,9 @@ executables: []
|
|
87
73
|
extensions: []
|
88
74
|
extra_rdoc_files: []
|
89
75
|
files:
|
90
|
-
- .gitignore
|
91
|
-
- .rspec
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- CHANGELOG.md
|
92
79
|
- Gemfile
|
93
80
|
- Gemfile.lock
|
94
81
|
- LICENSE.txt
|
@@ -112,17 +99,17 @@ require_paths:
|
|
112
99
|
- lib
|
113
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
101
|
requirements:
|
115
|
-
- -
|
102
|
+
- - ">="
|
116
103
|
- !ruby/object:Gem::Version
|
117
104
|
version: '0'
|
118
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
106
|
requirements:
|
120
|
-
- -
|
107
|
+
- - ">="
|
121
108
|
- !ruby/object:Gem::Version
|
122
109
|
version: '0'
|
123
110
|
requirements: []
|
124
111
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.1
|
112
|
+
rubygems_version: 2.2.0.rc.1
|
126
113
|
signing_key:
|
127
114
|
specification_version: 4
|
128
115
|
summary: The readme has examples
|