dm-yaml-adapter 1.0.2 → 1.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +24 -57
- data/LICENSE +1 -1
- data/Rakefile +2 -6
- data/VERSION +1 -1
- data/dm-yaml-adapter.gemspec +37 -33
- data/tasks/spec.rake +0 -3
- metadata +47 -31
- data/.gitignore +0 -37
- data/tasks/local_gemfile.rake +0 -16
data/Gemfile
CHANGED
@@ -1,82 +1,49 @@
|
|
1
|
-
|
2
|
-
# recommended to create a local Gemfile and use this instead of the git
|
3
|
-
# sources. This will make sure that you are developing against your
|
4
|
-
# other local datamapper sources that you currently work on. Gemfile.local
|
5
|
-
# will behave identically to the standard Gemfile apart from the fact that
|
6
|
-
# it fetches the gems from local paths. This means that you can use the
|
7
|
-
# same environment variables, like ADAPTER when running bundle commands.
|
8
|
-
# Gemfile.local is added to .gitignore, so you don't need to worry about
|
9
|
-
# accidentally checking local development paths into git.
|
10
|
-
#
|
11
|
-
# bundle exec rake local_gemfile
|
12
|
-
#
|
13
|
-
# will give you a Gemfile.local file that points to your local clones of
|
14
|
-
# the various datamapper gems. It's assumed that all datamapper repo clones
|
15
|
-
# reside in the same directory. You can use the Gemfile.local like so for
|
16
|
-
# running any bundle command:
|
17
|
-
#
|
18
|
-
# BUNDLE_GEMFILE=Gemfile.local bundle foo
|
19
|
-
#
|
20
|
-
# To speed up running bundle tasks, it's recommended to run
|
21
|
-
#
|
22
|
-
# bundle lock
|
23
|
-
#
|
24
|
-
# after running 'bundle install' for the first time. This will make 'bundle exec' run
|
25
|
-
# a lot faster compared to the unlocked version. With an unlocked bundle you would
|
26
|
-
# typically just run 'bundle install' from time to time to fetch the latest sources from
|
27
|
-
# upstream. When you locked your bundle, you need to run
|
28
|
-
#
|
29
|
-
# bundle install --relock
|
30
|
-
#
|
31
|
-
# to make sure to fetch the latest updates and then lock the bundle again. Gemfile.lock
|
32
|
-
# is added to the .gitignore file, so you don't need to worry about accidentally checking
|
33
|
-
# it into version control.
|
1
|
+
require 'pathname'
|
34
2
|
|
35
3
|
source 'http://rubygems.org'
|
36
4
|
|
37
|
-
|
38
|
-
|
5
|
+
SOURCE = ENV.fetch('SOURCE', :git).to_sym
|
6
|
+
REPO_POSTFIX = SOURCE == :path ? '' : '.git'
|
7
|
+
DATAMAPPER = SOURCE == :path ? Pathname(__FILE__).dirname.parent : 'http://github.com/datamapper'
|
8
|
+
DM_VERSION = '~> 1.1.0.rc1'
|
39
9
|
|
40
|
-
group :runtime do
|
10
|
+
group :runtime do
|
41
11
|
|
42
|
-
gem 'dm-core',
|
12
|
+
gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}"
|
43
13
|
|
44
14
|
end
|
45
15
|
|
46
|
-
group
|
16
|
+
group :development do
|
47
17
|
|
48
|
-
gem 'dm-migrations',
|
18
|
+
gem 'dm-migrations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-migrations#{REPO_POSTFIX}"
|
19
|
+
gem 'jeweler', '~> 1.5.2'
|
20
|
+
gem 'rake', '~> 0.8.7'
|
21
|
+
gem 'rspec', '~> 1.3.1'
|
49
22
|
|
50
|
-
|
51
|
-
|
52
|
-
|
23
|
+
end
|
24
|
+
|
25
|
+
group :quality do
|
26
|
+
|
27
|
+
gem 'rcov', '~> 0.9.9', :platforms => :mri_18
|
28
|
+
gem 'yard', '~> 0.6'
|
29
|
+
gem 'yardstick', '~> 0.2'
|
53
30
|
|
54
31
|
end
|
55
32
|
|
56
|
-
group :datamapper do
|
33
|
+
group :datamapper do
|
57
34
|
|
58
35
|
if ENV['EXTLIB']
|
59
|
-
gem 'extlib',
|
36
|
+
gem 'extlib', '~> 0.9.15', SOURCE => "#{DATAMAPPER}/extlib#{REPO_POSTFIX}", :require => nil
|
60
37
|
else
|
61
|
-
gem 'activesupport', '~> 3.0.
|
38
|
+
gem 'activesupport', '~> 3.0.4', :require => nil
|
39
|
+
gem 'i18n', '~> 0.5.0'
|
62
40
|
end
|
63
41
|
|
64
42
|
plugins = ENV['PLUGINS'] || ENV['PLUGIN']
|
65
43
|
plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
|
66
44
|
|
67
45
|
plugins.each do |plugin|
|
68
|
-
gem plugin, DM_VERSION,
|
46
|
+
gem plugin, DM_VERSION, SOURCE => "#{DATAMAPPER}/#{plugin}#{REPO_POSTFIX}"
|
69
47
|
end
|
70
48
|
|
71
49
|
end
|
72
|
-
|
73
|
-
group :quality do # These gems contain rake tasks that check the quality of the source code
|
74
|
-
|
75
|
-
gem 'metric_fu', '~> 1.3'
|
76
|
-
gem 'rcov', '~> 0.9.7'
|
77
|
-
gem 'reek', '~> 1.2.7'
|
78
|
-
gem 'roodi', '~> 2.1'
|
79
|
-
gem 'yard', '~> 0.5'
|
80
|
-
gem 'yardstick', '~> 0.1'
|
81
|
-
|
82
|
-
end
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
|
4
4
|
begin
|
5
|
-
gem 'jeweler', '~> 1.
|
5
|
+
gem 'jeweler', '~> 1.5.2'
|
6
6
|
require 'jeweler'
|
7
7
|
|
8
8
|
Jeweler::Tasks.new do |gem|
|
@@ -15,15 +15,11 @@ begin
|
|
15
15
|
gem.has_rdoc = 'yard'
|
16
16
|
|
17
17
|
gem.rubyforge_project = 'datamapper'
|
18
|
-
|
19
|
-
gem.add_dependency 'dm-core', '~> 1.0.2'
|
20
|
-
|
21
|
-
gem.add_development_dependency 'rspec', '~> 1.3'
|
22
18
|
end
|
23
19
|
|
24
20
|
Jeweler::GemcutterTasks.new
|
25
21
|
|
26
22
|
FileList['tasks/**/*.rake'].each { |task| import task }
|
27
23
|
rescue LoadError
|
28
|
-
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
|
24
|
+
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.5.2'
|
29
25
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.1.0.rc1
|
data/dm-yaml-adapter.gemspec
CHANGED
@@ -1,66 +1,70 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-yaml-adapter}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.1.0.rc1"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dan Kubb"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-02-28}
|
13
13
|
s.description = %q{YAML Adapter for DataMapper}
|
14
14
|
s.email = %q{dan.kubb@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
"tasks/yard.rake",
|
36
|
-
"tasks/yardstick.rake"
|
19
|
+
"Gemfile",
|
20
|
+
"LICENSE",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"dm-yaml-adapter.gemspec",
|
24
|
+
"lib/dm-yaml-adapter.rb",
|
25
|
+
"lib/dm-yaml-adapter/adapter.rb",
|
26
|
+
"lib/dm-yaml-adapter/core_ext/class.rb",
|
27
|
+
"lib/dm-yaml-adapter/spec/setup.rb",
|
28
|
+
"spec/adapter_spec.rb",
|
29
|
+
"spec/rcov.opts",
|
30
|
+
"spec/spec.opts",
|
31
|
+
"spec/spec_helper.rb",
|
32
|
+
"tasks/spec.rake",
|
33
|
+
"tasks/yard.rake",
|
34
|
+
"tasks/yardstick.rake"
|
37
35
|
]
|
38
|
-
s.has_rdoc = %q{yard}
|
39
36
|
s.homepage = %q{http://github.com/datamapper/dm-yaml-adapter}
|
40
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
41
37
|
s.require_paths = ["lib"]
|
42
38
|
s.rubyforge_project = %q{datamapper}
|
43
|
-
s.rubygems_version = %q{1.
|
39
|
+
s.rubygems_version = %q{1.5.2}
|
44
40
|
s.summary = %q{YAML Adapter for DataMapper}
|
45
41
|
s.test_files = [
|
46
42
|
"spec/adapter_spec.rb",
|
47
|
-
|
43
|
+
"spec/spec_helper.rb"
|
48
44
|
]
|
49
45
|
|
50
46
|
if s.respond_to? :specification_version then
|
51
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
52
47
|
s.specification_version = 3
|
53
48
|
|
54
49
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
|
-
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.
|
56
|
-
s.add_development_dependency(%q<
|
50
|
+
s.add_runtime_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
|
51
|
+
s.add_development_dependency(%q<dm-migrations>, ["~> 1.1.0.rc1"])
|
52
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
53
|
+
s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
|
54
|
+
s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
|
57
55
|
else
|
58
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
59
|
-
s.add_dependency(%q<
|
56
|
+
s.add_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
|
57
|
+
s.add_dependency(%q<dm-migrations>, ["~> 1.1.0.rc1"])
|
58
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
59
|
+
s.add_dependency(%q<rake>, ["~> 0.8.7"])
|
60
|
+
s.add_dependency(%q<rspec>, ["~> 1.3.1"])
|
60
61
|
end
|
61
62
|
else
|
62
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
63
|
-
s.add_dependency(%q<
|
63
|
+
s.add_dependency(%q<dm-core>, ["~> 1.1.0.rc1"])
|
64
|
+
s.add_dependency(%q<dm-migrations>, ["~> 1.1.0.rc1"])
|
65
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
66
|
+
s.add_dependency(%q<rake>, ["~> 0.8.7"])
|
67
|
+
s.add_dependency(%q<rspec>, ["~> 1.3.1"])
|
64
68
|
end
|
65
69
|
end
|
66
70
|
|
data/tasks/spec.rake
CHANGED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-yaml-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 1.0.2
|
4
|
+
prerelease: 6
|
5
|
+
version: 1.1.0.rc1
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Dan Kubb
|
@@ -14,38 +10,64 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-02-28 00:00:00 -08:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
21
17
|
name: dm-core
|
22
|
-
prerelease: false
|
23
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
19
|
none: false
|
25
20
|
requirements:
|
26
21
|
- - ~>
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
- 2
|
32
|
-
version: 1.0.2
|
23
|
+
version: 1.1.0.rc1
|
33
24
|
type: :runtime
|
25
|
+
prerelease: false
|
34
26
|
version_requirements: *id001
|
35
27
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
-
prerelease: false
|
28
|
+
name: dm-migrations
|
38
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
30
|
none: false
|
40
31
|
requirements:
|
41
32
|
- - ~>
|
42
33
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
- 1
|
45
|
-
- 3
|
46
|
-
version: "1.3"
|
34
|
+
version: 1.1.0.rc1
|
47
35
|
type: :development
|
36
|
+
prerelease: false
|
48
37
|
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: jeweler
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.5.2
|
46
|
+
type: :development
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rake
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.8.7
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: rspec
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.3.1
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
49
71
|
description: YAML Adapter for DataMapper
|
50
72
|
email: dan.kubb@gmail.com
|
51
73
|
executables: []
|
@@ -55,7 +77,6 @@ extensions: []
|
|
55
77
|
extra_rdoc_files:
|
56
78
|
- LICENSE
|
57
79
|
files:
|
58
|
-
- .gitignore
|
59
80
|
- Gemfile
|
60
81
|
- LICENSE
|
61
82
|
- Rakefile
|
@@ -69,17 +90,16 @@ files:
|
|
69
90
|
- spec/rcov.opts
|
70
91
|
- spec/spec.opts
|
71
92
|
- spec/spec_helper.rb
|
72
|
-
- tasks/local_gemfile.rake
|
73
93
|
- tasks/spec.rake
|
74
94
|
- tasks/yard.rake
|
75
95
|
- tasks/yardstick.rake
|
76
|
-
has_rdoc:
|
96
|
+
has_rdoc: true
|
77
97
|
homepage: http://github.com/datamapper/dm-yaml-adapter
|
78
98
|
licenses: []
|
79
99
|
|
80
100
|
post_install_message:
|
81
|
-
rdoc_options:
|
82
|
-
|
101
|
+
rdoc_options: []
|
102
|
+
|
83
103
|
require_paths:
|
84
104
|
- lib
|
85
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -87,21 +107,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
107
|
requirements:
|
88
108
|
- - ">="
|
89
109
|
- !ruby/object:Gem::Version
|
90
|
-
segments:
|
91
|
-
- 0
|
92
110
|
version: "0"
|
93
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
112
|
none: false
|
95
113
|
requirements:
|
96
|
-
- - "
|
114
|
+
- - ">"
|
97
115
|
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
- 0
|
100
|
-
version: "0"
|
116
|
+
version: 1.3.1
|
101
117
|
requirements: []
|
102
118
|
|
103
119
|
rubyforge_project: datamapper
|
104
|
-
rubygems_version: 1.
|
120
|
+
rubygems_version: 1.5.2
|
105
121
|
signing_key:
|
106
122
|
specification_version: 3
|
107
123
|
summary: YAML Adapter for DataMapper
|
data/.gitignore
DELETED
@@ -1,37 +0,0 @@
|
|
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/tasks/local_gemfile.rake
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
desc "Support bundling from local source code (allows BUNDLE_GEMFILE=Gemfile.local bundle foo)"
|
2
|
-
task :local_gemfile do |t|
|
3
|
-
|
4
|
-
root = Pathname(__FILE__).dirname.parent
|
5
|
-
datamapper = root.parent
|
6
|
-
|
7
|
-
root.join('Gemfile.local').open('w') do |f|
|
8
|
-
root.join('Gemfile').open.each do |line|
|
9
|
-
line.sub!(/DATAMAPPER = 'git:\/\/github.com\/datamapper'/, "DATAMAPPER = '#{datamapper}'")
|
10
|
-
line.sub!(/:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, ':path => "#{DATAMAPPER}/\1"')
|
11
|
-
line.sub!(/do_options\[:git\] = \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/, 'do_options[:path] = "#{DATAMAPPER}/\1"')
|
12
|
-
f.puts line
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|