encoding-codepage 0.5 → 0.6

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b0f8125899d5e0331bab445d24a5e706b5247009
4
+ data.tar.gz: 4326033c6262c672eb36f3f839a61a72e2901075
5
+ SHA512:
6
+ metadata.gz: 638f77c3eab0d3372af9b496a916f705c40ba4ff9a8b0f451c159af5ecc142b586d57b9795387366e68feb65b5cd6c1d27755ca46499ad91fb2e8070158cd316
7
+ data.tar.gz: 243b7d33810d18f976bc40c41fb15202f25fca627fef197f625786394947d442eb4599c99c649f267c6dc33ac0f6cf644d019cf5da7e7c3d8c19cbb4e0be374b
@@ -25,7 +25,7 @@
25
25
  870 IBM870 IBM EBCDIC Multilingual/ROECE (Latin 2); IBM EBCDIC Multilingual Latin 2
26
26
  874 windows-874 ANSI/OEM Thai (same as 28605, ISO 8859-15); Thai (Windows)
27
27
  875 cp875 IBM EBCDIC Greek Modern
28
- 932 shift_jis ANSI/OEM Japanese; Japanese (Shift-JIS)
28
+ 932 windows-31j ANSI/OEM Japanese; Japanese (Windows-31J; superset of Shift-JIS)
29
29
  936 gb2312 ANSI/OEM Simplified Chinese (PRC, Singapore); Chinese Simplified (GB2312)
30
30
  949 ks_c_5601-1987 ANSI/OEM Korean (Unified Hangul Code)
31
31
  950 big5 ANSI/OEM Traditional Chinese (Taiwan; Hong Kong SAR, PRC); Chinese Traditional (Big5)
@@ -54,8 +54,7 @@ class Encoding
54
54
  number, original, comment = line.split("\t", 3)
55
55
  number = Integer(number, 10)
56
56
 
57
- if encoding = exist?(original.upcase)
58
- next if encoding.dummy?
57
+ if encoding = exist?(original.upcase) && !encoding.dummy?
59
58
  encoding.replicate "CP#{number}" unless codepage?(number)
60
59
 
61
60
  CodePage.reverse_lookup[encoding] = codepage(number)
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encoding-codepage
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
5
- prerelease:
4
+ version: '0.6'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Conrad Irwin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-09 00:00:00.000000000 Z
11
+ date: 2017-09-22 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Provides aliases for Encodings that have Code Page Identifiers to make
15
14
  it easier to interface with Microsoft APIs that use Code Page Identifiers to describe
@@ -19,34 +18,33 @@ executables: []
19
18
  extensions: []
20
19
  extra_rdoc_files: []
21
20
  files:
22
- - lib/encoding-codepage.rb
23
- - lib/codepages.tsv
24
- - README.md
25
21
  - LICENSE.MIT
26
22
  - LICENSE.MLPL
23
+ - README.md
24
+ - lib/codepages.tsv
25
+ - lib/encoding-codepage.rb
27
26
  homepage: https://github.com/ConradIrwin/encoding-codepage
28
27
  licenses:
29
28
  - MIT, Microsoft Limited Public License
29
+ metadata: {}
30
30
  post_install_message:
31
31
  rdoc_options: []
32
32
  require_paths:
33
33
  - lib
34
34
  required_ruby_version: !ruby/object:Gem::Requirement
35
- none: false
36
35
  requirements:
37
- - - ! '>='
36
+ - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  version: '0'
40
39
  required_rubygems_version: !ruby/object:Gem::Requirement
41
- none: false
42
40
  requirements:
43
- - - ! '>='
41
+ - - ">="
44
42
  - !ruby/object:Gem::Version
45
43
  version: '0'
46
44
  requirements: []
47
45
  rubyforge_project:
48
- rubygems_version: 1.8.24
46
+ rubygems_version: 2.6.11
49
47
  signing_key:
50
- specification_version: 3
48
+ specification_version: 4
51
49
  summary: Allow looking up Encodings by their Code Page Identifier
52
50
  test_files: []