rest-sinatra 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/lib/rest-sinatra.rb CHANGED
@@ -235,7 +235,7 @@ module RestSinatra
235
235
  end
236
236
 
237
237
  def find_child!(parent_document, association, child_id)
238
- child_document = parent_document.send(association).find { |x| x.id == child_id }
238
+ child_document = parent_document.send(association).detect { |x| x.id == child_id }
239
239
  error 404, [].to_json unless child_document
240
240
  child_document
241
241
  end
data/rest-sinatra.gemspec CHANGED
@@ -1,63 +1,63 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{rest-sinatra}
8
- s.version = "0.3.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["David James"]
12
- s.date = %q{2009-10-02}
13
- s.description = %q{Provides a DSL for making RESTful Sinatra actions with MongoMapper models.}
14
- s.email = %q{djames@sunlightfoundation.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.md",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/rest-sinatra.rb",
27
- "rest-sinatra.gemspec",
28
- "spec/spec_helper.rb",
29
- "spec/unit/helpers/comments.rb",
30
- "spec/unit/helpers/posts.rb",
31
- "spec/unit/helpers/sinatra_stubs.rb",
32
- "spec/unit/helpers/sources.rb",
33
- "spec/unit/posts_and_comments_spec.rb",
34
- "spec/unit/sources_spec.rb"
35
- ]
36
- s.homepage = %q{http://github.com/djsun/rest-sinatra}
37
- s.rdoc_options = ["--charset=UTF-8"]
38
- s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.5}
40
- s.summary = %q{Easily write RESTful actions with Sinatra and MongoMapper}
41
- s.test_files = [
42
- "spec/spec_helper.rb",
43
- "spec/unit/helpers/comments.rb",
44
- "spec/unit/helpers/posts.rb",
45
- "spec/unit/helpers/sinatra_stubs.rb",
46
- "spec/unit/helpers/sources.rb",
47
- "spec/unit/posts_and_comments_spec.rb",
48
- "spec/unit/sources_spec.rb"
49
- ]
50
-
51
- if s.respond_to? :specification_version then
52
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
- s.specification_version = 3
54
-
55
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
56
- s.add_development_dependency(%q<rspec>, [">= 0"])
57
- else
58
- s.add_dependency(%q<rspec>, [">= 0"])
59
- end
60
- else
61
- s.add_dependency(%q<rspec>, [">= 0"])
62
- end
63
- end
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rest-sinatra}
8
+ s.version = "0.3.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["David James"]
12
+ s.date = %q{2009-10-04}
13
+ s.description = %q{Provides a DSL for making RESTful Sinatra actions with MongoMapper models.}
14
+ s.email = %q{djames@sunlightfoundation.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/rest-sinatra.rb",
27
+ "rest-sinatra.gemspec",
28
+ "spec/spec_helper.rb",
29
+ "spec/unit/helpers/comments.rb",
30
+ "spec/unit/helpers/posts.rb",
31
+ "spec/unit/helpers/sinatra_stubs.rb",
32
+ "spec/unit/helpers/sources.rb",
33
+ "spec/unit/posts_and_comments_spec.rb",
34
+ "spec/unit/sources_spec.rb"
35
+ ]
36
+ s.homepage = %q{http://github.com/djsun/rest-sinatra}
37
+ s.rdoc_options = ["--charset=UTF-8"]
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = %q{1.3.5}
40
+ s.summary = %q{Easily write RESTful actions with Sinatra and MongoMapper}
41
+ s.test_files = [
42
+ "spec/spec_helper.rb",
43
+ "spec/unit/helpers/comments.rb",
44
+ "spec/unit/helpers/posts.rb",
45
+ "spec/unit/helpers/sinatra_stubs.rb",
46
+ "spec/unit/helpers/sources.rb",
47
+ "spec/unit/posts_and_comments_spec.rb",
48
+ "spec/unit/sources_spec.rb"
49
+ ]
50
+
51
+ if s.respond_to? :specification_version then
52
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
+ s.specification_version = 3
54
+
55
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
56
+ s.add_development_dependency(%q<rspec>, [">= 0"])
57
+ else
58
+ s.add_dependency(%q<rspec>, [">= 0"])
59
+ end
60
+ else
61
+ s.add_dependency(%q<rspec>, [">= 0"])
62
+ end
63
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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: 2009-10-02 00:00:00 -04:00
12
+ date: 2009-10-04 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency