dm-is-published 0.0.3 → 0.0.4

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.
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require 'rubygems'
1
+ # require 'rubygems' # read [ http://gist.github.com/54177 ] to understand why this line is commented out
2
2
  require 'rake'
3
3
 
4
4
  begin
@@ -39,7 +39,7 @@ task :default => :spec
39
39
 
40
40
  require 'rake/rdoctask'
41
41
  Rake::RDocTask.new do |rdoc|
42
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
42
+ version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
43
43
 
44
44
  rdoc.rdoc_dir = 'rdoc'
45
45
  rdoc.title = "dm-is-published #{version}"
@@ -50,14 +50,15 @@ end
50
50
 
51
51
  desc 'Build the rdoc HTML Files'
52
52
  task :docs do
53
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
54
- sh "sdoc -N --title 'DM::Is::Published v#{version}' lib/dm-is-published"
53
+ version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
54
+
55
+ sh "sdoc -N --title 'DM::Is::Published v#{version}' lib/dm-is-published README.rdoc"
55
56
  end
56
57
 
57
58
  namespace :docs do
58
59
 
59
60
  desc 'Remove rdoc products'
60
- task :remove => [:clobber_rdoc] do |variable|
61
+ task :remove => [:clobber_rdoc] do
61
62
  sh "rm -rf doc"
62
63
  end
63
64
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{dm-is-published}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["kematzy"]
9
- s.date = %q{2009-08-20}
9
+ s.date = %q{2009-08-25}
10
10
  s.description = %q{= dm-is-published
11
11
 
12
12
  This plugin makes it very easy to add different states to your models, like 'draft' vs 'live'.
@@ -1,5 +1,5 @@
1
1
  # Needed to import datamapper and other gems
2
- require 'rubygems'
2
+ # require 'rubygems' # read [ http://gist.github.com/54177 ] to understand why this line is commented out
3
3
  require 'pathname'
4
4
 
5
5
  # Add all external dependencies for the plugin here
@@ -1,7 +1,7 @@
1
1
  module DataMapper
2
2
  module Is
3
3
  module Published
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  require 'pathname'
2
- require 'rubygems'
2
+ # require 'rubygems' # read [ http://gist.github.com/54177 ] to understand why this line is commented out
3
3
 
4
4
  gem 'rspec', '~>1.2.6'
5
5
  require 'spec'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-is-published
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - kematzy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-20 00:00:00 +08:00
12
+ date: 2009-08-25 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency