transloadit-rails 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -3
- data/CHANGELOG.md +6 -0
- data/README.md +14 -2
- data/gemfiles/5.0.gemfile +4 -0
- data/lib/transloadit/rails/params_decoder.rb +5 -1
- data/lib/transloadit/rails/version.rb +1 -1
- data/transloadit-rails.gemspec +3 -2
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e6206349f63f19d1cc57398c83d02453bc4099b
|
4
|
+
data.tar.gz: 89834352b9f3a951cb358b6aa2e057d57a232fbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68fa360c648985223dc810eaa36fd228d094673b3160e640e6a9cb064d5d0ddf663d9584328649968604e02dcbe3cf00c8f6ad866dd6882bbd96fe07668a8c00
|
7
|
+
data.tar.gz: 54472e36bf9fd788f69ac436ad86839c3344a30d672f6fd5b46903a06792011af13441d3e2285a530b568eae92032c7502ea9bd0bbf807ba6610759a6a73a178
|
data/.travis.yml
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 1.9.3
|
5
|
-
- 2.0.0
|
6
4
|
- 2.1.0
|
7
5
|
- 2.2.0
|
8
6
|
- 2.3.0
|
9
7
|
- rbx-2
|
10
|
-
- jruby-19mode
|
11
8
|
- jruby-9.0.0.0
|
12
9
|
script: "bundle exec rake test"
|
13
10
|
|
@@ -18,3 +15,12 @@ gemfile:
|
|
18
15
|
- gemfiles/4.0.gemfile
|
19
16
|
- gemfiles/4.1.gemfile
|
20
17
|
- gemfiles/4.2.gemfile
|
18
|
+
|
19
|
+
matrix:
|
20
|
+
allow_failures:
|
21
|
+
- rvm: rbx-2
|
22
|
+
include:
|
23
|
+
- rvm: 2.2.2
|
24
|
+
gemfile: gemfiles/5.0.gemfile
|
25
|
+
- rvm: 2.3.0
|
26
|
+
gemfile: gemfiles/5.0.gemfile
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
### 2.0.0 / 2016-12-03 ###
|
2
|
+
|
3
|
+
* Drop support for EOL'd Ruby 1.9.x and Ruby 2.0, please use version 1.2.0 if you need support for older
|
4
|
+
Ruby versions.
|
5
|
+
* Fix compatibility to Ruby >=2.1 and Rails 5 (thanks @einzige)
|
6
|
+
|
1
7
|
### 1.2.0 / 2016-03-27 ###
|
2
8
|
|
3
9
|
* Allow to pass `max_size` to the helper (thanks @avokhmin)
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ This is the official Rails gem for [Transloadit](http://transloadit.com). It all
|
|
10
10
|
you to automate uploading files through the Transloadit REST API.
|
11
11
|
|
12
12
|
This gem provides browser integration. If you're looking to do video transcoding / image resizing
|
13
|
-
initiated from your own serverside Ruby code, please use the [ruby-sdk](https://github.com/transloadit/ruby-sdk)
|
13
|
+
initiated from your own serverside Ruby code, please use the [ruby-sdk](https://github.com/transloadit/ruby-sdk)
|
14
14
|
instead.
|
15
15
|
|
16
16
|
## Install
|
@@ -51,7 +51,7 @@ auth:
|
|
51
51
|
templates:
|
52
52
|
# template identified by template_id
|
53
53
|
s3_store: '4d2e...'
|
54
|
-
|
54
|
+
|
55
55
|
# template defined inline
|
56
56
|
image_resize:
|
57
57
|
steps:
|
@@ -289,6 +289,18 @@ def example_json
|
|
289
289
|
end
|
290
290
|
```
|
291
291
|
|
292
|
+
## Compatibility
|
293
|
+
|
294
|
+
At a minimum, this gem should work on MRI 2.3.0, 2.2.0, 2.1.0, Rubinius, and JRuby.
|
295
|
+
It may also work on older ruby versions, but support for those Rubies is not guaranteed.
|
296
|
+
If it doesn't work on one of the officially supported Rubies, please file a bug report.
|
297
|
+
Compatibility patches for other Rubies are welcome.
|
298
|
+
|
299
|
+
Support for EOL'd Ruby 1.9.x and Ruby 2.0 has been dropped, please use version 1.2.0
|
300
|
+
if you need support for older Ruby versions.
|
301
|
+
|
302
|
+
Testing against these versions is performed automatically by [Travis CI](https://travis-ci.org/transloadit/rails-sdk).
|
303
|
+
|
292
304
|
## License
|
293
305
|
|
294
306
|
MIT, see [LICENSE](LICENSE)
|
@@ -4,7 +4,11 @@ module Transloadit::Rails::ParamsDecoder
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
-
|
7
|
+
if respond_to?(:before_action)
|
8
|
+
before_action :decode_transloadit_json
|
9
|
+
else
|
10
|
+
before_filter :decode_transloadit_json
|
11
|
+
end
|
8
12
|
end
|
9
13
|
|
10
14
|
def decode_transloadit_json
|
data/transloadit-rails.gemspec
CHANGED
@@ -15,7 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.summary = 'Official Rails gem for Transloadit'
|
16
16
|
gem.description = 'The transloadit-rails gem allows you to automate uploading files through the Transloadit REST API'
|
17
17
|
|
18
|
-
gem.required_rubygems_version = '>= 1.
|
18
|
+
gem.required_rubygems_version = '>= 2.1.0'
|
19
|
+
gem.required_ruby_version = '>= 2.1.0'
|
19
20
|
gem.rubyforge_project = 'transloadit-rails'
|
20
21
|
|
21
22
|
gem.files = `git ls-files`.split("\n")
|
@@ -26,7 +27,7 @@ Gem::Specification.new do |gem|
|
|
26
27
|
|
27
28
|
gem.add_dependency 'transloadit', '>= 1.1.1'
|
28
29
|
gem.add_dependency 'railties', '>= 3'
|
29
|
-
gem.add_dependency 'mime-types'
|
30
|
+
gem.add_dependency 'mime-types'
|
30
31
|
|
31
32
|
gem.add_development_dependency 'rake'
|
32
33
|
gem.add_development_dependency 'test-unit'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transloadit-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.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: 2016-03
|
12
|
+
date: 2016-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: transloadit
|
@@ -43,16 +43,16 @@ dependencies:
|
|
43
43
|
name: mime-types
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '0'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- gemfiles/4.0.gemfile
|
132
132
|
- gemfiles/4.1.gemfile
|
133
133
|
- gemfiles/4.2.gemfile
|
134
|
+
- gemfiles/5.0.gemfile
|
134
135
|
- lib/generators/transloadit/install_generator.rb
|
135
136
|
- lib/templates/transloadit/transloadit.yml
|
136
137
|
- lib/transloadit-rails.rb
|
@@ -157,12 +158,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
158
|
requirements:
|
158
159
|
- - ">="
|
159
160
|
- !ruby/object:Gem::Version
|
160
|
-
version:
|
161
|
+
version: 2.1.0
|
161
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
163
|
requirements:
|
163
164
|
- - ">="
|
164
165
|
- !ruby/object:Gem::Version
|
165
|
-
version: 1.
|
166
|
+
version: 2.1.0
|
166
167
|
requirements: []
|
167
168
|
rubyforge_project: transloadit-rails
|
168
169
|
rubygems_version: 2.2.2
|
@@ -172,3 +173,4 @@ summary: Official Rails gem for Transloadit
|
|
172
173
|
test_files:
|
173
174
|
- test/generators/transloadit/test_install_generator.rb
|
174
175
|
- test/test_helper.rb
|
176
|
+
has_rdoc:
|