dm-active_model 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -71,7 +71,7 @@
71
71
  source 'http://rubygems.org'
72
72
 
73
73
  DATAMAPPER = 'git://github.com/datamapper'
74
- DM_VERSION = '~> 1.0.0.rc2'
74
+ DM_VERSION = '~> 1.0.0.rc3'
75
75
 
76
76
  group :runtime do # Runtime dependencies (as in the gemspec)
77
77
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Martin Gamsjaeger (snusnu)
1
+ Copyright (c) 2010 Martin Gamsjaeger (snusnu)
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
data/README.rdoc CHANGED
@@ -15,4 +15,4 @@ This plugin makes datamapper compliant with active_model conventions and thus co
15
15
 
16
16
  == Copyright
17
17
 
18
- Copyright (c) 2009 Martin Gamsjaeger (snusnu). See LICENSE for details.
18
+ Copyright (c) 2010 Martin Gamsjaeger (snusnu). See LICENSE for details.
data/Rakefile CHANGED
@@ -2,25 +2,25 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
-
5
+ gem 'jeweler', '~> 1.4'
6
6
  require 'jeweler'
7
7
 
8
8
  Jeweler::Tasks.new do |gem|
9
-
10
9
  gem.name = 'dm-active_model'
11
10
  gem.summary = 'active_model compliance for datamapper'
12
11
  gem.description = 'A datamapper plugin for active_model compliance and thus rails 3 compatibility.'
13
12
  gem.email = 'gamsnjaga [a] gmail [d] com'
14
- gem.homepage = 'http://github.com/datamapper/dm-active_model'
13
+ gem.homepage = 'http://github.com/datamapper/%s' % gem.name
15
14
  gem.authors = [ 'Martin Gamsjaeger (snusnu)' ]
16
15
 
17
- gem.add_dependency 'dm-core', '~> 1.0.0.rc2'
18
- gem.add_dependency 'activemodel', '~> 3.0.0.beta3'
16
+ gem.rubyforge_project = 'datamapper'
19
17
 
20
- gem.add_development_dependency 'dm-validations', '~> 1.0.0.rc2'
18
+ gem.add_dependency 'dm-core', '~> 1.0.0.rc3'
19
+ gem.add_dependency 'activemodel', '~> 3.0.0.beta3'
20
+
21
+ gem.add_development_dependency 'dm-validations', '~> 1.0.0.rc3'
21
22
  gem.add_development_dependency 'rspec', '~> 1.3'
22
23
  gem.add_development_dependency 'test-unit', '= 1.2.3'
23
-
24
24
  end
25
25
 
26
26
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.rc2
1
+ 1.0.0.rc3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dm-active_model}
8
- s.version = "1.0.0.rc2"
8
+ s.version = "1.0.0.rc3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Gamsjaeger (snusnu)"]
12
- s.date = %q{2010-05-19}
12
+ s.date = %q{2010-05-27}
13
13
  s.description = %q{A datamapper plugin for active_model compliance and thus rails 3 compatibility.}
14
14
  s.email = %q{gamsnjaga [a] gmail [d] com}
