transloadit-rails 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4f410dff68bd99d87629b49760d4c2aaf4c06f9
4
- data.tar.gz: f3404132d28be1763d516ce0b8491d1ba3587c14
3
+ metadata.gz: 8ef397b0d10de134321224d92d3a426778fbce69
4
+ data.tar.gz: e31f915796467893c049dc607f603eef9b35d77c
5
5
  SHA512:
6
- metadata.gz: 7e97a16e50035ecb70643d1cb716487a5b528925e616f50b265785c8773fb89f6adb78d38f9dc671a6fc6164a390b264136d0c118bc8c4e813f315b4a4606ef3
7
- data.tar.gz: 25ad533425dcc2630583305a648dc737055dcc51aed84cc393afd3a249a6566197c2af2a4936d53bac381b756a759494930e7c2464d70ce384b37b183ffa010b
6
+ metadata.gz: 1940de380e945a81307e602ccba9cbf79ffcfd36799d43b6e66b5b273e00f02f48c9daa736325ca0371f26fccdcb39ea5924ccfe2d81094ab3aa0511101189ed
7
+ data.tar.gz: 887e3c953dff1f8faaf9a40a45956583f83c45724ddfd1e76c89c6f4356d73561f79e4df60777fded5af699a0ad8c613ac51fff55eb1a042fb6d028c2d5f0c60
@@ -1,13 +1,12 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
- - ree
4
- - 1.8.7
5
- - 1.9.2
6
4
  - 1.9.3
7
5
  - 2.0.0
8
- - rbx-18mode
9
- - rbx-19mode
10
- - jruby-18mode
6
+ - 2.1.0
7
+ - 2.2.0
8
+ - 2.3.0-preview1
9
+ - rbx-2
11
10
  - jruby-19mode
12
11
  script: "bundle exec rake test"
13
12
 
@@ -16,16 +15,5 @@ gemfile:
16
15
  - gemfiles/3.1.gemfile
17
16
  - gemfiles/3.2.gemfile
18
17
  - gemfiles/4.0.gemfile
19
-
20
- matrix:
21
- exclude:
22
- - rvm: jruby-18mode
23
- gemfile: gemfiles/4.0.gemfile
24
- - rvm: rbx-18mode
25
- gemfile: gemfiles/4.0.gemfile
26
- - rvm: 1.8.7
27
- gemfile: gemfiles/4.0.gemfile
28
- - rvm: ree
29
- gemfile: gemfiles/4.0.gemfile
30
- - rvm: 1.9.2
31
- gemfile: gemfiles/4.0.gemfile
18
+ - gemfiles/4.1.gemfile
19
+ - gemfiles/4.2.gemfile
@@ -1,3 +1,7 @@
1
+ ### 1.1.2 / 2015-12-15 ###
2
+
3
+ * Allow `onFileSelect` callback (thanks @netonion)
4
+
1
5
  ### 1.1.1 / 2013-09-15 ###
2
6
 
3
7
  * MIT license
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2013 Transloadit Ltd.
3
+ Copyright (c) 2015 Transloadit Ltd.
4
4
 
5
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
6
 
data/README.md CHANGED
@@ -204,7 +204,7 @@ Alright, time to create our upload form. In order to do that, please open
204
204
  `app/views/uploads/new.html.erb`, and put the following code in:
205
205
 
