ftpmvc-async-upload 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/.travis.yml +10 -0
- data/ftpmvc-async-upload.gemspec +2 -1
- data/lib/ftpmvc/async/upload.rb +1 -1
- data/lib/ftpmvc/async/upload/config.rb +1 -0
- data/lib/ftpmvc/async/upload/version.rb +1 -1
- data/spec/integration/async_upload_spec.rb +0 -6
- data/spec/lib/ftpmvc/filter/async_upload_spec.rb +0 -4
- data/spec/spec_helper.rb +14 -0
- metadata +22 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f34eab12cee5ad12c12c405a6707f468aae08c22
|
4
|
+
data.tar.gz: bbe4e6423f4b17944544037f1a587c78615bedcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ffad0c8002bae16726c4fa148228768782319d159ff5d496f9306e598c85d4bad9f1f275cc0531b0cd8280b5faa4cb57793745ee97d40bf50d90187b7b28b05
|
7
|
+
data.tar.gz: ec0e3a82ff166eb5b8507420e283af33183b131ebb98285e709ddc460c6351696e7d609d30c27ac6a04e23ba2b0be25deef8f6fb9c69722c458413bd4a716dc7
|
data/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--color
|
1
|
+
--color --require spec_helper
|
data/.travis.yml
ADDED
data/ftpmvc-async-upload.gemspec
CHANGED
@@ -20,10 +20,11 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
-
spec.add_development_dependency "vfs"
|
24
23
|
spec.add_development_dependency "guard-rspec"
|
25
24
|
spec.add_development_dependency "resque_spec"
|
25
|
+
spec.add_development_dependency "codeclimate-test-reporter"
|
26
26
|
spec.add_dependency "ftpmvc", ">= 0.9.0"
|
27
27
|
spec.add_dependency "resque"
|
28
28
|
spec.add_dependency "app"
|
29
|
+
spec.add_dependency "vfs"
|
29
30
|
end
|
data/lib/ftpmvc/async/upload.rb
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
require 'ftpmvc'
|
2
2
|
require 'ftpmvc/async/upload'
|
3
|
-
require 'ftpmvc/test_helpers'
|
4
|
-
require 'resque_spec'
|
5
3
|
|
6
4
|
describe 'Async Upload' do
|
7
|
-
include FTPMVC::TestHelpers
|
8
|
-
before do
|
9
|
-
ResqueSpec.reset!
|
10
|
-
end
|
11
5
|
let(:etc_dir_class) do
|
12
6
|
Class.new(FTPMVC::Directory) do
|
13
7
|
attr_reader :received
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'tmpdir'
|
2
|
-
require 'resque_spec'
|
3
2
|
require 'ftpmvc/filter/async_upload'
|
4
3
|
require 'ftpmvc/async/upload/job'
|
5
4
|
require 'ftpmvc/async/upload/config'
|
@@ -9,9 +8,6 @@ describe FTPMVC::Filter::AsyncUpload do
|
|
9
8
|
let(:storage) { Dir.mktmpdir }
|
10
9
|
let(:filter) { FTPMVC::Filter::AsyncUpload.new(nil, nil) }
|
11
10
|
let(:job_class) { Class.new { @queue = :ftpmvc } }
|
12
|
-
before do
|
13
|
-
ResqueSpec.reset!
|
14
|
-
end
|
15
11
|
around do |example|
|
16
12
|
job = job_class
|
17
13
|
Dir.mktmpdir do |dir|
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
if ENV.include?('CODECLIMATE_REPO_TOKEN')
|
2
|
+
require "codeclimate-test-reporter"
|
3
|
+
CodeClimate::TestReporter.start
|
4
|
+
end
|
5
|
+
|
6
|
+
require 'ftpmvc/test_helpers'
|
7
|
+
require 'resque_spec'
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.include FTPMVC::TestHelpers
|
11
|
+
config.before :each do
|
12
|
+
ResqueSpec.reset!
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ftpmvc-async-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Aizim Kelmanson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: guard-rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '>='
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: resque_spec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: codeclimate-test-reporter
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '>='
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: vfs
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: FTPMVC asynchronous upload using resque
|
126
140
|
email:
|
127
141
|
- akelmanson@gmail.com
|
@@ -131,6 +145,7 @@ extra_rdoc_files: []
|
|
131
145
|
files:
|
132
146
|
- .gitignore
|
133
147
|
- .rspec
|
148
|
+
- .travis.yml
|
134
149
|
- Gemfile
|
135
150
|
- Guardfile
|
136
151
|
- LICENSE.txt
|
@@ -149,6 +164,7 @@ files:
|
|
149
164
|
- spec/lib/ftpmvc/async/upload/input_spec.rb
|
150
165
|
- spec/lib/ftpmvc/async/upload/job_spec.rb
|
151
166
|
- spec/lib/ftpmvc/filter/async_upload_spec.rb
|
167
|
+
- spec/spec_helper.rb
|
152
168
|
homepage: ''
|
153
169
|
licenses:
|
154
170
|
- MIT
|
@@ -179,3 +195,4 @@ test_files:
|
|
179
195
|
- spec/lib/ftpmvc/async/upload/input_spec.rb
|
180
196
|
- spec/lib/ftpmvc/async/upload/job_spec.rb
|
181
197
|
- spec/lib/ftpmvc/filter/async_upload_spec.rb
|
198
|
+
- spec/spec_helper.rb
|