Permalink
Browse files

using Jeweler to get 0.1.2 building

  • Loading branch information...
1 parent 4a1e57e commit c724b814102201036b054e3c84c811303f7ecabb @croaky croaky committed Sep 24, 2009
Showing with 85 additions and 120 deletions.
  1. +28 −34 Rakefile
  2. +1 −0 VERSION
  3. +56 −86 slidedown.gemspec
View
62 Rakefile
@@ -8,42 +8,36 @@ end
desc 'Default: run the specs.'
task :default => :spec
-gem_spec = Gem::Specification.new do |s|
- s.name = %q{slidedown}
- s.version = "0.1.2"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Pat Nakajima", "Dan Croak"]
- s.date = %q{2009-03-10}
- s.default_executable = %q{slidedown}
- s.executables = ["slidedown"]
- s.files = FileList["README.md", "{bin,lib,templates,vendor}/**/*"]
- s.require_paths = ["lib", "vendor"]
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{Create slides with Markdown}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<makers-mark>, [">= 0"])
- s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = "slidedown"
+ gemspec.summary = "Create slides with Markdown"
+ gemspec.homepage = "http://github.com/nakajima/slidedown"
+ gemspec.authors = ["Pat Nakajima", "Dan Croak"]
+ gemspec.executables = ["slidedown"]
+
+ gemspec.require_paths = ["lib", "vendor"]
+ gemspec.files = FileList["README.md",
+ "{bin,lib,templates,vendor}/**/*"]
+
+ if gemspec.respond_to? :specification_version
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ gemspec.specification_version = 2
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0')
+ gemspec.add_runtime_dependency(%q<makers-mark>, [">= 0"])
+ gemspec.add_runtime_dependency(%q<nokogiri>, [">= 0"])
+ else
+ gemspec.add_dependency(%q<makers-mark>, [">= 0"])
+ gemspec.add_dependency(%q<nokogiri>, [">= 0"])
+ end
else
- s.add_dependency(%q<makers-mark>, [">= 0"])
- s.add_dependency(%q<nokogiri>, [">= 0"])
+ gemspec.add_dependency(%q<makers-mark>, [">= 0"])
+ gemspec.add_dependency(%q<nokogiri>, [">= 0"])
end
- else
- s.add_dependency(%q<makers-mark>, [">= 0"])
- s.add_dependency(%q<nokogiri>, [">= 0"])
end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
-desc "Generate a gemspec file"
-task :gemspec do
- File.open("#{gem_spec.name}.gemspec", 'w') do |f|
- f.write gem_spec.to_yaml
- end
-end
-
-
View
1 VERSION
@@ -0,0 +1 @@
+0.1.2
View
142 slidedown.gemspec
@@ -1,90 +1,60 @@
---- !ruby/object:Gem::Specification
-name: slidedown
-version: !ruby/object:Gem::Version
- version: 0.1.2
-platform: ruby
-authors:
-- Pat Nakajima
-- Dan Croak
-autorequire:
-bindir: bin
-cert_chain: []
+# Generated by jeweler
+# DO NOT EDIT THIS FILE
+# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
+# -*- encoding: utf-8 -*-
-date: 2009-03-10 00:00:00 -04:00
-default_executable: slidedown
-dependencies:
-- !ruby/object:Gem::Dependency
- name: makers-mark
- type: :runtime
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-- !ruby/object:Gem::Dependency
- name: nokogiri
- type: :runtime
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-description:
-email:
-executables:
-- slidedown
-extensions: []
+Gem::Specification.new do |s|
+ s.name = %q{slidedown}
+ s.version = "0.1.2"
-extra_rdoc_files: []
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Pat Nakajima", "Dan Croak"]
+ s.date = %q{2009-09-24}
+ s.default_executable = %q{slidedown}
+ s.executables = ["slidedown"]
+ s.extra_rdoc_files = [
+ "README.md"
+ ]
+ s.files = [
+ "README.md",
+ "bin/slidedown",
+ "lib/slide.rb",
+ "lib/slidedown.rb",
+ "templates/default.erb",
+ "templates/import.erb",
+ "templates/javascripts/jquery-1.3.2.js",
+ "templates/javascripts/jquery.easing.js",
+ "templates/javascripts/jquery.hash-changed.js",
+ "templates/javascripts/slides.js",
+ "templates/stylesheets/screen.css",
+ "templates/stylesheets/slides.css",
+ "vendor/albino.rb"
+ ]
+ s.homepage = %q{http://github.com/nakajima/slidedown}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib", "vendor"]
+ s.rubygems_version = %q{1.3.3}
+ s.summary = %q{Create slides with Markdown}
+ s.test_files = [
+ "spec/commandline_spec.rb",
+ "spec/helper.rb",
+ "spec/slide_spec.rb",
+ "spec/slidedown_spec.rb"
+ ]
-files:
-- README.md
-- bin/slidedown
-- lib/slide.rb
-- lib/slidedown.rb
-- templates/default.erb
-- templates/import.erb
-- templates/javascripts
-- templates/javascripts/jquery-1.3.2.js
-- templates/javascripts/jquery.easing.js
-- templates/javascripts/jquery.hash-changed.js
-- templates/javascripts/slides.js
-- templates/stylesheets
-- templates/stylesheets/screen.css
-- templates/stylesheets/slides.css
-- vendor/albino.rb
-has_rdoc: true
-homepage:
-licenses: []
-
-post_install_message:
-rdoc_options: []
-
-require_paths:
-- lib
-- vendor
-required_ruby_version: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-required_rubygems_version: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-requirements: []
-
-rubyforge_project:
-rubygems_version: 1.3.3
-signing_key:
-specification_version: 2
-summary: Create slides with Markdown
-test_files: []
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<makers-mark>, [">= 0"])
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
+ else
+ s.add_dependency(%q<makers-mark>, [">= 0"])
+ s.add_dependency(%q<nokogiri>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<makers-mark>, [">= 0"])
+ s.add_dependency(%q<nokogiri>, [">= 0"])
+ end
+end

0 comments on commit c724b81

Please sign in to comment.