dm-rest-adapter 0.10.2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +35 -0
- data/Gemfile +84 -0
- data/Rakefile +6 -6
- data/VERSION +1 -1
- data/dm-rest-adapter.gemspec +35 -24
- data/lib/{rest_adapter.rb → dm-rest-adapter.rb} +6 -4
- data/lib/{rest_adapter → dm-rest-adapter}/adapter.rb +1 -1
- data/lib/{rest_adapter → dm-rest-adapter}/connection.rb +10 -2
- data/lib/{rest_adapter → dm-rest-adapter}/exceptions.rb +0 -0
- data/lib/{rest_adapter → dm-rest-adapter}/formats.rb +0 -0
- data/lib/dm-rest-adapter/spec/setup.rb +15 -0
- data/spec/rcov.opts +1 -1
- data/spec/spec_helper.rb +1 -3
- data/tasks/local_gemfile.rake +18 -0
- metadata +98 -43
data/.gitignore
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## Rubinius
|
17
|
+
*.rbc
|
18
|
+
|
19
|
+
## PROJECT::GENERAL
|
20
|
+
*.gem
|
21
|
+
coverage
|
22
|
+
rdoc
|
23
|
+
pkg
|
24
|
+
tmp
|
25
|
+
doc
|
26
|
+
log
|
27
|
+
.yardoc
|
28
|
+
measurements
|
29
|
+
|
30
|
+
## BUNDLER
|
31
|
+
.bundle
|
32
|
+
Gemfile.local
|
33
|
+
Gemfile.lock
|
34
|
+
|
35
|
+
## PROJECT::SPECIFIC
|
data/Gemfile
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# If you're working on more than one datamapper gem at a time, then it's
|
2
|
+
# recommended to create a local Gemfile and use this instead of the git
|
3
|
+
# sources. This will make sure that you are developing against your
|
4
|
+
# other local datamapper sources that you currently work on. Gemfile.local
|
5
|
+
# will behave identically to the standard Gemfile apart from the fact that
|
6
|
+
# it fetches the gems from local paths. This means that you can use the
|
7
|
+
# same environment variables, like ADAPTER when running bundle commands.
|
8
|
+
# Gemfile.local is added to .gitignore, so you don't need to worry about
|
9
|
+
# accidentally checking local development paths into git.
|
10
|
+
#
|
11
|
+
# bundle exec rake local_gemfile
|
12
|
+
#
|
13
|
+
# will give you a Gemfile.local file that points to your local clones of
|
14
|
+
# the various datamapper gems. It's assumed that all datamapper repo clones
|
15
|
+
# reside in the same directory. You can use the Gemfile.local like so for
|
16
|
+
# running any bundle command:
|
17
|
+
#
|
18
|
+
# BUNDLE_GEMFILE=Gemfile.local bundle foo
|
19
|
+
#
|
20
|
+
# To speed up running bundle tasks, it's recommended to run
|
21
|
+
#
|
22
|
+
# bundle lock
|
23
|
+
#
|
24
|
+
# after running 'bundle install' for the first time. This will make 'bundle exec' run
|
25
|
+
# a lot faster compared to the unlocked version. With an unlocked bundle you would
|
26
|
+
# typically just run 'bundle install' from time to time to fetch the latest sources from
|
27
|
+
# upstream. When you locked your bundle, you need to run
|
28
|
+
#
|
29
|
+
# bundle install --relock
|
30
|
+
#
|
31
|
+
# to make sure to fetch the latest updates and then lock the bundle again. Gemfile.lock
|
32
|
+
# is added to the .gitignore file, so you don't need to worry about accidentally checking
|
33
|
+
# it into version control.
|
34
|
+
|
35
|
+
source 'http://rubygems.org'
|
36
|
+
|
37
|
+
DATAMAPPER = 'git://github.com/datamapper'
|
38
|
+
DM_VERSION = '~> 1.0.0.rc3'
|
39
|
+
|
40
|
+
group :runtime do # Runtime dependencies (as in the gemspec)
|
41
|
+
|
42
|
+
gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
|
43
|
+
gem 'dm-serializer', DM_VERSION, :git => "#{DATAMAPPER}/dm-serializer.git"
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
group(:development) do # Development dependencies (as in the gemspec)
|
48
|
+
|
49
|
+
gem 'dm-validations', DM_VERSION, :git => "#{DATAMAPPER}/dm-validations.git"
|
50
|
+
|
51
|
+
gem 'fakeweb', '~> 1.2.8'
|
52
|
+
gem 'rake', '~> 0.8.7'
|
53
|
+
gem 'rspec', '~> 1.3'
|
54
|
+
gem 'jeweler', '~> 1.4'
|
55
|
+
|
56
|
+
end
|
57
|
+
|
58
|
+
group :datamapper do # We need this because we want to pin these dependencies to their git master sources
|
59
|
+
|
60
|
+
if ENV['EXTLIB']
|
61
|
+
gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git", :require => nil
|
62
|
+
else
|
63
|
+
gem 'activesupport', '~> 3.0.0.beta3', :git => 'git://github.com/rails/rails.git', :require => nil
|
64
|
+
end
|
65
|
+
|
66
|
+
plugins = ENV['PLUGINS'] || ENV['PLUGIN']
|
67
|
+
plugins = plugins.to_s.tr(',', ' ').split(' ').uniq
|
68
|
+
|
69
|
+
plugins.each do |plugin|
|
70
|
+
gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
group :quality do # These gems contain rake tasks that check the quality of the source code
|
76
|
+
|
77
|
+
gem 'metric_fu', '~> 1.3'
|
78
|
+
gem 'rcov', '~> 0.9.7'
|
79
|
+
gem 'reek', '~> 1.2.7'
|
80
|
+
gem 'roodi', '~> 2.1'
|
81
|
+
gem 'yard', '~> 0.5'
|
82
|
+
gem 'yardstick', '~> 0.1'
|
83
|
+
|
84
|
+
end
|
data/Rakefile
CHANGED
@@ -10,17 +10,17 @@ begin
|
|
10
10
|
gem.summary = 'REST Adapter for DataMapper'
|
11
11
|
gem.description = gem.summary
|
12
12
|
gem.email = 'scott.burton [a] joyent [d] com'
|
13
|
-
gem.homepage = 'http://github.com/datamapper
|
13
|
+
gem.homepage = 'http://github.com/datamapper/%s' % gem.name
|
14
14
|
gem.authors = [ 'Scott Burton @ Joyent Inc' ]
|
15
15
|
|
16
16
|
gem.rubyforge_project = 'datamapper'
|
17
17
|
|
18
|
-
gem.add_dependency 'dm-core', '~> 0.
|
19
|
-
gem.add_dependency 'dm-serializer', '~> 0.
|
18
|
+
gem.add_dependency 'dm-core', '~> 1.0.0.rc3'
|
19
|
+
gem.add_dependency 'dm-serializer', '~> 1.0.0.rc3'
|
20
20
|
|
21
|
-
gem.add_development_dependency '
|
22
|
-
gem.add_development_dependency '
|
23
|
-
gem.add_development_dependency '
|
21
|
+
gem.add_development_dependency 'rspec', '~> 1.3'
|
22
|
+
gem.add_development_dependency 'dm-validations', '~> 1.0.0.rc3'
|
23
|
+
gem.add_development_dependency 'fakeweb', '~> 1.2.7'
|
24
24
|
end
|
25
25
|
|
26
26
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0.rc3
|
data/dm-rest-adapter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-rest-adapter}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "1.0.0.rc3"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Scott Burton @ Joyent Inc"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-05-27}
|
13
13
|
s.description = %q{REST Adapter for DataMapper}
|
14
14
|
s.email = %q{scott.burton [a] joyent [d] com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -17,16 +17,19 @@ Gem::Specification.new do |s|
|
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
20
|
+
".gitignore",
|
21
|
+
"Gemfile",
|
22
|
+
"LICENSE",
|
21
23
|
"README.rdoc",
|
22
24
|
"Rakefile",
|
23
25
|
"VERSION",
|
24
26
|
"dm-rest-adapter.gemspec",
|
25
|
-
"lib/
|
26
|
-
"lib/
|
27
|
-
"lib/
|
28
|
-
"lib/
|
29
|
-
"lib/
|
27
|
+
"lib/dm-rest-adapter.rb",
|
28
|
+
"lib/dm-rest-adapter/adapter.rb",
|
29
|
+
"lib/dm-rest-adapter/connection.rb",
|
30
|
+
"lib/dm-rest-adapter/exceptions.rb",
|
31
|
+
"lib/dm-rest-adapter/formats.rb",
|
32
|
+
"lib/dm-rest-adapter/spec/setup.rb",
|
30
33
|
"spec/fixtures/book.rb",
|
31
34
|
"spec/fixtures/difficult_book.rb",
|
32
35
|
"spec/rcov.opts",
|
@@ -35,41 +38,49 @@ Gem::Specification.new do |s|
|
|
35
38
|
"spec/spec.opts",
|
36
39
|
"spec/spec_helper.rb",
|
37
40
|
"tasks/ci.rake",
|
41
|
+
"tasks/local_gemfile.rake",
|
38
42
|
"tasks/metrics.rake",
|
39
43
|
"tasks/spec.rake",
|
40
44
|
"tasks/yard.rake",
|
41
45
|
"tasks/yardstick.rake"
|
42
46
|
]
|
43
|
-
s.homepage = %q{http://github.com/datamapper/dm-
|
47
|
+
s.homepage = %q{http://github.com/datamapper/dm-rest-adapter}
|
44
48
|
s.rdoc_options = ["--charset=UTF-8"]
|
45
49
|
s.require_paths = ["lib"]
|
46
50
|
s.rubyforge_project = %q{datamapper}
|
47
|
-
s.rubygems_version = %q{1.3.
|
51
|
+
s.rubygems_version = %q{1.3.7}
|
48
52
|
s.summary = %q{REST Adapter for DataMapper}
|
53
|
+
s.test_files = [
|
54
|
+
"spec/fixtures/book.rb",
|
55
|
+
"spec/fixtures/difficult_book.rb",
|
56
|
+
"spec/semipublic/connection_spec.rb",
|
57
|
+
"spec/semipublic/rest_adapter_spec.rb",
|
58
|
+
"spec/spec_helper.rb"
|
59
|
+
]
|
49
60
|
|
50
61
|
if s.respond_to? :specification_version then
|
51
62
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
52
63
|
s.specification_version = 3
|
53
64
|
|
54
|
-
if Gem::Version.new(Gem::
|
55
|
-
s.add_runtime_dependency(%q<dm-core>, ["~> 0.
|
56
|
-
s.add_runtime_dependency(%q<dm-serializer>, ["~> 0.
|
65
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
66
|
+
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
|
67
|
+
s.add_runtime_dependency(%q<dm-serializer>, ["~> 1.0.0.rc3"])
|
68
|
+
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
|
69
|
+
s.add_development_dependency(%q<dm-validations>, ["~> 1.0.0.rc3"])
|
57
70
|
s.add_development_dependency(%q<fakeweb>, ["~> 1.2.7"])
|
58
|
-
s.add_development_dependency(%q<rspec>, ["~> 1.2.9"])
|
59
|
-
s.add_development_dependency(%q<yard>, ["~> 0.4.0"])
|
60
71
|
else
|
61
|
-
s.add_dependency(%q<dm-core>, ["~> 0.
|
62
|
-
s.add_dependency(%q<dm-serializer>, ["~> 0.
|
72
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
|
73
|
+
s.add_dependency(%q<dm-serializer>, ["~> 1.0.0.rc3"])
|
74
|
+
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
75
|
+
s.add_dependency(%q<dm-validations>, ["~> 1.0.0.rc3"])
|
63
76
|
s.add_dependency(%q<fakeweb>, ["~> 1.2.7"])
|
64
|
-
s.add_dependency(%q<rspec>, ["~> 1.2.9"])
|
65
|
-
s.add_dependency(%q<yard>, ["~> 0.4.0"])
|
66
77
|
end
|
67
78
|
else
|
68
|
-
s.add_dependency(%q<dm-core>, ["~> 0.
|
69
|
-
s.add_dependency(%q<dm-serializer>, ["~> 0.
|
79
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
|
80
|
+
s.add_dependency(%q<dm-serializer>, ["~> 1.0.0.rc3"])
|
81
|
+
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
82
|
+
s.add_dependency(%q<dm-validations>, ["~> 1.0.0.rc3"])
|
70
83
|
s.add_dependency(%q<fakeweb>, ["~> 1.2.7"])
|
71
|
-
s.add_dependency(%q<rspec>, ["~> 1.2.9"])
|
72
|
-
s.add_dependency(%q<yard>, ["~> 0.4.0"])
|
73
84
|
end
|
74
85
|
end
|
75
86
|
|
@@ -2,11 +2,13 @@ require 'rexml/document'
|
|
2
2
|
|
3
3
|
require 'cgi' # for CGI.escape
|
4
4
|
require 'addressable/uri'
|
5
|
+
|
6
|
+
require 'dm-core'
|
5
7
|
require 'dm-serializer'
|
6
8
|
|
7
|
-
require '
|
8
|
-
require '
|
9
|
-
require '
|
10
|
-
require '
|
9
|
+
require 'dm-rest-adapter/adapter'
|
10
|
+
require 'dm-rest-adapter/connection'
|
11
|
+
require 'dm-rest-adapter/formats'
|
12
|
+
require 'dm-rest-adapter/exceptions'
|
11
13
|
|
12
14
|
DataMapper::Adapters::RestAdapter = DataMapperRest::Adapter
|
@@ -1,10 +1,18 @@
|
|
1
1
|
require 'net/http'
|
2
2
|
|
3
|
+
begin
|
4
|
+
require 'active_support/inflector'
|
5
|
+
rescue LoadError
|
6
|
+
require 'extlib/inflection'
|
7
|
+
module ActiveSupport
|
8
|
+
Inflector = Extlib::Inflection unless defined?(Inflector)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
3
12
|
module DataMapperRest
|
4
13
|
# Somewhat stolen from ActiveResource
|
5
14
|
# TODO: Support https?
|
6
15
|
class Connection
|
7
|
-
include Extlib
|
8
16
|
attr_accessor :uri, :format
|
9
17
|
|
10
18
|
def initialize(uri, format)
|
@@ -32,7 +40,7 @@ module DataMapperRest
|
|
32
40
|
|
33
41
|
def run_verb(verb, data = nil)
|
34
42
|
request do |http|
|
35
|
-
klass = Net::HTTP.find_const(
|
43
|
+
klass = Net::HTTP.find_const(ActiveSupport::Inflector.camelize(verb))
|
36
44
|
request = klass.new(@uri.to_s, @format.header)
|
37
45
|
request.basic_auth(@uri.user, @uri.password) if @uri.user && @uri.password
|
38
46
|
result = http.request(request, data)
|
File without changes
|
File without changes
|
data/spec/rcov.opts
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -5,7 +5,6 @@ require 'fakeweb'
|
|
5
5
|
# use local dm-core if running from a typical dev checkout.
|
6
6
|
lib = File.join('..', '..', '..', 'dm-core', 'lib')
|
7
7
|
$LOAD_PATH.unshift(lib) if File.directory?(lib)
|
8
|
-
require 'dm-core'
|
9
8
|
|
10
9
|
# use local dm-validations if running from a typical dev checkout.
|
11
10
|
lib = File.join('..', '..', 'dm-validations', 'lib')
|
@@ -15,12 +14,11 @@ require 'dm-validations'
|
|
15
14
|
# use local dm-serializer if running from a typical dev checkout.
|
16
15
|
lib = File.join('..', '..', 'dm-serializer', 'lib')
|
17
16
|
$LOAD_PATH.unshift(lib) if File.directory?(lib)
|
18
|
-
require 'dm-serializer'
|
19
17
|
|
20
18
|
# Support running specs with 'rake spec' and 'spec'
|
21
19
|
$LOAD_PATH.unshift('lib') unless $LOAD_PATH.include?('lib')
|
22
20
|
|
23
|
-
require '
|
21
|
+
require 'dm-rest-adapter'
|
24
22
|
|
25
23
|
ROOT = Pathname(__FILE__).dirname.parent
|
26
24
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
desc "Support bundling from local source code (allows BUNDLE_GEMFILE=Gemfile.local bundle foo)"
|
2
|
+
task :local_gemfile do |t|
|
3
|
+
|
4
|
+
root = Pathname(__FILE__).dirname.parent
|
5
|
+
datamapper = root.parent
|
6
|
+
|
7
|
+
source_regex = /DATAMAPPER = 'git:\/\/github.com\/datamapper'/
|
8
|
+
gem_source_regex = /:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/
|
9
|
+
|
10
|
+
root.join('Gemfile.local').open('w') do |f|
|
11
|
+
root.join('Gemfile').open.each do |line|
|
12
|
+
line.sub!(source_regex, "DATAMAPPER = '#{datamapper}'")
|
13
|
+
line.sub!(gem_source_regex, ':path => "#{DATAMAPPER}/\1"')
|
14
|
+
f.puts line
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-rest-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 977940572
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- rc3
|
11
|
+
version: 1.0.0.rc3
|
5
12
|
platform: ruby
|
6
13
|
authors:
|
7
14
|
- Scott Burton @ Joyent Inc
|
@@ -9,59 +16,91 @@ autorequire:
|
|
9
16
|
bindir: bin
|
10
17
|
cert_chain: []
|
11
18
|
|
12
|
-
date:
|
19
|
+
date: 2010-05-27 00:00:00 -07:00
|
13
20
|
default_executable:
|
14
21
|
dependencies:
|
15
22
|
- !ruby/object:Gem::Dependency
|
16
23
|
name: dm-core
|
17
|
-
|
18
|
-
|
19
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
20
27
|
requirements:
|
21
28
|
- - ~>
|
22
29
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
30
|
+
hash: 977940572
|
31
|
+
segments:
|
32
|
+
- 1
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
- rc3
|
36
|
+
version: 1.0.0.rc3
|
37
|
+
type: :runtime
|
38
|
+
version_requirements: *id001
|
25
39
|
- !ruby/object:Gem::Dependency
|
26
40
|
name: dm-serializer
|
27
|
-
|
28
|
-
|
29
|
-
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
30
44
|
requirements:
|
31
45
|
- - ~>
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
47
|
+
hash: 977940572
|
48
|
+
segments:
|
49
|
+
- 1
|
50
|
+
- 0
|
51
|
+
- 0
|
52
|
+
- rc3
|
53
|
+
version: 1.0.0.rc3
|
54
|
+
type: :runtime
|
55
|
+
version_requirements: *id002
|
35
56
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
-
|
38
|
-
|
39
|
-
|
57
|
+
name: rspec
|
58
|
+
prerelease: false
|
59
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
40
61
|
requirements:
|
41
62
|
- - ~>
|
42
63
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
-
|
46
|
-
|
64
|
+
hash: 9
|
65
|
+
segments:
|
66
|
+
- 1
|
67
|
+
- 3
|
68
|
+
version: "1.3"
|
47
69
|
type: :development
|
48
|
-
|
49
|
-
|
70
|
+
version_requirements: *id003
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: dm-validations
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
50
76
|
requirements:
|
51
77
|
- - ~>
|
52
78
|
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
-
|
56
|
-
|
79
|
+
hash: 977940572
|
80
|
+
segments:
|
81
|
+
- 1
|
82
|
+
- 0
|
83
|
+
- 0
|
84
|
+
- rc3
|
85
|
+
version: 1.0.0.rc3
|
57
86
|
type: :development
|
58
|
-
|
59
|
-
|
87
|
+
version_requirements: *id004
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: fakeweb
|
90
|
+
prerelease: false
|
91
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
60
93
|
requirements:
|
61
94
|
- - ~>
|
62
95
|
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
96
|
+
hash: 17
|
97
|
+
segments:
|
98
|
+
- 1
|
99
|
+
- 2
|
100
|
+
- 7
|
101
|
+
version: 1.2.7
|
102
|
+
type: :development
|
103
|
+
version_requirements: *id005
|
65
104
|
description: REST Adapter for DataMapper
|
66
105
|
email: scott.burton [a] joyent [d] com
|
67
106
|
executables: []
|
@@ -72,16 +111,19 @@ extra_rdoc_files:
|
|
72
111
|
- LICENSE
|
73
112
|
- README.rdoc
|
74
113
|
files:
|
114
|
+
- .gitignore
|
115
|
+
- Gemfile
|
75
116
|
- LICENSE
|
76
117
|
- README.rdoc
|
77
118
|
- Rakefile
|
78
119
|
- VERSION
|
79
120
|
- dm-rest-adapter.gemspec
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
121
|
+
- lib/dm-rest-adapter.rb
|
122
|
+
- lib/dm-rest-adapter/adapter.rb
|
123
|
+
- lib/dm-rest-adapter/connection.rb
|
124
|
+
- lib/dm-rest-adapter/exceptions.rb
|
125
|
+
- lib/dm-rest-adapter/formats.rb
|
126
|
+
- lib/dm-rest-adapter/spec/setup.rb
|
85
127
|
- spec/fixtures/book.rb
|
86
128
|
- spec/fixtures/difficult_book.rb
|
87
129
|
- spec/rcov.opts
|
@@ -90,12 +132,13 @@ files:
|
|
90
132
|
- spec/spec.opts
|
91
133
|
- spec/spec_helper.rb
|
92
134
|
- tasks/ci.rake
|
135
|
+
- tasks/local_gemfile.rake
|
93
136
|
- tasks/metrics.rake
|
94
137
|
- tasks/spec.rake
|
95
138
|
- tasks/yard.rake
|
96
139
|
- tasks/yardstick.rake
|
97
140
|
has_rdoc: true
|
98
|
-
homepage: http://github.com/datamapper/dm-
|
141
|
+
homepage: http://github.com/datamapper/dm-rest-adapter
|
99
142
|
licenses: []
|
100
143
|
|
101
144
|
post_install_message:
|
@@ -104,23 +147,35 @@ rdoc_options:
|
|
104
147
|
require_paths:
|
105
148
|
- lib
|
106
149
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
107
151
|
requirements:
|
108
152
|
- - ">="
|
109
153
|
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
110
157
|
version: "0"
|
111
|
-
version:
|
112
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
none: false
|
113
160
|
requirements:
|
114
|
-
- - "
|
161
|
+
- - ">"
|
115
162
|
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
|
163
|
+
hash: 25
|
164
|
+
segments:
|
165
|
+
- 1
|
166
|
+
- 3
|
167
|
+
- 1
|
168
|
+
version: 1.3.1
|
118
169
|
requirements: []
|
119
170
|
|
120
171
|
rubyforge_project: datamapper
|
121
|
-
rubygems_version: 1.3.
|
172
|
+
rubygems_version: 1.3.7
|
122
173
|
signing_key:
|
123
174
|
specification_version: 3
|
124
175
|
summary: REST Adapter for DataMapper
|
125
|
-
test_files:
|
126
|
-
|
176
|
+
test_files:
|
177
|
+
- spec/fixtures/book.rb
|
178
|
+
- spec/fixtures/difficult_book.rb
|
179
|
+
- spec/semipublic/connection_spec.rb
|
180
|
+
- spec/semipublic/rest_adapter_spec.rb
|
181
|
+
- spec/spec_helper.rb
|