joker-dmapi 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/joker-dmapi.gemspec +2 -2
- data/lib/joker-dmapi/client.rb +3 -2
- data/lib/joker-dmapi/contact.rb +2 -0
- data/lib/joker-dmapi/domain.rb +2 -0
- data/lib/joker-dmapi/host.rb +3 -0
- data/lib/joker-dmapi/version.rb +5 -0
- metadata +4 -3
data/joker-dmapi.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'joker-dmapi'
|
4
|
+
require 'joker-dmapi/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "joker-dmapi"
|
8
|
-
gem.version = JokerDMAPI::VERSION
|
8
|
+
gem.version = JokerDMAPI::Version::VERSION
|
9
9
|
gem.authors = ["Yuriy Kolodovskyy"]
|
10
10
|
gem.email = %w{kolodovskyy@ukrindex.com}
|
11
11
|
gem.description = %q{Joker DMAPI client library}
|
data/lib/joker-dmapi/client.rb
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
require "net/http"
|
2
2
|
require "addressable/uri"
|
3
|
+
require "#{File.dirname(__FILE__)}/version"
|
3
4
|
require "#{File.dirname(__FILE__)}/result"
|
4
5
|
require "#{File.dirname(__FILE__)}/contact"
|
5
6
|
require "#{File.dirname(__FILE__)}/host"
|
6
7
|
require "#{File.dirname(__FILE__)}/domain"
|
7
8
|
|
8
9
|
module JokerDMAPI
|
9
|
-
VERSION = '0.1.2'
|
10
|
-
|
11
10
|
class Client
|
11
|
+
include JokerDMAPI::Version
|
12
|
+
|
12
13
|
DEFAULT_URI = 'https://dmapi.joker.com:443/request/'
|
13
14
|
|
14
15
|
include JokerDMAPI::Result
|
data/lib/joker-dmapi/contact.rb
CHANGED
data/lib/joker-dmapi/domain.rb
CHANGED
data/lib/joker-dmapi/host.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "resolv"
|
2
|
+
require "date"
|
2
3
|
|
3
4
|
module JokerDMAPI
|
4
5
|
module Host
|
@@ -15,6 +16,8 @@ module JokerDMAPI
|
|
15
16
|
key, value = line_parsed.first
|
16
17
|
case key
|
17
18
|
when :fqdn then result[:host] = value
|
19
|
+
when :ip_address then result[:ipv4] = value
|
20
|
+
when :ip_address_v6 then result[:ipv6] = value
|
18
21
|
when :created_date, :modified_date then
|
19
22
|
result[key] = DateTime.parse value
|
20
23
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joker-dmapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/joker-dmapi/domain.rb
|
63
63
|
- lib/joker-dmapi/host.rb
|
64
64
|
- lib/joker-dmapi/result.rb
|
65
|
+
- lib/joker-dmapi/version.rb
|
65
66
|
homepage: https://github.com/kolodovskyy/joker-dmapi
|
66
67
|
licenses: []
|
67
68
|
post_install_message:
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
requirements: []
|
84
85
|
rubyforge_project:
|
85
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.25
|
86
87
|
signing_key:
|
87
88
|
specification_version: 3
|
88
89
|
summary: Joker DMAPI client library
|