rails_datamapper 0.10.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,37 @@
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
37
+ spec/db/
data/Gemfile ADDED
@@ -0,0 +1,81 @@
1
+ source 'http://rubygems.org'
2
+
3
+ group :runtime do
4
+
5
+ # We bundle both AS and extlib while extlib compatibility needs to be kept around.
6
+ # require 'dm-core' will ensure that only one is activated at any time though.
7
+ # This is done by trying to require AS components and fallback to requiring
8
+ # extlib in case a LoadError was rescued when requiring AS code.
9
+ #
10
+ # Due to bundle exec activating all groups in the Gemfile, it's recommended to run
11
+ #
12
+ # bundle install --without quality
13
+ #
14
+ # to have a development environment that is able to run the specs. The problem is that
15
+ # metric_fu activates active_support=2.2.3 if we comment out the gem 'activesupport'
16
+ # declaration - have a look below for why we would want to do that (and a bit later, for
17
+ # why that's actually not *strictly* necessary, but recommended)
18
+ #
19
+ # To run the specs using AS, leave this Gemfile as it is and just run
20
+ #
21
+ # bundle install --without qality
22
+ # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
23
+ #
24
+ # To run the specs using extlib, comment out the: gem 'activesupport' line and run
25
+ #
26
+ # bundle install --without quality
27
+ # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
28
+ #
29
+ # If you want to run the quality tasks as provided by metric_fu and related gems,
30
+ # you have to run
31
+ #
32
+ # bundle install
33
+ # bundle exec rake metrics:all
34
+ #
35
+ # Switch back to a bundle without quality gems before trying to run the specs again
36
+ #
37
+ # bundle install --without quality
38
+ # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
39
+ #
40
+ # It was mentioned above that all this is not *strictly* necessary, and this is true.
41
+ # Currently dm-core does the following as the first require when checking for AS
42
+ #
43
+ # require 'active_support/core_ext/object/singleton_class'
44
+ #
45
+ # Because this method is not present in activesupport <= 3.0.0.beta, dm-core's feature
46
+ # detection will actually do the "right thing" and fall back to extlib. However, since
47
+ # this is not the case for all dm-more gems as well, the safest thing to do is to respect
48
+ # the more tedious workflow for now, as it will at least be guaranteed to work the same
49
+ # for both dm-core and dm-more.
50
+ #
51
+ # Note that this won't be an issue anymore once we dropped support for extlib completely,
52
+ # or bundler folks decide to support something like "bundle exec --without=foo rake spec"
53
+ # (which probably is not going to happen anytime soon).
54
+ #
55
+
56
+ if ENV['EXTLIB']
57
+ gem 'extlib', '~> 0.9.15', :git => 'git://github.com/datamapper/extlib.git'
58
+ end
59
+
60
+ gem 'rails', '~> 2.3.5'
61
+ gem 'dm-core', '~> 1.0.1', :git => 'git://github.com/datamapper/dm-core.git'
62
+ end
63
+
64
+ group :development do
65
+ gem 'rake', '~> 0.8.7'
66
+ gem 'rspec', '~> 1.3', :git => 'git://github.com/snusnu/rspec', :branch => 'heckle_fix_plus_gemfile'
67
+ gem 'yard', '~> 0.5'
68
+ gem 'rcov', '~> 0.9.7'
69
+ gem 'jeweler', '~> 1.4'
70
+ gem 'data_objects', '~> 0.10.2'
71
+ gem 'do_sqlite3', '~> 0.10.2'
72
+ gem 'do_mysql', '~> 0.10.2'
73
+ gem 'do_postgres', '~> 0.10.2'
74
+ end
75
+
76
+ group :quality do
77
+ gem 'yardstick', '~> 0.1'
78
+ gem 'metric_fu', '~> 1.3'
79
+ gem 'reek', '~> 1.2.7'
80
+ gem 'roodi', '~> 2.1'
81
+ end
data/Rakefile CHANGED
@@ -15,10 +15,11 @@ begin
15
15
 
16
16
  gem.rubyforge_project = 'datamapper'
17
17
 
18
- gem.add_dependency 'dm-core', '~> 0.10.2'
18
+ gem.add_dependency 'dm-core', '~> 1.0.1'
19
+ gem.add_dependency 'rails', '~> 2.3.5'
19
20
 
20
- gem.add_development_dependency 'rspec', '~> 1.2.9'
21
- gem.add_development_dependency 'yard', '~> 0.4.0'
21
+ gem.add_development_dependency 'rspec', '~> 1.3'
22
+ gem.add_development_dependency 'yard', '~> 0.6'
22
23
  end
23
24
 
24
25
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.2
1
+ 1.0.1
data/datamapper.rake CHANGED
@@ -44,7 +44,7 @@ namespace :db do
44
44
 
45
45
  namespace :migrate do
46
46
  task :load => :environment do
47
- gem 'dm-migrations', '0.10.2'
47
+ gem 'dm-migrations', '0.10.3'
48
48
  FileList['db/migrations/*.rb'].each do |migration|
49
49
  load migration
50
50
  end
@@ -18,7 +18,7 @@ namespace :db do
18
18
 
19
19
  namespace :migrate do
20
20
  task :load => :environment do
21
- gem 'dm-migrations', '0.10.2'
21
+ gem 'dm-migrations', '0.10.3'
22
22
  FileList['db/migrations/*.rb'].each do |migration|
23
23
  load migration
24
24
  end
@@ -18,7 +18,7 @@ module Rails
18
18
  private
19
19
 
20
20
  def config_file
21
- Rails.root / 'config' / 'database.yml'
21
+ File.expand_path('config/database.yml', Rails.root)
22
22
  end
