dm-actionstamps 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +45 -2
- data/VERSION +1 -1
- data/dm-actionstamps.gemspec +10 -7
- data/lib/dm-actionstamps/actionstamps.rb +0 -1
- data/lib/dm-actionstamps/version.rb +1 -1
- data/spec/spec_helper.rb +7 -6
- metadata +31 -9
data/Rakefile
CHANGED
@@ -10,7 +10,8 @@ begin
|
|
10
10
|
gem.email = "kematzy@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/kematzy/dm-actionstamps"
|
12
12
|
gem.authors = ["kematzy"]
|
13
|
-
gem.
|
13
|
+
gem.add_dependency "dm-core", ">= 1.0"
|
14
|
+
gem.add_development_dependency "rspec", ">= 1.3.0"
|
14
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
16
|
end
|
16
17
|
Jeweler::GemcutterTasks.new
|
@@ -31,6 +32,24 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
|
|
31
32
|
spec.rcov = true
|
32
33
|
end
|
33
34
|
|
35
|
+
namespace :spec do
|
36
|
+
|
37
|
+
desc "Run all specifications verbosely"
|
38
|
+
Spec::Rake::SpecTask.new(:quiet) do |t|
|
39
|
+
t.libs << "lib"
|
40
|
+
t.spec_opts = ["--color", "--require", "spec/spec_helper.rb"]
|
41
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
42
|
+
end
|
43
|
+
|
44
|
+
desc "Run specific spec verbosely (SPEC=/path/2/file)"
|
45
|
+
Spec::Rake::SpecTask.new(:select) do |t|
|
46
|
+
t.libs << "lib"
|
47
|
+
t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
|
48
|
+
t.spec_files = [ENV["SPEC"]]
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
34
53
|
task :spec => :check_dependencies
|
35
54
|
|
36
55
|
task :default => :spec
|
@@ -40,7 +59,31 @@ Rake::RDocTask.new do |rdoc|
|
|
40
59
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
41
60
|
|
42
61
|
rdoc.rdoc_dir = 'rdoc'
|
43
|
-
rdoc.title = "
|
62
|
+
rdoc.title = "DM::ActionStamps #{version}"
|
44
63
|
rdoc.rdoc_files.include('README*')
|
45
64
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
46
65
|
end
|
66
|
+
|
67
|
+
desc 'Build the rdoc HTML Files'
|
68
|
+
task :docs do
|
69
|
+
version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
|
70
|
+
|
71
|
+
sh "sdoc -N --title 'DM::ActionStamps v#{version}' lib/ README.rdoc"
|
72
|
+
end
|
73
|
+
|
74
|
+
|
75
|
+
namespace :docs do
|
76
|
+
|
77
|
+
# desc 'Remove rdoc products'
|
78
|
+
# task :remove => [:clobber_rdoc]
|
79
|
+
#
|
80
|
+
# desc 'Force a rebuild of the RDOC files'
|
81
|
+
# task :rebuild => [:rerdoc]
|
82
|
+
|
83
|
+
desc 'Build docs, and open in browser for viewing (specify BROWSER)'
|
84
|
+
task :open => [:docs] do
|
85
|
+
browser = ENV["BROWSER"] || "safari"
|
86
|
+
sh "open -a #{browser} doc/index.html"
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/dm-actionstamps.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-actionstamps}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.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 = ["kematzy"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-01}
|
13
13
|
s.description = %q{A DataMapper plugin that works similar to the dm-timestamps in that it 'automagically' adds/updates the created_?, updated_? fields of your models.}
|
14
14
|
s.email = %q{kematzy@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.homepage = %q{http://github.com/kematzy/dm-actionstamps}
|
34
34
|
s.rdoc_options = ["--charset=UTF-8"]
|
35
35
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.3.
|
36
|
+
s.rubygems_version = %q{1.3.7}
|
37
37
|
s.summary = %q{A DataMapper plugin that automatically adds/updates the created_?, updated_? fields of your models.}
|
38
38
|
s.test_files = [
|
39
39
|
"spec/integration/actionstamps_spec.rb",
|
@@ -44,13 +44,16 @@ Gem::Specification.new do |s|
|
|
44
44
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
45
|
s.specification_version = 3
|
46
46
|
|
47
|
-
if Gem::Version.new(Gem::
|
48
|
-
s.
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
+
s.add_runtime_dependency(%q<dm-core>, [">= 1.0"])
|
49
|
+
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
|
49
50
|
else
|
50
|
-
s.add_dependency(%q<
|
51
|
+
s.add_dependency(%q<dm-core>, [">= 1.0"])
|
52
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
51
53
|
end
|
52
54
|
else
|
53
|
-
s.add_dependency(%q<
|
55
|
+
s.add_dependency(%q<dm-core>, [">= 1.0"])
|
56
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
54
57
|
end
|
55
58
|
end
|
56
59
|
|
data/spec/spec_helper.rb
CHANGED
@@ -4,14 +4,15 @@ require 'spec'
|
|
4
4
|
require 'pathname'
|
5
5
|
require Pathname(__FILE__).dirname.parent.expand_path + 'lib/dm-actionstamps'
|
6
6
|
require 'dm-core'
|
7
|
+
require 'dm-migrations'
|
7
8
|
|
8
9
|
def load_driver(name, default_uri)
|
9
10
|
return false if ENV['ADAPTER'] != name.to_s
|
10
|
-
|
11
|
-
lib = "
|
12
|
-
|
11
|
+
|
12
|
+
lib = "dm-#{name}-adapter"
|
13
|
+
|
13
14
|
begin
|
14
|
-
gem lib, '>=0
|
15
|
+
gem lib, '>=1.0'
|
15
16
|
require lib
|
16
17
|
DataMapper.setup(name, ENV["#{name.to_s.upcase}_SPEC_URI"] || default_uri)
|
17
18
|
DataMapper::Repository.adapters[:default] = DataMapper::Repository.adapters[name]
|
@@ -22,8 +23,8 @@ def load_driver(name, default_uri)
|
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
25
|
-
ENV['ADAPTER'] ||= '
|
26
|
+
ENV['ADAPTER'] ||= 'sqlite'
|
26
27
|
|
27
|
-
HAS_SQLITE3 = load_driver(:
|
28
|
+
HAS_SQLITE3 = load_driver(:sqlite, 'sqlite3::memory:')
|
28
29
|
HAS_MYSQL = load_driver(:mysql, 'mysql://localhost/dm_core_test')
|
29
30
|
HAS_POSTGRES = load_driver(:postgres, 'postgres://postgres@localhost/dm_core_test')
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-actionstamps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- kematzy
|
@@ -14,23 +15,40 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-09-01 00:00:00 +08:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
22
|
+
name: dm-core
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
27
30
|
segments:
|
28
31
|
- 1
|
29
|
-
-
|
30
|
-
|
31
|
-
|
32
|
-
type: :development
|
32
|
+
- 0
|
33
|
+
version: "1.0"
|
34
|
+
type: :runtime
|
33
35
|
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 27
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 3
|
48
|
+
- 0
|
49
|
+
version: 1.3.0
|
50
|
+
type: :development
|
51
|
+
version_requirements: *id002
|
34
52
|
description: A DataMapper plugin that works similar to the dm-timestamps in that it 'automagically' adds/updates the created_?, updated_? fields of your models.
|
35
53
|
email: kematzy@gmail.com
|
36
54
|
executables: []
|
@@ -63,23 +81,27 @@ rdoc_options:
|
|
63
81
|
require_paths:
|
64
82
|
- lib
|
65
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
66
85
|
requirements:
|
67
86
|
- - ">="
|
68
87
|
- !ruby/object:Gem::Version
|
88
|
+
hash: 3
|
69
89
|
segments:
|
70
90
|
- 0
|
71
91
|
version: "0"
|
72
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
73
94
|
requirements:
|
74
95
|
- - ">="
|
75
96
|
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
76
98
|
segments:
|
77
99
|
- 0
|
78
100
|
version: "0"
|
79
101
|
requirements: []
|
80
102
|
|
81
103
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.3.
|
104
|
+
rubygems_version: 1.3.7
|
83
105
|
signing_key:
|
84
106
|
specification_version: 3
|
85
107
|
summary: A DataMapper plugin that automatically adds/updates the created_?, updated_? fields of your models.
|