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.
@@ -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 => { :files => files }
78
+ :query => params,
79
79
  )
80
80
  end
81
81
 
@@ -1,5 +1,5 @@
1
1
  module Crowdin
2
2
  class API
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdin-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: