From 14adce7b632244d532e04d80ddf2d79724210a09 Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Fri, 11 Sep 2015 03:28:03 +0200 Subject: Remove sdoc and upgrade dependencies --- Rakefile | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 1d13c2c..7fa6d92 100644 --- a/Rakefile +++ b/Rakefile @@ -23,10 +23,6 @@ class UndocumentedTestTask < Rake::TestTask def desc(*) end end -def skip_sdoc(src) - src.gsub(/^.*sdoc.*/) { |s| s + ' if RUBY_VERSION > "1.8.6"' } -end - MAKE = ENV['MAKE'] || %w[gmake make].find { |c| system(c, '-v') } BUNDLE = ENV['BUNDLE'] || %w[bundle].find { |c| system(c, '-v') } PKG_NAME = 'json' @@ -88,8 +84,7 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.require_path = 'lib' s.add_development_dependency 'permutation' - s.add_development_dependency 'sdoc', '~>0.3.16' - s.add_development_dependency 'rake', '~>0.9.2' + s.add_development_dependency 'rake' s.extra_rdoc_files << 'README.rdoc' s.rdoc_options << @@ -105,7 +100,7 @@ if defined?(Gem) and defined?(Gem::PackageTask) desc 'Creates a json_pure.gemspec file' task :gemspec_pure => :version do File.open('json_pure.gemspec', 'w') do |gemspec| - gemspec.write skip_sdoc(spec_pure.to_ruby) + gemspec.write spec_pure.to_ruby end end @@ -126,7 +121,6 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.require_path = 'lib' s.add_development_dependency 'permutation' - s.add_development_dependency 'sdoc', '~>0.3.16' s.extra_rdoc_files << 'README.rdoc' s.rdoc_options << @@ -142,7 +136,7 @@ if defined?(Gem) and defined?(Gem::PackageTask) desc 'Creates a json.gemspec file' task :gemspec_ext => :version do File.open('json.gemspec', 'w') do |gemspec| - gemspec.write skip_sdoc(spec_ext.to_ruby) + gemspec.write spec_ext.to_ruby end end @@ -341,11 +335,6 @@ else t.options = '-v' end - desc "Create RDOC documentation" - task :doc => [ :version, EXT_PARSER_SRC ] do - sh "sdoc -o doc -t '#{PKG_TITLE}' -m README.rdoc README.rdoc lib/json.rb #{FileList['lib/json/**/*.rb']} #{EXT_PARSER_SRC} #{EXT_GENERATOR_SRC}" - end - desc "Generate parser with ragel" task :ragel => EXT_PARSER_SRC -- cgit v1.2.1 From 5ec2b17a06275726770bb8f7bf38659e07125172 Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Fri, 6 Nov 2015 16:40:46 +0100 Subject: Convert README to markdown --- Rakefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 7fa6d92..ab5569c 100644 --- a/Rakefile +++ b/Rakefile @@ -86,9 +86,9 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.add_development_dependency 'permutation' s.add_development_dependency 'rake' - s.extra_rdoc_files << 'README.rdoc' + s.extra_rdoc_files << 'README.md' s.rdoc_options << - '--title' << 'JSON implemention for ruby' << '--main' << 'README.rdoc' + '--title' << 'JSON implemention for ruby' << '--main' << 'README.md' s.test_files.concat Dir['./tests/test_*.rb'] s.author = "Florian Frank" @@ -122,9 +122,9 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.require_path = 'lib' s.add_development_dependency 'permutation' - s.extra_rdoc_files << 'README.rdoc' + s.extra_rdoc_files << 'README.md' s.rdoc_options << - '--title' << 'JSON implemention for Ruby' << '--main' << 'README.rdoc' + '--title' << 'JSON implemention for Ruby' << '--main' << 'README.md' s.test_files.concat Dir['./tests/test_*.rb'] s.author = "Florian Frank" -- cgit v1.2.1 From ed95eebd5b8dd21eab95f86c1bba1285ebf0a414 Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Thu, 25 Feb 2016 00:45:21 +0100 Subject: Remove permutation dependency --- Rakefile | 2 -- 1 file changed, 2 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index ab5569c..3ff7785 100644 --- a/Rakefile +++ b/Rakefile @@ -83,7 +83,6 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.files = PKG_FILES s.require_path = 'lib' - s.add_development_dependency 'permutation' s.add_development_dependency 'rake' s.extra_rdoc_files << 'README.md' @@ -120,7 +119,6 @@ if defined?(Gem) and defined?(Gem::PackageTask) s.extensions = FileList['ext/**/extconf.rb'] s.require_path = 'lib' - s.add_development_dependency 'permutation' s.extra_rdoc_files << 'README.md' s.rdoc_options << -- cgit v1.2.1