sinatra_resource 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.11
1
+ 0.4.12
@@ -15,7 +15,8 @@ module Config
15
15
  end
16
16
 
17
17
  def self.new_mongo_connection
18
- gem 'mongo', ">= 0.16", '< 1.0'
18
+ gem 'mongo', "= 0.18.2", '< 1.0'
19
+ gem 'mongo_ext', "= 0.18.2", '< 1.0'
19
20
  require 'mongo'
20
21
  Mongo::Connection.new(environment_config["mongo_hostname"])
21
22
  end
@@ -6,8 +6,8 @@ module DataCatalog
6
6
 
7
7
  # == Attributes
8
8
 
9
- key :source_id, Mongo::ObjectID
10
- key :category_id, Mongo::ObjectID
9
+ key :source_id, ObjectId
10
+ key :category_id, ObjectId
11
11
  timestamps!
12
12
 
13
13
  # == Indices
@@ -7,7 +7,7 @@ module DataCatalog
7
7
  # == Attributes
8
8
 
9
9
  key :text, String
10
- key :user_id, Mongo::ObjectID
10
+ key :user_id, ObjectId
11
11
  timestamps!
12
12
 
13
13
  # == Indices
@@ -11,7 +11,7 @@ class NotesPostResourceTest < ResourceTestCase
11
11
  @user = create_user
12
12
  @valid_params = {
13
13
  :text => "New Note",
14
- :user_id => @user.id.to_s
14
+ :user_id => @user.id
15
15
  }
16
16
  end
17
17
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra_resource}
8
- s.version = "0.4.11"
8
+ s.version = "0.4.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David James"]
12
- s.date = %q{2010-02-03}
12
+ s.date = %q{2010-02-04}
13
13
  s.description = %q{A DSL for creating RESTful actions with Sinatra and MongoMapper. It embraces the Resource Oriented Architecture as explained by Leonard Richardson and Sam Ruby.}
14
14
  s.email = %q{djames@sunlightfoundation.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - David James
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-03 00:00:00 -05:00
12
+ date: 2010-02-04 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency