dm-rest-adapter 1.0.2 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,84 +1,51 @@
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.
1
+ require 'pathname'
34
2
 
35
3
  source 'http://rubygems.org'
36
4
 
37
- DATAMAPPER = 'git://github.com/datamapper'
38
- DM_VERSION = '~> 1.0.2'
5
+ SOURCE = ENV.fetch('SOURCE', :git).to_sym
6
+ REPO_POSTFIX = SOURCE == :path ? '' : '.git'
7
+ DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
8
+ DM_VERSION = '~> 1.1.0.rc1'
39
9
 
40
- group :runtime do # Runtime dependencies (as in the gemspec)
10
+ group :runtime do
41
11
 
42
- gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
43
- gem 'dm-serializer', DM_VERSION, :git => "#{DATAMAPPER}/dm-serializer.git"
12
+ gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
13
+ gem 'dm-serializer', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-serializer#{REPO_POSTFIX}"
44
14
 
45
15
  end
46
16
 
47
- group(:development) do # Development dependencies (as in the gemspec)
17
+ group :development do
48
18
 
49
- gem 'dm-validations', DM_VERSION, :git => "#{DATAMAPPER}/dm-validations.git"
19
+ gem 'dm-validations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}"
20
+ gem 'fakeweb', '~> 1.3'
21
+ gem 'jeweler', '~> 1.5.2'
22
+ gem 'rake', '~> 0.8.7'
23
+ gem 'rspec', '~> 1.3.1'
50
24
 
51
- gem 'fakeweb', '~> 1.2.8'
52
- gem 'rake', '~> 0.8.7'
53
- gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
54
- gem 'jeweler', '~> 1.4'
25
+ end
26
+
27
+ group :quality do
28
+
29
+ gem 'rcov', '~> 0.9.9', :platforms => :mri_18
30
+ gem 'yard', '~> 0.6'
31
+ gem 'yardstick', '~> 0.2'
55
32
 
56
33
  end
57
34
 
58
- group :datamapper do # We need this because we want to pin these dependencies to their git master sources
35
+ group :datamapper do
59
36
 
60
37
  if ENV['EXTLIB']
61
- gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git", :require => nil
38
+ gem 'extlib', '~> 0.9.15', SOURCE => "#{DATAMAPPER}/extlib#{REPO_POSTFIX}", :require => nil
62
39
  else
63
- gem 'activesupport', '~> 3.0.0', :git => 'git://github.com/rails/rails.git', :branch => '3-0-stable', :require => nil
40
+ gem 'i18n', '~> 0.5.0'
41
+ gem 'activesupport', '~> 3.0.4', :require => nil
64
42
  end
65
43
 
66
44
  plugins = ENV['PLUGINS'] || ENV['PLUGIN']
67
45
  plugins = plugins.to_s.tr(',', ' ').split.uniq
68
46
 
69
47
  plugins.each do |plugin|
70
- gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
48
+ gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
71
49
  end
72
50
 
73
51
  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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Potomac Ruby Hackers
1
+ Copyright (c) 2011 Potomac Ruby Hackers
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -4,38 +4,53 @@ A DataMapper adapter for REST Web Services
4
4
 
5
5
  == Usage
6
6
 
7
- DM Rest Adapter requires the use of a model which is the same name as the resource you are using. For example, if you have a resource named "posts" you will create a standard datamapper object called post.rb in app/models. The only difference in this model is you will need to define the rest adapter for the model. The following is an example of a post model, where the host settings point to the app you are running the resource on. In addition I have included a basic auth login which will be used if your resource requires auth:
7
+ DM Rest Adapter requires the use of a model which is the same name
8
+ as the resource you are using. For example, if you have a resource
9
+ named "posts" you will create a standard datamapper object called
10
+ post.rb in app/models. The only difference in this model is you will
11
+ need to define the rest adapter for the model.
8
12
 
9
- DataMapper.setup(:default, {
10
- :adapter => 'rest',
11
- :format => 'xml',
12
- :host => 'localhost',
13
- :port => 4000,
14
- :login => 'user',
15
- :password => 'verys3crit'
16
- })
13
+ The following is an example of a post model, where the host settings
14
+ point to the app you are running the resource on. In addition I have
15
+ included a basic auth login which will be used if your resource
16
+ requires auth:
17
17
 
18
- class Post
18
+ DataMapper.setup(:default, {
19
+ :adapter => 'rest',
20
+ :format => 'xml',
21
+ :host => 'localhost',
22
+ :port => 4000,
23
+ :login => 'user',
24
+ :password => 'verys3crit'
25
+ })
19
26
 
20
- include DataMapper::Resource
27
+ class Post
21
28
 
22
- property :id, Serial
23
- property :title, String
24
- property :body, Text
29
+ include DataMapper::Resource
25
30
 
26
- end
31
+ property :id, Serial
32
+ property :title, String
33
+ property :body, Text
27
34
 
35
+ end
28
36
 
29
- If you notice this looks exactly like a normal datmapper model. Every property you define will map itself with the xml returned or posted from/to the resource.
37
+
38
+ If you notice this looks exactly like a normal datmapper model.
39
+ Every property you define will map itself with the xml returned
40
+ or posted from/to the resource.
30
41
 
31
42
  == Code
32
43
 
33
- Now for some code examples. DM Rest Adapter uses the same methods as datamapper including during creation.
44
+ Now for some code examples. DM Rest Adapter uses the same
45
+ methods as datamapper including during creation.
34
46
 
35
- Post.first => returns the object from the resouce
36
- Post.get(1) => returns the object from the resource
37
- p = Post.new(:title => "My awesome blog post", :body => "I really have nothing to say...")
38
- p.save => saves the resource on the remote
47
+ Post.first
48
+ # => returns the object from the resouce
49
+ Post.get(1)
50
+ # => returns the object from the resource
51
+ p = Post.new(:title => "My awesome blog post", :body => "I really have nothing to say...")
52
+ p.save
53
+ # => saves the resource on the remote
39
54
 
40
55
  == Caveat
41
56
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'jeweler', '~> 1.4'
5
+ gem 'jeweler', '~> 1.5.2'
6
6
  require 'jeweler'
7
7
 
8
8
  Jeweler::Tasks.new do |gem|
@@ -15,18 +15,11 @@ begin
15
15
  gem.has_rdoc = 'yard'
16
16
 
17
17
  gem.rubyforge_project = 'datamapper'
18
-
19
- gem.add_dependency 'dm-core', '~> 1.0.2'
20
- gem.add_dependency 'dm-serializer', '~> 1.0.2'
21
-
22
- gem.add_development_dependency 'rspec', '~> 1.3'
23
- gem.add_development_dependency 'dm-validations', '~> 1.0.2'
24
- gem.add_development_dependency 'fakeweb', '~> 1.3'
25
18
  end
26
19
 
27
20
  Jeweler::GemcutterTasks.new
28
21
 
29
22
  FileList['tasks/**/*.rake'].each { |task| import task }
30
23
  rescue LoadError
31
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
24
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.5.2'
32
25
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0.rc1
@@ -1,87 +1,86 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-rest-adapter}
8
- s.version = "1.0.2"
8
+ s.version = "1.1.0.rc1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
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{2010-09-07}
12
+ s.date = %q{2011-02-28}
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 = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
- ".gitignore",
21
- "Gemfile",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "dm-rest-adapter.gemspec",
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",
33
- "spec/fixtures/book.rb",
34
- "spec/fixtures/difficult_book.rb",
35
- "spec/rcov.opts",
36
- "spec/semipublic/connection_spec.rb",
37
- "spec/semipublic/rest_adapter_spec.rb",
38
- "spec/spec.opts",
39
- "spec/spec_helper.rb",
40
- "tasks/ci.rake",
41
- "tasks/local_gemfile.rake",
42
- "tasks/metrics.rake",
43
- "tasks/spec.rake",
44
- "tasks/yard.rake",
45
- "tasks/yardstick.rake"
20
+ "Gemfile",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "dm-rest-adapter.gemspec",
26
+ "lib/dm-rest-adapter.rb",
27
+ "lib/dm-rest-adapter/adapter.rb",
28
+ "lib/dm-rest-adapter/connection.rb",
29
+ "lib/dm-rest-adapter/exceptions.rb",
30
+ "lib/dm-rest-adapter/formats.rb",
31
+ "lib/dm-rest-adapter/spec/setup.rb",
32
+ "spec/fixtures/book.rb",
33
+ "spec/fixtures/difficult_book.rb",
34
+ "spec/rcov.opts",
35
+ "spec/semipublic/connection_spec.rb",
36
+ "spec/semipublic/rest_adapter_spec.rb",
37
+ "spec/spec.opts",
38
+ "spec/spec_helper.rb",
39
+ "tasks/spec.rake",
40
+ "tasks/yard.rake",
41
+ "tasks/yardstick.rake"
46
42
  ]
47
- s.has_rdoc = %q{yard}
48
43
  s.homepage = %q{http://github.com/datamapper/dm-rest-adapter}
49
- s.rdoc_options = ["--charset=UTF-8"]
50
44
  s.require_paths = ["lib"]
51
45
  s.rubyforge_project = %q{datamapper}
52
- s.rubygems_version = %q{1.3.7}
46
+ s.rubygems_version = %q{1.5.2}
53
47
  s.summary = %q{REST Adapter for DataMapper}
54
48
  s.test_files = [
55
49
  "spec/fixtures/book.rb",
56
- "spec/fixtures/difficult_book.rb",
57
- "spec/semipublic/connection_spec.rb",
58
- "spec/semipublic/rest_adapter_spec.rb",
59
- "spec/spec_helper.rb"
50
+ "spec/fixtures/difficult_book.rb",
51
+ "spec/semipublic/connection_spec.rb",
52
+ "spec/semipublic/rest_adapter_spec.rb",
53
+ "spec/spec_helper.rb"
60
54
  ]
61
55
 
62
56
  if s.respond_to? :specification_version then
63
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
64
57
  s.specification_version = 3
65
58
 
66
59
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
67
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.2"])
68
- s.add_runtime_dependency(%q<dm-serializer>, ["~> 1.0.2"])
69
- s.add_development_dependency(%q<rspec>, ["~> 1.3"])
70
- s.add_development_dependency(%q<dm-validations>, ["~> 1.0.2"])
60
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
61
+ s.add_runtime_dependency(%q<dm-serializer>, ["~> 1.1.0.rc1"])
62
+ s.add_development_dependency(%q<dm-validations>, ["~> 1.1.0.rc1"])
71
63
  s.add_development_dependency(%q<fakeweb>, ["~> 1.3"])
64
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
65
+ s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
66
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
72
67
  else
73
- s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
74
- s.add_dependency(%q<dm-serializer>, ["~> 1.0.2"])
75
- s.add_dependency(%q<rspec>, ["~> 1.3"])
76
- s.add_dependency(%q<dm-validations>, ["~> 1.0.2"])
68
+ s.add_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
69
+ s.add_dependency(%q<dm-serializer>, ["~> 1.1.0.rc1"])
70
+ s.add_dependency(%q<dm-validations>, ["~> 1.1.0.rc1"])
77
71
  s.add_dependency(%q<fakeweb>, ["~> 1.3"])
72
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
73
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
74
+ s.add_dependency(%q<rspec>, ["~> 1.3.1"])
78
75
  end
79
76
  else
80
- s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
81
- s.add_dependency(%q<dm-serializer>, ["~> 1.0.2"])
82
- s.add_dependency(%q<rspec>, ["~> 1.3"])
83
- s.add_dependency(%q<dm-validations>, ["~> 1.0.2"])
77
+ s.add_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
78
+ s.add_dependency(%q<dm-serializer>, ["~> 1.1.0.rc1"])
79
+ s.add_dependency(%q<dm-validations>, ["~> 1.1.0.rc1"])
84
80
  s.add_dependency(%q<fakeweb>, ["~> 1.3"])
81
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
82
+ s.add_dependency(%q<rake>, ["~> 0.8.7"])
83
+ s.add_dependency(%q<rspec>, ["~> 1.3.1"])
85
84
  end
86
85
  end
87
86
 
@@ -35,7 +35,4 @@ rescue LoadError
35
35
  end
36
36
  end
37
37
 
38
- task :spec => :check_dependencies
39
- task :rcov => :check_dependencies
40
-
41
38
  task :default => :spec
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-rest-adapter
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 2
9
- version: 1.0.2
4
+ prerelease: 6
5
+ version: 1.1.0.rc1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Scott Burton @ Joyent Inc
@@ -14,82 +10,86 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-09-07 00:00:00 -07:00
13
+ date: 2011-02-28 00:00:00 -08:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
17
  name: dm-core
22
- prerelease: false
23
18
  requirement: &id001 !ruby/object:Gem::Requirement
24
19
  none: false
25
20
  requirements:
26
21
  - - ~>
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 0
31
- - 2
32
- version: 1.0.2
23
+ version: 1.1.0.rc1
33
24
  type: :runtime
25
+ prerelease: false
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
36
28
  name: dm-serializer
37
- prerelease: false
38
29
  requirement: &id002 !ruby/object:Gem::Requirement
39
30
  none: false
40
31
  requirements:
41
32
  - - ~>
42
33
  - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 0
46
- - 2
47
- version: 1.0.2
34
+ version: 1.1.0.rc1
48
35
  type: :runtime
36
+ prerelease: false
49
37
  version_requirements: *id002
50
38
  - !ruby/object:Gem::Dependency
51
- name: rspec
52
- prerelease: false
39
+ name: dm-validations
53
40
  requirement: &id003 !ruby/object:Gem::Requirement
54
41
  none: false
55
42
  requirements:
56
43
  - - ~>
57
44
  - !ruby/object:Gem::Version
58
- segments:
59
- - 1
60
- - 3
61
- version: "1.3"
45
+ version: 1.1.0.rc1
62
46
  type: :development
47
+ prerelease: false
63
48
  version_requirements: *id003
64
49
  - !ruby/object:Gem::Dependency
65
- name: dm-validations
66
- prerelease: false
50
+ name: fakeweb
67
51
  requirement: &id004 !ruby/object:Gem::Requirement
68
52
  none: false
69
53
  requirements:
70
54
  - - ~>
71
55
  - !ruby/object:Gem::Version
72
- segments:
73
- - 1
74
- - 0
75
- - 2
76
- version: 1.0.2
56
+ version: "1.3"
77
57
  type: :development
58
+ prerelease: false
78
59
  version_requirements: *id004
79
60
  - !ruby/object:Gem::Dependency
80
- name: fakeweb
81
- prerelease: false
61
+ name: jeweler
82
62
  requirement: &id005 !ruby/object:Gem::Requirement
83
63
  none: false
84
64
  requirements:
85
65
  - - ~>
86
66
  - !ruby/object:Gem::Version
87
- segments:
88
- - 1
89
- - 3
90
- version: "1.3"
67
+ version: 1.5.2
91
68
  type: :development
69
+ prerelease: false
92
70
  version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: rake
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 0.8.7
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec
84
+ requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: *id007
93
93
  description: REST Adapter for DataMapper
94
94
  email: scott.burton [a] joyent [d] com
95
95
  executables: []
@@ -100,7 +100,6 @@ extra_rdoc_files:
100
100
  - LICENSE
101
101
  - README.rdoc
102
102
  files:
103
- - .gitignore
104
103
  - Gemfile
105
104
  - LICENSE
106
105
  - README.rdoc
@@ -120,19 +119,16 @@ files:
120
119
  - spec/semipublic/rest_adapter_spec.rb
121
120
  - spec/spec.opts
122
121
  - spec/spec_helper.rb
123
- - tasks/ci.rake
124
- - tasks/local_gemfile.rake
125
- - tasks/metrics.rake
126
122
  - tasks/spec.rake
127
123
  - tasks/yard.rake
128
124
  - tasks/yardstick.rake
129
- has_rdoc: yard
125
+ has_rdoc: true
130
126
  homepage: http://github.com/datamapper/dm-rest-adapter
131
127
  licenses: []
132
128
 
133
129
  post_install_message:
134
- rdoc_options:
135
- - --charset=UTF-8
130
+ rdoc_options: []
131
+
136
132
  require_paths:
137
133
  - lib
138
134
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -140,21 +136,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
136
  requirements:
141
137
  - - ">="
142
138
  - !ruby/object:Gem::Version
143
- segments:
144
- - 0
145
139
  version: "0"
146
140
  required_rubygems_version: !ruby/object:Gem::Requirement
147
141
  none: false
148
142
  requirements:
149
- - - ">="
143
+ - - ">"
150
144
  - !ruby/object:Gem::Version
151
- segments:
152
- - 0
153
- version: "0"
145
+ version: 1.3.1
154
146
  requirements: []
155
147
 
156
148
  rubyforge_project: datamapper
157
- rubygems_version: 1.3.7
149
+ rubygems_version: 1.5.2
158
150
  signing_key:
159
151
  specification_version: 3
160
152
  summary: REST Adapter for DataMapper
data/.gitignore DELETED
@@ -1,36 +0,0 @@
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
- Gemfile.local.lock
35
-
36
- ## PROJECT::SPECIFIC
@@ -1 +0,0 @@
1
- task :ci => [ :verify_measurements, 'metrics:all' ]
@@ -1,16 +0,0 @@
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
- root.join('Gemfile.local').open('w') do |f|
8
- root.join('Gemfile').open.each do |line|
9
- line.sub!(/DATAMAPPER = 'git:\/\/github.com\/datamapper'/, "DATAMAPPER = '#{datamapper}'")
10
- line.sub!(/:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, ':path => "#{DATAMAPPER}/\1"')
11
- line.sub!(/do_options\[:git\] = \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, 'do_options[:path] = "#{DATAMAPPER}/\1"')
12
- f.puts line
13
- end
14
- end
15
-
16
- end
@@ -1,36 +0,0 @@
1
- begin
2
- require 'metric_fu'
3
- rescue LoadError
4
- namespace :metrics do
5
- task :all do
6
- abort 'metric_fu is not available. In order to run metrics:all, you must: gem install metric_fu'
7
- end
8
- end
9
- end
10
-
11
- begin
12
- require 'reek/adapters/rake_task'
13
-
14
- Reek::RakeTask.new do |t|
15
- t.fail_on_error = true
16
- t.verbose = false
17
- t.source_files = 'lib/**/*.rb'
18
- end
19
- rescue LoadError
20
- task :reek do
21
- abort 'Reek is not available. In order to run reek, you must: gem install reek'
22
- end
23
- end
24
-
25
- begin
26
- require 'roodi'
27
- require 'roodi_task'
28
-
29
- RoodiTask.new do |t|
30
- t.verbose = false
31
- end
32
- rescue LoadError
33
- task :roodi do
34
- abort 'Roodi is not available. In order to run roodi, you must: gem install roodi'
35
- end
36
- end