Skip to content

Commit

Permalink
Merge pull request #22 from Adam21e/gem_update
Browse files Browse the repository at this point in the history
Update folders to ipaddress_2 for gem to load
  • Loading branch information
Adam21e authored Jan 22, 2019
2 parents d370a36 + eba6f4d commit 806f948
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
## [Unreleased]

## 0.11.0

### Enhancements
* Added 'find\_adjacent_subnet' to IPv6

### Bugfix
* Update folders for gem to work

## 0.10.0

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ end

desc "Open an irb session preloaded with this library"
task :console do
sh "irb -I lib -r ipaddress.rb"
sh "irb -I lib -r ipaddress_2.rb"
end

desc "Look for TODO and FIXME tags in the code"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.0
0.11.0
3 changes: 1 addition & 2 deletions ipaddress_2.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'ipaddress/version'
require 'ipaddress_2/version'

Gem::Specification.new do |s|
s.licenses = ["MIT"]
s.summary = "IPv4/IPv6 address manipulation library"
s.name = "ipaddress_2"
s.version = "0.9.0"
s.version = IPAddress::VERSION
s.require_paths = ["lib"]
s.authors = ["bluemonk", "mikemackintosh"]
Expand Down
6 changes: 3 additions & 3 deletions lib/ipaddress.rb → lib/ipaddress_2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#
#++

require 'ipaddress/ipv4'
require 'ipaddress/ipv6'
require 'ipaddress/mongoid' if defined?(Mongoid)
require 'ipaddress_2/ipv4'
require 'ipaddress_2/ipv6'
require 'ipaddress_2/mongoid' if defined?(Mongoid)

module IPAddress

Expand Down
2 changes: 1 addition & 1 deletion lib/ipaddress/ipv4.rb → lib/ipaddress_2/ipv4.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'ipaddress/prefix'
require 'ipaddress_2/prefix'

module IPAddress;
#
Expand Down
2 changes: 1 addition & 1 deletion lib/ipaddress/ipv6.rb → lib/ipaddress_2/ipv6.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'ipaddress/prefix'
require 'ipaddress_2/prefix'

module IPAddress;
#
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/ipaddress/version.rb → lib/ipaddress_2/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module IPAddress
VERSION = "0.10.0"
VERSION = "0.11.0"
end
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'test_helper'
require 'ipaddress/mongoid'
require 'ipaddress_2/mongoid'

class MongoidTest < Minitest::Test

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ipaddress'
require 'ipaddress_2'

if Minitest.const_defined?('Test')
# We're on Minitest 5+. Nothing to do here.
Expand Down

0 comments on commit 806f948

Please sign in to comment.