15
15
  s.extra_rdoc_files = [
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
47
47
  s.homepage = %q{http://github.com/datamapper/dm-active_model}
48
48
  s.rdoc_options = ["--charset=UTF-8"]
49
49
  s.require_paths = ["lib"]
50
+ s.rubyforge_project = %q{datamapper}
50
51
  s.rubygems_version = %q{1.3.7}
51
52
  s.summary = %q{active_model compliance for datamapper}
52
53
  s.test_files = [
@@ -61,22 +62,22 @@ Gem::Specification.new do |s|
61
62
  s.specification_version = 3
62
63
 
63
64
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
64
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0.rc2"])
65
+ s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
65
66
  s.add_runtime_dependency(%q<activemodel>, ["~> 3.0.0.beta3"])
66
- s.add_development_dependency(%q<dm-validations>, ["~> 1.0.0.rc2"])
67
+ s.add_development_dependency(%q<dm-validations>, ["~> 1.0.0.rc3"])
67
68
  s.add_development_dependency(%q<rspec>, ["~> 1.3"])
68
69
  s.add_development_dependency(%q<test-unit>, ["= 1.2.3"])
69
70
  else
70
- s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc2"])
71
+ s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
71
72
  s.add_dependency(%q<activemodel>, ["~> 3.0.0.beta3"])
72
- s.add_dependency(%q<dm-validations>, ["~> 1.0.0.rc2"])
73
+ s.add_dependency(%q<dm-validations>, ["~> 1.0.0.rc3"])
73
74
  s.add_dependency(%q<rspec>, ["~> 1.3"])
74
75
  s.add_dependency(%q<test-unit>, ["= 1.2.3"])
75
76
  end
76
77
  else
77
- s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc2"])
78
+ s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
78
79
  s.add_dependency(%q<activemodel>, ["~> 3.0.0.beta3"])
79
- s.add_dependency(%q<dm-validations>, ["~> 1.0.0.rc2"])
80
+ s.add_dependency(%q<dm-validations>, ["~> 1.0.0.rc3"])
80
81
  s.add_dependency(%q<rspec>, ["~> 1.3"])
81
82
  s.add_dependency(%q<test-unit>, ["= 1.2.3"])
82
83
  end
@@ -1,7 +1,7 @@
1
1
  module DataMapper
2
2
  module ActiveModel
3
3
 
4
- VERSION = '1.0.0.rc2'
4
+ VERSION = '1.0.0.rc3'
5
5
 
6
6
  end
7
7
  end
data/spec/rcov.opts CHANGED
@@ -1,4 +1,4 @@
1
- --exclude "spec"
1
+ --exclude "spec,^/"
2
2
  --sort coverage
3
3
  --callsites
4
4
  --xrefs
data/tasks/spec.rake CHANGED
@@ -1,22 +1,41 @@
1
- require 'spec/rake/spectask'
2
- require 'spec/rake/verify_rcov'
3
-
4
1
  spec_defaults = lambda do |spec|
5
2
  spec.pattern = 'spec/**/*_spec.rb'
6
3
  spec.libs << 'lib' << 'spec'
7
4
  spec.spec_opts << '--options' << 'spec/spec.opts'
8
5
  end
9
6
 
10
- Spec::Rake::SpecTask.new(:spec, &spec_defaults)
7
+ begin
8
+ require 'spec/rake/spectask'
11
9
 
12
- Spec::Rake::SpecTask.new(:rcov) do |rcov|
13
- spec_defaults.call(rcov)
14
- rcov.rcov = true
15
- rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
10
+ Spec::Rake::SpecTask.new(:spec, &spec_defaults)
11
+ rescue LoadError
12
+ task :spec do
13
+ abort 'rspec is not available. In order to run spec, you must: gem install rspec'
14
+ end
16
15
  end
17
16
 
18
- RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
19
- rcov.threshold = 100
17
+ begin
18
+ require 'rcov'
19
+ require 'spec/rake/verify_rcov'
20
+
21
+ Spec::Rake::SpecTask.new(:rcov) do |rcov|
22
+ spec_defaults.call(rcov)
23
+ rcov.rcov = true
24
+ rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
25
+ end
26
+
27
+ RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
28
+ rcov.threshold = 100
29
+ end
30
+ rescue LoadError
31
+ %w[ rcov verify_rcov ].each do |name|
32
+ task name do
33
+ abort "rcov is not available. In order to run #{name}, you must: gem install rcov"
34
+ end
35
+ end
20
36
  end
21
37
 
38
+ task :spec => :check_dependencies
39
+ task :rcov => :check_dependencies
40
+
22
41
  task :default => :spec
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-active_model
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940575
4
+ hash: 977940572
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
- - rc2
11
- version: 1.0.0.rc2
10
+ - rc3
11
+ version: 1.0.0.rc3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Martin Gamsjaeger (snusnu)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-05-19 00:00:00 -07:00
19
+ date: 2010-05-27 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,13 +27,13 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- hash: 977940575
30
+ hash: 977940572
31
31
  segments:
32
32
  - 1
33
33
  - 0
34
34
  - 0
35
- - rc2
36
- version: 1.0.0.rc2
35
+ - rc3
36
+ version: 1.0.0.rc3
37
37
  type: :runtime
38
38
  version_requirements: *id001
39
39
  - !ruby/object:Gem::Dependency
@@ -61,13 +61,13 @@ dependencies:
61
61
  requirements:
62
62
  - - ~>
63
63
  - !ruby/object:Gem::Version
64
- hash: 977940575
64
+ hash: 977940572
65
65
  segments:
66
66
  - 1
67
67
  - 0
68
68
  - 0
69
- - rc2
70
- version: 1.0.0.rc2
69
+ - rc3
70
+ version: 1.0.0.rc3
71
71
  type: :development
72
72
  version_requirements: *id003
73
73
  - !ruby/object:Gem::Dependency
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: 1.3.1
169
169
  requirements: []
170
170
 
171
- rubyforge_project:
171
+ rubyforge_project: datamapper
172
172
  rubygems_version: 1.3.7
173
173
  signing_key:
174
174
  specification_version: 3