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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 346e7e0b14e9e33d3928c36403d99c86fd0ce30d3a4943e7859c4f37ced27e42
4
- data.tar.gz: 3684b1d42623226fee3bc29a65a802508156ad47c5c04cb144b30dbe40a1c396
3
+ metadata.gz: c41a6ba83db57eadd872aab95e99b3435354b200944fe925201c9bb35a161214
4
+ data.tar.gz: 10aa947e5f58045a603d78e2c1532e7809cbb0da26869cea73963821865a5390
5
5
  SHA512:
6
- metadata.gz: 27d765ddcb16cbd731d89c5b41a43b012fe68b9bb71af632dd9b992a46df379e73da6f4e4888cfc16073f9bb8918e2f27852cfb89081021dbac5be3bf54e1b93
7
- data.tar.gz: df485fac0e5858e6a3eb18d2bb74a66c9518a7a0033a2c36bc7b9e9f3be5d88c0fe0b426f868553102917f92474613c1af5afc266e3b420644652d51410366db
6
+ metadata.gz: 41ac2ffc2a138c5f9085b052a3544a192f0df15917aeb0ca133587c495aecf607b8e91d15b9534fbeaab5e46f4bde9e6c1a50dad07653f93454db3dfe23dd25a
7
+ data.tar.gz: 4682ee40a30dea691597880b17fbb959c9def07e020e56c89f0b9a714a845ebb77a2e98f11969d0b878e34c7a675fb84dba8b076238cc90ac6fff32270d9f09c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 2.0.0 [2022-10-31]
3
+ ## 2.0.1 [2022-10-26]
4
+
5
+ - German translations added
6
+
7
+ ## 2.0.0 [2022-10-26]
4
8
 
5
9
  - fork of <https://github.com/KimNorgaard/validates_hostname>
6
10
  - refactor gem
@@ -2,12 +2,12 @@ de:
2
2
  errors:
3
3
  messages:
4
4
  hostname:
5
- invalid_hostname_length: must be between 1 and 255 characters long
6
- invalid_label_length: must be between 1 and 63 characters long
7
- label_begins_or_ends_with_hyphen: begins or ends with hyphen
8
- label_contains_invalid_characters: "contains invalid characters (valid characters: [%{valid_chars}])"
9
- hostname_label_is_numeric: unqualified hostname part cannot consist of numeric values only
10
- hostname_is_not_fqdn: is not a fully qualified domain name
11
- single_numeric_hostname_label: cannot consist of a single numeric label
12
- hostname_contains_consecutive_dots: must not contain consecutive dots
13
- hostname_ends_with_dot: must not end with a 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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ValidHostname
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.2'
5
5
  end
@@ -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
@@ -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 ActiveRecord::Base for validating hostnames'
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.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: 2022-10-26 00:00:00.000000000 Z
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
- - !ruby/object:Gem::Dependency
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.7
163
+ rubygems_version: 3.3.26
192
164
  signing_key:
193
165
  specification_version: 4
194
166
  summary: Checks for valid hostnames