Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated for echoe 3.0.2

  • Loading branch information...
commit 821e4eeb7da70d79bba3bb0304c15e5e0794c3fb 1 parent 5a96aab
@ELLIOTTCABLE authored
Showing with 58 additions and 130 deletions.
  1. +2 −2 .gitignore
  2. +7 −4 README.markdown
  3. +7 −12 Rakefile.rb
  4. +42 −112 attr_splat.gemspec
View
4 .gitignore
@@ -1,3 +1,3 @@
.yardoc
-meta
-pkg
+meta/
+pkg/
View
11 README.markdown
@@ -87,19 +87,22 @@ latest 'release' version from [RubyForge][], using the `gem` command line tool:
sudo gem install attr_splat # You'll be asked for your account password.
-Alternatively, you can acquire it (possibly slightly more up-to-date,
-depending on how often I update the gemspec) from GitHub as follows:
+Alternatively, you can acquire a (possibly slightly more up-to-date,
+depending on how often the gemspec is updated) version from GitHub as follows:
# If you've ever done this before, you don't need to do it now - see http://gems.github.com
gem sources -a http://gems.github.com
sudo gem install elliottcable-attr_splat # You'll be asked for your account password.
Finally, you can build a gem from the latest source yourself. You need [git][],
-as well as [Rake][] and [echoe][]:
+as well as [Rake][] and elliottcable's clone of [echoe][]:
git clone git://github.com/elliottcable/attr_splat.git
cd attr_splat
- rake package:install # You'll be asked for your account password.
+ # If you've ever done this before, you don't need to do it now - see http://gems.github.com
+ gem sources -a http://gems.github.com
+ sudo gem install elliottcable-echoe # You'll be asked for your account password.
+ rake install # You'll be asked for your account password.
[RubyGems]: <http://rubyforge.org/projects/rubygems/> "RubyGems - Ruby package manager"
[RubyForge]: <http://rubyforge.org/projects/attr_splat/> "attr_* on RubyForge"
View
19 Rakefile.rb
@@ -11,17 +11,20 @@ module AttrSplat; Version = -1; end
begin
require 'echoe'
- task :package => :'package:install'
+ task :package => :'package:package'
+ task :install => :'package:install'
task :manifest => :'package:manifest'
namespace :package do
Echoe.new('attr_splat', AttrSplat::Version) do |g|
- g.project = 'attr_splat'
+ g.project = 'attr_*'
g.author = ['elliottcable']
g.email = ['attr_splat@elliottcable.com']
g.summary = "attr_* puts Ruby Core's attr_accessor, attr_reader, and attr_reader on steroids"
g.url = 'http://by.elliottcable.name/attr_splat.xhtml'
- g.development_dependencies = ['echoe >=3.0.1', 'rspec', 'rcov', 'yard', 'stringray']
+ g.development_dependencies = ['echoe >= 3.0.2', 'rspec', 'rcov', 'yard', 'stringray']
g.manifest_name = '.manifest'
+ g.retain_gemspec = true
+ g.rakefile_name = 'Rakefile.rb'
g.ignore_pattern = /^\.git\/|^meta\/|\.gemspec/
end
@@ -32,14 +35,6 @@ module AttrSplat; Version = -1; end
puts "\nThe library files are present"
end
end
-
- task :copy_gemspec => [:package] do
- pkg = Dir['pkg/*'].select {|dir| File.directory? dir}.last
- mv File.join(pkg, pkg.gsub(/^pkg\//,'').gsub(/\-\d+$/,'.gemspec')), './'
- end
-
- desc 'builds a gemspec as GitHub wants it'
- task :gemspec => [:package, :copy_gemspec, :clobber_package]
end
rescue LoadError
@@ -134,7 +129,7 @@ module AttrSplat; Version = -1; end
desc 'Check everything over before commiting'
task :aok => [:'documentation:generate', :'documentation:open',
- :'package:manifest', :'package:gemspec',
+ :'package:manifest', :'package:package',
:'coverage:run', :'coverage:open', :'coverage:verify']
task :ci => [:'documentation:generate', :'coverage:run', :'coverage:verify']
View
154 attr_splat.gemspec
@@ -1,116 +1,46 @@
+# -*- encoding: utf-8 -*-
-# Gem::Specification for Attr_splat-0
-# Originally generated by Echoe
+Gem::Specification.new do |s|
+ s.name = %q{attr_splat}
+ s.version = "0"
---- !ruby/object:Gem::Specification
-name: attr_splat
-version: !ruby/object:Gem::Version
- version: "0"
-platform: ruby
-authors:
-- elliottcable
-autorequire:
-bindir: bin
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
+ s.authors = ["elliottcable"]
+ s.date = %q{2008-10-13}
+ s.description = %q{attr_* puts Ruby Core's attr_accessor, attr_reader, and attr_reader on steroids}
+ s.email = ["attr_splat@elliottcable.com"]
+ s.extra_rdoc_files = ["lib/attr_splat.rb", "README.markdown"]
+ s.files = ["lib/attr_splat.rb", "Rakefile.rb", "README.markdown", "spec/attr_splat_spec.rb", "spec/spec_helper.rb", ".manifest", "attr_splat.gemspec"]
+ s.has_rdoc = true
+ s.homepage = %q{http://by.elliottcable.name/attr_splat.xhtml}
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Attr_splat", "--main", "README.markdown"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{attr_*}
+ s.rubygems_version = %q{1.3.0}
+ s.summary = %q{attr_* puts Ruby Core's attr_accessor, attr_reader, and attr_reader on steroids}
-date: 2008-10-09 00:00:00 -08:00
-default_executable:
-dependencies:
-- !ruby/object:Gem::Dependency
- name: echoe
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: 3.0.1
- version:
-- !ruby/object:Gem::Dependency
- name: rspec
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-- !ruby/object:Gem::Dependency
- name: rcov
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-- !ruby/object:Gem::Dependency
- name: yard
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-- !ruby/object:Gem::Dependency
- name: stringray
- type: :development
- version_requirement:
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: "0"
- version:
-description: attr_* puts Ruby Core's attr_accessor, attr_reader, and attr_reader on steroids
-email:
-- attr_splat@elliottcable.com
-executables: []
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
-extensions: []
-
-extra_rdoc_files:
-- lib/attr_splat.rb
-- README.markdown
-files:
-- lib/attr_splat.rb
-- Rakefile.rb
-- README.markdown
-- spec/attr_splat_spec.rb
-- spec/spec_helper.rb
-- .manifest
-- attr_splat.gemspec
-has_rdoc: true
-homepage: http://by.elliottcable.name/attr_splat.xhtml
-post_install_message:
-rdoc_options:
-- --line-numbers
-- --inline-source
-- --title
-- Attr_splat
-- --main
-- README.markdown
-require_paths:
-- lib
-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: "1.2"
- version:
-requirements: []
-
-rubyforge_project: attr_splat
-rubygems_version: 1.3.0
-specification_version: 2
-summary: attr_* puts Ruby Core's attr_accessor, attr_reader, and attr_reader on steroids
-test_files: []
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<echoe>, [">= 0", "= 3.0.2"])
+ s.add_development_dependency(%q<rspec>, [">= 0"])
+ s.add_development_dependency(%q<rcov>, [">= 0"])
+ s.add_development_dependency(%q<yard>, [">= 0"])
+ s.add_development_dependency(%q<stringray>, [">= 0"])
+ else
+ s.add_dependency(%q<echoe>, [">= 0", "= 3.0.2"])
+ s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<yard>, [">= 0"])
+ s.add_dependency(%q<stringray>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<echoe>, [">= 0", "= 3.0.2"])
+ s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<rcov>, [">= 0"])
+ s.add_dependency(%q<yard>, [">= 0"])
+ s.add_dependency(%q<stringray>, [">= 0"])
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.