dm-ferret-adapter 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/Manifest.txt +2 -0
- data/README.txt +1 -1
- data/Rakefile +21 -48
- data/TODO +0 -8
- data/bin/ferret +8 -4
- data/lib/ferret_adapter/version.rb +2 -4
- data/lib/ferret_adapter.rb +3 -3
- data/spec/adapter_spec.rb +1 -1
- data/spec/helper.rb +1 -1
- data/spec/spec.opts +0 -1
- data/tasks/install.rb +13 -0
- data/tasks/spec.rb +25 -0
- metadata +12 -9
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,53 +1,26 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'spec'
|
3
|
-
require 'spec/rake/spectask'
|
4
1
|
require 'pathname'
|
2
|
+
require 'rubygems'
|
5
3
|
|
6
|
-
ROOT
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
EMAIL = "bernerd@wieck.com"
|
11
|
-
GEM_NAME = "dm-ferret-adapter"
|
12
|
-
GEM_VERSION = DataMapper::More::FerretAdapter::VERSION
|
13
|
-
GEM_DEPENDENCIES = [["dm-core", ">=#{GEM_VERSION}"]]
|
14
|
-
GEM_CLEAN = ["log", "pkg"]
|
15
|
-
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ] }
|
16
|
-
|
17
|
-
PROJECT_NAME = "datamapper"
|
18
|
-
PROJECT_URL = "http://github.com/sam/dm-more/tree/master/adapters/dm-ferret-adapter"
|
19
|
-
PROJECT_DESCRIPTION = PROJECT_SUMMARY = "Ferret Adapter for DataMapper"
|
20
|
-
|
21
|
-
require ROOT.parent.parent + 'tasks/hoe'
|
22
|
-
|
23
|
-
task :default => [ :spec ]
|
24
|
-
|
25
|
-
WIN32 = (RUBY_PLATFORM =~ /win32|mingw|cygwin/) rescue nil
|
26
|
-
SUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS'])
|
27
|
-
|
28
|
-
desc "Install #{GEM_NAME} #{GEM_VERSION}"
|
29
|
-
task :install => [ :package ] do
|
30
|
-
sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false
|
31
|
-
end
|
32
|
-
|
33
|
-
desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)"
|
34
|
-
task :uninstall => [ :clobber ] do
|
35
|
-
sh "#{SUDO} gem uninstall #{GEM_NAME} -v#{GEM_VERSION} -I -x", :verbose => false
|
36
|
-
end
|
4
|
+
ROOT = Pathname(__FILE__).dirname.expand_path
|
5
|
+
JRUBY = RUBY_PLATFORM =~ /java/
|
6
|
+
WINDOWS = Gem.win_platform?
|
7
|
+
SUDO = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])
|
37
8
|
|
38
|
-
|
39
|
-
Spec::Rake::SpecTask.new(:spec) do |t|
|
40
|
-
if File.exists?('spec/spec.opts')
|
41
|
-
t.spec_opts << '--options' << 'spec/spec.opts'
|
42
|
-
end
|
43
|
-
t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s)
|
9
|
+
require ROOT + 'lib/ferret_adapter/version'
|
44
10
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
11
|
+
AUTHOR = 'Bernerd Schaefer'
|
12
|
+
EMAIL = 'bernerd [a] wieck [d] com'
|
13
|
+
GEM_NAME = 'dm-ferret-adapter'
|
14
|
+
GEM_VERSION = DataMapper::FerretAdapter::VERSION
|
15
|
+
GEM_DEPENDENCIES = [['dm-core', "~>#{GEM_VERSION}"], ['ferret', '~>0.11.6']]
|
16
|
+
GEM_CLEAN = %w[ log pkg coverage ]
|
17
|
+
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO History.txt ] } #,
|
18
|
+
# :executables => %w[ ferret ], :bindir => 'bin' } # FIXME: should this be enabled?
|
19
|
+
|
20
|
+
PROJECT_NAME = 'datamapper'
|
21
|
+
PROJECT_URL = "http://github.com/sam/dm-more/tree/master/adapters/#{GEM_NAME}"
|
22
|
+
PROJECT_DESCRIPTION = PROJECT_SUMMARY = 'Ferret Adapter for DataMapper'
|
23
|
+
|
24
|
+
[ ROOT, ROOT.parent.parent ].each do |dir|
|
25
|
+
Pathname.glob(dir.join('tasks/**/*.rb').to_s).each { |f| require f }
|
53
26
|
end
|
data/TODO
CHANGED
data/bin/ferret
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require "rubygems"
|
3
|
-
require "dm-core"
|
4
|
-
require "ferret_adapter"
|
5
2
|
|
6
3
|
require "fileutils"
|
7
4
|
require "drb"
|
8
5
|
require "drb/unix"
|
9
|
-
require "rinda/tuplespace"
|
10
6
|
require "optparse"
|
7
|
+
require "rinda/tuplespace"
|
8
|
+
require 'rubygems'
|
9
|
+
|
10
|
+
gem 'dm-core', '~>0.9.8'
|
11
|
+
require 'dm-core'
|
12
|
+
|
13
|
+
gem 'dm-ferret-adapter', '~>0.9.8'
|
14
|
+
require 'ferret_adapter'
|
11
15
|
|
12
16
|
options = {
|
13
17
|
:name => "ferret_index",
|
data/lib/ferret_adapter.rb
CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
|
|
2
2
|
require 'pathname'
|
3
3
|
require Pathname(__FILE__).dirname + 'ferret_adapter/version'
|
4
4
|
|
5
|
-
gem 'dm-core',
|
5
|
+
gem 'dm-core', '~>0.9.8'
|
6
6
|
require 'dm-core'
|
7
7
|
|
8
|
-
gem
|
9
|
-
require
|
8
|
+
gem 'ferret', '~>0.11.6'
|
9
|
+
require 'ferret'
|
10
10
|
|
11
11
|
module DataMapper
|
12
12
|
module Adapters
|
data/spec/adapter_spec.rb
CHANGED
data/spec/helper.rb
CHANGED
data/spec/spec.opts
CHANGED
data/tasks/install.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
def sudo_gem(cmd)
|
2
|
+
sh "#{SUDO} #{RUBY} -S gem #{cmd}", :verbose => false
|
3
|
+
end
|
4
|
+
|
5
|
+
desc "Install #{GEM_NAME} #{GEM_VERSION}"
|
6
|
+
task :install => [ :package ] do
|
7
|
+
sudo_gem "install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources"
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "Uninstall #{GEM_NAME} #{GEM_VERSION}"
|
11
|
+
task :uninstall => [ :clobber ] do
|
12
|
+
sudo_gem "uninstall #{GEM_NAME} -v#{GEM_VERSION} -Ix"
|
13
|
+
end
|
data/tasks/spec.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
begin
|
2
|
+
gem 'rspec', '~>1.1.11'
|
3
|
+
require 'spec'
|
4
|
+
require 'spec/rake/spectask'
|
5
|
+
|
6
|
+
task :default => [ :spec ]
|
7
|
+
|
8
|
+
desc 'Run specifications'
|
9
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
10
|
+
t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
|
11
|
+
t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s)
|
12
|
+
|
13
|
+
begin
|
14
|
+
gem 'rcov', '~>0.8'
|
15
|
+
t.rcov = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
|
16
|
+
t.rcov_opts << '--exclude' << 'spec'
|
17
|
+
t.rcov_opts << '--text-summary'
|
18
|
+
t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
|
19
|
+
rescue LoadError
|
20
|
+
# rcov not installed
|
21
|
+
end
|
22
|
+
end
|
23
|
+
rescue LoadError
|
24
|
+
# rspec not installed
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-ferret-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernerd Schaefer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-12-07 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -18,23 +18,23 @@ dependencies:
|
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.9.
|
23
|
+
version: 0.9.8
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
type: :
|
26
|
+
name: ferret
|
27
|
+
type: :runtime
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.11.6
|
34
34
|
version:
|
35
35
|
description: Ferret Adapter for DataMapper
|
36
36
|
email:
|
37
|
-
- bernerd
|
37
|
+
- bernerd [a] wieck [d] com
|
38
38
|
executables:
|
39
39
|
- ferret
|
40
40
|
extensions: []
|
@@ -43,6 +43,7 @@ extra_rdoc_files:
|
|
43
43
|
- README.txt
|
44
44
|
- LICENSE
|
45
45
|
- TODO
|
46
|
+
- History.txt
|
46
47
|
files:
|
47
48
|
- .gitignore
|
48
49
|
- History.txt
|
@@ -60,6 +61,8 @@ files:
|
|
60
61
|
- spec/adapter_spec.rb
|
61
62
|
- spec/helper.rb
|
62
63
|
- spec/spec.opts
|
64
|
+
- tasks/install.rb
|
65
|
+
- tasks/spec.rb
|
63
66
|
has_rdoc: true
|
64
67
|
homepage: http://github.com/sam/dm-more/tree/master/adapters/dm-ferret-adapter
|
65
68
|
post_install_message:
|