utf8_validator 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8fc6f3e7f7dbbffeee2062c57f1a09825c908a32
4
+ data.tar.gz: 312703bcd75c841371d35e19598ffe70db289196
5
+ SHA512:
6
+ metadata.gz: 3a70de40534411cb16740ae531fa8853372c74cc47de17fa1a655c0a2dafd8c0f410a9f489ad9f6838c1cc7a470a48a57ae21a1e56e17ddbe791dbb86f6cfb50
7
+ data.tar.gz: 7f112609a53de37aab47894dcb003e8f3cdd704604cfe43471642f9941ff48e09be0fbcf87702db06413ac4ad14164618556235a80228d2cd70241c7e8051df2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.11
1
+ 1.0.12
@@ -20,7 +20,7 @@ class TestUtf8Validator < Test::Unit::TestCase
20
20
  #
21
21
  def setup
22
22
  @validator = UTF8::Validator.new
23
- @vercheck = ((RUBY_VERSION =~ /1\.9/) or (RUBY_VERSION =~ /2\.[01]/)) ? true : false
23
+ @vercheck = ((RUBY_VERSION =~ /1\.9/) or (RUBY_VERSION =~ /2\./)) ? true : false
24
24
  end
25
25
 
26
26
  #
@@ -6165,7 +6165,20 @@ http://www.unicode.org/versions/Unicode7.0.0/
6165
6165
  assert string.force_encoding("UTF-8").valid_encoding?,
6166
6166
  "good unicode specs 04 19: #{string}" if @vercheck
6167
6167
  end
6168
+ end
6168
6169
 
6170
+ # Test \u3164 (0xe385a4)
6171
+ def test_0800_hangul_filler
6172
+ test_data = [
6173
+ "a\u3164b", # The 0 length filler
6174
+ "a\xe3\x85\xa4b", # The 0 length filler
6175
+ "\u3163\u3164\u3165", # The 0 length filler
6176
+ ]
6177
+ test_data.each do |string|
6178
+ assert @validator.valid_encoding?(string), "hangul filler A: #{string}"
6179
+ assert string.force_encoding("UTF-8").valid_encoding?,
6180
+ "hangul filler B: #{string}" if @vercheck
6181
+ end
6169
6182
  end
6170
6183
 
6171
6184
  end
@@ -2,17 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: utf8_validator 1.0.12 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = %q{utf8_validator}
8
- s.version = "1.0.11"
8
+ s.name = "utf8_validator"
9
+ s.version = "1.0.12"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Guy Allard"]
12
- s.date = %q{2016-03-06}
13
- s.description = %q{A State Machine implementation of a UTF-8 Encoding
14
- Validation algorithm.}
15
- s.email = %q{allard.guy.m@gmail.com}
14
+ s.date = "2016-07-05"
15
+ s.description = "A State Machine implementation of a UTF-8 Encoding \nValidation algorithm."
16
+ s.email = "allard.guy.m@gmail.com"
16
17
  s.extra_rdoc_files = [
17
18
  "LICENSE.txt",
18
19
  "README.rdoc"
@@ -31,15 +32,13 @@ Validation algorithm.}
31
32
  "test/test_utf8_validator.rb",
32
33
  "utf8_validator.gemspec"
33
34
  ]
34
- s.homepage = %q{http://github.com/gmallard/utf8_validator}
35
+ s.homepage = "http://github.com/gmallard/utf8_validator"
35
36
  s.licenses = ["MIT"]
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.7}
38
- s.summary = %q{A UTF-8 Encoding Validator.}
37
+ s.rubygems_version = "2.5.1"
38
+ s.summary = "A UTF-8 Encoding Validator."
39
39
 
40
40
  if s.respond_to? :specification_version then
41
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
- s.specification_version = 3
41
+ s.specification_version = 4
43
42
 
44
43
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
44
  s.add_development_dependency(%q<jeweler>, [">= 1.8.0"])
metadata CHANGED
@@ -1,51 +1,37 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: utf8_validator
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 11
10
- version: 1.0.11
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.12
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Guy Allard
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2016-03-06 00:00:00 -05:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: jeweler
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
27
17
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 55
30
- segments:
31
- - 1
32
- - 8
33
- - 0
18
+ - !ruby/object:Gem::Version
34
19
  version: 1.8.0
35
20
  type: :development
36
- version_requirements: *id001
37
- description: |-
38
- A State Machine implementation of a UTF-8 Encoding
39
- Validation algorithm.
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.8.0
27
+ description: "A State Machine implementation of a UTF-8 Encoding \nValidation algorithm."
40
28
  email: allard.guy.m@gmail.com
41
29
  executables: []
42
-
43
30
  extensions: []
44
-
45
- extra_rdoc_files:
31
+ extra_rdoc_files:
46
32
  - LICENSE.txt
47
33
  - README.rdoc
48
- files:
34
+ files:
49
35
  - LICENSE.txt
50
36
  - README.rdoc
51
37
  - Rakefile
@@ -58,39 +44,28 @@ files:
58
44
  - test/test_raise_request.rb
59
45
  - test/test_utf8_validator.rb
60
46
  - utf8_validator.gemspec
61
- has_rdoc: true
62
47
  homepage: http://github.com/gmallard/utf8_validator
63
- licenses:
48
+ licenses:
64
49
  - MIT
50
+ metadata: {}
65
51
  post_install_message:
66
52
  rdoc_options: []
67
-
68
- require_paths:
53
+ require_paths:
69
54
  - lib
70
- required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
73
57
  - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
79
- required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
82
62
  - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
88
65
  requirements: []
89
-
90
66
  rubyforge_project:
91
- rubygems_version: 1.3.7
67
+ rubygems_version: 2.5.1
92
68
  signing_key:
93
- specification_version: 3
69
+ specification_version: 4
94
70
  summary: A UTF-8 Encoding Validator.
95
71
  test_files: []
96
-