dm-ferret-adapter 0.10.2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +35 -1
- data/Gemfile +82 -0
- data/Rakefile +3 -4
- data/VERSION +1 -1
- data/bin/ferret +2 -2
- data/dm-ferret-adapter.gemspec +20 -15
- data/lib/ferret_adapter.rb +1 -0
- data/spec/rcov.opts +1 -1
- data/spec/spec_helper.rb +0 -1
- data/tasks/local_gemfile.rake +18 -0
- metadata +72 -40
data/.gitignore
CHANGED
@@ -1 +1,35 @@
|
|
1
|
-
|
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
|
+
|
35
|
+
## PROJECT::SPECIFIC
|
data/Gemfile
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# If you're working on more than one datamapper gem at a time, then it's
|
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.
|
34
|
+
|
35
|
+
source 'http://rubygems.org'
|
36
|
+
|
37
|
+
DATAMAPPER = 'git://github.com/datamapper'
|
38
|
+
DM_VERSION = '~> 1.0.0.rc3'
|
39
|
+
|
40
|
+
group :runtime do # Runtime dependencies (as in the gemspec)
|
41
|
+
|
42
|
+
gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
|
43
|
+
gem 'ferret', '~> 0.11.6'
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
group(:development) do # Development dependencies (as in the gemspec)
|
48
|
+
|
49
|
+
gem 'uuidtools', '~> 2.1.1'
|
50
|
+
gem 'rake', '~> 0.8.7'
|
51
|
+
gem 'rspec', '~> 1.3'
|
52
|
+
gem 'jeweler', '~> 1.4'
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
group :datamapper do # We need this because we want to pin these dependencies to their git master sources
|
57
|
+
|
58
|
+
if ENV['EXTLIB']
|
59
|
+
gem 'extlib', '~> 0.9.15', :git => "#{DATAMAPPER}/extlib.git", :require => nil
|
60
|
+
else
|
61
|
+
gem 'activesupport', '~> 3.0.0.beta3', :git => 'git://github.com/rails/rails.git', :require => nil
|
62
|
+
end
|
63
|
+
|
64
|
+
plugins = ENV['PLUGINS'] || ENV['PLUGIN']
|
65
|
+
plugins = plugins.to_s.tr(',', ' ').split(' ').uniq
|
66
|
+
|
67
|
+
plugins.each do |plugin|
|
68
|
+
gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
|
69
|
+
end
|
70
|
+
|
71
|
+
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/Rakefile
CHANGED
@@ -10,17 +10,16 @@ begin
|
|
10
10
|
gem.summary = 'Ferret Adapter for DataMapper'
|
11
11
|
gem.description = gem.summary
|
12
12
|
gem.email = 'bernerd [a] wieck [d] com'
|
13
|
-
gem.homepage = 'http://github.com/datamapper
|
13
|
+
gem.homepage = 'http://github.com/datamapper/%s' % gem.name
|
14
14
|
gem.authors = [ 'Bernerd Schaefer' ]
|
15
15
|
|
16
16
|
gem.rubyforge_project = 'datamapper'
|
17
17
|
|
18
|
-
gem.add_dependency 'dm-core', '~> 0.
|
18
|
+
gem.add_dependency 'dm-core', '~> 1.0.0.rc3'
|
19
19
|
gem.add_dependency 'ferret', '~> 0.11.6'
|
20
20
|
|
21
|
-
gem.add_development_dependency 'rspec', '~> 1.
|
21
|
+
gem.add_development_dependency 'rspec', '~> 1.3'
|
22
22
|
gem.add_development_dependency 'uuidtools', '~> 2.1.1'
|
23
|
-
gem.add_development_dependency 'yard', '~> 0.4.0'
|
24
23
|
end
|
25
24
|
|
26
25
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0.rc3
|
data/bin/ferret
CHANGED
@@ -7,10 +7,10 @@ require "optparse"
|
|
7
7
|
require "rinda/tuplespace"
|
8
8
|
require 'rubygems'
|
9
9
|
|
10
|
-
gem 'dm-core', '0.10.
|
10
|
+
gem 'dm-core', '0.10.3'
|
11
11
|
require 'dm-core'
|
12
12
|
|
13
|
-
gem 'dm-ferret-adapter', '0.10.
|
13
|
+
gem 'dm-ferret-adapter', '0.10.3'
|
14
14
|
require 'ferret_adapter'
|
15
15
|
|
16
16
|
options = {
|
data/dm-ferret-adapter.gemspec
CHANGED
@@ -5,19 +5,22 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-ferret-adapter}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "1.0.0.rc3"
|
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 = ["Bernerd Schaefer"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-05-27}
|
13
|
+
s.default_executable = %q{ferret}
|
13
14
|
s.description = %q{Ferret Adapter for DataMapper}
|
14
15
|
s.email = %q{bernerd [a] wieck [d] com}
|
16
|
+
s.executables = ["ferret"]
|
15
17
|
s.extra_rdoc_files = [
|
16
18
|
"LICENSE",
|
17
19
|
"README.rdoc"
|
18
20
|
]
|
19
21
|
s.files = [
|
20
22
|
".gitignore",
|
23
|
+
"Gemfile",
|
21
24
|
"LICENSE",
|
22
25
|
"README.rdoc",
|
23
26
|
"Rakefile",
|
@@ -34,41 +37,43 @@ Gem::Specification.new do |s|
|
|
34
37
|
"spec/spec.opts",
|
35
38
|
"spec/spec_helper.rb",
|
36
39
|
"tasks/ci.rake",
|
40
|
+
"tasks/local_gemfile.rake",
|
37
41
|
"tasks/metrics.rake",
|
38
42
|
"tasks/spec.rake",
|
39
43
|
"tasks/yard.rake",
|
40
44
|
"tasks/yardstick.rake"
|
41
45
|
]
|
42
|
-
s.homepage = %q{http://github.com/datamapper/dm-
|
46
|
+
s.homepage = %q{http://github.com/datamapper/dm-ferret-adapter}
|
43
47
|
s.rdoc_options = ["--charset=UTF-8"]
|
44
48
|
s.require_paths = ["lib"]
|
45
49
|
s.rubyforge_project = %q{datamapper}
|
46
|
-
s.rubygems_version = %q{1.3.
|
50
|
+
s.rubygems_version = %q{1.3.7}
|
47
51
|
s.summary = %q{Ferret Adapter for DataMapper}
|
52
|
+
s.test_files = [
|
53
|
+
"spec/adapter_spec.rb",
|
54
|
+
"spec/spec_helper.rb"
|
55
|
+
]
|
48
56
|
|
49
57
|
if s.respond_to? :specification_version then
|
50
58
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
51
59
|
s.specification_version = 3
|
52
60
|
|
53
|
-
if Gem::Version.new(Gem::
|
54
|
-
s.add_runtime_dependency(%q<dm-core>, ["~> 0.
|
61
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
62
|
+
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
|
55
63
|
s.add_runtime_dependency(%q<ferret>, ["~> 0.11.6"])
|
56
|
-
s.add_development_dependency(%q<rspec>, ["~> 1.
|
64
|
+
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
|
57
65
|
s.add_development_dependency(%q<uuidtools>, ["~> 2.1.1"])
|
58
|
-
s.add_development_dependency(%q<yard>, ["~> 0.4.0"])
|
59
66
|
else
|
60
|
-
s.add_dependency(%q<dm-core>, ["~> 0.
|
67
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
|
61
68
|
s.add_dependency(%q<ferret>, ["~> 0.11.6"])
|
62
|
-
s.add_dependency(%q<rspec>, ["~> 1.
|
69
|
+
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
63
70
|
s.add_dependency(%q<uuidtools>, ["~> 2.1.1"])
|
64
|
-
s.add_dependency(%q<yard>, ["~> 0.4.0"])
|
65
71
|
end
|
66
72
|
else
|
67
|
-
s.add_dependency(%q<dm-core>, ["~> 0.
|
73
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.0.rc3"])
|
68
74
|
s.add_dependency(%q<ferret>, ["~> 0.11.6"])
|
69
|
-
s.add_dependency(%q<rspec>, ["~> 1.
|
75
|
+
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
70
76
|
s.add_dependency(%q<uuidtools>, ["~> 2.1.1"])
|
71
|
-
s.add_dependency(%q<yard>, ["~> 0.4.0"])
|
72
77
|
end
|
73
78
|
end
|
74
79
|
|
data/lib/ferret_adapter.rb
CHANGED
data/spec/rcov.opts
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -4,7 +4,6 @@ require 'uuidtools'
|
|
4
4
|
# use local dm-core if running from a typical dev checkout.
|
5
5
|
lib = File.join('..', '..', '..', 'dm-core', 'lib')
|
6
6
|
$LOAD_PATH.unshift(lib) if File.directory?(lib)
|
7
|
-
require 'dm-core'
|
8
7
|
|
9
8
|
# Support running specs with 'rake spec' and 'spec'
|
10
9
|
$LOAD_PATH.unshift('lib') unless $LOAD_PATH.include?('lib')
|
@@ -0,0 +1,18 @@
|
|
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
|
+
source_regex = /DATAMAPPER = 'git:\/\/github.com\/datamapper'/
|
8
|
+
gem_source_regex = /:git => \"#\{DATAMAPPER\}\/(.+?)(?:\.git)?\"/
|
9
|
+
|
10
|
+
root.join('Gemfile.local').open('w') do |f|
|
11
|
+
root.join('Gemfile').open.each do |line|
|
12
|
+
line.sub!(source_regex, "DATAMAPPER = '#{datamapper}'")
|
13
|
+
line.sub!(gem_source_regex, ':path => "#{DATAMAPPER}/\1"')
|
14
|
+
f.puts line
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-ferret-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 977940572
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- rc3
|
11
|
+
version: 1.0.0.rc3
|
5
12
|
platform: ruby
|
6
13
|
authors:
|
7
14
|
- Bernerd Schaefer
|
@@ -9,63 +16,77 @@ autorequire:
|
|
9
16
|
bindir: bin
|
10
17
|
cert_chain: []
|
11
18
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
19
|
+
date: 2010-05-27 00:00:00 -07:00
|
20
|
+
default_executable: ferret
|
14
21
|
dependencies:
|
15
22
|
- !ruby/object:Gem::Dependency
|
16
23
|
name: dm-core
|
17
|
-
|
18
|
-
|
19
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
20
27
|
requirements:
|
21
28
|
- - ~>
|
22
29
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
30
|
+
hash: 977940572
|
31
|
+
segments:
|
32
|
+
- 1
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
- rc3
|
36
|
+
version: 1.0.0.rc3
|
37
|
+
type: :runtime
|
38
|
+
version_requirements: *id001
|
25
39
|
- !ruby/object:Gem::Dependency
|
26
40
|
name: ferret
|
27
|
-
|
28
|
-
|
29
|
-
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
30
44
|
requirements:
|
31
45
|
- - ~>
|
32
46
|
- !ruby/object:Gem::Version
|
47
|
+
hash: 63
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
- 11
|
51
|
+
- 6
|
33
52
|
version: 0.11.6
|
34
|
-
|
53
|
+
type: :runtime
|
54
|
+
version_requirements: *id002
|
35
55
|
- !ruby/object:Gem::Dependency
|
36
56
|
name: rspec
|
37
|
-
|
38
|
-
|
39
|
-
|
57
|
+
prerelease: false
|
58
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
40
60
|
requirements:
|
41
61
|
- - ~>
|
42
62
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
63
|
+
hash: 9
|
64
|
+
segments:
|
65
|
+
- 1
|
66
|
+
- 3
|
67
|
+
version: "1.3"
|
68
|
+
type: :development
|
69
|
+
version_requirements: *id003
|
45
70
|
- !ruby/object:Gem::Dependency
|
46
71
|
name: uuidtools
|
47
|
-
|
48
|
-
|
49
|
-
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
50
75
|
requirements:
|
51
76
|
- - ~>
|
52
77
|
- !ruby/object:Gem::Version
|
78
|
+
hash: 9
|
79
|
+
segments:
|
80
|
+
- 2
|
81
|
+
- 1
|
82
|
+
- 1
|
53
83
|
version: 2.1.1
|
54
|
-
version:
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: yard
|
57
84
|
type: :development
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ~>
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 0.4.0
|
64
|
-
version:
|
85
|
+
version_requirements: *id004
|
65
86
|
description: Ferret Adapter for DataMapper
|
66
87
|
email: bernerd [a] wieck [d] com
|
67
|
-
executables:
|
68
|
-
|
88
|
+
executables:
|
89
|
+
- ferret
|
69
90
|
extensions: []
|
70
91
|
|
71
92
|
extra_rdoc_files:
|
@@ -73,6 +94,7 @@ extra_rdoc_files:
|
|
73
94
|
- README.rdoc
|
74
95
|
files:
|
75
96
|
- .gitignore
|
97
|
+
- Gemfile
|
76
98
|
- LICENSE
|
77
99
|
- README.rdoc
|
78
100
|
- Rakefile
|
@@ -89,12 +111,13 @@ files:
|
|
89
111
|
- spec/spec.opts
|
90
112
|
- spec/spec_helper.rb
|
91
113
|
- tasks/ci.rake
|
114
|
+
- tasks/local_gemfile.rake
|
92
115
|
- tasks/metrics.rake
|
93
116
|
- tasks/spec.rake
|
94
117
|
- tasks/yard.rake
|
95
118
|
- tasks/yardstick.rake
|
96
119
|
has_rdoc: true
|
97
|
-
homepage: http://github.com/datamapper/dm-
|
120
|
+
homepage: http://github.com/datamapper/dm-ferret-adapter
|
98
121
|
licenses: []
|
99
122
|
|
100
123
|
post_install_message:
|
@@ -103,23 +126,32 @@ rdoc_options:
|
|
103
126
|
require_paths:
|
104
127
|
- lib
|
105
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
106
130
|
requirements:
|
107
131
|
- - ">="
|
108
132
|
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
109
136
|
version: "0"
|
110
|
-
version:
|
111
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
112
139
|
requirements:
|
113
|
-
- - "
|
140
|
+
- - ">"
|
114
141
|
- !ruby/object:Gem::Version
|
115
|
-
|
116
|
-
|
142
|
+
hash: 25
|
143
|
+
segments:
|
144
|
+
- 1
|
145
|
+
- 3
|
146
|
+
- 1
|
147
|
+
version: 1.3.1
|
117
148
|
requirements: []
|
118
149
|
|
119
150
|
rubyforge_project: datamapper
|
120
|
-
rubygems_version: 1.3.
|
151
|
+
rubygems_version: 1.3.7
|
121
152
|
signing_key:
|
122
153
|
specification_version: 3
|
123
154
|
summary: Ferret Adapter for DataMapper
|
124
|
-
test_files:
|
125
|
-
|
155
|
+
test_files:
|
156
|
+
- spec/adapter_spec.rb
|
157
|
+
- spec/spec_helper.rb
|