adassault 0.0.3 → 0.0.4

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: a6804bd03096d35334f226912942c541c031cde0d75d85e84000fbd22c953b3e
4
- data.tar.gz: d3566d5493cb702bcf4a9fef44422a3d2647580d52afaab4cde0038d07076c7e
3
+ metadata.gz: 6ccd15934937d66a143e5552c7f40f9664ac4adea6660c64b16bfd5e35550137
4
+ data.tar.gz: 2c029d3707be923dce017e0b4ca3d6addb365443ec706eb76c5a952e57512001
5
5
  SHA512:
6
- metadata.gz: e5bd1812d23c70356f245d6ab1e9b139bbc947f1e69bae639c5db910e3a2ce339ca9a52ed93db2eceb857133a2a30d8be49d276e19835a3e96f1b186112752c0
7
- data.tar.gz: 80642b32627e147d559e436f9c53dac9bbd3b66d952a557aeecb0916178ea46bbb0510f188dd716d478131c04baa31605f47a611e85cc1cd798048c886b17dac
6
+ metadata.gz: edc7e92f298fc72b1d126fb9fbe8699176873fa30f2de118ccb529a9cdbcfe131fbc53d966a14ba6b91d0496a09cb5e821d75880746231b4d7eaef793382153d
7
+ data.tar.gz: d93b9dccd9f353c56fb1c869a042f690a4141552982f44dd8884a0ba8def32664cf3fcb8c0084cf552c46fc71356b796f426904c8dc1e984d7be7ca6ffa7a81a
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Alexandre ZANNI
3
+ Copyright (c) 2024-2026 Alexandre ZANNI
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -108,7 +108,7 @@ module ADAssault
108
108
  # see https://github.com/ruby/securerandom/issues/31
109
109
  name = Random.uuid # Ruby 3.2-
110
110
  end
111
- ip = IPAddr.new(rand(network.to_range.begin.succ.to_i..network.to_range.end.to_i - 1), network.family)
111
+ ip = IPAddr.new(rand(network.to_range.begin.succ.to_i..(network.to_range.end.to_i - 1)), network.family)
112
112
  created = addv4(name, ip)
113
113
  # if created
114
114
  # deletev4(name)
@@ -57,7 +57,7 @@ module ADAssault
57
57
  # # => ["THMDC"]
58
58
  # @since 0.0.1
59
59
  def dc_name
60
- dc_fqdn.map { |x| x[...-@ad_domain.size - 1] }
60
+ dc_fqdn.map { |x| x[...(-@ad_domain.size - 1)] }
61
61
  end
62
62
 
63
63
  # Get DC(s) IP address name directly from the DNS server.
@@ -86,9 +86,9 @@ module ADAssault
86
86
  dc_fqdn.each do |fqdn|
87
87
  Resolv::DNS.open(@dns_opts) do |dns|
88
88
  ress = dns.getresources fqdn, Resolv::DNS::Resource::IN::A
89
- short_name = fqdn[...-@ad_domain.size - 1].upcase
89
+ short_name = fqdn[...(-@ad_domain.size - 1)].upcase
90
90
  h[short_name] = {
91
- fqdn: fqdn,
91
+ fqdn:,
92
92
  ips: ress.map { |x| x.address.to_s }
93
93
  }
94
94
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ADAssault
4
4
  # Version of ADAssault library and app
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
6
6
  end
metadata CHANGED
@@ -1,29 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adassault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre ZANNI
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: base64
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0.2'
19
+ - - "<"
18
20
  - !ruby/object:Gem::Version
19
- version: 0.2.0
21
+ version: '0.4'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - "~>"
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '0.2'
29
+ - - "<"
25
30
  - !ruby/object:Gem::Version
26
- version: 0.2.0
31
+ version: '0.4'
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: dnsruby
29
34
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +115,6 @@ metadata:
110
115
  source_code_uri: https://github.com/noraj/ADAssault/
111
116
  funding_uri: https://github.com/sponsors/noraj
112
117
  rubygems_mfa_required: 'true'
113
- post_install_message:
114
118
  rdoc_options: []
115
119
  require_paths:
116
120
  - lib
@@ -118,18 +122,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
122
  requirements:
119
123
  - - ">="
120
124
  - !ruby/object:Gem::Version
121
- version: 3.0.0
125
+ version: 3.2.0
122
126
  - - "<"
123
127
  - !ruby/object:Gem::Version
124
- version: '4.0'
128
+ version: '5.0'
125
129
  required_rubygems_version: !ruby/object:Gem::Requirement
126
130
  requirements:
127
131
  - - ">="
128
132
  - !ruby/object:Gem::Version
129
133
  version: '0'
130
134
  requirements: []
131
- rubygems_version: 3.5.3
132
- signing_key:
135
+ rubygems_version: 4.0.3
133
136
  specification_version: 4
134
137
  summary: Dominate the Active Directory game
135
138
  test_files: []