data_mapper 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +0 -0
- data/Manifest.txt +5 -0
- data/{README → README.txt} +0 -0
- data/Rakefile +70 -0
- data/lib/data_mapper.rb +1 -1
- metadata +68 -31
data/History.txt
ADDED
File without changes
|
data/Manifest.txt
ADDED
data/{README → README.txt}
RENAMED
File without changes
|
data/Rakefile
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rake'
|
5
|
+
|
6
|
+
gems = %w(dm-core dm-aggregates dm-migrations dm-serializer dm-timestamps dm-validations dm-cli dm-is-tree dm-observer dm-types)
|
7
|
+
|
8
|
+
AUTHOR = "Sam Smoot"
|
9
|
+
EMAIL = "ssmoot@gmail.com"
|
10
|
+
GEM_NAME = "data_mapper"
|
11
|
+
GEM_VERSION = "0.9.3"
|
12
|
+
GEM_DEPENDENCIES = [["dm-core", GEM_VERSION], *gems.collect { |g| [g, GEM_VERSION] }]
|
13
|
+
GEM_CLEAN = ['**/*.{gem,DS_Store}', '*.db', "doc/rdoc", ".config", "**/coverage", "cache", "lib/merb-more.rb"]
|
14
|
+
GEM_EXTRAS = { :has_rdoc => false }
|
15
|
+
|
16
|
+
PROJECT_NAME = "datamapper"
|
17
|
+
PROJECT_URL = "http://datamapper.org"
|
18
|
+
PROJECT_DESCRIPTION = "Faster, Better, Simpler."
|
19
|
+
PROJECT_SUMMARY = "An Object/Relational Mapper for Ruby"
|
20
|
+
|
21
|
+
|
22
|
+
WINDOWS = (RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil
|
23
|
+
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
|
24
|
+
|
25
|
+
desc "Install #{GEM_NAME}"
|
26
|
+
task :install => :package do
|
27
|
+
sh %{#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION}}
|
28
|
+
end
|
29
|
+
|
30
|
+
## HOE TASKS
|
31
|
+
|
32
|
+
require 'hoe'
|
33
|
+
|
34
|
+
@config_file = "~/.rubyforge/user-config.yml"
|
35
|
+
@config = nil
|
36
|
+
RUBYFORGE_USERNAME = "unknown"
|
37
|
+
def rubyforge_username
|
38
|
+
unless @config
|
39
|
+
begin
|
40
|
+
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
41
|
+
rescue
|
42
|
+
puts <<-EOS
|
43
|
+
ERROR: No rubyforge config file found: #{@config_file}
|
44
|
+
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
45
|
+
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
46
|
+
EOS
|
47
|
+
exit
|
48
|
+
end
|
49
|
+
end
|
50
|
+
RUBYFORGE_USERNAME.replace @config["username"]
|
51
|
+
end
|
52
|
+
|
53
|
+
hoe = Hoe.new(GEM_NAME, GEM_VERSION) do |p|
|
54
|
+
|
55
|
+
p.developer(AUTHOR, EMAIL)
|
56
|
+
|
57
|
+
p.description = PROJECT_DESCRIPTION
|
58
|
+
p.summary = PROJECT_SUMMARY
|
59
|
+
p.url = PROJECT_URL
|
60
|
+
|
61
|
+
p.rubyforge_name = PROJECT_NAME if PROJECT_NAME
|
62
|
+
|
63
|
+
p.clean_globs |= GEM_CLEAN
|
64
|
+
p.spec_extras = GEM_EXTRAS if GEM_EXTRAS
|
65
|
+
|
66
|
+
GEM_DEPENDENCIES.each do |dep|
|
67
|
+
p.extra_deps << dep
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
data/lib/data_mapper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Smoot
|
@@ -9,115 +9,152 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-24 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dm-core
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
|
-
- - "
|
21
|
+
- - "="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.9.
|
23
|
+
version: 0.9.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: dm-core
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.3
|
23
34
|
version:
|
24
35
|
- !ruby/object:Gem::Dependency
|
25
36
|
name: dm-aggregates
|
37
|
+
type: :runtime
|
26
38
|
version_requirement:
|
27
39
|
version_requirements: !ruby/object:Gem::Requirement
|
28
40
|
requirements:
|
29
|
-
- - "
|
41
|
+
- - "="
|
30
42
|
- !ruby/object:Gem::Version
|
31
|
-
version: 0.9.
|
43
|
+
version: 0.9.3
|
32
44
|
version:
|
33
45
|
- !ruby/object:Gem::Dependency
|
34
46
|
name: dm-migrations
|
47
|
+
type: :runtime
|
35
48
|
version_requirement:
|
36
49
|
version_requirements: !ruby/object:Gem::Requirement
|
37
50
|
requirements:
|
38
|
-
- - "
|
51
|
+
- - "="
|
39
52
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.
|
53
|
+
version: 0.9.3
|
41
54
|
version:
|
42
55
|
- !ruby/object:Gem::Dependency
|
43
56
|
name: dm-serializer
|
57
|
+
type: :runtime
|
44
58
|
version_requirement:
|
45
59
|
version_requirements: !ruby/object:Gem::Requirement
|
46
60
|
requirements:
|
47
|
-
- - "
|
61
|
+
- - "="
|
48
62
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.9.
|
63
|
+
version: 0.9.3
|
50
64
|
version:
|
51
65
|
- !ruby/object:Gem::Dependency
|
52
66
|
name: dm-timestamps
|
67
|
+
type: :runtime
|
53
68
|
version_requirement:
|
54
69
|
version_requirements: !ruby/object:Gem::Requirement
|
55
70
|
requirements:
|
56
|
-
- - "
|
71
|
+
- - "="
|
57
72
|
- !ruby/object:Gem::Version
|
58
|
-
version: 0.9.
|
73
|
+
version: 0.9.3
|
59
74
|
version:
|
60
75
|
- !ruby/object:Gem::Dependency
|
61
76
|
name: dm-validations
|
77
|
+
type: :runtime
|
62
78
|
version_requirement:
|
63
79
|
version_requirements: !ruby/object:Gem::Requirement
|
64
80
|
requirements:
|
65
|
-
- - "
|
81
|
+
- - "="
|
66
82
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0.9.
|
83
|
+
version: 0.9.3
|
68
84
|
version:
|
69
85
|
- !ruby/object:Gem::Dependency
|
70
86
|
name: dm-cli
|
87
|
+
type: :runtime
|
71
88
|
version_requirement:
|
72
89
|
version_requirements: !ruby/object:Gem::Requirement
|
73
90
|
requirements:
|
74
|
-
- - "
|
91
|
+
- - "="
|
75
92
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.9.
|
93
|
+
version: 0.9.3
|
77
94
|
version:
|
78
95
|
- !ruby/object:Gem::Dependency
|
79
96
|
name: dm-is-tree
|
97
|
+
type: :runtime
|
80
98
|
version_requirement:
|
81
99
|
version_requirements: !ruby/object:Gem::Requirement
|
82
100
|
requirements:
|
83
|
-
- - "
|
101
|
+
- - "="
|
84
102
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.9.
|
103
|
+
version: 0.9.3
|
86
104
|
version:
|
87
105
|
- !ruby/object:Gem::Dependency
|
88
106
|
name: dm-observer
|
107
|
+
type: :runtime
|
89
108
|
version_requirement:
|
90
109
|
version_requirements: !ruby/object:Gem::Requirement
|
91
110
|
requirements:
|
92
|
-
- - "
|
111
|
+
- - "="
|
93
112
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.9.
|
113
|
+
version: 0.9.3
|
95
114
|
version:
|
96
115
|
- !ruby/object:Gem::Dependency
|
97
116
|
name: dm-types
|
117
|
+
type: :runtime
|
118
|
+
version_requirement:
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.9.3
|
124
|
+
version:
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: hoe
|
127
|
+
type: :development
|
98
128
|
version_requirement:
|
99
129
|
version_requirements: !ruby/object:Gem::Requirement
|
100
130
|
requirements:
|
101
131
|
- - ">="
|
102
132
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
133
|
+
version: 1.7.0
|
104
134
|
version:
|
105
135
|
description: Faster, Better, Simpler.
|
106
|
-
email:
|
136
|
+
email:
|
137
|
+
- ssmoot@gmail.com
|
107
138
|
executables: []
|
108
139
|
|
109
140
|
extensions: []
|
110
141
|
|
111
|
-
extra_rdoc_files:
|
112
|
-
|
142
|
+
extra_rdoc_files:
|
143
|
+
- History.txt
|
144
|
+
- Manifest.txt
|
145
|
+
- README.txt
|
113
146
|
files:
|
114
|
-
-
|
147
|
+
- History.txt
|
148
|
+
- Manifest.txt
|
149
|
+
- README.txt
|
150
|
+
- Rakefile
|
115
151
|
- lib/data_mapper.rb
|
116
152
|
has_rdoc: false
|
117
153
|
homepage: http://datamapper.org
|
118
154
|
post_install_message:
|
119
|
-
rdoc_options:
|
120
|
-
|
155
|
+
rdoc_options:
|
156
|
+
- --main
|
157
|
+
- README.txt
|
121
158
|
require_paths:
|
122
159
|
- lib
|
123
160
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -132,10 +169,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
169
|
- !ruby/object:Gem::Version
|
133
170
|
version: "0"
|
134
171
|
version:
|
135
|
-
requirements:
|
136
|
-
|
137
|
-
rubyforge_project:
|
138
|
-
rubygems_version: 1.0
|
172
|
+
requirements: []
|
173
|
+
|
174
|
+
rubyforge_project: datamapper
|
175
|
+
rubygems_version: 1.2.0
|
139
176
|
signing_key:
|
140
177
|
specification_version: 2
|
141
178
|
summary: An Object/Relational Mapper for Ruby
|