mordor 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ language: ruby
2
+
3
+ jdk:
4
+ - oraclejdk7
5
+
6
+ rvm:
7
+ - 1.8.7
8
+ - 1.9.2
9
+ - 1.9.3
10
+ - jruby-18mode
11
+ - jruby-19mode
12
+ - rbx-18mode
13
+ - rbx-19mode
data/Gemfile CHANGED
@@ -1 +1,18 @@
1
- gemspec
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ gem "rake"
9
+ gem "extlib"
10
+ gem "mongo"
11
+ gem "bson"
12
+ gem "bson_ext", :platforms => [:mri, :rbx]
13
+ gem "json"
14
+
15
+ group :test do
16
+ gem "rspec", "~> 2.0"
17
+ gem "rack-test"
18
+ end
@@ -1,21 +1,18 @@
1
- PATH
2
- remote: .
3
- specs:
4
- mordor (0.1.2)
5
- bson_ext
6
- extlib
7
- json
8
- mongo
9
-
10
1
  GEM
2
+ remote: http://rubygems.org/
11
3
  specs:
12
4
  bson (1.4.0)
13
- bson_ext (1.4.0)
5
+ bson (1.4.0-java)
6
+ bson_ext (1.5.1)
14
7
  diff-lcs (1.1.3)
15
8
  extlib (0.9.15)
16
- json (1.6.1)
9
+ json (1.7.3)
10
+ json (1.7.3-java)
17
11
  mongo (1.4.0)
18
12
  bson (= 1.4.0)
13
+ rack (1.4.1)
14
+ rack-test (0.6.1)
15
+ rack (>= 1.0)
19
16
  rake (0.9.2.2)
20
17
  rspec (2.7.0)
21
18
  rspec-core (~> 2.7.0)
@@ -27,13 +24,15 @@ GEM
27
24
  rspec-mocks (2.7.0)
28
25
 
29
26
  PLATFORMS
27
+ java
30
28
  ruby
31
29
 
32
30
  DEPENDENCIES
31
+ bson
33
32
  bson_ext
34
33
  extlib
35
34
  json
36
35
  mongo
37
- mordor!
36
+ rack-test
38
37
  rake
39
38
  rspec (~> 2.0)
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/jwkoelewijn/mordor.png?branch=master)](http://travis-ci.org/jwkoelewijn/mordor)
2
+
1
3
  ## Introduction
2
4
  Small library to add DataMapper style resources for MongoDB.
3
5
 
data/Rakefile CHANGED
@@ -1,5 +1,12 @@
1
+ require "rubygems"
2
+ require "bundler"
3
+
4
+ Bundler.setup
5
+
1
6
  load('tasks/github-gem.rake')
2
7
 
8
+ task :default => :spec
9
+
3
10
  # Register the gem release tasks in the gem namespace
4
11
  GithubGem::RakeTasks.new(:gem) do |config|
5
12
 
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
2
2
  s.name = "mordor"
3
3
 
4
4
  # Do not set the version and date field manually, this is done by the release script
5
- s.version = "0.2.12"
6
- s.date = "2012-01-23"
5
+ s.version = "0.2.13"
6
+ s.date = "2012-06-21"
7
7
 
8
8
  s.summary = "mordor"
9
9
  s.description = <<-eos
@@ -29,6 +29,6 @@ Gem::Specification.new do |s|
29
29
 
30
30
  # The files and test_files directives are set automatically by the release script.
31
31
  # Do not change them by hand, but make sure to add the files to the git repository.
32
- s.files = %w(.gitignore Gemfile Gemfile.lock README.md Rakefile lib/mordor.rb lib/mordor/collection.rb lib/mordor/config.rb lib/mordor/resource.rb lib/mordor/version.rb mordor.gemspec spec/mordor/collection_spec.rb spec/mordor/connection_spec.rb spec/mordor/resource_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
32
+ s.files = %w(.gitignore .travis.yml Gemfile Gemfile.lock README.md Rakefile lib/mordor.rb lib/mordor/collection.rb lib/mordor/config.rb lib/mordor/resource.rb lib/mordor/version.rb mordor.gemspec spec/mordor/collection_spec.rb spec/mordor/connection_spec.rb spec/mordor/resource_spec.rb spec/spec.opts spec/spec_helper.rb tasks/github-gem.rake)
33
33
  end
34
34
 
@@ -22,17 +22,17 @@ describe "with respect to resources" do
22
22
  end
23
23
 
24
24
  it "should create accessor methods for all attributes" do
25
- ["first", "first=", "second", "second="].each{ |v| TestResource.public_instance_methods.should include(v) }
25
+ ["first", "first=", "second", "second="].each{ |v| TestResource.public_instance_methods.map{|m| m.to_s}.should include(v) }
26
26
  end
27
27
 
28
28
  it "should create class level finder methods for all attributes" do
29
29
  ["find_by_first", "find_by_second"].each do |finder_method|
30
- TestResource.methods.should include(finder_method)
30
+ TestResource.methods.map{|m| m.to_s}.should include(finder_method)
31
31
  end
32
32
  end
33
33
 
34
34
  it "should create finder methods with the supplied finder method name" do
35
- TestResource.methods.should include "find_by_third_attribute"
35
+ TestResource.methods.map{|m| m.to_s}.should include "find_by_third_attribute"
36
36
  end
37
37
 
38
38
  it "should ensure indices when the option :index => true is given" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mordor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 12
10
- version: 0.2.12
9
+ - 13
10
+ version: 0.2.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan-Willem Koelewijn
@@ -16,13 +16,13 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-23 00:00:00 +01:00
19
+ date: 2012-06-21 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: rake
23
+ type: :development
24
24
  prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
28
  - - ">="
@@ -31,12 +31,12 @@ dependencies:
31
31
  segments:
32
32
  - 0
33
33
  version: "0"
34
- type: :development
35
- version_requirements: *id001
34
+ name: rake
35
+ requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- name: rspec
37
+ type: :development
38
38
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -46,12 +46,12 @@ dependencies:
46
46
  - 2
47
47
  - 0
48
48
  version: "2.0"
49
- type: :development
50
- version_requirements: *id002
49
+ name: rspec
50
+ requirement: *id002
51
51
  - !ruby/object:Gem::Dependency
52
- name: json
52
+ type: :development
53
53
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ">="
@@ -60,12 +60,12 @@ dependencies:
60
60
  segments:
61
61
  - 0
62
62
  version: "0"
63
- type: :development
64
- version_requirements: *id003
63
+ name: json
64
+ requirement: *id003
65
65
  - !ruby/object:Gem::Dependency
66
- name: extlib
66
+ type: :development
67
67
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
68
+ version_requirements: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
71
  - - ">="
@@ -74,12 +74,12 @@ dependencies:
74
74
  segments:
75
75
  - 0
76
76
  version: "0"
77
- type: :development
78
- version_requirements: *id004
77
+ name: extlib
78
+ requirement: *id004
79
79
  - !ruby/object:Gem::Dependency
80
- name: mongo
80
+ type: :development
81
81
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
82
+ version_requirements: &id005 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ">="
@@ -88,12 +88,12 @@ dependencies:
88
88
  segments:
89
89
  - 0
90
90
  version: "0"
91
- type: :development
92
- version_requirements: *id005
91
+ name: mongo
92
+ requirement: *id005
93
93
  - !ruby/object:Gem::Dependency
94
- name: bson_ext
94
+ type: :development
95
95
  prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
96
+ version_requirements: &id006 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ">="
@@ -102,12 +102,12 @@ dependencies:
102
102
  segments:
103
103
  - 0
104
104
  version: "0"
105
- type: :development
106
- version_requirements: *id006
105
+ name: bson_ext
106
+ requirement: *id006
107
107
  - !ruby/object:Gem::Dependency
108
- name: extlib
108
+ type: :runtime
109
109
  prerelease: false
110
- requirement: &id007 !ruby/object:Gem::Requirement
110
+ version_requirements: &id007 !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
113
113
  - - ">="
@@ -116,12 +116,12 @@ dependencies:
116
116
  segments:
117
117
  - 0
118
118
  version: "0"
119
- type: :runtime
120
- version_requirements: *id007
119
+ name: extlib
120
+ requirement: *id007
121
121
  - !ruby/object:Gem::Dependency
122
- name: mongo
122
+ type: :runtime
123
123
  prerelease: false
124
- requirement: &id008 !ruby/object:Gem::Requirement
124
+ version_requirements: &id008 !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
127
127
  - - ">="
@@ -130,12 +130,12 @@ dependencies:
130
130
  segments:
131
131
  - 0
132
132
  version: "0"
133
- type: :runtime
134
- version_requirements: *id008
133
+ name: mongo
134
+ requirement: *id008
135
135
  - !ruby/object:Gem::Dependency
136
- name: bson_ext
136
+ type: :runtime
137
137
  prerelease: false
138
- requirement: &id009 !ruby/object:Gem::Requirement
138
+ version_requirements: &id009 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ">="
@@ -144,12 +144,12 @@ dependencies:
144
144
  segments:
145
145
  - 0
146
146
  version: "0"
147
- type: :runtime
148
- version_requirements: *id009
147
+ name: bson_ext
148
+ requirement: *id009
149
149
  - !ruby/object:Gem::Dependency
150
- name: json
150
+ type: :runtime
151
151
  prerelease: false
152
- requirement: &id010 !ruby/object:Gem::Requirement
152
+ version_requirements: &id010 !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
155
155
  - - ">="
@@ -158,8 +158,8 @@ dependencies:
158
158
  segments:
159
159
  - 0
160
160
  version: "0"
161
- type: :runtime
162
- version_requirements: *id010
161
+ name: json
162
+ requirement: *id010
163
163
  description: " Small gem to add MongoDB Resources, resources have attributes that translate into document fields. When an attribute is declared, finders for the attribute are added to the Resource automatically\n"
164
164
  email:
165
165
  - janwillem.koelewijn@nedap.com
@@ -172,6 +172,7 @@ extra_rdoc_files: []
172
172
 
173
173
  files:
174
174
  - .gitignore
175
+ - .travis.yml
175
176
  - Gemfile
176
177
  - Gemfile.lock
177
178
  - README.md
@@ -218,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
219
  requirements: []
219
220
 
220
221
  rubyforge_project:
221
- rubygems_version: 1.3.7
222
+ rubygems_version: 1.5.2
222
223
  signing_key:
223
224
  specification_version: 3
224
225
  summary: mordor