mince 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ module Mince
32
32
  end
33
33
 
34
34
  def get_for_key_with_value(collection_name, key, value)
35
- get_all_for_key_with_value(collection_name, key, value)[0]
35
+ get_all_for_key_with_value(collection_name, key, value).first
36
36
  end
37
37
 
38
38
  def get_by_params(collection_name, hash)
@@ -73,6 +73,12 @@ module Mince
73
73
  db.collection(collection_name)
74
74
  end
75
75
 
76
+ def insert(collection_name, data)
77
+ data.each do |datum|
78
+ add collection_name, datum
79
+ end
80
+ end
81
+
76
82
  def db
77
83
  Mince::Connection.instance.db
78
84
  end
data/lib/mince/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mince
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mince
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-04-04 00:00:00.000000000 Z
14
+ date: 2012-05-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -113,7 +113,6 @@ files:
113
113
  - lib/mince/data_store.rb
114
114
  - lib/mince/version.rb
115
115
  - mince.gemspec
116
- - pkg/mince-0.0.1.gem
117
116
  - spec/lib/connection_spec.rb
118
117
  - spec/lib/data_store_spec.rb
119
118
  homepage: https://github.com/asynchrony/mince
data/pkg/mince-0.0.1.gem DELETED
Binary file