hashy_db 0.0.8 → 0.0.9

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.
@@ -15,7 +15,7 @@ module HashyDb
15
15
  Digest::SHA256.hexdigest("#{Time.current.utc}#{salt}")[0..6]
16
16
  end
17
17
 
18
- def delete(collection_name, field)
18
+ def delete_field(collection_name, field)
19
19
  find_all(collection_name).each do |row|
20
20
  row.delete(field)
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module HashyDb
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -37,7 +37,7 @@ describe HashyDb::DataStore do
37
37
  end
38
38
 
39
39
  it 'can delete a field' do
40
- subject.delete(:some_collection, :field_1)
40
+ subject.delete_field(:some_collection, :field_1)
41
41
 
42
42
  subject.find_all(:some_collection).each do |row|
43
43
  row.has_key?(:field_1).should be_false
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: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: