i18nema 0.0.7 → 0.0.8

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: 35670d445b760ee856338454584bc3e85e57f522
4
+ data.tar.gz: e5c345504bac884409822815ed48c25c09cd830c
5
+ SHA512:
6
+ metadata.gz: cc55d1f12e14aec49db6a764ab6765392c56d987a418a194abf65a6f0bfafef3494cbb4cb4e84fef542379c47a16bb6300a230df92b860cf7746bb6f053cd233
7
+ data.tar.gz: c8ce37f1a52d2699794019c6ab37101fa5feb91ad35212bcc35b35fa73cad14e3fcb8d0c6c63e84463ddb72a1051b6ef1b915397ffe02aa9aae2e382565e5ece
data/README.md CHANGED
@@ -9,15 +9,21 @@ inject on nested ruby hashes).
9
9
 
10
10
  ## How do I use it?
11
11
 
12
- gem 'i18nema'
12
+ ```ruby
13
+ gem 'i18nema' # or 'i18nema-19' if you're on Ruby 1.9
14
+ ```
13
15
 
14
- and then do something like this in an initializer:
16
+ Then do something like this in an initializer:
15
17
 
16
- I18n.backend = I18nema::Backend.new
18
+ ```ruby
19
+ I18n.backend = I18nema::Backend.new
20
+ ```
17
21
 
18
22
  You can pull in additional features, e.g.
19
23
 
20
- I18nema::Backend.send(:include, I18n::Backend::Fallbacks)
24
+ ```ruby
25
+ I18nema::Backend.send(:include, I18n::Backend::Fallbacks)
26
+ ```
21
27
 
22
28
  As with regular I18n, you should probably load translations before you
23
29
  fork, so that all processes can use the same translations in memory. In
@@ -0,0 +1 @@
1
+ require 'i18nema'
@@ -1,3 +1,4 @@
1
+ require 'yaml' if RUBY_VERSION >= "2.0" # otherwise syck asplodes
1
2
  require 'syck'
2
3
  require 'i18n'
3
4
  require File.dirname(__FILE__) + '/i18nema/core_ext/hash'
metadata CHANGED
@@ -1,55 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18nema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jon Jensen
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-05 00:00:00.000000000 Z
11
+ date: 2014-01-16 00:00:00.000000000 Z
13
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: syck
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
14
27
  - !ruby/object:Gem::Dependency
15
28
  name: i18n
16
29
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
30
  requirements:
19
- - - ! '>='
31
+ - - '>='
20
32
  - !ruby/object:Gem::Version
21
33
  version: '0.5'
22
34
  type: :runtime
23
35
  prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
37
  requirements:
27
- - - ! '>='
38
+ - - '>='
28
39
  - !ruby/object:Gem::Version
29
40
  version: '0.5'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: rake-compiler
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ! '>='
45
+ - - '>='
36
46
  - !ruby/object:Gem::Version
37
47
  version: '0.8'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ! '>='
52
+ - - '>='
44
53
  - !ruby/object:Gem::Version
45
54
  version: '0.8'
46
55
  description: drop-in replacement for I18n::Backend::Simple for faster lookups and
47
56
  quicker gc runs. translations are stored outside of the ruby heap
48
- email: jon@instructure.com.com
57
+ email: jon@instructure.com
49
58
  executables: []
50
59
  extensions:
51
60
  - ext/i18nema/extconf.rb
52
- - ext/i18nema/mkrf_conf.rb
53
61
  extra_rdoc_files: []
54
62
  files:
55
63
  - Rakefile
@@ -58,34 +66,32 @@ files:
58
66
  - ext/i18nema/vendor/syck.h
59
67
  - ext/i18nema/vendor/uthash.h
60
68
  - ext/i18nema/extconf.rb
61
- - ext/i18nema/mkrf_conf.rb
62
69
  - lib/i18nema/core_ext/hash.rb
70
+ - lib/i18nema-19.rb
63
71
  - lib/i18nema.rb
64
72
  - test/helper.rb
65
73
  - test/i18nema_test.rb
66
74
  homepage: http://github.com/instructure/i18nema
67
75
  licenses: []
76
+ metadata: {}
68
77
  post_install_message:
69
78
  rdoc_options: []
70
79
  require_paths:
71
80
  - lib
72
81
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
82
  requirements:
75
- - - ! '>='
83
+ - - '>='
76
84
  - !ruby/object:Gem::Version
77
- version: 1.9.3
85
+ version: 2.0.0
78
86
  required_rubygems_version: !ruby/object:Gem::Requirement
79
- none: false
80
87
  requirements:
81
- - - ! '>='
88
+ - - '>='
82
89
  - !ruby/object:Gem::Version
83
90
  version: 1.3.5
84
91
  requirements: []
85
92
  rubyforge_project:
86
- rubygems_version: 1.8.25
93
+ rubygems_version: 2.0.3
87
94
  signing_key:
88
- specification_version: 3
95
+ specification_version: 4
89
96
  summary: fast i18n backend that doesn't stop up the garbage collector
90
97
  test_files: []
91
- has_rdoc:
@@ -1,19 +0,0 @@
1
- require 'rubygems'
2
- require 'rubygems/command.rb'
3
- require 'rubygems/dependency_installer.rb'
4
- begin
5
- Gem::Command.build_args = ARGV
6
- rescue NoMethodError
7
- end
8
- inst = Gem::DependencyInstaller.new
9
- begin
10
- if RUBY_VERSION >= "2.0"
11
- inst.install "syck", "1.0.0"
12
- end
13
- rescue
14
- exit(1)
15
- end
16
-
17
- f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
18
- f.write("task :default\n")
19
- f.close