cdr-fetcher 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
data/cdr-fetcher.gemspec CHANGED
@@ -1,40 +1,39 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cdr-fetcher}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Carl Hicks"]
12
- s.date = %q{2010-07-15}
12
+ s.date = %q{2011-01-06}
13
13
  s.description = %q{A gem for fetching CDR data from a remote system via SSH/SFTP. Supports fetching all files, or a delta from a given offset.}
14
14
  s.email = %q{carl.hicks@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
- ".gitignore",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "cdr-fetcher.gemspec",
26
- "lib/cdr-fetcher.rb",
27
- "test/helper.rb",
28
- "test/test_cdr-fetcher.rb"
20
+ ".document",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "cdr-fetcher.gemspec",
26
+ "lib/cdr-fetcher.rb",
27
+ "test/helper.rb",
28
+ "test/test_cdr-fetcher.rb"
29
29
  ]
30
30
  s.homepage = %q{http://github.com/chicks/cdr-fetcher}
31
- s.rdoc_options = ["--charset=UTF-8"]
32
31
  s.require_paths = ["lib"]
33
32
  s.rubygems_version = %q{1.3.7}
34
33
  s.summary = %q{A gem for fetching CDR's from a remote system.}
35
34
  s.test_files = [
36
35
  "test/helper.rb",
37
- "test/test_cdr-fetcher.rb"
36
+ "test/test_cdr-fetcher.rb"
38
37
  ]
39
38
 
40
39
  if s.respond_to? :specification_version then
data/lib/cdr-fetcher.rb CHANGED
@@ -77,12 +77,14 @@ class Fetcher
77
77
  # moving to the next file or directory until all CDRs have been
78
78
  # returned.
79
79
  def each_file
80
- while true
80
+ @more_files = true
81
+ while @more_files
81
82
  file = @cur_file
82
83
  if file
83
84
  yield [@base_dir,@cur_dir.name,@cur_file.name].join("/")
84
85
  next_file!
85
86
  else
87
+ @more_files = false
86
88
  break
87
89
  end
88
90
  end
@@ -130,6 +132,7 @@ class Fetcher
130
132
  if dir
131
133
  return @cur_file
132
134
  else
135
+ @more_files = false
133
136
  return false
134
137
  end
135
138
  end
@@ -1,7 +1,12 @@
1
1
  require 'helper'
2
2
 
3
3
  class TestCdrFetcher < Test::Unit::TestCase
4
- #should "probably rename this file and start testing for real" do
5
- # flunk "hey buddy, you should probably rename this file and start testing for real"
6
- #end
4
+ context "A CDR Fetcher instance" do
5
+ setup do
6
+ @cdr_directory = {
7
+ "01-01-01" => ["Master.csv.1234567890"],
8
+ "01-01-02" => ["Master.csv.1234567891","Master.csv.1234567892"]
9
+ }
10
+ end
11
+ end
7
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdr-fetcher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Carl Hicks
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-15 00:00:00 -07:00
18
+ date: 2011-01-06 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -70,7 +70,7 @@ extra_rdoc_files:
70
70
  - LICENSE
71
71
  - README.rdoc
72
72
  files:
73
- - .gitignore
73
+ - .document
74
74
  - LICENSE
75
75
  - README.rdoc
76
76
  - Rakefile
@@ -84,8 +84,8 @@ homepage: http://github.com/chicks/cdr-fetcher
84
84
  licenses: []
85
85
 
86
86
  post_install_message:
87
- rdoc_options:
88
- - --charset=UTF-8
87
+ rdoc_options: []
88
+
89
89
  require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC