dm-ferret-adapter 0.10.0 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Bernerd Schaefer
1
+ Copyright (c) 2009 Bernerd Schaefer
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,25 +1,31 @@
1
- require 'pathname'
1
+ require 'rubygems'
2
+ require 'rake'
2
3
 
3
- ROOT = Pathname(__FILE__).dirname.expand_path
4
- JRUBY = RUBY_PLATFORM =~ /java/
5
- WINDOWS = Gem.win_platform?
6
- SUDO = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])
4
+ begin
5
+ gem 'jeweler', '~> 1.4'
6
+ require 'jeweler'
7
7
 
8
- require ROOT + 'lib/ferret_adapter/version'
8
+ Jeweler::Tasks.new do |gem|
9
+ gem.name = 'dm-ferret-adapter'
10
+ gem.summary = 'Ferret Adapter for DataMapper'
11
+ gem.description = gem.summary
12
+ gem.email = 'bernerd [a] wieck [d] com'
13
+ gem.homepage = 'http://github.com/datamapper/dm-more/tree/master/adapters/%s' % gem.name
14
+ gem.authors = [ 'Bernerd Schaefer' ]
9
15
 
10
- AUTHOR = 'Bernerd Schaefer'
11
- EMAIL = 'bernerd [a] wieck [d] com'
12
- GEM_NAME = 'dm-ferret-adapter'
13
- GEM_VERSION = DataMapper::FerretAdapter::VERSION
14
- GEM_DEPENDENCIES = [['dm-core', GEM_VERSION], ['ferret', '~>0.11.6']]
15
- GEM_CLEAN = %w[ log pkg coverage ]
16
- GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.rdoc LICENSE TODO History.rdoc ] } #,
17
- # :executables => %w[ ferret ], :bindir => 'bin' } # FIXME: should this be enabled?
16
+ gem.rubyforge_project = 'datamapper'
18
17
 
19
- PROJECT_NAME = 'datamapper'
20
- PROJECT_URL = "http://github.com/sam/dm-more/tree/master/adapters/#{GEM_NAME}"
21
- PROJECT_DESCRIPTION = PROJECT_SUMMARY = 'Ferret Adapter for DataMapper'
18
+ gem.add_dependency 'dm-core', '~> 0.10.2'
19
+ gem.add_dependency 'ferret', '~> 0.11.6'
22
20
 
23
- [ ROOT, ROOT.parent.parent ].each do |dir|
24
- Pathname.glob(dir.join('tasks/**/*.rb').to_s).each { |f| require f }
21
+ gem.add_development_dependency 'rspec', '~> 1.2.9'
22
+ gem.add_development_dependency 'uuidtools', '~> 2.1.1'
23
+ gem.add_development_dependency 'yard', '~> 0.4.0'
24
+ end
25
+
26
+ Jeweler::GemcutterTasks.new
27
+
28
+ FileList['tasks/**/*.rake'].each { |task| import task }
29
+ rescue LoadError
30
+ puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
25
31
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.10.2
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.0'
10
+ gem 'dm-core', '0.10.2'
11
11
  require 'dm-core'
12
12
 
13
- gem 'dm-ferret-adapter', '0.10.0'
13
+ gem 'dm-ferret-adapter', '0.10.2'
14
14
  require 'ferret_adapter'
15
15
 
16
16
  options = {
@@ -0,0 +1,74 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{dm-ferret-adapter}
8
+ s.version = "0.10.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Bernerd Schaefer"]
12
+ s.date = %q{2009-12-11}
13
+ s.description = %q{Ferret Adapter for DataMapper}
14
+ s.email = %q{bernerd [a] wieck [d] com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "bin/ferret",
26
+ "dm-ferret-adapter.gemspec",
27
+ "lib/ferret_adapter.rb",
28
+ "lib/ferret_adapter/adapter.rb",
29
+ "lib/ferret_adapter/local_index.rb",
30
+ "lib/ferret_adapter/remote_index.rb",
31
+ "lib/ferret_adapter/repository_ext.rb",
32
+ "spec/adapter_spec.rb",
33
+ "spec/rcov.opts",
34
+ "spec/spec.opts",
35
+ "spec/spec_helper.rb",
36
+ "tasks/ci.rake",
37
+ "tasks/metrics.rake",
38
+ "tasks/spec.rake",
39
+ "tasks/yard.rake",
40
+ "tasks/yardstick.rake"
41
+ ]
42
+ s.homepage = %q{http://github.com/datamapper/dm-more/tree/master/adapters/dm-ferret-adapter}
43
+ s.rdoc_options = ["--charset=UTF-8"]
44
+ s.require_paths = ["lib"]
45
+ s.rubyforge_project = %q{datamapper}
46
+ s.rubygems_version = %q{1.3.5}
47
+ s.summary = %q{Ferret Adapter for DataMapper}
48
+
49
+ if s.respond_to? :specification_version then
50
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
+ s.specification_version = 3
52
+
53
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
+ s.add_runtime_dependency(%q<dm-core>, ["~> 0.10.2"])
55
+ s.add_runtime_dependency(%q<ferret>, ["~> 0.11.6"])
56
+ s.add_development_dependency(%q<rspec>, ["~> 1.2.9"])
57
+ s.add_development_dependency(%q<uuidtools>, ["~> 2.1.1"])
58
+ s.add_development_dependency(%q<yard>, ["~> 0.4.0"])
59
+ else
60
+ s.add_dependency(%q<dm-core>, ["~> 0.10.2"])
61
+ s.add_dependency(%q<ferret>, ["~> 0.11.6"])
62
+ s.add_dependency(%q<rspec>, ["~> 1.2.9"])
63
+ s.add_dependency(%q<uuidtools>, ["~> 2.1.1"])
64
+ s.add_dependency(%q<yard>, ["~> 0.4.0"])
65
+ end
66
+ else
67
+ s.add_dependency(%q<dm-core>, ["~> 0.10.2"])
68
+ s.add_dependency(%q<ferret>, ["~> 0.11.6"])
69
+ s.add_dependency(%q<rspec>, ["~> 1.2.9"])
70
+ s.add_dependency(%q<uuidtools>, ["~> 2.1.1"])
71
+ s.add_dependency(%q<yard>, ["~> 0.4.0"])
72
+ end
73
+ end
74
+
@@ -4,4 +4,3 @@ require 'ferret_adapter/adapter'
4
4
  require 'ferret_adapter/local_index'
5
5
  require 'ferret_adapter/remote_index'
6
6
  require 'ferret_adapter/repository_ext'
7
- require 'ferret_adapter/version'
@@ -0,0 +1,6 @@
1
+ --exclude "spec"
2
+ --sort coverage
3
+ --callsites
4
+ --xrefs
5
+ --profile
6
+ --text-summary
@@ -1,2 +1,4 @@
1
1
  --colour
2
2
  --loadby random
3
+ --format profile
4
+ --backtrace
@@ -0,0 +1 @@
1
+ task :ci => [ :verify_measurements, 'metrics:all' ]
@@ -0,0 +1,36 @@
1
+ begin
2
+ require 'metric_fu'
3
+ rescue LoadError
4
+ namespace :metrics do
5
+ task :all do
6
+ abort 'metric_fu is not available. In order to run metrics:all, you must: gem install metric_fu'
7
+ end
8
+ end
9
+ end
10
+
11
+ begin
12
+ require 'reek/adapters/rake_task'
13
+
14
+ Reek::RakeTask.new do |t|
15
+ t.fail_on_error = true
16
+ t.verbose = false
17
+ t.source_files = 'lib/**/*.rb'
18
+ end
19
+ rescue LoadError
20
+ task :reek do
21
+ abort 'Reek is not available. In order to run reek, you must: gem install reek'
22
+ end
23
+ end
24
+
25
+ begin
26
+ require 'roodi'
27
+ require 'roodi_task'
28
+
29
+ RoodiTask.new do |t|
30
+ t.verbose = false
31
+ end
32
+ rescue LoadError
33
+ task :roodi do
34
+ abort 'Roodi is not available. In order to run roodi, you must: gem install roodi'
35
+ end
36
+ end
@@ -0,0 +1,41 @@
1
+ spec_defaults = lambda do |spec|
2
+ spec.pattern = 'spec/**/*_spec.rb'
3
+ spec.libs << 'lib' << 'spec'
4
+ spec.spec_opts << '--options' << 'spec/spec.opts'
5
+ end
6
+
7
+ begin
8
+ require 'spec/rake/spectask'
9
+
10
+ Spec::Rake::SpecTask.new(:spec, &spec_defaults)
11
+ rescue LoadError
12
+ task :spec do
13
+ abort 'rspec is not available. In order to run spec, you must: gem install rspec'
14
+ end
15
+ end
16
+
17
+ begin
18
+ require 'rcov'
19
+ require 'spec/rake/verify_rcov'
20
+
21
+ Spec::Rake::SpecTask.new(:rcov) do |rcov|
22
+ spec_defaults.call(rcov)
23
+ rcov.rcov = true
24
+ rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
25
+ end
26
+
27
+ RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
28
+ rcov.threshold = 100
29
+ end
30
+ rescue LoadError
31
+ %w[ rcov verify_rcov ].each do |name|
32
+ task name do
33
+ abort "rcov is not available. In order to run #{name}, you must: gem install rcov"
34
+ end
35
+ end
36
+ end
37
+
38
+ task :spec => :check_dependencies
39
+ task :rcov => :check_dependencies
40
+
41
+ task :default => :spec
@@ -0,0 +1,9 @@
1
+ begin
2
+ require 'yard'
3
+
4
+ YARD::Rake::YardocTask.new
5
+ rescue LoadError
6
+ task :yard do
7
+ abort 'YARD is not available. In order to run yard, you must: gem install yard'
8
+ end
9
+ end
@@ -0,0 +1,19 @@
1
+ begin
2
+ require 'pathname'
3
+ require 'yardstick/rake/measurement'
4
+ require 'yardstick/rake/verify'
5
+
6
+ # yardstick_measure task
7
+ Yardstick::Rake::Measurement.new
8
+
9
+ # verify_measurements task
10
+ Yardstick::Rake::Verify.new do |verify|
11
+ verify.threshold = 100
12
+ end
13
+ rescue LoadError
14
+ %w[ yardstick_measure verify_measurements ].each do |name|
15
+ task name.to_s do
16
+ abort "Yardstick is not available. In order to run #{name}, you must: gem install yardstick"
17
+ end
18
+ end
19
+ 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.10.0
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernerd Schaefer
@@ -9,50 +9,97 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-16 00:00:00 -07:00
12
+ date: 2009-12-11 00:00:00 -08:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: dm-core
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 0.10.2
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: ferret
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 0.11.6
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rspec
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.2.9
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: uuidtools
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.1.1
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ type: :development
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: 0.4.0
64
+ version:
16
65
  description: Ferret Adapter for DataMapper
17
- email:
18
- - bernerd [a] wieck [d] com
19
- executables:
20
- - ferret
66
+ email: bernerd [a] wieck [d] com
67
+ executables: []
68
+
21
69
  extensions: []
22
70
 
23
71
  extra_rdoc_files:
24
- - README.rdoc
25
72
  - LICENSE
26
- - TODO
27
- - History.rdoc
73
+ - README.rdoc
28
74
  files:
29
75
  - .gitignore
30
- - History.rdoc
31
76
  - LICENSE
32
- - Manifest.txt
33
77
  - README.rdoc
34
78
  - Rakefile
35
- - TODO
79
+ - VERSION
36
80
  - bin/ferret
81
+ - dm-ferret-adapter.gemspec
37
82
  - lib/ferret_adapter.rb
38
83
  - lib/ferret_adapter/adapter.rb
39
84
  - lib/ferret_adapter/local_index.rb
40
85
  - lib/ferret_adapter/remote_index.rb
41
86
  - lib/ferret_adapter/repository_ext.rb
42
- - lib/ferret_adapter/version.rb
43
87
  - spec/adapter_spec.rb
88
+ - spec/rcov.opts
44
89
  - spec/spec.opts
45
90
  - spec/spec_helper.rb
46
- - tasks/install.rb
47
- - tasks/spec.rb
91
+ - tasks/ci.rake
92
+ - tasks/metrics.rake
93
+ - tasks/spec.rake
94
+ - tasks/yard.rake
95
+ - tasks/yardstick.rake
48
96
  has_rdoc: true
49
- homepage: http://github.com/sam/dm-more/tree/master/adapters/dm-ferret-adapter
97
+ homepage: http://github.com/datamapper/dm-more/tree/master/adapters/dm-ferret-adapter
50
98
  licenses: []
51
99
 
52
100
  post_install_message:
53
101
  rdoc_options:
54
- - --main
55
- - README.rdoc
102
+ - --charset=UTF-8
56
103
  require_paths:
57
104
  - lib
58
105
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -1,19 +0,0 @@
1
- === 0.10.0 / 2009-10-15
2
-
3
- * Updated to work with dm-core 0.10.0
4
-
5
- === 0.9.11 / 2009-03-29
6
-
7
- * No changes this version
8
-
9
- === 0.9.10 / 2009-01-19
10
-
11
- * No changes this version
12
-
13
- === 0.9.9 / 2009-01-04
14
-
15
- * No changes this version
16
-
17
- === 0.9.8 / 2008-12-07
18
-
19
- * No changes this version
@@ -1,19 +0,0 @@
1
- .gitignore
2
- History.rdoc
3
- LICENSE
4
- Manifest.txt
5
- README.rdoc
6
- Rakefile
7
- TODO
8
- bin/ferret
9
- lib/ferret_adapter.rb
10
- lib/ferret_adapter/adapter.rb
11
- lib/ferret_adapter/local_index.rb
12
- lib/ferret_adapter/remote_index.rb
13
- lib/ferret_adapter/repository_ext.rb
14
- lib/ferret_adapter/version.rb
15
- spec/adapter_spec.rb
16
- spec/spec.opts
17
- spec/spec_helper.rb
18
- tasks/install.rb
19
- tasks/spec.rb
data/TODO DELETED
File without changes
@@ -1,5 +0,0 @@
1
- module DataMapper
2
- class FerretAdapter
3
- VERSION = '0.10.0'.freeze
4
- end
5
- end
@@ -1,13 +0,0 @@
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 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
@@ -1,25 +0,0 @@
1
- begin
2
- require 'spec/rake/spectask'
3
-
4
- task :default => [ :spec ]
5
-
6
- desc 'Run specifications'
7
- Spec::Rake::SpecTask.new(:spec) do |t|
8
- t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
9
- t.libs << 'lib' << 'spec' # needed for CI rake spec task, duplicated in spec_helper
10
-
11
- begin
12
- require 'rcov'
13
- t.rcov = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
14
- t.rcov_opts << '--exclude' << 'spec'
15
- t.rcov_opts << '--text-summary'
16
- t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
17
- rescue LoadError
18
- # rcov not installed
19
- rescue SyntaxError
20
- # rcov syntax invalid
21
- end
22
- end
23
- rescue LoadError
24
- # rspec not installed
25
- end