ffi-icu 0.5.2 → 0.5.3

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: 2075e91bd27944e5725d4379471db7bda9787d7b4a0622e92b71f15d03ed9ef3
4
- data.tar.gz: 145eddff12e1d703ed29d01f3661e674439b39ff11c3882fc52633af50e6ca09
3
+ metadata.gz: 4b8a17a4a005b3b00d2620f11efc9d766b9b5d5c9af0de255f0fd172c9922fa3
4
+ data.tar.gz: e7987937796171479989cd08e0e4102e45294ef0b5df7251b4e41f867b1dc19e
5
5
  SHA512:
6
- metadata.gz: 6d63a1b1f93622d80abbc93889fa0e8eea90fa81025de1b4c5bf672a65d8922809100fa55ccc55a3c42599d2b2dfd3c2d69774601f512308783b66c26e9b6a71
7
- data.tar.gz: 99fa27ab152f6f52a62d71a850e201ac61149c2c86b3fbb92fd2ff86f1ec942f19394af43e4068338d6a11121cdaadab9d53509da0d93750efeb1d54b960556d
6
+ metadata.gz: 36d49d10b1bddb4b0b809b50e8d8be7294a9a7e3f8566dc344f57ea3538aa6ed9c035d41866b5213bdb930169d4f731f10c47734bfb956a99b7a64d6f16ab831
7
+ data.tar.gz: 6f3e79cabd9351488e264e2d3bf545cc21447c7daece998c0c346c063213fb62b03f3eb8ea20388c3f4d280b249536fdf57d7d2bd88fa25dca9a973487ac74a4
@@ -104,9 +104,9 @@ module ICU
104
104
  def display_name_with_context(locale, contexts = [])
105
105
  contexts = DISPLAY_CONTEXT.select { |context| contexts.include?(context) }.values
106
106
 
107
- with_locale_display_name(@id, contexts) do |locale_display_names|
107
+ with_locale_display_name(locale, contexts) do |locale_display_names|
108
108
  Lib::Util.read_uchar_buffer(256) do |buffer, status|
109
- Lib.uldn_localeDisplayName(locale_display_names, locale, buffer, buffer.size, status)
109
+ Lib.uldn_localeDisplayName(locale_display_names, @id, buffer, buffer.size, status)
110
110
  end
111
111
  end
112
112
  end
@@ -1,3 +1,3 @@
1
1
  module ICU
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
data/spec/locale_spec.rb CHANGED
@@ -124,8 +124,8 @@ module ICU
124
124
  end
125
125
 
126
126
  it 'returns the name using display context' do
127
- expect(Locale.new('en_US').display_name_with_context('en_HK', [:length_full])).to eq('English (Hong Kong SAR China)')
128
- expect(Locale.new('en_US').display_name_with_context('en_HK', [:length_short])).to eq('English (Hong Kong)')
127
+ expect(Locale.new('en_HK').display_name_with_context('en_US', [:length_full])).to eq('English (Hong Kong SAR China)')
128
+ expect(Locale.new('en_HK').display_name_with_context('en_US', [:length_short])).to eq('English (Hong Kong)')
129
129
  end
130
130
 
131
131
  it 'returns the script' do
@@ -145,7 +145,7 @@ module ICU
145
145
  expect(Locale.new('en_VI').display_country('ccp')).to_not be_nil
146
146
  expect(Locale.new('yue_Hant').display_language('ccp')).to_not be_nil
147
147
  expect(Locale.new('en_VI').display_name('ccp')).to_not be_nil
148
- expect(Locale.new('ccp').display_name_with_context('en_VI')).to_not be_nil
148
+ expect(Locale.new('en_VI').display_name_with_context('ccp')).to_not be_nil
149
149
  expect(Locale.new('yue_Hant').display_script('ccp')).to_not be_nil
150
150
  expect(Locale.new('en_US_POSIX').display_variant('sl')).to_not be_nil
151
151
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-icu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken