summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbluemonk <ceresa@gmail.com>2014-07-27 13:43:02 +0200
committerbluemonk <ceresa@gmail.com>2014-07-27 13:43:02 +0200
commit45b69c635e5c57dee7a22061fb3f751ae4fe7c2f (patch)
treef4853ac81e3dbd417ea335ddab770abf4f3ecabd
parente781b98d3c8dc8c118fd496095443dd839e2cd92 (diff)
downloadipaddress-45b69c635e5c57dee7a22061fb3f751ae4fe7c2f.tar.gz
Bundler clean up: .gemspec file, update LICENSE and change version track file
-rw-r--r--LICENSE.txt (renamed from LICENSE)2
-rw-r--r--VERSION1
-rw-r--r--ipaddress.gemspec69
-rw-r--r--lib/ipaddress/version.rb3
4 files changed, 24 insertions, 51 deletions
diff --git a/LICENSE b/LICENSE.txt
index 25def2b..95d8725 100644
--- a/LICENSE
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-Copyright (c) 2009-2011 Marco Ceresa
+Copyright (c) 2009-2014 Marco Ceresa
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
diff --git a/VERSION b/VERSION
deleted file mode 100644
index 8adc70f..0000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-0.8.0 \ No newline at end of file
diff --git a/ipaddress.gemspec b/ipaddress.gemspec
index 41af7bf..7e24507 100644
--- a/ipaddress.gemspec
+++ b/ipaddress.gemspec
@@ -1,55 +1,26 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+# coding: utf-8
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'ipaddress/version'
-Gem::Specification.new do |s|
- s.name = %q{ipaddress}
- s.version = "0.8.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Marco Ceresa"]
- s.date = %q{2011-05-17}
- s.description = %q{ IPAddress is a Ruby library designed to make manipulation
+Gem::Specification.new do |spec|
+ spec.name = "ipaddress"
+ spec.version = Ipaddress::VERSION
+ spec.authors = ["bluemonk"]
+ spec.email = ["ceresa@gmail.com"]
+ spec.summary = %q{IPv4/IPv6 address manipulation library}
+ spec.description = %q{IPAddress is a Ruby library designed to make manipulation
of IPv4 and IPv6 addresses both powerful and simple. It mantains
a layer of compatibility with Ruby's own IPAddr, while
- addressing many of its issues.
-}
- s.email = %q{ceresa@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- "CHANGELOG.rdoc",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "ipaddress.gemspec",
- "lib/ipaddress.rb",
- "lib/ipaddress/ipv4.rb",
- "lib/ipaddress/ipv6.rb",
- "lib/ipaddress/prefix.rb",
- "test/ipaddress/ipv4_test.rb",
- "test/ipaddress/ipv6_test.rb",
- "test/ipaddress/prefix_test.rb",
- "test/ipaddress_test.rb",
- "test/test_helper.rb"
- ]
- s.homepage = %q{http://github.com/bluemonk/ipaddress}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.6.2}
- s.summary = %q{IPv4/IPv6 addresses manipulation library}
+ addressing many of its issues.}
+ spec.homepage = "https://github.com/bluemonk/ipaddress"
+ spec.license = "MIT"
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ spec.files = `git ls-files -z`.split("\x0")
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
+ spec.require_paths = ["lib"]
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ spec.add_development_dependency "bundler", "~> 1.6"
+ spec.add_development_dependency "rake", "~> 10.0"
end
-
diff --git a/lib/ipaddress/version.rb b/lib/ipaddress/version.rb
new file mode 100644
index 0000000..87a4585
--- /dev/null
+++ b/lib/ipaddress/version.rb
@@ -0,0 +1,3 @@
+module Ipaddress
+ VERSION = "0.0.1"
+end