calib 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2c1fd45844dba987df339b2765ec8ce5314d77382a6af49cb2c75373553762d
4
- data.tar.gz: d8ce5e57a8ea68a77ead5a9713a58e5b2015f2ddb932829f3d49aab971080b46
3
+ metadata.gz: 2f998d93edda9a2a5d3c0dc317c7033bf9dad116f2ec90842291ebe6a585c952
4
+ data.tar.gz: f9c840a36e415c1ef92628c68dffd086bf8c8c650d15bd090c03981357bf02c3
5
5
  SHA512:
6
- metadata.gz: 7dde69f3dfa8c213ad72147c94a419cf340ae411dda9026f9375bec71abf059026df52de68671eca692ec9f8ab0672efc57264c7b8cf4cb0a9ed18098405d264
7
- data.tar.gz: f1bc27043f17bc0818ca21f47ab27ea510c564b61202a9e90d5f82a9f331f48e3e8c801f7ed0624aa8e456c610fe648771d9defb14132af4d303153b4b4aef67
6
+ metadata.gz: caaa8a8424fbbc2457bd177370154eb4f37fc5601e491ebc3aed3ba0bf138e879b5dc118542477babe36595bbc275384d15e1f2ef9459a798ffcc134366b80f8
7
+ data.tar.gz: 161b75280c270cbc5a45c8f7b75f61e6cfa3f35c71463e0d4345655acdfb8b27428cc84c5a89b3b8fc8370413541bf6fac94f6e43c7e27bbc3581df7373e4b4f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- calib (0.1.0)
4
+ calib (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  module Calib
2
- module Net
3
- class NetworkUtil
2
+ module Network
3
+ class Util
4
4
  def self.match_ip_address(str)
5
5
  /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ =~ str
6
6
  end
@@ -9,12 +9,12 @@ module Calib
9
9
  self.match_ip_address(str) == 0
10
10
  end
11
11
 
12
- def self.match_url_without_domain(str)
12
+ def self.match_url_direct_ip_address(str)
13
13
  /^https?\:\/\/(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/ =~ str
14
14
  end
15
15
 
16
- def self.url_without_domain?(str)
17
- self.match_url_without_domain(str) == 0
16
+ def self.url_with_direct_ip_address?(str)
17
+ self.match_url_direct_ip_address(str) == 0
18
18
  end
19
19
  end
20
20
  end
@@ -0,0 +1,7 @@
1
+ require 'calib/network/util'
2
+
3
+ module Calib
4
+ module Network
5
+
6
+ end
7
+ end
data/lib/calib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Calib
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/calib.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "calib/version"
2
- require 'calib/net'
2
+ require 'calib/network'
3
3
 
4
4
  module Calib
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ms2sato
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-03 00:00:00.000000000 Z
11
+ date: 2018-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,8 +72,8 @@ files:
72
72
  - bin/setup
73
73
  - calib.gemspec
74
74
  - lib/calib.rb
75
- - lib/calib/net.rb
76
- - lib/calib/net/network_util.rb
75
+ - lib/calib/network.rb
76
+ - lib/calib/network/util.rb
77
77
  - lib/calib/version.rb
78
78
  homepage: https://github.com/CircleAround/calib
79
79
  licenses:
data/lib/calib/net.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'calib/net/network_util'
2
-
3
- module Calib
4
- module Net
5
-
6
- end
7
- end