Skip to content

Commit 8ea28d4

Browse files
committed
Gemify
1 parent 662872d commit 8ea28d4

7 files changed

Lines changed: 79 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.bundle/
2+
/.yardoc
3+
/Gemfile.lock
4+
/_yardoc/
5+
/coverage/
6+
/doc/
7+
/pkg/
8+
/spec/reports/
9+
/tmp/

‎.travis.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sudo: false
2+
language: ruby
3+
rvm:
4+
- 2.4.1
5+
- ruby-head
6+
before_install: gem install bundler

‎Gemfile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "https://rubygems.org"
2+
3+
# Specify your gem's dependencies in ipaddr.gemspec
4+
gemspec

‎Rakefile‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "bundler/gem_tasks"
2+
require "rake/testtask"
3+
4+
Rake::TestTask.new(:test) do |t|
5+
t.libs << "test"
6+
t.libs << "lib"
7+
t.test_files = FileList["test/**/test_*.rb"]
8+
end
9+
10+
task :default => :test

‎bin/console‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
3+
require "bundler/setup"
4+
require "ipaddr"
5+
6+
# You can add fixtures and/or initialization code here to make experimenting
7+
# with your gem easier. You can also use a different console, if you like.
8+
9+
# (If you use this, don't forget to add pry to your Gemfile!)
10+
# require "pry"
11+
# Pry.start
12+
13+
require "irb"
14+
IRB.start(__FILE__)

‎bin/setup‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
set -vx
5+
6+
bundle install
7+
8+
# Do any other automated setup that you need to do here

‎ipaddr.gemspec‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding: utf-8
2+
lib = File.expand_path("../lib", __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
5+
Gem::Specification.new do |spec|
6+
spec.name = "ipaddr"
7+
spec.version = "1.0.0"
8+
spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
9+
spec.email = ["knu@idaemons.org", "ume@mahoroba.org"]
10+
11+
spec.summary = %q{A class to manipulate an IP address in ruby}
12+
spec.description = <<-'DESCRIPTION'
13+
IPAddr provides a set of methods to manipulate an IP address.
14+
Both IPv4 and IPv6 are supported.
15+
DESCRIPTION
16+
spec.homepage = "https://github.com/ruby/ipaddr"
17+
18+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
19+
f.match(%r{^(test|spec|features)/})
20+
end
21+
spec.bindir = "exe"
22+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23+
spec.require_paths = ["lib"]
24+
25+
spec.add_development_dependency "bundler", "~> 1.15"
26+
spec.add_development_dependency "rake", "~> 10.0"
27+
spec.add_development_dependency "test-unit"
28+
end

0 commit comments

Comments
 (0)