Skip to content

Commit

Permalink
Migrate from jeweler to bundle gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Sep 18, 2012
1 parent 5be4564 commit 334cb26
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 156 deletions.
63 changes: 15 additions & 48 deletions .gitignore
@@ -1,50 +1,17 @@
# rcov generated
coverage

# rdoc generated
rdoc

# yard generated
doc
.yardoc

# bundler
*.gem
*.rbc
.bundle

# jeweler generated
pkg

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
# * Create a file at ~/.gitignore
# * Include files you want ignored
# * Run: git config --global core.excludesfile ~/.gitignore
#
# After doing this, these files will be ignored in all your git projects,
# saving you from having to 'pollute' every project you touch with them
#
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
#
# For MacOS:
#
#.DS_Store

# For TextMate
#*.tmproj
#tmtags

# For emacs:
#*~
#\#*
#.\#*

# For vim:
#*.swp

# For redcar:
#.redcar

# For rubinius:
#*.rbc

.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
17 changes: 3 additions & 14 deletions Gemfile
@@ -1,15 +1,4 @@
source "http://rubygems.org"
# Add dependencies required to use your gem here.
# Example:
# gem "activesupport", ">= 2.3.5"
source 'https://rubygems.org'

gem "unf", "~> 0.0.3"

# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "shoulda", ">= 0"
gem "bundler", "~> 1.1.0"
gem "jeweler", "~> 1.6.4"
gem "rdoc", ">= 2.4.2"
end
# Specify your gem's dependencies in domain_name.gemspec
gemspec
36 changes: 3 additions & 33 deletions Rakefile
@@ -1,34 +1,4 @@
# encoding: utf-8

require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "domain_name"
gem.homepage = "http://github.com/knu/ruby-domain_name"
gem.license = "BSD + MPL 1.1/GPL 2.0/LGPL 2.1"
gem.summary = %Q{Domain Name manipulation library for Ruby}
gem.description = <<-EOS
This is a Domain Name manipulation library for Ruby.
It can also be used for cookie domain validation based on the Public
Suffix List.
EOS
gem.email = "knu@idaemons.org"
gem.authors = ["Akinori MUSHA"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
require 'bundler/gem_tasks'

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
Expand Down Expand Up @@ -60,10 +30,10 @@ end

require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
version = DomainName::VERSION

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "domain_name #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.include(Bundler::GemHelper.gemspec.extra_rdoc_files)
end
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

86 changes: 27 additions & 59 deletions domain_name.gemspec
@@ -1,67 +1,35 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'domain_name/version'

Gem::Specification.new do |s|
s.name = "domain_name"
s.version = "0.5.3"
Gem::Specification.new do |gem|
gem.name = "domain_name"
gem.version = DomainName::VERSION
gem.authors = ["Akinori MUSHA"]
gem.email = ["knu@idaemons.org"]
gem.description = <<-'EOS'
This is a Domain Name manipulation library for Ruby.
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Akinori MUSHA"]
s.date = "2012-04-06"
s.description = "This is a Domain Name manipulation library for Ruby.\n\nIt can also be used for cookie domain validation based on the Public\nSuffix List.\n"
s.email = "knu@idaemons.org"
s.extra_rdoc_files = [
It can also be used for cookie domain validation based on the Public
Suffix List.
EOS
gem.summary = %q{Domain Name manipulation library for Ruby}
gem.homepage = "https://github.com/knu/ruby-domain_name"
gem.licenses = ["BSD + MPL 1.1/GPL 2.0/LGPL 2.1"]

gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

gem.extra_rdoc_files = [
"LICENSE.txt",
"README.md"
]
s.files = [
".document",
"Gemfile",
"LICENSE.txt",
"README.md",
"Rakefile",
"VERSION",
"data/effective_tld_names.dat",
"domain_name.gemspec",
"lib/domain_name.rb",
"lib/domain_name/etld_data.rb",
"lib/domain_name/etld_data.rb.erb",
"lib/domain_name/punycode.rb",
"test/helper.rb",
"test/test_domain_name-punycode.rb",
"test/test_domain_name.rb",
"tool/gen_etld_data.rb"
]
s.homepage = "http://github.com/knu/ruby-domain_name"
s.licenses = ["BSD + MPL 1.1/GPL 2.0/LGPL 2.1"]
s.require_paths = ["lib"]
s.rubygems_version = "1.8.21"
s.summary = "Domain Name manipulation library for Ruby"

if s.respond_to? :specification_version then
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<unf>, ["~> 0.0.3"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_development_dependency(%q<rdoc>, [">= 2.4.2"])
else
s.add_dependency(%q<unf>, ["~> 0.0.3"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.1.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
end
else
s.add_dependency(%q<unf>, ["~> 0.0.3"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.1.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
end
gem.add_runtime_dependency("unf", ["~> 0.0.3"])
gem.add_development_dependency("shoulda", [">= 0"])
gem.add_development_dependency("bundler", ["~> 1.2.0"])
gem.add_development_dependency("rdoc", [">= 2.4.2"])
end

3 changes: 2 additions & 1 deletion lib/domain_name.rb
Expand Up @@ -2,9 +2,10 @@
#
# domain_name.rb - Domain Name manipulation library for Ruby
#
# Copyright (C) 2011 Akinori MUSHA, All rights reserved.
# Copyright (C) 2011, 2012 Akinori MUSHA, All rights reserved.
#

require 'domain_name/version'
require 'domain_name/punycode'
require 'domain_name/etld_data'
require 'unf'
Expand Down
3 changes: 3 additions & 0 deletions lib/domain_name/version.rb
@@ -0,0 +1,3 @@
class DomainName
VERSION = "0.5.4"
end

0 comments on commit 334cb26

Please sign in to comment.