crowdin-api 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crowdin-api/methods.rb +2 -2
- data/lib/crowdin-api/version.rb +1 -1
- metadata +1 -1
data/lib/crowdin-api/methods.rb
CHANGED
@@ -59,7 +59,7 @@ module Crowdin
|
|
59
59
|
# POST http://api.crowdin.net/api/project/{project-identifier}/update-file?key={project-key}
|
60
60
|
#
|
61
61
|
def update_file(files, params = {})
|
62
|
-
files = Hash[files.map{ |f| [
|
62
|
+
params[:files] = Hash[files.map{ |f| [
|
63
63
|
f[:dest] || raise(ArgumentError, "'`:dest` is required'"),
|
64
64
|
::File.open(f[:source] || raise(ArgumentError, "'`:source` is required'") )
|
65
65
|
] }]
|
@@ -75,7 +75,7 @@ module Crowdin
|
|
75
75
|
request(
|
76
76
|
:method => :post,
|
77
77
|
:path => "/api/project/#{@project_id}/update-file",
|
78
|
-
:query =>
|
78
|
+
:query => params,
|
79
79
|
)
|
80
80
|
end
|
81
81
|
|
data/lib/crowdin-api/version.rb
CHANGED