Skip to content

Commit e41f188

Browse files
authored
Merge pull request #29 from lokalise/remove_file
Remove files endpoint
2 parents 0a88e04 + 5680499 commit e41f188

38 files changed

+238
-214
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BSD 3 Clause
22

3-
Copyright 2021 Lokalise Group, Ilya Bodrov
3+
Copyright 2021 Lokalise Group, Ilya Krukowski
44

55
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ Brief API reference is also available at [hexdocs.pm](https://hexdocs.pm/elixir_
6464

6565
Licensed under the [BSD 3 Clause license](./LICENSE.md).
6666

67-
Copyright (c) 2021 Lokalise team and [Ilya Bodrov](http://bodrovis.tech)
67+
Copyright (c) 2022 Lokalise group and [Ilya Krukowski](http://bodrovis.tech)

docs/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gem 'minima', '~> 2.0'
1717

1818
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1919
# uncomment the line below. To upgrade, run `bundle update github-pages`.
20-
gem 'github-pages', '~> 223', group: :jekyll_plugins
20+
gem 'github-pages', '~> 227', group: :jekyll_plugins
2121

2222
# If you have any plugins, put them here!
2323
group :jekyll_plugins do

docs/Gemfile.lock

Lines changed: 38 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.0.4.6)
4+
activesupport (6.0.5.1)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
@@ -14,9 +14,8 @@ GEM
1414
execjs
1515
coffee-script-source (1.11.1)
1616
colorator (1.1.0)
17-
commonmarker (0.17.13)
18-
ruby-enum (~> 0.5)
19-
concurrent-ruby (1.1.9)
17+
commonmarker (0.23.5)
18+
concurrent-ruby (1.1.10)
2019
dnsruby (1.61.9)
2120
simpleidn (~> 0.1)
2221
em-websocket (0.5.3)
@@ -27,39 +26,21 @@ GEM
2726
eventmachine (1.2.7)
2827
eventmachine (1.2.7-x64-mingw32)
2928
execjs (2.8.1)
30-
faraday (1.10.0)
31-
faraday-em_http (~> 1.0)
32-
faraday-em_synchrony (~> 1.0)
33-
faraday-excon (~> 1.1)
34-
faraday-httpclient (~> 1.0)
35-
faraday-multipart (~> 1.0)
36-
faraday-net_http (~> 1.0)
37-
faraday-net_http_persistent (~> 1.0)
38-
faraday-patron (~> 1.0)
39-
faraday-rack (~> 1.0)
40-
faraday-retry (~> 1.0)
29+
faraday (2.4.0)
30+
faraday-net_http (~> 2.0)
4131
ruby2_keywords (>= 0.0.4)
42-
faraday-em_http (1.0.0)
43-
faraday-em_synchrony (1.0.0)
44-
faraday-excon (1.1.0)
45-
faraday-httpclient (1.0.1)
46-
faraday-multipart (1.0.3)
47-
multipart-post (>= 1.2, < 3)
48-
faraday-net_http (1.0.1)
49-
faraday-net_http_persistent (1.2.0)
50-
faraday-patron (1.0.0)
51-
faraday-rack (1.0.0)
52-
faraday-retry (1.0.3)
32+
faraday-net_http (2.1.0)
5333
ffi (1.15.5)
34+
ffi (1.15.5-x64-mingw-ucrt)
5435
ffi (1.15.5-x64-mingw32)
5536
forwardable-extended (2.6.0)
5637
gemoji (3.0.1)
57-
github-pages (223)
38+
github-pages (227)
5839
github-pages-health-check (= 1.17.9)
59-
jekyll (= 3.9.0)
40+
jekyll (= 3.9.2)
6041
jekyll-avatar (= 0.7.0)
6142
jekyll-coffeescript (= 1.1.1)
62-
jekyll-commonmark-ghpages (= 0.1.6)
43+
jekyll-commonmark-ghpages (= 0.2.0)
6344
jekyll-default-layout (= 0.1.4)
6445
jekyll-feed (= 0.15.1)
6546
jekyll-gist (= 1.5.0)
@@ -73,7 +54,7 @@ GEM
7354
jekyll-relative-links (= 0.6.1)
7455
jekyll-remote-theme (= 0.4.3)
7556
jekyll-sass-converter (= 1.5.2)
76-
jekyll-seo-tag (= 2.7.1)
57+
jekyll-seo-tag (= 2.8.0)
7758
jekyll-sitemap (= 1.4.0)
7859
jekyll-swiss (= 1.0.0)
7960
jekyll-theme-architect (= 0.2.0)
@@ -91,12 +72,12 @@ GEM
9172
jekyll-theme-time-machine (= 0.2.0)
9273
jekyll-titles-from-headings (= 0.5.3)
9374
jemoji (= 0.12.0)
94-
kramdown (= 2.3.1)
75+
kramdown (= 2.3.2)
9576
kramdown-parser-gfm (= 1.1.0)
9677
liquid (= 4.0.3)
9778
mercenary (~> 0.3)
9879
minima (= 2.5.1)
99-
nokogiri (>= 1.12.5, < 2.0)
80+
nokogiri (>= 1.13.6, < 2.0)
10081
rouge (= 3.26.0)
10182
terminal-table (~> 1.4)
10283
github-pages-health-check (1.17.9)
@@ -105,13 +86,13 @@ GEM
10586
octokit (~> 4.0)
10687
public_suffix (>= 3.0, < 5.0)
10788
typhoeus (~> 1.3)
108-
html-pipeline (2.14.0)
89+
html-pipeline (2.14.2)
10990
activesupport (>= 2)
11091
nokogiri (>= 1.4)
11192
http_parser.rb (0.8.0)
11293
i18n (0.9.5)
11394
concurrent-ruby (~> 1.0)
114-
jekyll (3.9.0)
95+
jekyll (3.9.2)
11596
addressable (~> 2.4)
11697
colorator (~> 1.0)
11798
em-websocket (~> 0.5)
@@ -129,12 +110,12 @@ GEM
129110
jekyll-coffeescript (1.1.1)
130111
coffee-script (~> 2.2)
131112
coffee-script-source (~> 1.11.1)
132-
jekyll-commonmark (1.3.1)
133-
commonmarker (~> 0.14)
134-
jekyll (>= 3.7, < 5.0)
135-
jekyll-commonmark-ghpages (0.1.6)
136-
commonmarker (~> 0.17.6)
137-
jekyll-commonmark (~> 1.2)
113+
jekyll-commonmark (1.4.0)
114+
commonmarker (~> 0.22)
115+
jekyll-commonmark-ghpages (0.2.0)
116+
commonmarker (~> 0.23.4)
117+
jekyll (~> 3.9.0)
118+
jekyll-commonmark (~> 1.4.0)
138119
rouge (>= 2.0, < 4.0)
139120
jekyll-default-layout (0.1.4)
140121
jekyll (~> 3.0)
@@ -166,7 +147,7 @@ GEM
166147
rubyzip (>= 1.3.0, < 3.0)
167148
jekyll-sass-converter (1.5.2)
168149
sass (~> 3.4)
169-
jekyll-seo-tag (2.7.1)
150+
jekyll-seo-tag (2.8.0)
170151
jekyll (>= 3.8, < 5.0)
171152
jekyll-sitemap (1.4.0)
172153
jekyll (>= 3.7, < 5.0)
@@ -219,7 +200,7 @@ GEM
219200
gemoji (~> 3.0)
220201
html-pipeline (~> 2.2)
221202
jekyll (>= 3.0, < 5.0)
222-
kramdown (2.3.1)
203+
kramdown (2.3.2)
223204
rexml
224205
kramdown-parser-gfm (1.1.0)
225206
kramdown (~> 2.0)
@@ -233,25 +214,22 @@ GEM
233214
jekyll (>= 3.5, < 5.0)
234215
jekyll-feed (~> 0.9)
235216
jekyll-seo-tag (~> 2.1)
236-
minitest (5.15.0)
237-
multipart-post (2.1.1)
238-
nokogiri (1.13.3)
217+
minitest (5.16.2)
218+
nokogiri (1.13.8)
239219
mini_portile2 (~> 2.8.0)
240220
racc (~> 1.4)
241-
octokit (4.22.0)
242-
faraday (>= 0.9)
243-
sawyer (~> 0.8.0, >= 0.5.3)
221+
octokit (4.25.1)
222+
faraday (>= 1, < 3)
223+
sawyer (~> 0.9)
244224
pathutil (0.16.2)
245225
forwardable-extended (~> 2.6)
246-
public_suffix (4.0.6)
226+
public_suffix (4.0.7)
247227
racc (1.6.0)
248228
rb-fsevent (0.11.1)
249229
rb-inotify (0.10.1)
250230
ffi (~> 1.0)
251231
rexml (3.2.5)
252232
rouge (3.26.0)
253-
ruby-enum (0.9.0)
254-
i18n
255233
ruby2_keywords (0.0.5)
256234
rubyzip (2.3.2)
257235
safe_yaml (1.0.5)
@@ -260,33 +238,34 @@ GEM
260238
sass-listen (4.0.0)
261239
rb-fsevent (~> 0.9, >= 0.9.4)
262240
rb-inotify (~> 0.9, >= 0.9.7)
263-
sawyer (0.8.2)
241+
sawyer (0.9.2)
264242
addressable (>= 2.3.5)
265-
faraday (> 0.8, < 2.0)
243+
faraday (>= 0.17.3, < 3)
266244
simpleidn (0.2.1)
267245
unf (~> 0.1.4)
268246
terminal-table (1.8.0)
269247
unicode-display_width (~> 1.1, >= 1.1.1)
270248
thread_safe (0.3.6)
271249
typhoeus (1.4.0)
272250
ethon (>= 0.9.0)
273-
tzinfo (1.2.9)
251+
tzinfo (1.2.10)
274252
thread_safe (~> 0.1)
275-
tzinfo-data (1.2021.5)
253+
tzinfo-data (1.2022.1)
276254
tzinfo (>= 1.0.0)
277255
unf (0.1.4)
278256
unf_ext
279-
unf_ext (0.0.8)
257+
unf_ext (0.0.8.2)
280258
unicode-display_width (1.8.0)
281259
wdm (0.1.1)
282-
zeitwerk (2.5.4)
260+
zeitwerk (2.6.0)
283261

284262
PLATFORMS
285263
ruby
264+
x64-mingw-ucrt
286265
x64-mingw32
287266

288267
DEPENDENCIES
289-
github-pages (~> 223)
268+
github-pages (~> 227)
290269
jekyll (~> 3.9.0)
291270
jekyll-feed (~> 0.15)
292271
kramdown-parser-gfm
@@ -296,4 +275,4 @@ DEPENDENCIES
296275
wdm (~> 0.1.0)
297276

298277
BUNDLED WITH
299-
2.3.7
278+
2.3.19

docs/_data/api_items.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
path: download-translation-files
6262
- title: Upload translation file
6363
path: upload-translation-file
64+
- title: Delete translation file
65+
path: delete-translation-file
6466
- title: Translation keys
6567
path: keys
6668
sub_paths:

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h3>Additional info</h3>
5050
<h3>External resources</h3>
5151

5252
<ul>
53-
<li><a href="https://app.lokalise.com/api2docs/curl/" target="_blank">Lokalise APIv2 docs</a></li>
53+
<li><a href="https://developers.lokalise.com/reference/lokalise-rest-api" target="_blank">Lokalise APIv2 docs</a></li>
5454
<li><a href="https://lokalise.github.io/ruby-lokalise-api/" target="_blank">Ruby API client</a></li>
5555
<li><a href="https://github.com/lokalise/php-lokalise-api" target="_blank">PHP API client</a></li>
5656
<li><a href="https://lokalise.github.io/node-lokalise-api/" target="_blank">Node.js API client</a></li>

docs/additional_info/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 2.3.0 (28-Jul-2022)
4+
5+
* Added support for [Delete file endpoint](https://developers.lokalise.com/reference/delete-a-file):
6+
7+
```elixir
8+
{:ok, %{} = resp} = Files.delete(project_id, file_id)
9+
10+
resp.file_deleted # => true
11+
resp.project_id # => "123.abc"
12+
```
13+
14+
* Fixed documentation links
15+
316
## 2.2.0 (17-Dec-2021)
417

518
* Added experimental support for API tokens obtained via OAuth 2 workflow. To use such tokens:

docs/additional_info/exception_handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Error codes
44

5-
[Error codes used by the API](https://app.lokalise.com/api2docs/curl/#resource-errors)
5+
[Error codes used by the API](https://developers.lokalise.com/reference/api-errors)
66

77
If an error is raised by the API, a tuple with three elements will be returned:
88

@@ -25,6 +25,6 @@ end
2525

2626
## API Rate Limits
2727

28-
[Access to all endpoints is limited](https://app.lokalise.com/api2docs/curl/#resource-rate-limits) to 6 requests per second from 14 September, 2021. This limit is applied per API token and per IP address. If you exceed the limit, a 429 HTTP status code will be returned and the corresponding exception will be raised that you should handle properly. To handle such errors, we recommend an exponential backoff mechanism with a limited number of retries.
28+
[Access to all endpoints is limited](https://developers.lokalise.com/reference/api-rate-limits) to 6 requests per second from 14 September, 2021. This limit is applied per API token and per IP address. If you exceed the limit, a 429 HTTP status code will be returned and the corresponding exception will be raised that you should handle properly. To handle such errors, we recommend an exponential backoff mechanism with a limited number of retries.
2929

3030
Only one concurrent request per token is allowed.

docs/additional_info/license_type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3 Clause
22

3-
Copyright 2021 Lokalise Group, Ilya Bodrov
3+
Copyright 2022 Lokalise Group, Ilya Krukowski
44

55
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
66

docs/api/branches.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Branches
22

3-
[Branches attributes](https://app.lokalise.com/api2docs/curl/#resource-branches)
4-
53
## Fetch branches
64

7-
[Doc](https://app.lokalise.com/api2docs/curl/#transition-list-all-branches-get)
5+
[Doc](https://developers.lokalise.com/reference/list-all-branches
86

97
```elixir
108
{:ok, branches} = ElixirLokaliseApi.Branches.all(project_id, page: 2, limit: 1)
@@ -15,7 +13,7 @@ branch.name
1513

1614
## Fetch branch
1715

18-
[Doc](https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-branch-get)
16+
[Doc](https://developers.lokalise.com/reference/retrieve-a-branch
1917

2018
```elixir
2119
{:ok, branch} = ElixirLokaliseApi.Branches.find(project_id, branch_id)
@@ -26,7 +24,7 @@ branch.name
2624

2725
## Create branch
2826

29-
[Doc](https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-branch-get)
27+
[Doc](https://developers.lokalise.com/reference/retrieve-a-branch
3028

3129
```elixir
3230
data = %{name: "Elixir"}
@@ -38,7 +36,7 @@ branch.name
3836

3937
## Update branch
4038

41-
[Doc](https://app.lokalise.com/api2docs/curl/#transition-update-a-branch-put)
39+
[Doc](https://developers.lokalise.com/reference/update-a-branch
4240

4341
```elixir
4442
data = %{name: "Elixir-update"}
@@ -50,7 +48,7 @@ branch.name
5048

5149
## Delete branch
5250

53-
[Doc](https://app.lokalise.com/api2docs/curl/#transition-delete-a-branch-delete)
51+
[Doc](https://developers.lokalise.com/reference/delete-a-branch
5452

5553
```elixir
5654
{:ok, resp} = ElixirLokaliseApi.Branches.delete(project_id, branch_id)
@@ -60,7 +58,7 @@ resp.branch_deleted
6058

6159
## Merge branch
6260

63-
[Doc](https://app.lokalise.com/api2docs/curl/#transition-merge-a-branch-post)
61+
[Doc](https://developers.lokalise.com/reference/merge-a-branch
6462

6563
```elixir
6664
data = %{force_conflict_resolve_using: "target", target_branch_id: target_branch_id}

0 commit comments

Comments
 (0)