hashy_db 2.0.3 → 2.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7133cf550839a3cc69a15e68717b9ca40d293009
4
- data.tar.gz: d96bb06b30632760604ee659fb9ae14f37a43830
3
+ metadata.gz: 97892bd90ee68fce7fbf3bb8380e24f9120d8f7e
4
+ data.tar.gz: d42b1bbf825f86f60067f78cf344b502df28b029
5
5
  SHA512:
6
- metadata.gz: 22a558f4f78440a0067887cc3dff0c89a667c88a838784d9d44733294cd001b01369743d57dbd93a40589910c0286c9e91349b1fd6b226c3357325abd00d4d3e
7
- data.tar.gz: 5f272fb3918bd1462316da003bbf37cef610c5983536b72d849f6f92f51c19864ff6911c0bd9b02023c9efc5419e96ed109a027e2e692974e207af80d0791058
6
+ metadata.gz: 9ffef240c6f2d5c146e2677ebaf6677e2419e7d049afbd0f0a02b1a18f30b55c19072c37ac6fa18345407154b6590e59ea5d273e11e0a1cfff7c0cb2f5877504
7
+ data.tar.gz: f667a5a4a72385f55e5a24af7afa30ab0114212666808d1296819f2c27b5048e1595f8ee44a7bceeda4b05af234b139c60aa023736b7d36c0f150b8af079e4f9
@@ -123,6 +123,12 @@ module Mince
123
123
  end
124
124
  end
125
125
 
126
+ def self.all_before(collection_name, field, value)
127
+ self.find_all(collection_name).select do |record|
128
+ record[field] < value
129
+ end
130
+ end
131
+
126
132
  # Gets all records for a collection
127
133
  #
128
134
  # @param [Symbol] collection_name the name of the collection
@@ -20,12 +20,12 @@ module Mince # :nodoc:
20
20
 
21
21
  # Provides the minor level version of the library
22
22
  def self.minor
23
- 0
23
+ 1
24
24
  end
25
25
 
26
26
  # Provides the patch level version of the library
27
27
  def self.patch
28
- 3
28
+ 0
29
29
  end
30
30
  end
31
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashy_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Simpson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-29 00:00:00.000000000 Z
13
+ date: 2013-06-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -88,28 +88,28 @@ dependencies:
88
88
  requirements:
89
89
  - - ~>
90
90
  - !ruby/object:Gem::Version
91
- version: '1.2'
91
+ version: '1.6'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ~>
97
97
  - !ruby/object:Gem::Version
98
- version: '1.2'
98
+ version: '1.6'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: mince
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - ~>
104
104
  - !ruby/object:Gem::Version
105
- version: '2.0'
105
+ version: 2.0.1
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ~>
111
111
  - !ruby/object:Gem::Version
112
- version: '2.0'
112
+ version: 2.0.1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rb-fsevent
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -124,10 +124,10 @@ dependencies:
124
124
  - - ~>
125
125
  - !ruby/object:Gem::Version
126
126
  version: 0.9.0
127
- description: " Ruby library to interact with in-memory hash database collections.
128
- Offers very little technical dependencies. \n In order to develop or run the
129
- tests for your application you just need ruby installed, run bundle install and
130
- \n you're good to go. No need to install and start your database, migrate, etc.\n"
127
+ description: |2
128
+ Ruby library to interact with in-memory hash database collections. Offers very little technical dependencies.
129
+ In order to develop or run the tests for your application you just need ruby installed, run bundle install and
130
+ you're good to go. No need to install and start your database, migrate, etc.
131
131
  email:
132
132
  - matt@railsgrammer.com
133
133
  - jason.mayer@gmail.com