fontina 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 4cebec953c1f60af3ea90055304cdede2635b21b
4
- data.tar.gz: 1b37e4290b9933cecbda29dc003a9923eb599ab4
3
+ metadata.gz: 6f232135b3ea243c6a97e4cd5894a0210b7f3c5e
4
+ data.tar.gz: 83dbe8410e42a9aebbcfb85f8bbf8b4cfa80e48c
5
5
  SHA512:
6
- metadata.gz: 6d6c28af14392f567b6c9ae35a3ef72b078753409ea7d15957f3b9f307a65a82a15aaac8455c6cbc21c96083c218ae28bdcaafaa0bc44cc6f5a7381b07a26ec7
7
- data.tar.gz: 7cd926e483bfbdee8c46bfc16163c827adda856b6ed830572002d0524d1978465d21490a5b6a0948267bdd55172c58faf48d98c62bee32f5f21692f61b0cb611
6
+ metadata.gz: a08fe315097fa9669ab8af5d16a423fedbd8ea45be6d53f7f7242549bd42836bc989c860c2392d04914b0fb6a819a71d29c5068c6fd7712020f64db6798242fd
7
+ data.tar.gz: 8dd131a976056ec101eb0d266e6e040938043a09e4ed74f09e71852082bddeeb5b58ef3ce9c05e25ba3a48f24282cc2bbdcdb0967013ca97ba413fc080ec3a62
@@ -14,7 +14,7 @@ module Fontina
14
14
  def container
15
15
  @container ||= begin
16
16
  %w[
17
- ../language_codes/windows
17
+ ../windows/language_codes
18
18
  shared/p_string
19
19
  fon/constants
20
20
  fon/dos_header
@@ -64,7 +64,7 @@ module Fontina
64
64
  .flat_map(&:data).map(&:locale)
65
65
  .first
66
66
 
67
- LanguageCodes::WINDOWS[language_id]
67
+ Windows::LANGUAGE_CODES[language_id]
68
68
  end
69
69
 
70
70
  def get_rsrc_data(fon, type)
@@ -67,8 +67,8 @@ module Fontina
67
67
 
68
68
  LANGUAGES = {
69
69
  unicode: { 0 => nil }.freeze,
70
- mac: { 0xffff => nil }.merge!(LanguageCodes::MAC).freeze,
71
- windows: LanguageCodes::WINDOWS,
70
+ mac: { 0xffff => nil }.merge!(Mac::LANGUAGE_CODES).freeze,
71
+ windows: Windows::LANGUAGE_CODES,
72
72
  }.freeze
73
73
  end
74
74
 
@@ -14,8 +14,8 @@ module Fontina
14
14
  def container
15
15
  @container ||= begin
16
16
  %w[
17
- ../language_codes/mac
18
- ../language_codes/windows
17
+ ../mac/language_codes
18
+ ../windows/language_codes
19
19
  shared/e_string
20
20
  open_type/constants
21
21
  open_type/name_table
@@ -1,6 +1,6 @@
1
- module Fontina::LanguageCodes
1
+ module Fontina::Mac
2
2
 
3
- MAC = {
3
+ LANGUAGE_CODES = {
4
4
  0 => 'en',
5
5
  1 => 'fr',
6
6
  2 => 'de',
@@ -1,3 +1,3 @@
1
1
  module Fontina
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -1,6 +1,6 @@
1
- module Fontina::LanguageCodes
1
+ module Fontina::Windows
2
2
 
3
- WINDOWS = {
3
+ LANGUAGE_CODES = {
4
4
  0x0401 => 'ar-SA',
5
5
  0x0402 => 'bg-BG',
6
6
  0x0403 => 'ca-ES',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fontina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Petter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -163,11 +163,11 @@ files:
163
163
  - lib/fontina/formats/open_type/table_directory.rb
164
164
  - lib/fontina/formats/shared/e_string.rb
165
165
  - lib/fontina/formats/shared/p_string.rb
166
- - lib/fontina/language_codes/mac.rb
167
- - lib/fontina/language_codes/windows.rb
166
+ - lib/fontina/mac/language_codes.rb
168
167
  - lib/fontina/meta_package.rb
169
168
  - lib/fontina/package.rb
170
169
  - lib/fontina/version.rb
170
+ - lib/fontina/windows/language_codes.rb
171
171
  homepage: http://github.com/michaeljpetter/fontina
172
172
  licenses:
173
173
  - MIT