transifex-interface-ruby 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.
- checksums.yaml +6 -14
- data/.gitignore +17 -17
- data/.rspec +2 -0
- data/Gemfile +4 -4
- data/LICENSE.txt +22 -22
- data/README.md +517 -513
- data/Rakefile +1 -1
- data/lib/transifex.rb +84 -87
- data/lib/transifex/crud_requests.rb +43 -33
- data/lib/transifex/errors.rb +4 -4
- data/lib/transifex/project_components/language.rb +1 -1
- data/lib/transifex/project_components/language_components/coordinators.rb +4 -6
- data/lib/transifex/project_components/language_components/reviewers.rb +5 -8
- data/lib/transifex/project_components/language_components/translators.rb +6 -9
- data/lib/transifex/project_components/languages.rb +1 -1
- data/lib/transifex/resource.rb +1 -1
- data/lib/transifex/resource_components/content.rb +1 -1
- data/lib/transifex/resource_components/source.rb +1 -1
- data/lib/transifex/resource_components/stats.rb +1 -1
- data/lib/transifex/resource_components/translation.rb +1 -1
- data/lib/transifex/resource_components/translation_components/string.rb +1 -1
- data/lib/transifex/resource_components/translation_components/strings.rb +1 -1
- data/lib/transifex/resources.rb +1 -1
- data/lib/transifex/version.rb +3 -3
- data/spec/cassettes/fetch_formats.yml +121 -0
- data/spec/cassettes/language/fetch_language_info.yml +58 -0
- data/spec/cassettes/language/fetch_languages_info.yml +58 -0
- data/spec/cassettes/project/components/create_language.yml +95 -0
- data/spec/cassettes/project/components/create_language_non_existing_coordinator.yml +48 -0
- data/spec/cassettes/project/components/create_language_without_coordinator.yml +48 -0
- data/spec/cassettes/project/components/fetch_languages.yml +53 -0
- data/spec/cassettes/project/delete_project.yml +108 -0
- data/spec/cassettes/project/fetch_private_project_info.yml +59 -0
- data/spec/cassettes/project/fetch_with_details_private_project_info.yml +66 -0
- data/spec/cassettes/project/language/delete_language.yml +140 -0
- data/spec/cassettes/project/language/fetch_coordinators.yml +56 -0
- data/spec/cassettes/project/language/fetch_language_info.yml +52 -0
- data/spec/cassettes/project/language/fetch_reviewers.yml +56 -0
- data/spec/cassettes/project/language/fetch_translators.yml +54 -0
- data/spec/cassettes/project/language/fetch_with_details_language_info.yml +54 -0
- data/spec/cassettes/project/language/update_coordinators.yml +104 -0
- data/spec/cassettes/project/language/update_language.yml +100 -0
- data/spec/cassettes/project/language/update_non_existing_coordinator.yml +48 -0
- data/spec/cassettes/project/language/update_non_existing_language.yml +49 -0
- data/spec/cassettes/project/language/update_non_existing_reviewer.yml +101 -0
- data/spec/cassettes/project/language/update_non_existing_translator.yml +101 -0
- data/spec/cassettes/project/language/update_reviewers.yml +157 -0
- data/spec/cassettes/project/language/update_translators.yml +157 -0
- data/spec/cassettes/project/update_non_existing_attribute_private_project.yml +54 -0
- data/spec/cassettes/project/update_private_project.yml +120 -0
- data/spec/cassettes/project/update_with_missing_params_private_project.yml +54 -0
- data/spec/cassettes/projects/create_private_project.yml +111 -0
- data/spec/cassettes/projects/create_public_project.yml +111 -0
- data/spec/cassettes/projects/create_used_slug_project.yml +55 -0
- data/spec/cassettes/projects/fetch_projects.yml +61 -0
- data/spec/cassettes/resource/delete_not_existing_resource.yml +55 -0
- data/spec/cassettes/resource/delete_resource.yml +160 -0
- data/spec/cassettes/resource/fetch_all_languages_stats.yml +66 -0
- data/spec/cassettes/resource/fetch_content_as_file.yml +56 -0
- data/spec/cassettes/resource/fetch_content_as_hash.yml +58 -0
- data/spec/cassettes/resource/fetch_language_stats.yml +61 -0
- data/spec/cassettes/resource/fetch_not_existing_resource.yml +55 -0
- data/spec/cassettes/resource/fetch_resource_info.yml +59 -0
- data/spec/cassettes/resource/fetch_source_string_metadata.yml +52 -0
- data/spec/cassettes/resource/fetch_translations.yml +57 -0
- data/spec/cassettes/resource/fetch_updated_resource_info.yml +60 -0
- data/spec/cassettes/resource/fetch_updated_source_string_metadata.yml +52 -0
- data/spec/cassettes/resource/fetch_with_details_resource_info.yml +65 -0
- data/spec/cassettes/resource/fetch_with_file_and_mode_translations.yml +56 -0
- data/spec/cassettes/resource/fetch_with_file_translations.yml +56 -0
- data/spec/cassettes/resource/update_content_json.yml +115 -0
- data/spec/cassettes/resource/update_content_with_wrong_mimetype.yml +59 -0
- data/spec/cassettes/resource/update_content_yml.yml +114 -0
- data/spec/cassettes/resource/update_not_existing_resource.yml +55 -0
- data/spec/cassettes/resource/update_resource_info.yml +114 -0
- data/spec/cassettes/resource/update_source_language.yml +54 -0
- data/spec/cassettes/resource/update_source_string_metadata.yml +100 -0
- data/spec/cassettes/resource/update_translation_for_language.yml +62 -0
- data/spec/cassettes/resources/create_from_file.yml +55 -0
- data/spec/cassettes/resources/create_from_string.yml +54 -0
- data/spec/cassettes/resources/fetch_as_array.yml +62 -0
- data/spec/cassettes/resources/non_existing_project.yml +55 -0
- data/spec/cassettes/translation/fetch_string.yml +55 -0
- data/spec/cassettes/translation/fetch_strings.yml +54 -0
- data/spec/cassettes/translation/fetch_with_details_and_context_strings.yml +51 -0
- data/spec/cassettes/translation/fetch_with_details_and_key_strings.yml +56 -0
- data/spec/cassettes/translation/fetch_with_details_strings.yml +56 -0
- data/spec/cassettes/translation/update_multiple_translation_strings.yml +107 -0
- data/spec/cassettes/translation/update_single_translation_strings.yml +104 -0
- data/spec/cassettes/translation/update_string.yml +104 -0
- data/spec/lib/transifex/coordinators_spec.rb +22 -16
- data/spec/lib/transifex/formats_spec.rb +8 -8
- data/spec/lib/transifex/language_spec.rb +9 -10
- data/spec/lib/transifex/languages_spec.rb +8 -8
- data/spec/lib/transifex/project_language_spec.rb +41 -28
- data/spec/lib/transifex/project_languages_spec.rb +34 -18
- data/spec/lib/transifex/project_spec.rb +46 -73
- data/spec/lib/transifex/projects_spec.rb +72 -37
- data/spec/lib/transifex/resource_content_spec.rb +41 -24
- data/spec/lib/transifex/resource_source_spec.rb +21 -19
- data/spec/lib/transifex/resource_spec.rb +69 -41
- data/spec/lib/transifex/resources_spec.rb +42 -34
- data/spec/lib/transifex/reviewers_spec.rb +23 -17
- data/spec/lib/transifex/stats_spec.rb +20 -24
- data/spec/lib/transifex/translation_spec.rb +60 -38
- data/spec/lib/transifex/translation_string_spec.rb +26 -20
- data/spec/lib/transifex/translation_strings_spec.rb +65 -43
- data/spec/lib/transifex/translators_spec.rb +23 -17
- data/spec/lib/transifex_spec.rb +15 -0
- data/spec/lib/yaml/eo.yml +3 -0
- data/spec/spec_helper.rb +19 -83
- data/spec/support/client_helper.rb +8 -0
- data/spec/support/content_helper.rb +346 -0
- data/transifex-interface-ruby.gemspec +28 -25
- metadata +198 -21
- data/spec/lib/transifex/configuration_spec.rb +0 -17
- data/spec/lib/yaml/resource_translation_default_content_test.yml +0 -4
- data/spec/lib/yaml/resource_translation_reviewed_content_test.yml +0 -9
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/not_existing_resource
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"new_name"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Transifex-interface-ruby/0.0.1
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Authorization:
|
19
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 404
|
23
|
+
message: NOT FOUND
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
- Authorization, Host, Accept-Language, Cookie
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0
|
32
|
+
Content-Type:
|
33
|
+
- text/plain
|
34
|
+
Date:
|
35
|
+
- Fri, 28 Apr 2017 09:38:41 GMT
|
36
|
+
Expires:
|
37
|
+
- Fri, 28 Apr 2017 09:38:41 GMT
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
Content-Language:
|
41
|
+
- en
|
42
|
+
Connection:
|
43
|
+
- keep-alive
|
44
|
+
Set-Cookie:
|
45
|
+
- X-Mapping-fjhppofk=371E5B112B2394FA3017E8BE0809059C; path=/
|
46
|
+
Last-Modified:
|
47
|
+
- Fri, 28 Apr 2017 09:38:41 GMT
|
48
|
+
X-Frame-Options:
|
49
|
+
- SAMEORIGIN
|
50
|
+
body:
|
51
|
+
encoding: ASCII-8BIT
|
52
|
+
string: Not Found
|
53
|
+
http_version:
|
54
|
+
recorded_at: Fri, 28 Apr 2017 09:38:41 GMT
|
55
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,114 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/test
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"updated name","categories":["test1","test2"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Transifex-interface-ruby/0.0.1
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Authorization:
|
19
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
- Authorization, Host, Accept-Language, Cookie
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0
|
32
|
+
Content-Type:
|
33
|
+
- text/plain
|
34
|
+
Date:
|
35
|
+
- Fri, 05 May 2017 08:16:44 GMT
|
36
|
+
Expires:
|
37
|
+
- Fri, 05 May 2017 08:16:44 GMT
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
Content-Language:
|
41
|
+
- en
|
42
|
+
X-Content-Type-Options:
|
43
|
+
- nosniff
|
44
|
+
Connection:
|
45
|
+
- keep-alive
|
46
|
+
Set-Cookie:
|
47
|
+
- X-Mapping-fjhppofk=371E5B112B2394FA3017E8BE0809059C; path=/
|
48
|
+
Last-Modified:
|
49
|
+
- Fri, 05 May 2017 08:16:44 GMT
|
50
|
+
X-Frame-Options:
|
51
|
+
- SAMEORIGIN
|
52
|
+
body:
|
53
|
+
encoding: ASCII-8BIT
|
54
|
+
string: OK
|
55
|
+
http_version:
|
56
|
+
recorded_at: Fri, 05 May 2017 08:16:44 GMT
|
57
|
+
- request:
|
58
|
+
method: get
|
59
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/test
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: "{}"
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json
|
66
|
+
Accept:
|
67
|
+
- application/json
|
68
|
+
User-Agent:
|
69
|
+
- Transifex-interface-ruby/0.0.1
|
70
|
+
Accept-Encoding:
|
71
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
72
|
+
Authorization:
|
73
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Server:
|
80
|
+
- nginx
|
81
|
+
Vary:
|
82
|
+
- Accept-Encoding
|
83
|
+
- Authorization, Host, Accept-Language, Cookie
|
84
|
+
Cache-Control:
|
85
|
+
- max-age=0
|
86
|
+
Content-Type:
|
87
|
+
- application/json; charset=utf-8
|
88
|
+
Date:
|
89
|
+
- Fri, 05 May 2017 08:16:44 GMT
|
90
|
+
Expires:
|
91
|
+
- Fri, 05 May 2017 08:16:44 GMT
|
92
|
+
Transfer-Encoding:
|
93
|
+
- chunked
|
94
|
+
Content-Language:
|
95
|
+
- en
|
96
|
+
X-Content-Type-Options:
|
97
|
+
- nosniff
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Set-Cookie:
|
101
|
+
- X-Mapping-fjhppofk=300CA58EE011BC6BC0E393EE4F2B31F6; path=/
|
102
|
+
Last-Modified:
|
103
|
+
- Fri, 05 May 2017 08:16:44 GMT
|
104
|
+
X-Frame-Options:
|
105
|
+
- SAMEORIGIN
|
106
|
+
body:
|
107
|
+
encoding: ASCII-8BIT
|
108
|
+
string: "{\n \"source_language_code\": \"eo\", \n \"name\": \"updated
|
109
|
+
name\", \n \"i18n_type\": \"YML\", \n \"priority\": \"0\", \n \"slug\":
|
110
|
+
\"test\", \n \"categories\": [\n \"test1\", \n \"test2\"\n
|
111
|
+
\ ]\n}"
|
112
|
+
http_version:
|
113
|
+
recorded_at: Fri, 05 May 2017 08:16:44 GMT
|
114
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/test/translation/eo
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"i18n_type":"YAML","content":"eo:\n test_string: \"test string\"\n"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Transifex-interface-ruby/0.0.1
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Authorization:
|
19
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 400
|
23
|
+
message: BAD REQUEST
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Vary:
|
28
|
+
- Authorization, Host, Accept-Language, Cookie
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0
|
31
|
+
Content-Type:
|
32
|
+
- text/plain
|
33
|
+
Date:
|
34
|
+
- Thu, 04 May 2017 09:13:19 GMT
|
35
|
+
Expires:
|
36
|
+
- Thu, 04 May 2017 09:13:19 GMT
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Content-Language:
|
40
|
+
- en
|
41
|
+
Connection:
|
42
|
+
- close
|
43
|
+
Set-Cookie:
|
44
|
+
- X-Mapping-fjhppofk=A44BEC4CD0B51682CDC2AA3E9CCFDDF4; path=/
|
45
|
+
Last-Modified:
|
46
|
+
- Thu, 04 May 2017 09:13:19 GMT
|
47
|
+
X-Frame-Options:
|
48
|
+
- SAMEORIGIN
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: Cannot update the source language
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 04 May 2017 09:13:19 GMT
|
54
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/json/source/e5152a2c9591f8ee13ba2c4e00655ae2
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"comment":"my comment","character_limit":140,"tags":["tag1","tag2"]}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Transifex-interface-ruby/0.0.1
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Authorization:
|
19
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Vary:
|
28
|
+
- Accept-Encoding
|
29
|
+
- Authorization, Host, Accept-Language, Cookie
|
30
|
+
Content-Type:
|
31
|
+
- text/plain
|
32
|
+
Date:
|
33
|
+
- Fri, 28 Apr 2017 10:07:01 GMT
|
34
|
+
Transfer-Encoding:
|
35
|
+
- chunked
|
36
|
+
Content-Language:
|
37
|
+
- en
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
Connection:
|
41
|
+
- keep-alive
|
42
|
+
Set-Cookie:
|
43
|
+
- X-Mapping-fjhppofk=2F71BA404CBE394603A72279804CAC7D; path=/
|
44
|
+
X-Frame-Options:
|
45
|
+
- SAMEORIGIN
|
46
|
+
body:
|
47
|
+
encoding: ASCII-8BIT
|
48
|
+
string: OK
|
49
|
+
http_version:
|
50
|
+
recorded_at: Fri, 28 Apr 2017 10:07:01 GMT
|
51
|
+
- request:
|
52
|
+
method: get
|
53
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/json/source/e5152a2c9591f8ee13ba2c4e00655ae2
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: "{}"
|
57
|
+
headers:
|
58
|
+
Content-Type:
|
59
|
+
- application/json
|
60
|
+
Accept:
|
61
|
+
- application/json
|
62
|
+
User-Agent:
|
63
|
+
- Transifex-interface-ruby/0.0.1
|
64
|
+
Accept-Encoding:
|
65
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
66
|
+
Authorization:
|
67
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
68
|
+
response:
|
69
|
+
status:
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
Server:
|
74
|
+
- nginx
|
75
|
+
Vary:
|
76
|
+
- Accept-Encoding
|
77
|
+
- Authorization, Host, Accept-Language, Cookie
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Date:
|
81
|
+
- Fri, 28 Apr 2017 10:07:02 GMT
|
82
|
+
Transfer-Encoding:
|
83
|
+
- chunked
|
84
|
+
Content-Language:
|
85
|
+
- en
|
86
|
+
X-Content-Type-Options:
|
87
|
+
- nosniff
|
88
|
+
Connection:
|
89
|
+
- keep-alive
|
90
|
+
Set-Cookie:
|
91
|
+
- X-Mapping-fjhppofk=100E7CB61F7D5C274279F09EADF920A3; path=/
|
92
|
+
X-Frame-Options:
|
93
|
+
- SAMEORIGIN
|
94
|
+
body:
|
95
|
+
encoding: ASCII-8BIT
|
96
|
+
string: "{\n \"comment\": \"my comment\", \n \"character_limit\": 140,
|
97
|
+
\n \"tags\": [\n \"tag1\", \n \"tag2\"\n ]\n}"
|
98
|
+
http_version:
|
99
|
+
recorded_at: Fri, 28 Apr 2017 10:07:02 GMT
|
100
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resource/test/translation/en
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"i18n_type":"YAML","content":"en: \n routes:\n mercury_editor:
|
9
|
+
mercury_editor\n date:\n abbr_day_names:\n - Sun\n - Mon\n -
|
10
|
+
Tue\n - Wed\n - Thu\n - Fri\n - Sat\n abbr_month_names:\n -\n -
|
11
|
+
Jan\n - Feb\n - Mar\n - Apr\n - May\n - Jun\n - Jul\n -
|
12
|
+
Aug\n - Sep\n - Oct\n - Nov\n - Dec"}'
|
13
|
+
headers:
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept:
|
17
|
+
- application/json
|
18
|
+
User-Agent:
|
19
|
+
- Transifex-interface-ruby/0.0.1
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Authorization:
|
23
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Server:
|
30
|
+
- nginx
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
- Authorization, Host, Accept-Language, Cookie
|
34
|
+
Cache-Control:
|
35
|
+
- max-age=0
|
36
|
+
Content-Type:
|
37
|
+
- application/json; charset=utf-8
|
38
|
+
Date:
|
39
|
+
- Thu, 04 May 2017 09:59:01 GMT
|
40
|
+
Expires:
|
41
|
+
- Thu, 04 May 2017 09:59:01 GMT
|
42
|
+
Transfer-Encoding:
|
43
|
+
- chunked
|
44
|
+
Content-Language:
|
45
|
+
- en
|
46
|
+
X-Content-Type-Options:
|
47
|
+
- nosniff
|
48
|
+
Connection:
|
49
|
+
- keep-alive
|
50
|
+
Set-Cookie:
|
51
|
+
- X-Mapping-fjhppofk=2F71BA404CBE394603A72279804CAC7D; path=/
|
52
|
+
Last-Modified:
|
53
|
+
- Thu, 04 May 2017 09:59:01 GMT
|
54
|
+
X-Frame-Options:
|
55
|
+
- SAMEORIGIN
|
56
|
+
body:
|
57
|
+
encoding: ASCII-8BIT
|
58
|
+
string: "{\n \"strings_added\": 0, \n \"strings_updated\": 0, \n \"strings_delete\":
|
59
|
+
0, \n \"redirect\": \"/freego/ruby-client/test/\"\n}"
|
60
|
+
http_version:
|
61
|
+
recorded_at: Thu, 04 May 2017 09:59:01 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resources
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"slug":"file_resource","name":"with file","i18n_type":"YML","content":"eo:\n test_string:
|
9
|
+
\"test string\"\n"}'
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- application/json
|
13
|
+
Accept:
|
14
|
+
- application/json
|
15
|
+
User-Agent:
|
16
|
+
- Transifex-interface-ruby/0.0.1
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Authorization:
|
20
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 201
|
24
|
+
message: CREATED
|
25
|
+
headers:
|
26
|
+
Server:
|
27
|
+
- nginx
|
28
|
+
Vary:
|
29
|
+
- Authorization, Host, Accept-Language, Cookie
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0
|
32
|
+
Content-Type:
|
33
|
+
- application/json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Thu, 27 Apr 2017 16:47:40 GMT
|
36
|
+
Expires:
|
37
|
+
- Thu, 27 Apr 2017 16:47:40 GMT
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
Content-Language:
|
41
|
+
- en
|
42
|
+
Connection:
|
43
|
+
- keep-alive
|
44
|
+
Set-Cookie:
|
45
|
+
- X-Mapping-fjhppofk=A44BEC4CD0B51682CDC2AA3E9CCFDDF4; path=/
|
46
|
+
Last-Modified:
|
47
|
+
- Thu, 27 Apr 2017 16:47:40 GMT
|
48
|
+
X-Frame-Options:
|
49
|
+
- SAMEORIGIN
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: "[\n 1, \n 0, \n 0\n]"
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 27 Apr 2017 16:47:40 GMT
|
55
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://www.transifex.com/api/2/project/ruby-client/resources
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"slug":"string_resource","name":"without file","i18n_type":"TXT","content":"test"}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Accept:
|
13
|
+
- application/json
|
14
|
+
User-Agent:
|
15
|
+
- Transifex-interface-ruby/0.0.1
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Authorization:
|
19
|
+
- Basic bS5naWFtYml0dG9AZnJlZWdvd2ViLml0Om1vbGxpXzAx
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: CREATED
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Vary:
|
28
|
+
- Authorization, Host, Accept-Language, Cookie
|
29
|
+
Cache-Control:
|
30
|
+
- max-age=0
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Date:
|
34
|
+
- Thu, 27 Apr 2017 16:42:02 GMT
|
35
|
+
Expires:
|
36
|
+
- Thu, 27 Apr 2017 16:42:02 GMT
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Content-Language:
|
40
|
+
- en
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
Set-Cookie:
|
44
|
+
- X-Mapping-fjhppofk=2F71BA404CBE394603A72279804CAC7D; path=/
|
45
|
+
Last-Modified:
|
46
|
+
- Thu, 27 Apr 2017 16:42:02 GMT
|
47
|
+
X-Frame-Options:
|
48
|
+
- SAMEORIGIN
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: "[\n 1, \n 0, \n 0\n]"
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 27 Apr 2017 16:42:02 GMT
|
54
|
+
recorded_with: VCR 3.0.3
|