periscope-mongo_mapper 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +11 -0
  2. data/periscope-mongo_mapper.gemspec +2 -3
  3. metadata +6 -22
data/README.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  Periscope provides a simple way to chain scopes on your models and to open those scopes up to your users.
4
4
 
5
+ ## Installation
6
+
7
+ Periscope sits on top of your favorite ORM. Currently, the following ORMs are supported through individual gems extending Periscope:
8
+
9
+ * Active Record ([periscope-activerecord](https://rubygems.org/gems/periscope-activerecord))
10
+ * MongoMapper ([periscope-mongo_mapper](https://rubygems.org/gems/periscope-mongo_mapper))
11
+ * Mongoid ([periscope-mongoid](https://rubygems.org/gems/periscope-mongoid))
12
+ * DataMapper ([periscope-data_mapper](https://rubygems.org/gems/periscope-data_mapper))
13
+
14
+ Simply add the gem to your bundle and you're off!
15
+
5
16
  ## The Problem
6
17
 
7
18
  More often than not, the index action in a RESTful Rails controller is expected to do a lot more than simply return all the records for a given model. We ask it to do all sorts of stuff like filtering, sorting and paginating results. Of course, this is typically done using _scopes_.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'periscope-mongo_mapper'
5
- gem.version = '1.0.0'
5
+ gem.version = '1.0.1'
6
6
 
7
7
  gem.authors = ['Steve Richert']
8
8
  gem.email = ['steve.richert@gmail.com']
@@ -10,13 +10,12 @@ Gem::Specification.new do |gem|
10
10
  gem.summary = gem.description
11
11
  gem.homepage = 'https://github.com/laserlemon/periscope'
12
12
 
13
- gem.add_dependency 'mongo_mapper', '~> 0.11'
13
+ gem.add_dependency 'mongo_mapper', '~> 0.9'
14
14
  gem.add_dependency 'periscope', '~> 1.0'
15
15
 
16
16
  gem.add_development_dependency 'bson_ext', '~> 1.4'
17
17
  gem.add_development_dependency 'database_cleaner', '~> 0.8'
18
18
  gem.add_development_dependency 'factory_girl', '>= 2', '< 4'
19
- gem.add_development_dependency 'rake', '~> 0.9'
20
19
  gem.add_development_dependency 'rspec', '~> 2.0'
21
20
 
22
21
  gem.files = %w(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: periscope-mongo_mapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-29 00:00:00.000000000 Z
12
+ date: 2012-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongo_mapper
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0.11'
21
+ version: '0.9'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0.11'
29
+ version: '0.9'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: periscope
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -97,22 +97,6 @@ dependencies:
97
97
  - - <
98
98
  - !ruby/object:Gem::Version
99
99
  version: '4'
100
- - !ruby/object:Gem::Dependency
101
- name: rake
102
- requirement: !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ~>
106
- - !ruby/object:Gem::Version
107
- version: '0.9'
108
- type: :development
109
- prerelease: false
110
- version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
- requirements:
113
- - - ~>
114
- - !ruby/object:Gem::Version
115
- version: '0.9'
116
100
  - !ruby/object:Gem::Dependency
117
101
  name: rspec
118
102
  requirement: !ruby/object:Gem::Requirement
@@ -155,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
139
  version: '0'
156
140
  segments:
157
141
  - 0
158
- hash: -4186296594754612487
142
+ hash: -41505856280003482
159
143
  required_rubygems_version: !ruby/object:Gem::Requirement
160
144
  none: false
161
145
  requirements:
@@ -164,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
148
  version: '0'
165
149
  segments:
166
150
  - 0
167
- hash: -4186296594754612487
151
+ hash: -41505856280003482
168
152
  requirements: []
169
153
  rubyforge_project:
170
154
  rubygems_version: 1.8.24