valid_hostname 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/config/locales/de.yml +9 -9
- data/config/locales/en.yml +1 -1
- data/lib/valid_hostname/version.rb +1 -1
- data/lib/valid_hostname.rb +0 -2
- data/valid_hostname.gemspec +1 -3
- metadata +4 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c41a6ba83db57eadd872aab95e99b3435354b200944fe925201c9bb35a161214
|
4
|
+
data.tar.gz: 10aa947e5f58045a603d78e2c1532e7809cbb0da26869cea73963821865a5390
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ac2ffc2a138c5f9085b052a3544a192f0df15917aeb0ca133587c495aecf607b8e91d15b9534fbeaab5e46f4bde9e6c1a50dad07653f93454db3dfe23dd25a
|
7
|
+
data.tar.gz: 4682ee40a30dea691597880b17fbb959c9def07e020e56c89f0b9a714a845ebb77a2e98f11969d0b878e34c7a675fb84dba8b076238cc90ac6fff32270d9f09c
|
data/CHANGELOG.md
CHANGED
data/config/locales/de.yml
CHANGED
@@ -2,12 +2,12 @@ de:
|
|
2
2
|
errors:
|
3
3
|
messages:
|
4
4
|
hostname:
|
5
|
-
invalid_hostname_length:
|
6
|
-
invalid_label_length:
|
7
|
-
label_begins_or_ends_with_hyphen:
|
8
|
-
label_contains_invalid_characters: "
|
9
|
-
hostname_label_is_numeric:
|
10
|
-
hostname_is_not_fqdn:
|
11
|
-
single_numeric_hostname_label:
|
12
|
-
hostname_contains_consecutive_dots:
|
13
|
-
hostname_ends_with_dot:
|
5
|
+
invalid_hostname_length: muss zwischen 1 und 255 Zeichen lang sein
|
6
|
+
invalid_label_length: muss zwischen 1 und 63 Zeichen lang sein (Label)
|
7
|
+
label_begins_or_ends_with_hyphen: beginnt oder endet mit Bindestrich
|
8
|
+
label_contains_invalid_characters: "enthält ungültige Zeichen (gültige Zeichen: [%{valid_chars}])"
|
9
|
+
hostname_label_is_numeric: Der nicht qualifizierte Teil des Hostnamens darf nicht nur aus numerischen Werten bestehen
|
10
|
+
hostname_is_not_fqdn: ist kein vollständig qualifizierter Domänenname
|
11
|
+
single_numeric_hostname_label: darf nicht aus einem einzigen numerischen Label bestehen
|
12
|
+
hostname_contains_consecutive_dots: darf keine aufeinanderfolgenden Punkte enthalten
|
13
|
+
hostname_ends_with_dot: darf nicht mit einem Punkt enden
|
data/config/locales/en.yml
CHANGED
@@ -3,7 +3,7 @@ en:
|
|
3
3
|
messages:
|
4
4
|
hostname:
|
5
5
|
invalid_hostname_length: must be between 1 and 255 characters long
|
6
|
-
invalid_label_length: must be between 1 and 63 characters long
|
6
|
+
invalid_label_length: must be between 1 and 63 characters long (each label)
|
7
7
|
label_begins_or_ends_with_hyphen: begins or ends with hyphen
|
8
8
|
label_contains_invalid_characters: "contains invalid characters (valid characters: [%{valid_chars}])"
|
9
9
|
hostname_label_is_numeric: unqualified hostname part cannot consist of numeric values only
|
data/lib/valid_hostname.rb
CHANGED
@@ -6,8 +6,6 @@ require 'valid_hostname/validate_hostname'
|
|
6
6
|
require 'valid_hostname/hostname_validator'
|
7
7
|
require 'valid_hostname/domainname_validator'
|
8
8
|
|
9
|
-
require 'debug' if ENV['ENABLE_DEBUG']
|
10
|
-
|
11
9
|
I18n.load_path += Dir.glob File.expand_path('../config/locales/**/*', __dir__)
|
12
10
|
|
13
11
|
module ValidHostname
|
data/valid_hostname.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.metadata = { 'rubygems_mfa_required' => 'true' }
|
11
11
|
|
12
12
|
spec.authors = ['Kim Nøgaard', 'Alexander Meindl']
|
13
|
-
spec.description = 'Extension to
|
13
|
+
spec.description = 'Extension to ActiveModel for validating hostnames'
|
14
14
|
spec.summary = 'Checks for valid hostnames'
|
15
15
|
spec.email = ['jasen@jasen.dk', 'a.meindl@alphanodes.com']
|
16
16
|
spec.homepage = 'https://github.com/AlphaNodes/valid_hostname'
|
@@ -22,11 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.add_runtime_dependency 'activemodel'
|
24
24
|
spec.add_development_dependency 'bundler'
|
25
|
-
spec.add_development_dependency 'debug' if ENV['ENABLE_DEBUG']
|
26
25
|
spec.add_development_dependency 'rake'
|
27
26
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
28
27
|
spec.add_development_dependency 'rubocop'
|
29
28
|
spec.add_development_dependency 'rubocop-performance'
|
30
29
|
spec.add_development_dependency 'rubocop-rspec'
|
31
|
-
spec.add_development_dependency 'solargraph'
|
32
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valid_hostname
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kim Nøgaard
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -39,20 +39,6 @@ dependencies:
|
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: debug
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: rake
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,21 +109,7 @@ dependencies:
|
|
123
109
|
- - ">="
|
124
110
|
- !ruby/object:Gem::Version
|
125
111
|
version: '0'
|
126
|
-
|
127
|
-
name: solargraph
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
140
|
-
description: Extension to ActiveRecord::Base for validating hostnames
|
112
|
+
description: Extension to ActiveModel for validating hostnames
|
141
113
|
email:
|
142
114
|
- jasen@jasen.dk
|
143
115
|
- a.meindl@alphanodes.com
|
@@ -188,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
160
|
- !ruby/object:Gem::Version
|
189
161
|
version: '0'
|
190
162
|
requirements: []
|
191
|
-
rubygems_version: 3.3.
|
163
|
+
rubygems_version: 3.3.26
|
192
164
|
signing_key:
|
193
165
|
specification_version: 4
|
194
166
|
summary: Checks for valid hostnames
|