Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 83 lines (61 sloc) 2.374 kB
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
1 require 'rubygems'
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
2 require 'rake'
3
4 begin
5 require 'jeweler'
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
6
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
7 Jeweler::Tasks.new do |gem|
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
8 gem.name = "dm-is-published"
42b65c7 @kematzy [Fix] Jeweler conflict
authored
9 # gem.version = IO.read('VERSION') || '0.0.0'
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
10 gem.summary = %Q{A DataMapper plugin that provides an easy way to add different states to your models.}
59cdd7e @kematzy DM 1.0.0 compatibility fixes.
authored
11 gem.description = gem.summary
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
12 gem.email = "kematzy@gmail.com"
13 gem.homepage = 'http://github.com/kematzy/dm-is-published'
14 gem.authors = ["kematzy"]
15 gem.extra_rdoc_files = %w[ README.rdoc LICENSE TODO History.rdoc ]
16
111db5e @kematzy Updated dependencies
authored
17 gem.add_dependency 'dm-core', '~> 1.0.0'
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
18
19 gem.add_development_dependency 'rspec', '~> 1.3'
111db5e @kematzy Updated dependencies
authored
20 gem.add_development_dependency 'dm-migrations', '~> 1.0.0'
21 gem.add_development_dependency 'dm-validations', '~> 1.0.0'
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
22 end
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
23
24 Jeweler::GemcutterTasks.new
25
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
26 rescue LoadError
77d4f00 @kematzy Cleanups for 1.0.0 compatibility
authored
27 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
28 end
d413bc3 @kematzy Initial commit of converted Rails (AR) plugin to DM. (which was mostl…
authored
29
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
30 require 'spec/rake/spectask'
31 Spec::Rake::SpecTask.new(:spec) do |spec|
32 spec.libs << 'lib' << 'spec'
7efd2b2 @kematzy Updated dependencies and Rakefile output
authored
33 spec.spec_opts = ["--color", "--format", "nested", "--require", "spec/spec_helper.rb"]
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
34 spec.spec_files = FileList['spec/**/*_spec.rb']
35 end
d413bc3 @kematzy Initial commit of converted Rails (AR) plugin to DM. (which was mostl…
authored
36
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
37 Spec::Rake::SpecTask.new(:rcov) do |spec|
38 spec.libs << 'lib' << 'spec'
7efd2b2 @kematzy Updated dependencies and Rakefile output
authored
39 spec.spec_opts = ["--color", "--format", "nested", "--require", "spec/spec_helper.rb"]
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
40 spec.pattern = 'spec/**/*_spec.rb'
41 spec.rcov = true
42 end
d413bc3 @kematzy Initial commit of converted Rails (AR) plugin to DM. (which was mostl…
authored
43
44
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
45 task :default => :spec
d413bc3 @kematzy Initial commit of converted Rails (AR) plugin to DM. (which was mostl…
authored
46
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
47 require 'rake/rdoctask'
48 Rake::RDocTask.new do |rdoc|
ee1ebbd @kematzy Cleaned up version for docs
authored
49 version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
b744fd0 @kematzy Renamed History and improved Rakefile
authored
50
1e38999 @kematzy Converted gem over to Jeweler instead. Couldn't get the other version…
authored
51 rdoc.rdoc_dir = 'rdoc'
52 rdoc.title = "dm-is-published #{version}"
53 rdoc.rdoc_files.include('README*')
54 rdoc.rdoc_files.include('lib/**/*.rb')
d413bc3 @kematzy Initial commit of converted Rails (AR) plugin to DM. (which was mostl…
authored
55 end
56
b744fd0 @kematzy Renamed History and improved Rakefile
authored
57
58 desc 'Build the rdoc HTML Files'
59 task :docs do
ee1ebbd @kematzy Cleaned up version for docs
authored
60 version = File.exist?('VERSION') ? IO.read('VERSION').chomp : "[Unknown]"
61
f5cb142 @kematzy Added README.rdoc to Docs output
authored
62 sh "sdoc -N --title 'DM::Is::Published v#{version}' lib/dm-is-published README.rdoc"
b744fd0 @kematzy Renamed History and improved Rakefile
authored
63 end
64
65 namespace :docs do
66
67 desc 'Remove rdoc products'
ee1ebbd @kematzy Cleaned up version for docs
authored
68 task :remove => [:clobber_rdoc] do
b744fd0 @kematzy Renamed History and improved Rakefile
authored
69 sh "rm -rf doc"
70 end
71
72 desc 'Force a rebuild of the RDOC files'
73 task :rebuild => [:docs]
74
75 desc 'Build docs, and open in browser for viewing (specify BROWSER)'
76 task :open => [:docs] do
77 browser = ENV["BROWSER"] || "safari"
78 sh "open -a #{browser} doc/index.html"
79 end
80
81 end
82
Something went wrong with that request. Please try again.