web_translate_it 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -2
- data/history.md +4 -0
- data/lib/web_translate_it/command_line.rb +1 -1
- data/spec/web_translate_it/translation_file_spec.rb +4 -4
- data/spec/web_translate_it_spec.rb +1 -1
- data/version.yml +1 -1
- metadata +28 -14
data/README.md
CHANGED
@@ -3,8 +3,9 @@
|
|
3
3
|
[Homepage](https://webtranslateit.com) |
|
4
4
|
[RDocs](http://yardoc.org/docs/AtelierConvivialite-webtranslateit) |
|
5
5
|
[Metrics](http://getcaliper.com/caliper/project?repo=git%3A%2F%2Fgithub.com%2FAtelierConvivialite%2Fwebtranslateit.git) |
|
6
|
-
[
|
7
|
-
[
|
6
|
+
[Example app](http://github.com/AtelierConvivialite/rails_example_app) |
|
7
|
+
[Report a bug](http://github.com/AtelierConvivialite/webtranslateit/issues) |
|
8
|
+
[Support](http://help.webtranslateit.com)
|
8
9
|
|
9
10
|
This is a gem providing tools to sync your software’s language files with [Web Translate It](https://webtranslateit.com), a web-based computer-aided translation tool.
|
10
11
|
|
data/history.md
CHANGED
@@ -19,28 +19,28 @@ describe WebTranslateIt::TranslationFile do
|
|
19
19
|
file = mock(File)
|
20
20
|
file.stub(:puts => true, :close => true)
|
21
21
|
File.stub(:exist? => true, :mtime => Time.at(0), :new => file)
|
22
|
-
@translation_file.fetch.should == 200
|
22
|
+
@translation_file.fetch.should == "200 OK"
|
23
23
|
end
|
24
24
|
|
25
25
|
it "should prepare a HTTP request and get a 200 OK if the language file is stale using the force download parameter" do
|
26
26
|
file = mock(File)
|
27
27
|
file.stub(:puts => true, :close => true)
|
28
28
|
File.stub(:exist? => true, :mtime => Time.at(0), :new => file)
|
29
|
-
@translation_file.fetch(true).should == 200
|
29
|
+
@translation_file.fetch(true).should == "200 OK"
|
30
30
|
end
|
31
31
|
|
32
32
|
it "should prepare a HTTP request and get a 304 OK if the language file is fresh" do
|
33
33
|
file = mock(File)
|
34
34
|
file.stub(:puts => true, :close => true)
|
35
35
|
File.stub(:exist? => true, :mtime => Time.now, :new => file)
|
36
|
-
@translation_file.fetch.should == 304
|
36
|
+
@translation_file.fetch.should == "304 OK"
|
37
37
|
end
|
38
38
|
|
39
39
|
it "should prepare a HTTP request and get a 200 OK if the language file is fresh using the force download parameter" do
|
40
40
|
file = mock(File)
|
41
41
|
file.stub(:puts => true, :close => true)
|
42
42
|
File.stub(:exist? => true, :mtime => Time.now, :new => file)
|
43
|
-
@translation_file.fetch(true).should == 200
|
43
|
+
@translation_file.fetch(true).should == "200 OK"
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -12,7 +12,7 @@ describe WebTranslateIt do
|
|
12
12
|
Rails = OpenStruct.new(:root => Pathname.new(File.dirname(__FILE__) + "/examples"))
|
13
13
|
@configuration = WebTranslateIt::Configuration.new
|
14
14
|
@file = mock(WebTranslateIt::TranslationFile)
|
15
|
-
@file.stub(:fetch => true)
|
15
|
+
@file.stub(:fetch => true, :locale => true)
|
16
16
|
@configuration.stub(:files => [@file])
|
17
17
|
WebTranslateIt::Configuration.stub(:new => @configuration)
|
18
18
|
|
data/version.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web_translate_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 6
|
8
|
+
- 1
|
9
|
+
version: 1.6.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- "\xC3\x89douard Bri\xC3\xA8re"
|
@@ -9,29 +14,36 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-26 00:00:00 +01:00
|
13
18
|
default_executable: wti
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: multipart-post
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ~>
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 0
|
23
30
|
version: "1.0"
|
24
|
-
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
25
33
|
- !ruby/object:Gem::Dependency
|
26
34
|
name: rspec
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
37
|
requirements:
|
31
38
|
- - ">="
|
32
39
|
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 1
|
42
|
+
- 2
|
43
|
+
- 0
|
33
44
|
version: 1.2.0
|
34
|
-
|
45
|
+
type: :development
|
46
|
+
version_requirements: *id002
|
35
47
|
description: A rack middleware and a handful of rake tasks to sync your translations between webtranslateit.com and your rails applications.
|
36
48
|
email: edouard@atelierconvivialite.com
|
37
49
|
executables:
|
@@ -67,7 +79,7 @@ has_rdoc: true
|
|
67
79
|
homepage: https://webtranslateit.com
|
68
80
|
licenses: []
|
69
81
|
|
70
|
-
post_install_message: " ************************************************************\n\n Thank you for installing web_translate_it\n\n
|
82
|
+
post_install_message: " ************************************************************\n\n Thank you for installing web_translate_it\n\n If you upgrade from a version <= 1.5.2\n be sure to read this blog post: http://bit.ly/aEox3b\n for useful information about this release.\n 1.6.0 bring some important breaking changes.\n\n ************************************************************\n"
|
71
83
|
rdoc_options:
|
72
84
|
- --main
|
73
85
|
- README.md
|
@@ -77,18 +89,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
89
|
requirements:
|
78
90
|
- - ">="
|
79
91
|
- !ruby/object:Gem::Version
|
92
|
+
segments:
|
93
|
+
- 0
|
80
94
|
version: "0"
|
81
|
-
version:
|
82
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
96
|
requirements:
|
84
97
|
- - ">="
|
85
98
|
- !ruby/object:Gem::Version
|
99
|
+
segments:
|
100
|
+
- 0
|
86
101
|
version: "0"
|
87
|
-
version:
|
88
102
|
requirements: []
|
89
103
|
|
90
104
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.3.
|
105
|
+
rubygems_version: 1.3.6
|
92
106
|
signing_key:
|
93
107
|
specification_version: 3
|
94
108
|
summary: Sync your translations between your Rails app and Web Translate It
|