sy18nc 0.0.2 → 0.1.0
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.
- data/.travis.yml +3 -0
- data/Guardfile +6 -0
- data/README.md +17 -1
- data/Rakefile +0 -8
- data/ext/object.rb +2 -6
- data/lib/generators/templates/sy18nc.rb +5 -3
- data/lib/sy18nc/locale.rb +18 -2
- data/lib/sy18nc/version.rb +1 -1
- data/spec/ext_spec.rb +12 -12
- data/spec/fixtures/es.yml +0 -0
- data/spec/locale_spec.rb +28 -30
- data/spec/spec_helper.rb +6 -4
- data/spec/sy18nc_spec.rb +9 -9
- data/spec/sychronizer_spec.rb +20 -11
- data/sy18nc.gemspec +4 -2
- metadata +49 -12
data/.travis.yml
ADDED
data/Guardfile
ADDED
data/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](https://travis-ci.org/michaldarda/sy18nc)
|
|
2
|
+
|
|
1
3
|
# Sy18nc
|
|
2
4
|
|
|
3
5
|
Simple tool to synchronize Rails .ymls with locales.
|
|
@@ -6,7 +8,9 @@ Simple tool to synchronize Rails .ymls with locales.
|
|
|
6
8
|
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
group :development do
|
|
12
|
+
gem 'sy18nc', '~> 0.1.0'
|
|
13
|
+
end
|
|
10
14
|
|
|
11
15
|
And then execute:
|
|
12
16
|
|
|
@@ -102,6 +106,18 @@ informing you that there is something missing in this locales and you need to fi
|
|
|
102
106
|
|
|
103
107
|
Please post any issues via Github Issues. If you want to contribute, see [Contributing](#contributing).
|
|
104
108
|
|
|
109
|
+
# Changelog
|
|
110
|
+
|
|
111
|
+
## 0.1.0
|
|
112
|
+
- Creating translations from scratch
|
|
113
|
+
- Deleting keys which are not present in base
|
|
114
|
+
|
|
115
|
+
## 0.0.2
|
|
116
|
+
- Fixed huge bug with overwriting Rails methods
|
|
117
|
+
|
|
118
|
+
## 0.0.1
|
|
119
|
+
- Initial release
|
|
120
|
+
|
|
105
121
|
## Contributing
|
|
106
122
|
|
|
107
123
|
1. Fork it
|
data/Rakefile
CHANGED
|
@@ -3,14 +3,6 @@ require "rake/testtask"
|
|
|
3
3
|
|
|
4
4
|
require_relative "lib/sy18nc"
|
|
5
5
|
|
|
6
|
-
Rake::TestTask.new(:spec) do |t|
|
|
7
|
-
t.libs.push "lib"
|
|
8
|
-
t.test_files = FileList["spec/*_spec.rb"]
|
|
9
|
-
t.verbose = true
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
task default: :spec
|
|
13
|
-
|
|
14
6
|
desc "Open an irb session preloaded with this library"
|
|
15
7
|
task :console do
|
|
16
8
|
sh "irb -rubygems -I lib -I extra -r ./lib/sy18nc.rb"
|
data/ext/object.rb
CHANGED
data/lib/sy18nc/locale.rb
CHANGED
|
@@ -5,10 +5,27 @@ module Sy18nc
|
|
|
5
5
|
attr_reader :name, :hash
|
|
6
6
|
|
|
7
7
|
def initialize(file)
|
|
8
|
+
# locale does not exists
|
|
9
|
+
unless File.exists?(File.expand_path(file))
|
|
10
|
+
# extracts name from locale file name
|
|
11
|
+
# ["devise", "en"]
|
|
12
|
+
tname = file.match(/(([A-z]+\.)*)(yml)$/)[1].split(".")
|
|
13
|
+
f = File.new(file, "w+")
|
|
14
|
+
|
|
15
|
+
# uses fetched keys before to create a skeleton of locale
|
|
16
|
+
locale_skeleton = tname.inject({}) do |result, k|
|
|
17
|
+
result[k] = {}
|
|
18
|
+
result
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
f.write(YAML.dump(locale_skeleton))
|
|
22
|
+
f.close
|
|
23
|
+
end
|
|
24
|
+
|
|
8
25
|
@name = File.basename(file,".*")
|
|
9
26
|
|
|
27
|
+
file = File.read(File.expand_path(file))
|
|
10
28
|
file = replace_fixmes(file)
|
|
11
|
-
|
|
12
29
|
begin
|
|
13
30
|
@hash = YAML.load(file)
|
|
14
31
|
rescue Exception => e
|
|
@@ -56,7 +73,6 @@ module Sy18nc
|
|
|
56
73
|
# little trick:
|
|
57
74
|
# fetch with the comments
|
|
58
75
|
def replace_fixmes(file)
|
|
59
|
-
file = File.read(File.expand_path(file))
|
|
60
76
|
file.gsub("\' # FIXME", " g FIXME\'")
|
|
61
77
|
.gsub("\" # FIXME", " g FIXME\"")
|
|
62
78
|
.gsub("# FIXME", "g FIXME")
|
data/lib/sy18nc/version.rb
CHANGED
data/spec/ext_spec.rb
CHANGED
|
@@ -3,11 +3,11 @@ require_relative 'spec_helper'
|
|
|
3
3
|
describe Array do
|
|
4
4
|
it "extracts options" do
|
|
5
5
|
a = [1, 2, 3, 4, { option: true, option2: false }]
|
|
6
|
-
a.sy18nc_extract_options!.
|
|
7
|
-
a.
|
|
6
|
+
a.sy18nc_extract_options!.should eql({ option: true, option2: false })
|
|
7
|
+
a.should eql([1,2,3,4])
|
|
8
8
|
|
|
9
|
-
a.sy18nc_extract_options!.
|
|
10
|
-
a.
|
|
9
|
+
a.sy18nc_extract_options!.should eql({})
|
|
10
|
+
a.should eql([1,2,3,4])
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
it "appends" do
|
|
@@ -15,7 +15,7 @@ describe Array do
|
|
|
15
15
|
|
|
16
16
|
a.sy18nc_append!("appended_string")
|
|
17
17
|
|
|
18
|
-
a.
|
|
18
|
+
a.should eql(["helloappended_string", "worldappended_string"])
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -57,7 +57,7 @@ describe Hash do
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
@hash.sy18nc_append!("appended_string").
|
|
60
|
+
@hash.sy18nc_append!("appended_string").should eql(appended_hash)
|
|
61
61
|
|
|
62
62
|
hash2 = {
|
|
63
63
|
:key1 => "helloworld",
|
|
@@ -77,7 +77,7 @@ describe Hash do
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
hash2.sy18nc_append!("appended_string").
|
|
80
|
+
hash2.sy18nc_append!("appended_string").should eql(appended_hash2)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
it "deep marks fixme" do
|
|
@@ -99,7 +99,7 @@ describe Hash do
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
@hash.sy18nc_mark_fixme!
|
|
102
|
-
@hash.
|
|
102
|
+
@hash.should eql(fixme_hash)
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
it "deep merges and marks fixme" do
|
|
@@ -131,7 +131,7 @@ describe Hash do
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
other_hash.sy18nc_deep_merge!(@hash).
|
|
134
|
+
other_hash.sy18nc_deep_merge!(@hash).should eql(result)
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
it "deep merges hashes with nested arrays" do
|
|
@@ -139,11 +139,11 @@ describe Hash do
|
|
|
139
139
|
|
|
140
140
|
describe String do
|
|
141
141
|
it "marks fixme" do
|
|
142
|
-
"Hello".sy18nc_mark_fixme!.
|
|
142
|
+
"Hello".sy18nc_mark_fixme!.should eql("Hello g FIXME")
|
|
143
143
|
|
|
144
|
-
"Hello g FIXME".sy18nc_mark_fixme!.
|
|
144
|
+
"Hello g FIXME".sy18nc_mark_fixme!.should eql("Hello g FIXME")
|
|
145
145
|
|
|
146
|
-
"*hello_world".sy18nc_mark_fixme!.
|
|
146
|
+
"*hello_world".sy18nc_mark_fixme!.should eql("*hello_world")
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
end
|
|
File without changes
|
data/spec/locale_spec.rb
CHANGED
|
@@ -6,80 +6,78 @@ describe Sy18nc::Locale do
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
it "loads the yaml" do
|
|
9
|
-
@locale.hash.
|
|
10
|
-
@locale.hash.
|
|
9
|
+
@locale.hash.should_not be_empty
|
|
10
|
+
@locale.hash.should be_a_kind_of(Hash)
|
|
11
11
|
|
|
12
12
|
locale = Sy18nc::Locale.new("spec/fixtures/devise.tr.yml")
|
|
13
|
-
locale.hash.
|
|
14
|
-
locale.hash.
|
|
15
|
-
|
|
13
|
+
locale.hash.should_not be_empty
|
|
14
|
+
locale.hash.should be_a_kind_of(Hash)
|
|
15
|
+
locale.synchronizable?.should be_true
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
it "is not synchronizable when YAML is not valid" do
|
|
19
19
|
t = Sy18nc::Locale.new("spec/fixtures/not_valid.yml")
|
|
20
|
-
|
|
20
|
+
t.synchronizable?.should be_false
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
it "fetches the locale body" do
|
|
24
|
-
@locale.body.
|
|
25
|
-
@locale.body.
|
|
24
|
+
@locale.body.should_not eql("en")
|
|
25
|
+
@locale.body.should be_a_kind_of(Hash)
|
|
26
26
|
|
|
27
27
|
locale = Sy18nc::Locale.new("spec/fixtures/devise.tr.yml")
|
|
28
|
-
locale.body.
|
|
29
|
-
locale.body.
|
|
28
|
+
locale.body.should_not be_empty
|
|
29
|
+
locale.body.should be_a_kind_of(Hash)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
it "writes the locale to file" do
|
|
33
|
-
|
|
33
|
+
File.exists?("en.yml").should be_false
|
|
34
34
|
@locale.save
|
|
35
|
-
|
|
35
|
+
File.exists?("en.yml").should be_true
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
File.exists?("en.yml.bak").should be_false
|
|
38
38
|
@locale.save(backup: true)
|
|
39
|
-
|
|
39
|
+
File.exists?("en.yml.bak").should be_true
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
File.exists?("locale_file.yml").should be_false
|
|
42
42
|
@locale.save(filename: "locale_file")
|
|
43
|
-
|
|
43
|
+
File.exists?("locale_file.yml").should be_true
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
File.exists?("locale_file.yml.bak").should be_false
|
|
46
46
|
@locale.save(filename: "locale_file", backup: true)
|
|
47
|
-
|
|
47
|
+
File.exists?("locale_file.yml.bak").should be_true
|
|
48
48
|
|
|
49
49
|
cleanup
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
it "converts locale to yml" do
|
|
53
|
-
@locale.to_yaml.
|
|
54
|
-
@locale.to_yaml.
|
|
55
|
-
@locale.to_yaml.
|
|
53
|
+
@locale.to_yaml.should_not be_empty
|
|
54
|
+
@locale.to_yaml.should be_a_kind_of(String)
|
|
55
|
+
@locale.to_yaml.should eql(%q[---
|
|
56
56
|
en:
|
|
57
57
|
promo:
|
|
58
58
|
link1: "Hello"
|
|
59
59
|
link2: "Hello"
|
|
60
|
-
]
|
|
60
|
+
])
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
it "synchronizes locales" do
|
|
64
64
|
russian_locale = Sy18nc::Locale.new("spec/fixtures/ru.yml")
|
|
65
65
|
russian_locale.synchronize(@locale)
|
|
66
|
-
russian_locale.to_yaml.
|
|
66
|
+
russian_locale.to_yaml.should eql(%q[---
|
|
67
67
|
ru:
|
|
68
68
|
promo:
|
|
69
69
|
link1: "Birbevoon"
|
|
70
70
|
link2: "Hello" # FIXME
|
|
71
|
-
]
|
|
72
|
-
@locale.to_yaml.lines.count.
|
|
71
|
+
])
|
|
72
|
+
@locale.to_yaml.lines.count.should eql(russian_locale.to_yaml.lines.count)
|
|
73
73
|
|
|
74
74
|
devise_en = Sy18nc::Locale.new("spec/fixtures/devise.en.yml")
|
|
75
75
|
devise_tr = Sy18nc::Locale.new("spec/fixtures/devise.tr.yml")
|
|
76
|
-
devise_en.to_yaml.lines.count.
|
|
76
|
+
devise_en.to_yaml.lines.count.should_not eql(devise_tr.to_yaml.lines.count)
|
|
77
77
|
|
|
78
78
|
devise_tr.synchronize(devise_en)
|
|
79
|
-
devise_tr.to_yaml.lines.count.
|
|
80
|
-
devise_tr.to_yaml.
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
devise_tr.to_yaml.lines.count.should eql(devise_en.to_yaml.lines.count)
|
|
80
|
+
devise_tr.to_yaml.should eql(File.read(File.expand_path("spec/fixtures/results/devise.tr.yml")))
|
|
83
81
|
end
|
|
84
82
|
|
|
85
83
|
def cleanup
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
require 'simplecov'
|
|
2
2
|
SimpleCov.start 'rails'
|
|
3
3
|
|
|
4
|
-
require 'minitest/autorun'
|
|
5
|
-
require 'minitest/spec'
|
|
6
|
-
require 'turn/autorun'
|
|
7
|
-
|
|
8
4
|
require_relative '../lib/sy18nc.rb'
|
|
5
|
+
|
|
6
|
+
RSpec.configure do |config|
|
|
7
|
+
config.failure_color = :magenta
|
|
8
|
+
config.tty = true
|
|
9
|
+
config.color = true
|
|
10
|
+
end
|
data/spec/sy18nc_spec.rb
CHANGED
|
@@ -2,10 +2,10 @@ require_relative "spec_helper"
|
|
|
2
2
|
|
|
3
3
|
describe Sy18nc do
|
|
4
4
|
it "is configurable" do
|
|
5
|
-
Sy18nc.config.base_locale.
|
|
6
|
-
Sy18nc.config.locales_dir.
|
|
7
|
-
Sy18nc.config.files.
|
|
8
|
-
Sy18nc.config.locales.
|
|
5
|
+
Sy18nc.config.base_locale.should eql("en")
|
|
6
|
+
Sy18nc.config.locales_dir.should eql("#{Dir.pwd}/config/locales")
|
|
7
|
+
Sy18nc.config.files.should eql([])
|
|
8
|
+
Sy18nc.config.locales.should eql([])
|
|
9
9
|
|
|
10
10
|
Sy18nc.configure do |c|
|
|
11
11
|
c.base_locale = "ru"
|
|
@@ -15,10 +15,10 @@ describe Sy18nc do
|
|
|
15
15
|
c.locales = ["en", "es", "fr", "de"]
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
Sy18nc.config.base_locale.
|
|
19
|
-
Sy18nc.config.locales_dir.
|
|
20
|
-
Sy18nc.config.backup.
|
|
21
|
-
Sy18nc.config.files.
|
|
22
|
-
Sy18nc.config.locales.
|
|
18
|
+
Sy18nc.config.base_locale.should eql("ru")
|
|
19
|
+
Sy18nc.config.locales_dir.should eql("spec/fixtures")
|
|
20
|
+
Sy18nc.config.backup.should eql(true)
|
|
21
|
+
Sy18nc.config.files.should eql(["code", "devise", "doorkeeper"])
|
|
22
|
+
Sy18nc.config.locales.should eql(["en", "es", "fr", "de"])
|
|
23
23
|
end
|
|
24
24
|
end
|
data/spec/sychronizer_spec.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
require_relative 'spec_helper'
|
|
2
2
|
|
|
3
3
|
describe Sy18nc::Synchronizer do
|
|
4
|
-
|
|
4
|
+
before do
|
|
5
5
|
@synchronizer = Sy18nc::Synchronizer.new("spec/fixtures/", "en.yml" ,"ru.yml", backup: true)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
after do
|
|
9
9
|
%x[rm spec/fixtures/*.bak]
|
|
10
10
|
end
|
|
11
11
|
|
|
@@ -16,13 +16,22 @@ describe Sy18nc::Synchronizer do
|
|
|
16
16
|
synchronizer.synchronize_all
|
|
17
17
|
after = File.read(File.expand_path("spec/fixtures/en.yml"))
|
|
18
18
|
|
|
19
|
-
after.
|
|
19
|
+
after.should eq before
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
it "creates missing translations" do
|
|
23
|
+
File.exists?(File.expand_path("spec/fixtures/devise.es.yml")).should be_false
|
|
24
|
+
synchronizer = Sy18nc::Synchronizer.new("spec/fixtures/", "devise.en.yml", "devise.es.yml")
|
|
25
|
+
synchronizer.synchronize_all
|
|
26
|
+
|
|
27
|
+
File.exists?(File.expand_path("spec/fixtures/devise.es.yml")).should be_true
|
|
28
|
+
%x[rm spec/fixtures/devise.es.yml]
|
|
20
29
|
end
|
|
21
30
|
|
|
22
31
|
it "synchronizes translation only once" do
|
|
23
32
|
3.times do
|
|
24
33
|
@synchronizer.synchronize_all
|
|
25
|
-
File.read(File.expand_path("spec/fixtures/ru.yml.bak")).
|
|
34
|
+
File.read(File.expand_path("spec/fixtures/ru.yml.bak")).should eq %q[---
|
|
26
35
|
ru:
|
|
27
36
|
promo:
|
|
28
37
|
link1: "Birbevoon"
|
|
@@ -33,25 +42,25 @@ ru:
|
|
|
33
42
|
4.times do
|
|
34
43
|
synchronizer = Sy18nc::Synchronizer.new("spec/fixtures/", "devise.en.yml", "devise.tr.yml", backup: true)
|
|
35
44
|
synchronizer.synchronize_all
|
|
36
|
-
File.read(File.expand_path("spec/fixtures/devise.tr.yml.bak")).
|
|
45
|
+
File.read(File.expand_path("spec/fixtures/devise.tr.yml.bak")).should eq(File.read(File.expand_path("spec/fixtures/results/devise.tr.yml")))
|
|
37
46
|
end
|
|
38
47
|
end
|
|
39
48
|
|
|
40
49
|
it "when backup option is set to true saves as a backup file and does not modify original files" do
|
|
41
|
-
|
|
50
|
+
File.exists?(File.expand_path("spec/fixtures/ru.yml.bak")).should be_false
|
|
42
51
|
@synchronizer.synchronize_all
|
|
43
|
-
|
|
44
|
-
File.read(File.expand_path("spec/fixtures/ru.yml.bak")).
|
|
52
|
+
File.exists?(File.expand_path("spec/fixtures/ru.yml.bak")).should be_true
|
|
53
|
+
File.read(File.expand_path("spec/fixtures/ru.yml.bak")).should eq %q[---
|
|
45
54
|
ru:
|
|
46
55
|
promo:
|
|
47
56
|
link1: "Birbevoon"
|
|
48
57
|
link2: "Hello" # FIXME
|
|
49
58
|
]
|
|
50
59
|
|
|
51
|
-
|
|
60
|
+
File.exists?(File.expand_path("spec/fixtures/devise.tr.yml.bak")).should be_false
|
|
52
61
|
synchronizer = Sy18nc::Synchronizer.new("spec/fixtures/", "devise.en.yml", "devise.tr.yml", backup: true)
|
|
53
62
|
synchronizer.synchronize_all
|
|
54
|
-
|
|
55
|
-
File.read(File.expand_path("spec/fixtures/devise.tr.yml.bak")).
|
|
63
|
+
File.exists?(File.expand_path("spec/fixtures/devise.tr.yml.bak")).should be_true
|
|
64
|
+
File.read(File.expand_path("spec/fixtures/devise.tr.yml.bak")).should eq(File.read(File.expand_path("spec/fixtures/results/devise.tr.yml")))
|
|
56
65
|
end
|
|
57
66
|
end
|
data/sy18nc.gemspec
CHANGED
|
@@ -21,7 +21,9 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.add_dependency "psych", "~> 2.0.1"
|
|
22
22
|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
|
24
|
-
spec.add_development_dependency "rake"
|
|
25
|
-
spec.add_development_dependency "turn", "~> 0.9.6"
|
|
24
|
+
spec.add_development_dependency "rake", '~> 10.1.0'
|
|
26
25
|
spec.add_development_dependency "simplecov", "~> 0.7.1"
|
|
26
|
+
spec.add_development_dependency "rspec", "~> 2.14"
|
|
27
|
+
spec.add_development_dependency "guard"
|
|
28
|
+
spec.add_development_dependency "guard-rspec"
|
|
27
29
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sy18nc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-11-
|
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: psych
|
|
@@ -48,25 +48,25 @@ dependencies:
|
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
|
49
49
|
none: false
|
|
50
50
|
requirements:
|
|
51
|
-
- -
|
|
51
|
+
- - ~>
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version:
|
|
53
|
+
version: 10.1.0
|
|
54
54
|
type: :development
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
none: false
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ~>
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: 10.1.0
|
|
62
62
|
- !ruby/object:Gem::Dependency
|
|
63
|
-
name:
|
|
63
|
+
name: simplecov
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
|
65
65
|
none: false
|
|
66
66
|
requirements:
|
|
67
67
|
- - ~>
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 0.
|
|
69
|
+
version: 0.7.1
|
|
70
70
|
type: :development
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -74,15 +74,15 @@ dependencies:
|
|
|
74
74
|
requirements:
|
|
75
75
|
- - ~>
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version: 0.
|
|
77
|
+
version: 0.7.1
|
|
78
78
|
- !ruby/object:Gem::Dependency
|
|
79
|
-
name:
|
|
79
|
+
name: rspec
|
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
|
81
81
|
none: false
|
|
82
82
|
requirements:
|
|
83
83
|
- - ~>
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version:
|
|
85
|
+
version: '2.14'
|
|
86
86
|
type: :development
|
|
87
87
|
prerelease: false
|
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -90,7 +90,39 @@ dependencies:
|
|
|
90
90
|
requirements:
|
|
91
91
|
- - ~>
|
|
92
92
|
- !ruby/object:Gem::Version
|
|
93
|
-
version:
|
|
93
|
+
version: '2.14'
|
|
94
|
+
- !ruby/object:Gem::Dependency
|
|
95
|
+
name: guard
|
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
|
97
|
+
none: false
|
|
98
|
+
requirements:
|
|
99
|
+
- - ! '>='
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '0'
|
|
102
|
+
type: :development
|
|
103
|
+
prerelease: false
|
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
105
|
+
none: false
|
|
106
|
+
requirements:
|
|
107
|
+
- - ! '>='
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: guard-rspec
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
none: false
|
|
114
|
+
requirements:
|
|
115
|
+
- - ! '>='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
none: false
|
|
122
|
+
requirements:
|
|
123
|
+
- - ! '>='
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0'
|
|
94
126
|
description: ! ' Simple tool to synchronize Rails ymls with locales. '
|
|
95
127
|
email:
|
|
96
128
|
- michaldarda@gmail.com
|
|
@@ -100,7 +132,9 @@ extensions: []
|
|
|
100
132
|
extra_rdoc_files: []
|
|
101
133
|
files:
|
|
102
134
|
- .gitignore
|
|
135
|
+
- .travis.yml
|
|
103
136
|
- Gemfile
|
|
137
|
+
- Guardfile
|
|
104
138
|
- LICENSE.txt
|
|
105
139
|
- README.md
|
|
106
140
|
- Rakefile
|
|
@@ -122,6 +156,7 @@ files:
|
|
|
122
156
|
- spec/fixtures/devise.en.yml
|
|
123
157
|
- spec/fixtures/devise.tr.yml
|
|
124
158
|
- spec/fixtures/en.yml
|
|
159
|
+
- spec/fixtures/es.yml
|
|
125
160
|
- spec/fixtures/not_valid.yml
|
|
126
161
|
- spec/fixtures/results/devise.tr.yml
|
|
127
162
|
- spec/fixtures/ru.yml
|
|
@@ -160,6 +195,7 @@ test_files:
|
|
|
160
195
|
- spec/fixtures/devise.en.yml
|
|
161
196
|
- spec/fixtures/devise.tr.yml
|
|
162
197
|
- spec/fixtures/en.yml
|
|
198
|
+
- spec/fixtures/es.yml
|
|
163
199
|
- spec/fixtures/not_valid.yml
|
|
164
200
|
- spec/fixtures/results/devise.tr.yml
|
|
165
201
|
- spec/fixtures/ru.yml
|
|
@@ -167,3 +203,4 @@ test_files:
|
|
|
167
203
|
- spec/spec_helper.rb
|
|
168
204
|
- spec/sy18nc_spec.rb
|
|
169
205
|
- spec/sychronizer_spec.rb
|
|
206
|
+
has_rdoc:
|