i18nema 0.0.1 → 0.0.2

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.
@@ -74,7 +74,7 @@ hash_to_rhash(i_object_t *hash)
74
74
  i_key_value_t *handle = hash->data.hash;
75
75
  VALUE result = rb_hash_new();
76
76
  for (; handle != NULL; handle = handle->hh.next)
77
- rb_hash_aset(result, rb_str_new2(handle->key), i_object_to_robject(handle->value));
77
+ rb_hash_aset(result, ID2SYM(rb_intern(handle->key)), i_object_to_robject(handle->value));
78
78
  return result;
79
79
  }
80
80
 
data/test/i18nema_test.rb CHANGED
@@ -11,17 +11,17 @@ class I18nemaTest < Test::Unit::TestCase
11
11
  asdf
12
12
  qwerty
13
13
  }
14
- }.deep_stringify_keys
14
+ }
15
15
  @backend = I18nema::Backend.new
16
16
  @backend.store_translations :en, @data
17
17
  end
18
18
 
19
19
  def test_yaml_parity
20
- assert_equal({"en" => @data}, @backend.direct_lookup)
20
+ assert_equal({en: @data}, @backend.direct_lookup)
21
21
  end
22
22
 
23
23
  def test_scoping
24
- assert_equal({"bar" => "lol"},
24
+ assert_equal({bar: "lol"},
25
25
  @backend.direct_lookup("en", "foo"))
26
26
  assert_equal "lol",
27
27
  @backend.direct_lookup("en", "foo", "bar")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: