acts_as_list-rails3 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
data/Rakefile CHANGED
@@ -2,44 +2,30 @@ require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
4
  #require 'rake'
5
- #require 'rake/testtask'
5
+ require 'rake/testtask'
6
6
 
7
7
  # Run the test with 'rake' or 'rake test'
8
- #desc 'Default: run acts_as_list unit tests.'
9
- #task :default => :test
10
-
11
- #desc 'Test the acts_as_list plugin.'
12
- #Rake::TestTask.new(:test) do |t|
13
- # t.libs << 'lib' << 'test'
14
- # t.pattern = 'test/**/test_*.rb'
15
- # t.verbose = true
16
- #end
17
-
18
-
19
- # Run jewler task to generate the gemspec file
20
- #require 'jeweler'
21
- #Jeweler::Tasks.new do |gem|
22
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
23
- # gem.name = "acts_as_list-rails3"
24
- # gem.homepage = "http://github.com/chaffeqa/acts_as_list"
25
- # gem.license = "MIT"
26
- # gem.summary = %Q{A gem allowing a active_record model to act_as_list.}
27
- # gem.description = %Q{This "acts_as" extension provides the capabilities for sorting and reordering a number of objects in a list. The class that has this specified needs to have a "position" column defined as an integer on the mapped database table.}
28
- # gem.email = "chaffeqa@gmail.com"
29
- # gem.authors = ["avid Heinemeier Hansson","Swanand Pagnis","Quinn@Kubuntu-Desktop"]
30
- # dependencies defined in Gemfile
31
- #end
32
- #Jeweler::RubygemsDotOrgTasks.new
8
+ desc 'Default: run acts_as_list unit tests.'
9
+ task :default => :test
10
+
11
+ desc 'Test the acts_as_list plugin.'
12
+ Rake::TestTask.new(:test) do |t|
13
+ t.libs << 'lib' << 'test'
14
+ t.pattern = 'test/**/test_*.rb'
15
+ t.verbose = true
16
+ end
17
+
33
18
 
34
19
 
35
20
  # Run the rdoc task to generate rdocs for this gem
36
- #require 'rdoc/task'
37
- #RDoc::Task.new do |rdoc|
38
- # version = File.exist?('VERSION') ? File.read('VERSION') : ""
39
-
40
- # rdoc.rdoc_dir = 'rdoc'
41
- # rdoc.title = "acts_as_list-rails3 #{version}"
42
- # rdoc.rdoc_files.include('README*')
43
- # rdoc.rdoc_files.include('lib/**/*.rb')
44
- #end
21
+ require 'rdoc/task'
22
+ RDoc::Task.new do |rdoc|
23
+ require "acts_as_list/version"
24
+ version = ActiveRecord::Acts::List::VERSION
25
+
26
+ rdoc.rdoc_dir = 'rdoc'
27
+ rdoc.title = "acts_as_list-rails3 #{version}"
28
+ rdoc.rdoc_files.include('README*')
29
+ rdoc.rdoc_files.include('lib/**/*.rb')
30
+ end
45
31
 
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module Acts
3
3
  module List
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
data/test/helper.rb CHANGED
@@ -1,12 +1,12 @@
1
- #require 'rubygems'
2
- #require 'bundler'
3
- #begin
4
- # Bundler.setup(:default, :development)
5
- #rescue Bundler::BundlerError => e
6
- # $stderr.puts e.message
7
- # $stderr.puts "Run `bundle install` to install missing gems"
8
- # exit e.status_code
9
- #end
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
10
  require 'test/unit'
11
11
  require 'active_record'
12
12
  require "#{File.dirname(__FILE__)}/../init"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_list-rails3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Heinemeier Hansson
@@ -93,7 +93,7 @@ extra_rdoc_files: []
93
93
  files:
94
94
  - .gitignore
95
95
  - Gemfile
96
- - README
96
+ - README.rdoc
97
97
  - Rakefile
98
98
  - acts_as_list.gemspec
99
99
  - init.rb