hashy_db 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +20 -0
  3. data/README.md +48 -0
  4. data/lib/hashy_db/version.rb +1 -1
  5. metadata +19 -37
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7133cf550839a3cc69a15e68717b9ca40d293009
4
+ data.tar.gz: d96bb06b30632760604ee659fb9ae14f37a43830
5
+ SHA512:
6
+ metadata.gz: 22a558f4f78440a0067887cc3dff0c89a667c88a838784d9d44733294cd001b01369743d57dbd93a40589910c0286c9e91349b1fd6b226c3357325abd00d4d3e
7
+ data.tar.gz: 5f272fb3918bd1462316da003bbf37cef610c5983536b72d849f6f92f51c19864ff6911c0bd9b02023c9efc5419e96ed109a027e2e692974e207af80d0791058
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Asynchrony
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # HashyDb
2
+
3
+ [![Travis CI](https://travis-ci.org/coffeencoke/hashy_db.png)](https://travis-ci.org/#!/coffeencoke/hashy_db)
4
+
5
+ HashyDb is a ruby in-memory hash database to provide a quick way to develop without any external database dependency in Ruby applications.
6
+
7
+ HashyDb is a database interface that abides to the [Mince](https://github.com/coffeencoke/mince/) interface API requirements and is officially supported by [Mince](https://github.com/coffeencoke/mince/).
8
+
9
+ # How to use it
10
+
11
+ View the [Mince Wiki](https://github.com/coffeencoke/mince/wiki) on details on how to use this gem.
12
+
13
+ Basically -
14
+
15
+ ```
16
+ gem install mince hashy_db
17
+ ```
18
+
19
+ ```ruby
20
+ require 'mince'
21
+ require 'hashy_db'
22
+ interface = Mince::HashyDb::Interface # => Mince::HashyDb::Interface
23
+ interface.add 'tron_light_cycles', luminating_color: 'red', grid_locked: true, rezzed: false
24
+ interface.add 'tron_light_cycles', luminating_color: 'blue', grid_locked: true, rezzed: true
25
+ interface.find_all('tron_light_cycles')
26
+ # => [{:luminating_color=>"red", :grid_locked=>true, :rezzed=>false}, {:luminating_color=>"blue", :grid_locked=>true, :rezzed=>true}]
27
+ interface.get_for_key_with_value('tron_light_cycles', :luminating_color, 'blue')
28
+ # => {:luminating_color=>"blue", :grid_locked=>true, :rezzed=>true}
29
+ ```
30
+
31
+ # Links
32
+
33
+ * [API Docs](http://rdoc.info/github/coffeencoke/hashy_db/master/frames)
34
+ * [Rubygems](https://rubygems.org/gems/hashy_db)
35
+ * [Github](https://github.com/coffeencoke/hashy_db)
36
+ * [Wiki](https://github.com/coffeencoke/hashy_db/wiki)
37
+ * [Mailing List](https://groups.google.com/forum/?fromgroups#!forum/mince_dev)
38
+ * [Mince](https://github.com/coffeencoke/mince)
39
+
40
+ # Why would you want this?
41
+
42
+ - To defer choosing your database until you know most about your application.
43
+ - Provides assistance in designing and developing a database agnostic application.
44
+ - Offers very little technical dependencies. In order to develop or run the tests for your application you just need ruby installed, run bundle install and you're good to go. No need to install and start your database, migrate, etc.
45
+
46
+ # Contribute
47
+
48
+ This gem is officially supported by [Mince](https://github.com/coffeencoke/mince/), please go there to learn how to contribute.
@@ -25,7 +25,7 @@ module Mince # :nodoc:
25
25
 
26
26
  # Provides the patch level version of the library
27
27
  def self.patch
28
- 2
28
+ 3
29
29
  end
30
30
  end
31
31
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashy_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
5
- prerelease:
4
+ version: 2.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Matt Simpson
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-03-18 00:00:00.000000000 Z
13
+ date: 2013-03-29 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rake
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :development
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -32,7 +29,6 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: rspec
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
33
  - - ~>
38
34
  - !ruby/object:Gem::Version
@@ -40,7 +36,6 @@ dependencies:
40
36
  type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
40
  - - ~>
46
41
  - !ruby/object:Gem::Version
@@ -48,7 +43,6 @@ dependencies:
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: guard-rspec
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
47
  - - ~>
54
48
  - !ruby/object:Gem::Version
@@ -56,7 +50,6 @@ dependencies:
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
54
  - - ~>
62
55
  - !ruby/object:Gem::Version
@@ -64,7 +57,6 @@ dependencies:
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: yard
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
61
  - - ~>
70
62
  - !ruby/object:Gem::Version
@@ -72,7 +64,6 @@ dependencies:
72
64
  type: :development
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
68
  - - ~>
78
69
  - !ruby/object:Gem::Version
@@ -80,7 +71,6 @@ dependencies:
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: redcarpet
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
75
  - - ~>
86
76
  - !ruby/object:Gem::Version
@@ -88,7 +78,6 @@ dependencies:
88
78
  type: :development
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
82
  - - ~>
94
83
  - !ruby/object:Gem::Version
@@ -96,7 +85,6 @@ dependencies:
96
85
  - !ruby/object:Gem::Dependency
97
86
  name: debugger
98
87
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
88
  requirements:
101
89
  - - ~>
102
90
  - !ruby/object:Gem::Version
@@ -104,7 +92,6 @@ dependencies:
104
92
  type: :development
105
93
  prerelease: false
106
94
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
95
  requirements:
109
96
  - - ~>
110
97
  - !ruby/object:Gem::Version
@@ -112,23 +99,20 @@ dependencies:
112
99
  - !ruby/object:Gem::Dependency
113
100
  name: mince
114
101
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
102
  requirements:
117
- - - '='
103
+ - - ~>
118
104
  - !ruby/object:Gem::Version
119
- version: 2.0.1
105
+ version: '2.0'
120
106
  type: :development
121
107
  prerelease: false
122
108
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
109
  requirements:
125
- - - '='
110
+ - - ~>
126
111
  - !ruby/object:Gem::Version
127
- version: 2.0.1
112
+ version: '2.0'
128
113
  - !ruby/object:Gem::Dependency
129
114
  name: rb-fsevent
130
115
  requirement: !ruby/object:Gem::Requirement
131
- none: false
132
116
  requirements:
133
117
  - - ~>
134
118
  - !ruby/object:Gem::Version
@@ -136,12 +120,11 @@ dependencies:
136
120
  type: :development
137
121
  prerelease: false
138
122
  version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
123
  requirements:
141
124
  - - ~>
142
125
  - !ruby/object:Gem::Version
143
126
  version: 0.9.0
144
- description: ! " Ruby library to interact with in-memory hash database collections.
127
+ description: " Ruby library to interact with in-memory hash database collections.
145
128
  Offers very little technical dependencies. \n In order to develop or run the
146
129
  tests for your application you just need ruby installed, run bundle install and
147
130
  \n you're good to go. No need to install and start your database, migrate, etc.\n"
@@ -152,41 +135,40 @@ executables: []
152
135
  extensions: []
153
136
  extra_rdoc_files: []
154
137
  files:
155
- - lib/hashy_db.rb
156
- - lib/hashy_db/data_store.rb
157
- - lib/hashy_db/version.rb
158
138
  - lib/hashy_db/config.rb
139
+ - lib/hashy_db/data_store.rb
159
140
  - lib/hashy_db/interface.rb
141
+ - lib/hashy_db/version.rb
142
+ - lib/hashy_db.rb
143
+ - LICENSE.txt
144
+ - README.md
160
145
  - spec/integration/mince_interface_spec.rb
161
146
  - spec/units/hashy_db/config_spec.rb
162
147
  - spec/units/hashy_db/data_store_spec.rb
163
148
  - spec/units/hashy_db/interface_spec.rb
164
149
  homepage: https://github.com/coffeencoke/hashy_db
165
- licenses: []
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
166
153
  post_install_message:
167
154
  rdoc_options: []
168
155
  require_paths:
169
156
  - lib
170
157
  required_ruby_version: !ruby/object:Gem::Requirement
171
- none: false
172
158
  requirements:
173
- - - ! '>='
159
+ - - '>='
174
160
  - !ruby/object:Gem::Version
175
161
  version: 1.9.3
176
162
  required_rubygems_version: !ruby/object:Gem::Requirement
177
- none: false
178
163
  requirements:
179
- - - ! '>='
164
+ - - '>='
180
165
  - !ruby/object:Gem::Version
181
166
  version: '0'
182
- segments:
183
- - 0
184
- hash: -2447485589489309362
185
167
  requirements: []
186
168
  rubyforge_project: hashy_db
187
- rubygems_version: 1.8.25
169
+ rubygems_version: 2.0.3
188
170
  signing_key:
189
- specification_version: 3
171
+ specification_version: 4
190
172
  summary: Ruby library to interact with in-memory hash database collections
191
173
  test_files:
192
174
  - spec/integration/mince_interface_spec.rb