collector 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1f67cd923c0bfdec2effecea4b750ba9b3f7ba8a
4
+ data.tar.gz: 94cd9b47c2060bd13ffd3325775324c1d4d461dd
5
+ SHA512:
6
+ metadata.gz: cb4e10a1276cf3e249f253ddbdcd625c83bac8ca57cc5b9d1f8b59d3c9a4fc3645566dd20927ee30dfb6a5519a6314e11f688868b93cd56d166df3d7ee26c945
7
+ data.tar.gz: ff6096b388a902c66c9475458781678bc3ff457548ec4b6f0ee5e20e3bd56326c6556e1ded1cdb84214e11f5ac34bcaec00748473ca399a2d2a83c5e9b685c2d
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Collector
2
2
 
3
3
  [![Build Status](https://travis-ci.org/brandonweiss/collector.png)](https://travis-ci.org/brandonweiss/collector)
4
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/brandonweiss/collector)
4
+ [![Code Climate](https://codeclimate.com/github/brandonweiss/collector.png)](https://codeclimate.com/github/brandonweiss/collector)
5
5
 
6
6
  Collector is an implementation of the Repository Pattern for MongoDB. For those new to the Repository Pattern, it is a Facade that isolates the persistence layer from your application. If you're familiar with Rails, or more specifically ActiveRecord or most other ORMs, you'll know that the models and persistence layer are tightly coupled—literally they are the same object. That pattern is a great way to cut your teeth, but ultimately it's a terrible design. Your application does not and should not care about how its data is persisted. Collector will help with that.
7
7
 
@@ -106,7 +106,7 @@ Currently only MongoDB. I'd like to add an in-memory store, and if possible, a f
106
106
 
107
107
  If you don't already know why you need or want the Repository Pattern, then don't use it yet. It took me far longer than it should have to realize the benefits, despite having them explained to me many times. I just never really understood them until I'd actually experienced the pain this pattern solves myself. Once you do, come back and try it out.
108
108
 
109
- ### This looks awfully similar to [curator](http://github.com/braintreee/curator). What's the difference?
109
+ ### This looks awfully similar to [curator](http://github.com/braintree/curator). What's the difference?
110
110
 
111
111
  I rolled my own application-specific version of the Repository Pattern for each project I worked on before I realized I was using it often enough to merit extracting it into a gem. Right about that time Braintree announced curator, and since both their implentation and mine were very similar—except theirs was further along and had more features—I decided to use theirs instead. But after using it for a few months and then reading through the code to try and contribute back to it, I decided to go back to my own implementation and extract it into a gem after all.
112
112
 
data/collector.gemspec CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency "activesupport", "~> 3.2.8"
21
- gem.add_dependency "mongo", "~> 1.8.0"
22
- gem.add_dependency "bson", "~> 1.8.0"
21
+ gem.add_dependency "mongo", "~> 1.9.0"
22
+ gem.add_dependency "bson", "~> 1.9.0"
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Collector
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brandon Weiss
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-29 00:00:00.000000000 Z
11
+ date: 2013-06-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,35 +27,31 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: mongo
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
37
- version: 1.8.0
33
+ version: 1.9.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
- version: 1.8.0
40
+ version: 1.9.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bson
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: 1.8.0
47
+ version: 1.9.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 1.8.0
54
+ version: 1.9.0
62
55
  description: An implementation of the Repository Pattern for MongoDB.
63
56
  email:
64
57
  - brandon@anti-pattern.com
@@ -83,27 +76,26 @@ files:
83
76
  - test/test_helper.rb
84
77
  homepage: ''
85
78
  licenses: []
79
+ metadata: {}
86
80
  post_install_message:
87
81
  rdoc_options: []
88
82
  require_paths:
89
83
  - lib
90
84
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
85
  requirements:
93
- - - ! '>='
86
+ - - '>='
94
87
  - !ruby/object:Gem::Version
95
88
  version: '0'
96
89
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
90
  requirements:
99
- - - ! '>='
91
+ - - '>='
100
92
  - !ruby/object:Gem::Version
101
93
  version: '0'
102
94
  requirements: []
103
95
  rubyforge_project:
104
- rubygems_version: 1.8.23
96
+ rubygems_version: 2.0.0
105
97
  signing_key:
106
- specification_version: 3
98
+ specification_version: 4
107
99
  summary: An implementation of the Repository Pattern for MongoDB
108
100
  test_files:
109
101
  - test/collector/model_spec.rb