206
206
  ```erb
207
- <%= javascript_include_tag //ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' %>
207
+ <%= javascript_include_tag '//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' %>
208
208
 
209
209
  <h1>Upload an image</h1>
210
210
  <%= form_for Upload.new, :html => { :id => 'upload' } do |form| %>
@@ -1,4 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'railties', '>= 4.0.0.beta'
3
+ gem 'railties', '~> 4.0.0'
4
4
  gemspec :path => '../'
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'railties', '~> 4.1.0'
4
+ gemspec :path => '../'
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'railties', '~> 4.2.0'
4
+ gemspec :path => '../'
@@ -3,9 +3,9 @@ require 'rails/generators'
3
3
 
4
4
  class Transloadit::Generators::InstallGenerator < Rails::Generators::Base
5
5
  source_root File.expand_path('../../../templates/transloadit', __FILE__)
6
-
6
+
7
7
  desc %{Installs an empty Transloadit config file}
8
-
8
+
9
9
  def copy_configuration
10
10
  template 'transloadit.yml', 'config/transloadit.yml'
11
11
  end
@@ -3,7 +3,7 @@ development:
3
3
  # https://transloadit.com/blog/2013/02/transloadit-javascript-plugin-and-jquery-1-9
4
4
  # defaults to latest
5
5
  # use "v1.0.0" if you need IE6 support (using jQuery < 1.9)
6
- jquery_sdk_version: 'latest'
6
+ jquery_sdk_version: 'v2-latest'
7
7
  auth:
8
8
  key : 'YOUR_KEY'
9
9
  secret : 'YOUR_SECRET' # this is optional, but highly recommended, https://transloadit.com/docs/authentication
@@ -26,7 +26,7 @@ production:
26
26
  # https://transloadit.com/blog/2013/02/transloadit-javascript-plugin-and-jquery-1-9
27
27
  # defaults to latest
28
28
  # use "v1.0.0" if you need IE6 support (using jQuery < 1.9)
29
- jquery_sdk_version: 'latest'
29
+ jquery_sdk_version: 'v2-latest'
30
30
  auth:
31
31
  key : 'YOUR_KEY'
32
32
  secret : 'YOUR_SECRET' # this is optional, but highly recommended, https://transloadit.com/docs/authentication
@@ -1,5 +1,5 @@
1
1
  class Transloadit
2
2
  module Rails
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ module Transloadit::Rails::ViewHelper
22
22
  # marked with an encoding type of `multipart/form-data`.
23
23
  #
24
24
  def transloadit_jquerify(id, options = {})
25
- version = Transloadit::Rails::Engine.configuration['jquery_sdk_version'] || 'latest'
25
+ version = Transloadit::Rails::Engine.configuration['jquery_sdk_version'] || 'v2-latest'
26
26
 
27
27
  javascript_tag %{
28
28
  jQuery(function($) {
@@ -41,7 +41,7 @@ module Transloadit::Rails::ViewHelper
41
41
 
42
42
  def options_to_json(options)
43
43
  callbacks = [
44
- :onstart, :onprogress, :onupload, :onresult, :oncancel, :onerror, :onsuccess
44
+ :onstart, :onfileselect, :onprogress, :onupload, :onresult, :oncancel, :onerror, :onsuccess
45
45
  ]
46
46
 
47
47
  js_options = options.map do |key, val|
@@ -1,23 +1,24 @@
1
+ require 'action_controller'
1
2
  require 'test_helper'
2
3
 
3
4
  class InstallGeneratorTest < Rails::Generators::TestCase
4
5
  tests Transloadit::Generators::InstallGenerator
5
6
  destination File.expand_path('../../../tmp', __FILE__)
6
-
7
+
7
8
  setup do
8
9
  prepare_destination
9
10
  end
10
-
11
+
11
12
  test 'the Transloadit config file is installed' do
12
13
  run_generator
13
-
14
+
14
15
  assert_file 'config/transloadit.yml' do |contents|
15
16
  assert_match /auth/, contents
16
17
  assert_match /templates/, contents
17
18
  end
18
19
  end
19
-
20
+
20
21
  test 'the namespace is transloadit:install' do
21
22
  assert_equal 'transloadit:install', generator_class.namespace
22
23
  end
23
- end
24
+ end
@@ -1,10 +1,6 @@
1
1
  $:.unshift File.dirname(__FILE__)
2
2
  $:.unshift File.expand_path('../../lib', __FILE__)
3
3
 
4
- # require 'simplecov'
5
- #
6
- # SimpleCov.start { add_filter '/test/' }
7
-
8
4
  require 'transloadit/rails'
9
5
 
10
6
  require 'rails/test_help'
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.authors = ['Stephen Touset', 'Robin Mehner']
11
11
  gem.email = ['stephen@touset.org', 'robin@coding-robin.de']
12
12
  gem.homepage = 'http://github.com/transloadit/rails-sdk/'
13
+ gem.license = 'MIT'
13
14
 
14
15
  gem.summary = 'Official Rails gem for Transloadit'
15
16
  gem.description = 'The transloadit-rails gem allows you to automate uploading files through the Transloadit REST API'
@@ -25,9 +26,10 @@ Gem::Specification.new do |gem|
25
26
 
26
27
  gem.add_dependency 'transloadit', '>= 1.1.1'
27
28
  gem.add_dependency 'railties', '>= 3'
29
+ gem.add_dependency 'mime-types', '~> 2.99'
28
30
 
29
31
  gem.add_development_dependency 'rake'
30
- gem.add_development_dependency 'simplecov'
32
+ gem.add_development_dependency 'test-unit'
31
33
 
32
34
  gem.add_development_dependency 'yard'
33
35
  gem.add_development_dependency 'kramdown' # for YARD rdoc formatting
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.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Touset
@@ -9,90 +9,104 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-16 00:00:00.000000000 Z
12
+ date: 2015-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: transloadit
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 1.1.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 1.1.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: railties
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3'
42
+ - !ruby/object:Gem::Dependency
43
+ name: mime-types
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '2.99'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '2.99'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: rake
44
58
  requirement: !ruby/object:Gem::Requirement
45
59
  requirements:
46
- - - '>='
60
+ - - ">="
47
61
  - !ruby/object:Gem::Version
48
62
  version: '0'
49
63
  type: :development
50
64
  prerelease: false
51
65
  version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
- - - '>='
67
+ - - ">="
54
68
  - !ruby/object:Gem::Version
55
69
  version: '0'
56
70
  - !ruby/object:Gem::Dependency
57
- name: simplecov
71
+ name: test-unit
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
- - - '>='
74
+ - - ">="
61
75
  - !ruby/object:Gem::Version
62
76
  version: '0'
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - '>='
81
+ - - ">="
68
82
  - !ruby/object:Gem::Version
69
83
  version: '0'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: yard
72
86
  requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
- - - '>='
88
+ - - ">="
75
89
  - !ruby/object:Gem::Version
76
90
  version: '0'
77
91
  type: :development
78
92
  prerelease: false
79
93
  version_requirements: !ruby/object:Gem::Requirement
80
94
  requirements:
81
- - - '>='
95
+ - - ">="
82
96
  - !ruby/object:Gem::Version
83
97
  version: '0'
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: kramdown
86
100
  requirement: !ruby/object:Gem::Requirement
87
101
  requirements:
88
- - - '>='
102
+ - - ">="
89
103
  - !ruby/object:Gem::Version
90
104
  version: '0'
91
105
  type: :development
92
106
  prerelease: false
93
107
  version_requirements: !ruby/object:Gem::Requirement
94
108
  requirements:
95
- - - '>='
109
+ - - ">="
96
110
  - !ruby/object:Gem::Version
97
111
  version: '0'
98
112
  description: The transloadit-rails gem allows you to automate uploading files through
@@ -104,18 +118,19 @@ executables: []
104
118
  extensions: []
105
119
  extra_rdoc_files: []
106
120
  files:
107
- - .gitignore
108
- - .travis.yml
121
+ - ".gitignore"
122
+ - ".travis.yml"
109
123
  - CHANGELOG.md
110
124
  - Gemfile
111
125
  - LICENSE
112
- - LICENSE.txt
113
126
  - README.md
114
127
  - Rakefile
115
128
  - gemfiles/3.0.gemfile
116
129
  - gemfiles/3.1.gemfile
117
130
  - gemfiles/3.2.gemfile
118
131
  - gemfiles/4.0.gemfile
132
+ - gemfiles/4.1.gemfile
133
+ - gemfiles/4.2.gemfile
119
134
  - lib/generators/transloadit/install_generator.rb
120
135
  - lib/templates/transloadit/transloadit.yml
121
136
  - lib/transloadit-rails.rb
@@ -140,21 +155,20 @@ require_paths:
140
155
  - lib
141
156
  required_ruby_version: !ruby/object:Gem::Requirement
142
157
  requirements:
143
- - - '>='
158
+ - - ">="
144
159
  - !ruby/object:Gem::Version
145
160
  version: '0'
146
161
  required_rubygems_version: !ruby/object:Gem::Requirement
147
162
  requirements:
148
- - - '>='
163
+ - - ">="
149
164
  - !ruby/object:Gem::Version
150
165
  version: 1.3.6
151
166
  requirements: []
152
167
  rubyforge_project: transloadit-rails
153
- rubygems_version: 2.0.3
168
+ rubygems_version: 2.2.2
154
169
  signing_key:
155
170
  specification_version: 4
156
171
  summary: Official Rails gem for Transloadit
157
172
  test_files:
158
173
  - test/generators/transloadit/test_install_generator.rb
159
174
  - test/test_helper.rb
160
- has_rdoc:
@@ -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.