mince 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use 1.9.3@mince --create
1
+ rvm use 1.9.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mince (0.0.3)
4
+ mince (0.0.4)
5
5
  activesupport (~> 3.0)
6
6
  bson_ext (~> 1.5.2)
7
7
  mongo (~> 1.5.2)
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- activesupport (3.2.2)
12
+ activesupport (3.2.3)
13
13
  i18n (~> 0.6)
14
14
  multi_json (~> 1.0)
15
15
  bson (1.5.2)
@@ -19,7 +19,7 @@ GEM
19
19
  i18n (0.6.0)
20
20
  mongo (1.5.2)
21
21
  bson (= 1.5.2)
22
- multi_json (1.1.0)
22
+ multi_json (1.2.0)
23
23
  rake (0.8.7)
24
24
  rspec (2.8.0.rc1)
25
25
  rspec-core (= 2.8.0.rc1)
data/README.md CHANGED
@@ -24,11 +24,8 @@ Mince::DataStore.add 'books', title: 'The World In Photographs', publisher: 'Nat
24
24
  # Retrieve all records from the books collection
25
25
  Mince::DataStore.find_all 'books'
26
26
 
27
- # Retrieve all records from the books collection
28
- Mince::DataStore.find_all 'books'
29
-
30
- # Replace the a specific book
31
- Mince::DataStore.replace 'books', title: 'A World In Photographs', publisher: 'National Geographic'
27
+ # Replace a specific book
28
+ Mince::DataStore.replace 'books', id: 1, title: 'A World In Photographs', publisher: 'National Geographic'
32
29
  </pre>
33
30
 
34
31
  View the [data_store.rb](https://github.com/asynchrony/mince/blob/master/lib/mince/data_store.rb) file for all methods available.
@@ -61,6 +58,8 @@ Jason Mayer - [@farkerhaiku](https://twitter.com/farkerhaiku)
61
58
 
62
59
  # Contributors
63
60
 
61
+ Amos King - [@adkron](https://twitter.com/adkron)
62
+
64
63
  - Your name here!
65
64
 
66
65
  ![Mince Some App](https://github.com/coffeencoke/gist-files/raw/master/images/mince%20garlic.png)
@@ -23,6 +23,10 @@ module Mince
23
23
  collection(collection_name).update({"_id" => hash[:_id]}, hash)
24
24
  end
25
25
 
26
+ def update_field_with_value(*args)
27
+ raise %(The method `Mince::DataStore.singleton.update_field_with_value` is not implemented, you should implement it for us!)
28
+ end
29
+
26
30
  def get_all_for_key_with_value(collection_name, key, value)
27
31
  get_by_params(collection_name, key.to_s => value)
28
32
  end
@@ -73,4 +77,4 @@ module Mince
73
77
  Mince::Connection.instance.db
74
78
  end
75
79
  end
76
- end
80
+ end
data/lib/mince/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mince
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-03 00:00:00.000000000 Z
14
+ date: 2012-04-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
18
- requirement: &70112417686880 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,15 @@ dependencies:
23
23
  version: '3.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70112417686880
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ version: '3.0'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: mongo
29
- requirement: &70112417685980 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
30
35
  none: false
31
36
  requirements:
32
37
  - - ~>
@@ -34,10 +39,15 @@ dependencies:
34
39
  version: 1.5.2
35
40
  type: :runtime
36
41
  prerelease: false
37
- version_requirements: *70112417685980
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.5.2
38
48
  - !ruby/object:Gem::Dependency
39
49
  name: bson_ext
40
- requirement: &70112417685300 !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
41
51
  none: false
42
52
  requirements:
43
53
  - - ~>
@@ -45,10 +55,15 @@ dependencies:
45
55
  version: 1.5.2
46
56
  type: :runtime
47
57
  prerelease: false
48
- version_requirements: *70112417685300
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: 1.5.2
49
64
  - !ruby/object:Gem::Dependency
50
65
  name: rake
51
- requirement: &70112417684460 !ruby/object:Gem::Requirement
66
+ requirement: !ruby/object:Gem::Requirement
52
67
  none: false
53
68
  requirements:
54
69
  - - ! '>='
@@ -56,10 +71,15 @@ dependencies:
56
71
  version: '0'
57
72
  type: :development
58
73
  prerelease: false
59
- version_requirements: *70112417684460
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
60
80
  - !ruby/object:Gem::Dependency
61
81
  name: rspec
62
- requirement: &70112417683380 !ruby/object:Gem::Requirement
82
+ requirement: !ruby/object:Gem::Requirement
63
83
  none: false
64
84
  requirements:
65
85
  - - ! '>='
@@ -67,7 +87,12 @@ dependencies:
67
87
  version: '0'
68
88
  type: :development
69
89
  prerelease: false
70
- version_requirements: *70112417683380
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
71
96
  description: Lightweight MongoDB ORM for Ruby.
72
97
  email:
73
98
  - matt@railsgrammer.com
@@ -111,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
136
  version: '0'
112
137
  requirements: []
113
138
  rubyforge_project: mince
114
- rubygems_version: 1.8.10
139
+ rubygems_version: 1.8.21
115
140
  signing_key:
116
141
  specification_version: 3
117
142
  summary: Lightweight MongoDB ORM for Ruby.