vipnet_parser 2.4.0 → 2.4.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
  SHA1:
3
- metadata.gz: eaa3221fe438682301be1ece5f90a475d60c68bb
4
- data.tar.gz: bd26ed5b99529a755ff15b06f50d60ea58f532af
3
+ metadata.gz: 6fd21bb88d38bf23c168986b9e41343e27f1de09
4
+ data.tar.gz: 7a721274d7a8463fa464e36852a67afd5f299782
5
5
  SHA512:
6
- metadata.gz: 0f100d4b4f2625ffa68c94ceac7f34ca2db5d710a3d947e687e2dae9cc5872d0b9b2389f3f8b9457243f0336cc0b36797558507999d69a7759bf895ca2f4ec7d
7
- data.tar.gz: ec4e7364811f3cb1d21557c2da28854b2ac7304436b7d4bd0b31887a570abba1b535787359ce902a2060f3a3123bf7592bd699d1caaf9bd889980af9d5f72d18
6
+ metadata.gz: bdd51ccbf494a9152a7a2b591282c6b04146fa915923faacbfefcf886aaf54c0f0e99f628564aebf868398e15bffe3d1310f00704c41696393076daee41bbd98
7
+ data.tar.gz: 82dff9458a3558532c282440351bd70702af518f81c34a53c6ace40ec1756e0e815bba86c25c53d61f4a4c7598cd6b33acce161e23b7f22f339a346e5534672c
@@ -4,10 +4,6 @@ module VipnetParser
4
4
  class Iplirconf < VipnetConfig
5
5
  attr_accessor :string, :hash
6
6
 
7
- def initialize(iplirconf_file)
8
- @string = iplirconf_file
9
- end
10
-
11
7
  DEFAULT_PARSE_ARGS = {
12
8
  format: :hash,
13
9
  encoding: "koi8-r",
@@ -4,10 +4,6 @@ module VipnetParser
4
4
  class Nodename < VipnetConfig
5
5
  attr_accessor :string, :hash
6
6
 
7
- def initialize(nodename_file)
8
- @string = nodename_file
9
- end
10
-
11
7
  DEFAULT_PARSE_ARGS = {
12
8
  format: :hash,
13
9
  encoding: "cp866",
@@ -1,4 +1,7 @@
1
1
  module VipnetParser
2
2
  class VipnetConfig
3
+ def initialize(file_content = nil)
4
+ @string = file_content
5
+ end
3
6
  end
4
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vipnet_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Morozov