rails_datamapper 1.0.1 → 1.0.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.
Files changed (5) hide show
  1. data/Gemfile +60 -57
  2. data/Rakefile +2 -1
  3. data/VERSION +1 -1
  4. data/rails_datamapper.gemspec +5 -4
  5. metadata +5 -5
data/Gemfile CHANGED
@@ -1,64 +1,67 @@
1
+ # We bundle both AS and extlib while extlib compatibility needs to be kept around.
2
+ # require 'dm-core' will ensure that only one is activated at any time though.
3
+ # This is done by trying to require AS components and fallback to requiring
4
+ # extlib in case a LoadError was rescued when requiring AS code.
5
+ #
6
+ # Due to bundle exec activating all groups in the Gemfile, it's recommended to run
7
+ #
8
+ # bundle install --without quality
9
+ #
10
+ # to have a development environment that is able to run the specs. The problem is that
11
+ # metric_fu activates active_support=2.2.3 if we comment out the gem 'activesupport'
12
+ # declaration - have a look below for why we would want to do that (and a bit later, for
13
+ # why that's actually not *strictly* necessary, but recommended)
14
+ #
15
+ # To run the specs using AS, leave this Gemfile as it is and just run
16
+ #
17
+ # bundle install --without qality
18
+ # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
19
+ #
20
+ # To run the specs using extlib, comment out the: gem 'activesupport' line and run
21
+ #
22
+ # bundle install --without quality
23
+ # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
24
+ #
25
+ # If you want to run the quality tasks as provided by metric_fu and related gems,
26
+ # you have to run
27
+ #
28
+ # bundle install
29
+ # bundle exec rake metrics:all
30
+ #
31
+ # Switch back to a bundle without quality gems before trying to run the specs again
32
+ #
33
+ # bundle install --without quality
34
+ # ADAPTERS=sqlite3 bundle exec rake spec # or whatever adapter
35
+ #
36
+ # It was mentioned above that all this is not *strictly* necessary, and this is true.
37
+ # Currently dm-core does the following as the first require when checking for AS
38
+ #
39
+ # require 'active_support/core_ext/object/singleton_class'
40
+ #
41
+ # Because this method is not present in activesupport <= 3.0.0.beta, dm-core's feature
42
+ # detection will actually do the "right thing" and fall back to extlib. However, since
43
+ # this is not the case for all dm-more gems as well, the safest thing to do is to respect
44
+ # the more tedious workflow for now, as it will at least be guaranteed to work the same
45
+ # for both dm-core and dm-more.
46
+ #
47
+ # Note that this won't be an issue anymore once we dropped support for extlib completely,
48
+ # or bundler folks decide to support something like "bundle exec --without=foo rake spec"
49
+ # (which probably is not going to happen anytime soon).
50
+
1
51
  source 'http://rubygems.org'
2
52
 
3
- group :runtime do
53
+ DATAMAPPER = 'git://github.com/datamapper'
54
+ DM_VERSION = '~> 1.0.2'
55
+ DO_VERSION = '~> 0.10.2'
4
56
 
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
- #
57
+ group :runtime do # Runtime dependencies (as in the gemspec)
55
58
 
56
59
  if ENV['EXTLIB']
57
- gem 'extlib', '~> 0.9.15', :git => 'git://github.com/datamapper/extlib.git'
60
+ gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git"
58
61
  end
59
62
 
60
63
  gem 'rails', '~> 2.3.5'
61
- gem 'dm-core', '~> 1.0.1', :git => 'git://github.com/datamapper/dm-core.git'
64
+ gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
62
65
  end
63
66
 
64
67
  group :development do
@@ -67,10 +70,10 @@ group :development do
67
70
  gem 'yard', '~> 0.5'
68
71
  gem 'rcov', '~> 0.9.7'
69
72
  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'
73
+ gem 'data_objects', DO_VERSION
74
+ gem 'do_sqlite3', DO_VERSION
75
+ gem 'do_mysql', DO_VERSION
76
+ gem 'do_postgres', DO_VERSION
74
77
  end
75
78
 
76
79
  group :quality do
data/Rakefile CHANGED
@@ -12,10 +12,11 @@ begin
12
12
  gem.email = 'tomjmalone [a] gmail [d] com'
13
13
  gem.homepage = 'http://github.com/datamapper/dm-more/tree/master/%s' % gem.name
14
14
  gem.authors = [ 'Tom Malone' ]
15
+ gem.has_rdoc = 'yard'
15
16
 
16
17
  gem.rubyforge_project = 'datamapper'
17
18
 
18
- gem.add_dependency 'dm-core', '~> 1.0.1'
19
+ gem.add_dependency 'dm-core', '~> 1.0.2'
19
20
  gem.add_dependency 'rails', '~> 2.3.5'
20
21
 
21
22
  gem.add_development_dependency 'rspec', '~> 1.3'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails_datamapper}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
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"]
@@ -39,6 +39,7 @@ Gem::Specification.new do |s|
39
39
  "tasks/yard.rake",
40
40
  "tasks/yardstick.rake"
41
41
  ]
42
+ s.has_rdoc = %q{yard}
42
43
  s.homepage = %q{http://github.com/datamapper/dm-more/tree/master/rails_datamapper}
43
44
  s.rdoc_options = ["--charset=UTF-8"]
44
45
  s.require_paths = ["lib"]
@@ -51,18 +52,18 @@ Gem::Specification.new do |s|
51
52
  s.specification_version = 3
52
53
 
53
54
  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<dm-core>, ["~> 1.0.2"])
55
56
  s.add_runtime_dependency(%q<rails>, ["~> 2.3.5"])
56
57
  s.add_development_dependency(%q<rspec>, ["~> 1.3"])
57
58
  s.add_development_dependency(%q<yard>, ["~> 0.6"])
58
59
  else
59
- s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
60
+ s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
60
61
  s.add_dependency(%q<rails>, ["~> 2.3.5"])
61
62
  s.add_dependency(%q<rspec>, ["~> 1.3"])
62
63
  s.add_dependency(%q<yard>, ["~> 0.6"])
63
64
  end
64
65
  else
65
- s.add_dependency(%q<dm-core>, ["~> 1.0.1"])
66
+ s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
66
67
  s.add_dependency(%q<rails>, ["~> 2.3.5"])
67
68
  s.add_dependency(%q<rspec>, ["~> 1.3"])
68
69
  s.add_dependency(%q<yard>, ["~> 0.6"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tom Malone
@@ -28,8 +28,8 @@ dependencies:
28
28
  segments:
29
29
  - 1
30
30
  - 0
31
- - 1
32
- version: 1.0.1
31
+ - 2
32
+ version: 1.0.2
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
@@ -106,7 +106,7 @@ files:
106
106
  - rails_datamapper.gemspec
107
107
  - tasks/yard.rake
108
108
  - tasks/yardstick.rake
109
- has_rdoc: true
109
+ has_rdoc: yard
110
110
  homepage: http://github.com/datamapper/dm-more/tree/master/rails_datamapper
111
111
  licenses: []
112
112