transloadit-rails 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/transloadit/rails/engine.rb +6 -1
- data/lib/transloadit/rails/version.rb +1 -1
- metadata +4 -3
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Fantastic file uploading for your Rails application.
|
|
4
4
|
|
5
5
|
## Description
|
6
6
|
|
7
|
-
This is the official Rails gem for [Transloadit](transloadit.com). It allows
|
7
|
+
This is the official Rails gem for [Transloadit](http://transloadit.com). It allows
|
8
8
|
you to automate uploading files through the Transloadit REST API.
|
9
9
|
|
10
10
|
## Install
|
@@ -56,7 +56,7 @@ templates:
|
|
56
56
|
|
57
57
|
## Usage
|
58
58
|
|
59
|
-
Refer to the templates with the `
|
59
|
+
Refer to the templates with the `transloadit` helper. This requires jQuery,
|
60
60
|
and loads the [Transloadit jQuery plugin](https://github.com/transloadit/jquery-sdk).
|
61
61
|
It also uses JavaScript to ensure your form is encoded as `multipart/form-data`.
|
62
62
|
|
@@ -41,6 +41,10 @@ class Transloadit
|
|
41
41
|
@configuration = YAML.load(erb.result)
|
42
42
|
end
|
43
43
|
|
44
|
+
if @configuration.keys.include?(::Rails.env)
|
45
|
+
@configuration = @configuration[::Rails.env]
|
46
|
+
end
|
47
|
+
|
44
48
|
@configuration
|
45
49
|
end
|
46
50
|
|
@@ -51,7 +55,8 @@ class Transloadit
|
|
51
55
|
Transloadit.new(
|
52
56
|
:key => self.configuration['auth']['key'],
|
53
57
|
:secret => self.configuration['auth']['secret'],
|
54
|
-
:duration => self.configuration['auth']['duration']
|
58
|
+
:duration => self.configuration['auth']['duration'],
|
59
|
+
:max_size => self.configuration['auth']['max_size']
|
55
60
|
)
|
56
61
|
end
|
57
62
|
|
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: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: transloadit
|
@@ -172,10 +172,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: 1.3.6
|
173
173
|
requirements: []
|
174
174
|
rubyforge_project: transloadit-rails
|
175
|
-
rubygems_version: 1.8.
|
175
|
+
rubygems_version: 1.8.24
|
176
176
|
signing_key:
|
177
177
|
specification_version: 3
|
178
178
|
summary: Official Rails gem for Transloadit
|
179
179
|
test_files:
|
180
180
|
- test/generators/transloadit/test_install_generator.rb
|
181
181
|
- test/test_helper.rb
|
182
|
+
has_rdoc:
|