translations_sync 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Changelog +3 -0
  2. data/Rakefile +4 -4
  3. data/lib/translations_sync.rb +1 -1
  4. metadata +49 -34
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2013-10-18 v.0.4.1
2
+ * Bugfix with exception when no rules_key is present
3
+
1
4
  2012-09-17 v.0.4.0
2
5
  * Bugfix with proper calculation of count keys + transliteration screening
3
6
 
data/Rakefile CHANGED
@@ -1,12 +1,12 @@
1
1
  require 'rdoc/task'
2
2
  require 'rubygems'
3
- require 'rake/gempackagetask'
3
+ require 'rubygems/package_task'
4
4
  # require 'spec/rake/spectask'
5
5
  require 'rubygems/specification'
6
6
  require 'date'
7
7
 
8
8
  GEM = "translations_sync"
9
- GEM_VERSION = "0.4.0"
9
+ GEM_VERSION = "0.4.1"
10
10
  AUTHOR = "Dmitri Koulikoff"
11
11
  EMAIL = "koulikoff@gmail.com"
12
12
  HOMEPAGE = "http://github.com/dima4p/translations_sync/"
@@ -24,7 +24,7 @@ spec = Gem::Specification.new do |s|
24
24
  s.email = EMAIL
25
25
  s.homepage = HOMEPAGE
26
26
 
27
- s.add_dependency "ya2yaml"
27
+ s.add_dependency "ya2yaml"
28
28
 
29
29
  s.executables = 'translations_sync'
30
30
  s.default_executable = 'translations_sync'
@@ -43,7 +43,7 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
43
43
  rdoc.rdoc_files.include('lib/**/*.rb')
44
44
  end
45
45
 
46
- Rake::GemPackageTask.new(spec) do |pkg|
46
+ Gem::PackageTask.new(spec) do |pkg|
47
47
  pkg.gem_spec = spec
48
48
  end
49
49
 
@@ -96,7 +96,7 @@ class TranslationsSync
96
96
  @list.each do |lang|
97
97
  flatten_keys(lang, translations[lang] || {}, @flat)
98
98
  end
99
- @flat.delete(rules_key.split('.').map(&:to_sym)) # we do not need this proc if it exists
99
+ @flat.delete(rules_key.split('.').map(&:to_sym)) if rules_key # we do not need this proc if it exists
100
100
  transliterate = [:i18n, :transliterate]
101
101
  @flat.keys.select do |key|
102
102
  @flat.delete(key) if key[0..1] == transliterate
metadata CHANGED
@@ -1,41 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: translations_sync
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 1
10
+ version: 0.4.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Dmitri Koulikoff
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-09-16 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-11-18 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: ya2yaml
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
30
34
  description: Synchronizes the different locales represeinted in yaml for I18n
31
35
  email: koulikoff@gmail.com
32
- executables:
36
+ executables:
33
37
  - translations_sync
34
38
  extensions: []
35
- extra_rdoc_files:
39
+
40
+ extra_rdoc_files:
36
41
  - README
37
42
  - MIT-LICENSE
38
- files:
43
+ files:
39
44
  - MIT-LICENSE
40
45
  - README
41
46
  - Rakefile
@@ -47,26 +52,36 @@ files:
47
52
  - spec/spec_helper.rb
48
53
  homepage: http://github.com/dima4p/translations_sync/
49
54
  licenses: []
55
+
50
56
  post_install_message:
51
57
  rdoc_options: []
52
- require_paths:
58
+
59
+ require_paths:
53
60
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
55
62
  none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
71
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
66
79
  requirements: []
80
+
67
81
  rubyforge_project:
68
- rubygems_version: 1.8.24
82
+ rubygems_version: 1.8.15
69
83
  signing_key:
70
84
  specification_version: 3
71
85
  summary: Synchronizes the different locales represeinted in yaml for I18n
72
86
  test_files: []
87
+