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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67f72c4e49af56f61d4bf71c97776904e4220801
4
- data.tar.gz: 354e84173f1e31d17eb36641e07cd7f28b660271
3
+ metadata.gz: f34eab12cee5ad12c12c405a6707f468aae08c22
4
+ data.tar.gz: bbe4e6423f4b17944544037f1a587c78615bedcf
5
5
  SHA512:
6
- metadata.gz: d65edcad83ec46b51962d48f27ffd3c87136caee2a35b2efb280fb1fa85d722008a5f72849cbcf67acee7286be292435dc4b03a5bb4ed5af164d1c79edc246e9
7
- data.tar.gz: 9ebcbe7b2c75a0f92fb7a7f5d8eb876aa48f65dccf26c2b74a006dac2e40fdbe33d8063aa557209cb720f95fe428444f4698c159ca23b64875c2297bba6b301e
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
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ - 2.1.0
5
+ - 2.0.0
6
+ - 1.9.3
7
+ script: bundle exec rspec
8
+ addons:
9
+ code_climate:
10
+ repo_token: 32632cc6c3930205445b015e456f7f9aca38332e1a6e38551dc549b61feee29b
@@ -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
@@ -9,7 +9,7 @@ module FTPMVC
9
9
  module Async
10
10
  module Upload
11
11
  def self.storage
12
- FTPMVC::Async::Upload.config.dir.to_dir
12
+ Vfs::Entry.new(FTPMVC::Async::Upload.config.driver, FTPMVC::Async::Upload.config.dir).dir
13
13
  end
14
14
  end
15
15
  end
@@ -7,6 +7,7 @@ module FTPMVC
7
7
  class Config < Configurable
8
8
  config.dir = Dir.tmpdir
9
9
  config.job = nil
10
+ config.driver = Vfs::Drivers::Local.new
10
11
  end
11
12
 
12
13
  def self.configure(&block)
@@ -1,7 +1,7 @@
1
1
  module Ftpmvc
2
2
  module Async
3
3
  module Upload
4
- VERSION = "0.0.1"
4
+ VERSION = "0.1.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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|
@@ -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.1
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-02 00:00:00.000000000 Z
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: vfs
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: guard-rspec
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: resque_spec
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