23
23
 
24
24
  def full_config
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails_datamapper}
8
- s.version = "0.10.2"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Malone"]
12
- s.date = %q{2009-12-11}
12
+ s.date = %q{2010-09-07}
13
13
  s.description = %q{Rails Plugin for DataMapper}
14
14
  s.email = %q{tomjmalone [a] gmail [d] com}
15
15
  s.extra_rdoc_files = [
@@ -17,7 +17,9 @@ Gem::Specification.new do |s|
17
17
  "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
- "LICENSE",
20
+ ".gitignore",
21
+ "Gemfile",
22
+ "LICENSE",
21
23
  "README.rdoc",
22
24
  "Rakefile",
23
25
  "VERSION",
@@ -41,26 +43,29 @@ Gem::Specification.new do |s|
41
43
  s.rdoc_options = ["--charset=UTF-8"]
42
44
  s.require_paths = ["lib"]
43
45
  s.rubyforge_project = %q{datamapper}
44
- s.rubygems_version = %q{1.3.5}
46
+ s.rubygems_version = %q{1.3.7}
45
47
  s.summary = %q{Rails Plugin for DataMapper}
46
48
 
47
49
  if s.respond_to? :specification_version then
48
50
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
51
  s.specification_version = 3
50
52
 
51
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
- s.add_runtime_dependency(%q<dm-core>, ["~> 0.10.2"])
53
- s.add_development_dependency(%q<rspec>, ["~> 1.2.9"])
54
- s.add_development_dependency(%q<yard>, ["~> 0.4.0"])
53
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.1"])
55
+ s.add_runtime_dependency(%q<rails>, ["~> 2.3.5"])
56
+ s.add_development_dependency(%q<rspec>, ["~> 1.3"])
57
+ s.add_development_dependency(%q<yard>, ["~> 0.6"])
55
58
  else
56
- s.add_dependency(%q<dm-core>, ["~> 0.10.2"])
57
- s.add_dependency(%q<rspec>, ["~> 1.2.9"])
58
- s.add_dependency(%q<yard>, ["~> 0.4.0"])
59
+ s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
60
+ s.add_dependency(%q<rails>, ["~> 2.3.5"])
61
+ s.add_dependency(%q<rspec>, ["~> 1.3"])
62
+ s.add_dependency(%q<yard>, ["~> 0.6"])
59
63
  end
60
64
  else
61
- s.add_dependency(%q<dm-core>, ["~> 0.10.2"])
62
- s.add_dependency(%q<rspec>, ["~> 1.2.9"])
63
- s.add_dependency(%q<yard>, ["~> 0.4.0"])
65
+ s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
66
+ s.add_dependency(%q<rails>, ["~> 2.3.5"])
67
+ s.add_dependency(%q<rspec>, ["~> 1.3"])
68
+ s.add_dependency(%q<yard>, ["~> 0.6"])
64
69
  end
65
70
  end
66
71
 
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_datamapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 1
9
+ version: 1.0.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Tom Malone
@@ -9,39 +14,67 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-11 00:00:00 -08:00
17
+ date: 2010-09-07 00:00:00 -07:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: dm-core
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 0
31
+ - 1
32
+ version: 1.0.1
17
33
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rails
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
20
40
  requirements:
21
41
  - - ~>
22
42
  - !ruby/object:Gem::Version
23
- version: 0.10.2
24
- version:
43
+ segments:
44
+ - 2
45
+ - 3
46
+ - 5
47
+ version: 2.3.5
48
+ type: :runtime
49
+ version_requirements: *id002
25
50
  - !ruby/object:Gem::Dependency
26
51
  name: rspec
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
30
55
  requirements:
31
56
  - - ~>
32
57
  - !ruby/object:Gem::Version
33
- version: 1.2.9
34
- version:
58
+ segments:
59
+ - 1
60
+ - 3
61
+ version: "1.3"
62
+ type: :development
63
+ version_requirements: *id003
35
64
  - !ruby/object:Gem::Dependency
36
65
  name: yard
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
40
69
  requirements:
41
70
  - - ~>
42
71
  - !ruby/object:Gem::Version
43
- version: 0.4.0
44
- version:
72
+ segments:
73
+ - 0
74
+ - 6
75
+ version: "0.6"
76
+ type: :development
77
+ version_requirements: *id004
45
78
  description: Rails Plugin for DataMapper
46
79
  email: tomjmalone [a] gmail [d] com
47
80
  executables: []
@@ -52,6 +85,8 @@ extra_rdoc_files:
52
85
  - LICENSE
53
86
  - README.rdoc
54
87
  files:
88
+ - .gitignore
89
+ - Gemfile
55
90
  - LICENSE
56
91
  - README.rdoc
57
92
  - Rakefile
@@ -81,21 +116,25 @@ rdoc_options:
81
116
  require_paths:
82
117
  - lib
83
118
  required_ruby_version: !ruby/object:Gem::Requirement
119
+ none: false
84
120
  requirements:
85
121
  - - ">="
86
122
  - !ruby/object:Gem::Version
123
+ segments:
124
+ - 0
87
125
  version: "0"
88
- version:
89
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
+ none: false
90
128
  requirements:
91
129
  - - ">="
92
130
  - !ruby/object:Gem::Version
131
+ segments:
132
+ - 0
93
133
  version: "0"
94
- version:
95
134
  requirements: []
96
135
 
97
136
  rubyforge_project: datamapper
98
- rubygems_version: 1.3.5
137
+ rubygems_version: 1.3.7
99
138
  signing_key:
100
139
  specification_version: 3
101
140
  summary: Rails Plugin for DataMapper