ari_fetch 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AriFetch
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/ari_fetch.rb CHANGED
@@ -31,13 +31,6 @@ module AriFetch
31
31
  unread_files.first(how_many).map {|file| AriFetch::AriReadFile.where(name: file).first_or_create(data_read: false).fetch_data(ftp_instance, include_cancel?) }.flatten!
32
32
  end
33
33
 
34
- private
35
-
36
- def fetch!
37
- login
38
- AriFetch::Files.new(ftp_instance.list()).filtered_files_in_order(reverse?)
39
- end
40
-
41
34
  def login
42
35
  ftp_instance.connect(ftp_url, 21)
43
36
  ftp_instance.login(username, password)
@@ -49,6 +42,13 @@ module AriFetch
49
42
  @ftp_instance ||= Net::FTP.new
50
43
  end
51
44
 
45
+ private
46
+
47
+ def fetch!
48
+ login
49
+ AriFetch::Files.new(ftp_instance.list()).filtered_files_in_order(reverse?)
50
+ end
51
+
52
52
  def include_cancel?
53
53
  options[:cancel] || false
54
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ari_fetch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-05 00:00:00.000000000 Z
12
+ date: 2013-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri