pollyanna 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +9 -9
  2. data/VERSION +1 -0
  3. data/spec/spec_helper.rb +1 -1
  4. metadata +2 -1
data/Rakefile CHANGED
@@ -1,18 +1,18 @@
1
1
  require 'rake'
2
- require 'rake/testtask'
2
+ # require 'rake/testtask'
3
3
  require 'rake/rdoctask'
4
+ require 'spec/rake/spectask'
4
5
 
5
- desc 'Default: run unit tests.'
6
- task :default => :test
6
+ desc 'Default: Run all specs.'
7
+ task :default => :spec
7
8
 
8
- desc 'Test the pollyanna gem.'
9
- Rake::TestTask.new(:test) do |t|
10
- t.libs << 'lib'
11
- t.pattern = 'test/**/*_test.rb'
12
- t.verbose = true
9
+ desc "Run all specs"
10
+ Spec::Rake::SpecTask.new() do |t|
11
+ t.spec_opts = ['--options', "\"spec/spec.opts\""]
12
+ t.spec_files = FileList['spec/**/*_spec.rb']
13
13
  end
14
14
 
15
- desc 'Generate documentation for the pollyanna gem.'
15
+ desc 'Generate documentation for the pollyanna gem'
16
16
  Rake::RDocTask.new(:rdoc) do |rdoc|
17
17
  rdoc.rdoc_dir = 'rdoc'
18
18
  rdoc.title = 'pollyanna'
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.1
@@ -5,7 +5,7 @@ ENV['RAILS_ENV'] ||= 'in_memory'
5
5
 
6
6
  # Load the Rails environment and testing framework
7
7
  require "#{File.dirname(__FILE__)}/app_root/config/environment"
8
- require "#{File.dirname(__FILE__)}/../init"
8
+ require "#{File.dirname(__FILE__)}/../lib/pollyanna"
9
9
  require 'spec/rails'
10
10
 
11
11
  # Undo changes to RAILS_ENV
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pollyanna
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
@@ -25,6 +25,7 @@ files:
25
25
  - MIT-LICENSE
26
26
  - README.rdoc
27
27
  - Rakefile
28
+ - VERSION
28
29
  - lib/pollyanna/search.rb
29
30
  - lib/pollyanna/searchable.rb
30
31
  - spec/app_root/app/controllers/application_controller.rb