transloadit 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWJiMDdlYzU2N2I1Nzc0MDE0M2VhNDA0NTVmOTYwZGI0ZmY4NTY0MQ==
4
+ ZTY2M2FlNjUwMWY0M2Q4MDFkNzZiYzdmZWExOTFhZDZlM2U3ODE5OQ==
5
5
  data.tar.gz: !binary |-
6
- NTRkMjVkNTg1YWRkNmQ1ZjkzNTU4MGQ4MWJlMmY5YTZiNjVhNzAxMw==
6
+ ZGYzNGU5ODZhNWE4N2ZkZGU4YWJjYWViMTE0MmE3MTdlMmNhMTljNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmEzYWVhYjdjNTY4ODg3MWJlYTAwMzEwNjNhY2M3OTU4NzdhMTEwZjQ5YTc0
10
- YTg2OWFmYmQ2OGYxZjllOGZmMGI5ZmM0Y2QzOTRlYjI3ZTA4M2Y2ZjAzODM3
11
- NDRkZThkODE3YjJhZTJlNjljOTE2N2MwMmM4YTZkOTk3N2RmMDE=
9
+ ZTc3OWI0ZTM5NzRkNTQzOTExODZlOTFiMzExMTM3NjAwYWRhMDllZjI5ODYx
10
+ NjU0OWUxOWMzYzJhZGRmYzM0MzNlMTIxZTZiNDgzNmQ5ZjE2NDFhYzM4NDNh
11
+ NDFmODExYmIxZTMyNDc3NmRjNmExOTAwZDJjMmY1ZjI0OWM1ZDA=
12
12
  data.tar.gz: !binary |-
13
- N2Q3NzJlMDFkOTNkNWI0ZjExYjE1MzY2N2FiMGI2NjM2MTM4NmUyMjg1OTMw
14
- MTZmOTU3NTk4MDI3MGM2ZDZiZTJjMDMzZGQ2MTE3NDA2MjVjYTFlMGRhMWMx
15
- YzQ1MzQ1MjA3YjdmZDc5NGE0OWYxMzQ3M2ViZWI1ZWYwZjI0Yzc=
13
+ MTEwNWJjNjEyNGFhYWI4M2IxMWEyYzgwNzBiMzE1YWZiZjk5ZjQyNmViMmY2
14
+ NGM0ZDg0OTVjOTE5YzE0NDNjOTgxODk0NGUyZDU0MmVhNzk0NjE2M2I0Nzlh
15
+ Yjg4ZGFjNWFiMDMzNDgxMDQ5YjE3OGQ1ZmE4M2E5Yjk3YTEwYmQ=
data/.gitignore CHANGED
@@ -8,3 +8,5 @@ Gemfile.lock
8
8
  coverage
9
9
  doc
10
10
  pkg
11
+
12
+ transloadit-*.gem
@@ -6,6 +6,8 @@ rvm:
6
6
  - 2.0.0
7
7
  - 2.1.0
8
8
  - 2.2.0
9
+ - 2.3.0
9
10
  - rbx-2
10
11
  - jruby-19mode
12
+ - jruby-9.0.0.0
11
13
  script: "COVERAGE=false bundle exec rake test"
@@ -1,3 +1,7 @@
1
+ ### 1.2.0 / 2015-12-28 ###
2
+
3
+ * allow custom fields to be passed to Transloadit and received back in the response (thanks @Acconut for the pull request)
4
+
1
5
  ### 1.1.4 / 2015-12-14 ###
2
6
 
3
7
  * fix Ruby 1.9.x compatibility by explicitly requiring mime-types 2.99
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2015 Transloadit Ltd.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -214,7 +214,7 @@ for the latest [git master](http://rubydoc.info/github/transloadit/ruby-sdk/mast
214
214
 
215
215
  ## Compatibility
216
216
 
217
- At a minimum, this gem should work on MRI 2.2.0, 2.1.0, 2.0.0, 1.9.3, 1.9.2, Rubinius,
217
+ At a minimum, this gem should work on MRI 2.3.0, 2.2.0, 2.1.0, 2.0.0, 1.9.3, 1.9.2, Rubinius,
218
218
  and JRuby in 1.9 mode. It may also work on older ruby versions, but support for those
219
219
  Rubies is not guaranteed. If it doesn't work on one of the officially supported Rubies, please file a
220
220
  [bug report](https://github.com/transloadit/ruby-sdk/issues). Compatibility patches for other Rubies
@@ -82,7 +82,7 @@ class Transloadit::Assembly
82
82
  self.options.merge(
83
83
  :auth => self.transloadit.to_hash,
84
84
  :steps => self.steps
85
- ).delete_if {|k,v| v.nil? || k == :fields}
85
+ ).delete_if {|k,v| v.nil?}
86
86
  end
87
87
 
88
88
  #
@@ -1,3 +1,3 @@
1
1
  class Transloadit
2
- VERSION = '1.1.4'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -104,7 +104,7 @@ describe Transloadit::Assembly do
104
104
  assert_requested(:post, 'jane.transloadit.com/assemblies') do |req|
105
105
  values = values_from_post_body(req.body)
106
106
  values['tag'].must_equal 'ninja-cat'
107
- MultiJson.load(values['params'])['fields'].must_be_nil
107
+ MultiJson.load(values['params'])['fields']['tag'].must_equal 'ninja-cat'
108
108
  end
109
109
  end
110
110
  end
@@ -10,13 +10,13 @@ Gem::Specification.new do |gem|
10
10
  gem.authors = [ "Stephen Touset", "Robin Mehner" ]
11
11
  gem.email = %w{ stephen@touset.org robin@coding-robin.de }
12
12
  gem.homepage = 'http://github.com/transloadit/ruby-sdk/'
13
+ gem.license = 'MIT'
13
14
 
14
15
  gem.summary = 'Official Ruby gem for Transloadit'
15
16
  gem.description = 'The transloadit gem allows you to automate uploading files through the Transloadit REST API'
16
17
 
17
18
  gem.required_rubygems_version = '>= 1.3.6'
18
19
  gem.required_ruby_version = '>= 1.9.2'
19
- gem.rubyforge_project = 'transloadit'
20
20
 
21
21
  gem.files = `git ls-files`.split("\n")
22
22
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transloadit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Touset
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-14 00:00:00.000000000 Z
12
+ date: 2015-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -164,7 +164,7 @@ files:
164
164
  - .travis.yml
165
165
  - CHANGELOG.md
166
166
  - Gemfile
167
- - LICENSE.txt
167
+ - LICENSE
168
168
  - README.md
169
169
  - Rakefile
170
170
  - lib/transloadit.rb
@@ -191,7 +191,8 @@ files:
191
191
  - test/unit/transloadit/test_step.rb
192
192
  - transloadit.gemspec
193
193
  homepage: http://github.com/transloadit/ruby-sdk/
194
- licenses: []
194
+ licenses:
195
+ - MIT
195
196
  metadata: {}
196
197
  post_install_message:
197
198
  rdoc_options: []
@@ -208,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
209
  - !ruby/object:Gem::Version
209
210
  version: 1.3.6
210
211
  requirements: []
211
- rubyforge_project: transloadit
212
+ rubyforge_project:
212
213
  rubygems_version: 2.5.1
213
214
  signing_key:
214
215
  specification_version: 4
@@ -1,22 +0,0 @@
1
- Copyright (c) 2013 Debuggable, Inc.
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.