fax_finder 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source :gemcutter
2
+
3
+ gem 'rake'
4
+ gem 'nokogiri',"~> 1.5"
5
+ gem 'builder', '>= 2.1.2'
6
+ gem 'mocha', '>= 0.9'
7
+ gem 'jeweler'
8
+
9
+ group :test do
10
+ gem 'test-unit', '1.2.3', :require=>'test/unit'
11
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,33 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ builder (3.0.0)
5
+ git (1.2.5)
6
+ hoe (3.0.6)
7
+ rake (~> 0.8)
8
+ jeweler (1.8.4)
9
+ bundler (~> 1.0)
10
+ git (>= 1.2.5)
11
+ rake
12
+ rdoc
13
+ json (1.7.3)
14
+ metaclass (0.0.1)
15
+ mocha (0.12.0)
16
+ metaclass (~> 0.0.1)
17
+ nokogiri (1.5.5)
18
+ rake (0.9.2.2)
19
+ rdoc (3.12)
20
+ json (~> 1.4)
21
+ test-unit (1.2.3)
22
+ hoe (>= 1.5.1)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ builder (>= 2.1.2)
29
+ jeweler
30
+ mocha (>= 0.9)
31
+ nokogiri (~> 1.5)
32
+ rake
33
+ test-unit (= 1.2.3)
data/Rakefile CHANGED
@@ -15,8 +15,8 @@ begin
15
15
  gem.homepage = "http://github.com/erichhorde/fax_finder"
16
16
  gem.rubyforge_project = "fax_finder"
17
17
 
18
- gem.add_dependency('nokogiri', '1.4.4')
19
- gem.add_dependency('builder', '~> 2.1.2')
18
+ gem.add_dependency('nokogiri', '>=1.5')
19
+ gem.add_dependency('builder', '>= 2.1.2')
20
20
  gem.add_development_dependency('test-unit', '~> 2')
21
21
  gem.add_development_dependency('mocha', '>= 0.9')
22
22
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
data/fax_finder.gemspec CHANGED
@@ -4,13 +4,13 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{fax_finder}
8
- s.version = "0.3.0"
7
+ s.name = "fax_finder"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Erich L. Timkar"]
12
- s.date = %q{2011-07-12}
13
- s.email = %q{erich@hordesoftware.com}
12
+ s.date = "2012-07-08"
13
+ s.email = "erich@hordesoftware.com"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
16
16
  "README.rdoc"
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.files = [
19
19
  ".project",
20
20
  "Changelog",
21
+ "Gemfile",
22
+ "Gemfile.lock",
21
23
  "LICENSE",
22
24
  "README.rdoc",
23
25
  "Rakefile",
@@ -30,8 +32,6 @@ Gem::Specification.new do |s|
30
32
  "lib/fax_finder/request.rb",
31
33
  "lib/fax_finder/response.rb",
32
34
  "lib/fax_finder/send.rb",
33
- "pkg/fax_finder-0.2.1.gem",
34
- "pkg/fax_finder-0.2.2.gem",
35
35
  "test/abort_test.rb",
36
36
  "test/fixtures/send_request_external.xml",
37
37
  "test/fixtures/send_request_inline.xml",
@@ -43,29 +43,44 @@ Gem::Specification.new do |s|
43
43
  "test/send_test.rb",
44
44
  "test/test_helper.rb"
45
45
  ]
46
- s.homepage = %q{http://github.com/erichhorde/fax_finder}
46
+ s.homepage = "http://github.com/erichhorde/fax_finder"
47
47
  s.require_paths = ["lib"]
48
- s.rubyforge_project = %q{fax_finder}
49
- s.rubygems_version = %q{1.7.2}
50
- s.summary = %q{Provides support MultiTech's FaxFinder server}
48
+ s.rubyforge_project = "fax_finder"
49
+ s.rubygems_version = "1.8.24"
50
+ s.summary = "Provides support MultiTech's FaxFinder server"
51
51
 
52
52
  if s.respond_to? :specification_version then
53
53
  s.specification_version = 3
54
54
 
55
55
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
56
- s.add_runtime_dependency(%q<nokogiri>, ["= 1.4.4"])
57
- s.add_runtime_dependency(%q<builder>, ["~> 2.1.2"])
56
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
57
+ s.add_runtime_dependency(%q<nokogiri>, ["~> 1.5"])
58
+ s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
59
+ s.add_runtime_dependency(%q<mocha>, [">= 0.9"])
60
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
61
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.5"])
62
+ s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
58
63
  s.add_development_dependency(%q<test-unit>, ["~> 2"])
59
64
  s.add_development_dependency(%q<mocha>, [">= 0.9"])
60
65
  else
61
- s.add_dependency(%q<nokogiri>, ["= 1.4.4"])
62
- s.add_dependency(%q<builder>, ["~> 2.1.2"])
66
+ s.add_dependency(%q<rake>, [">= 0"])
67
+ s.add_dependency(%q<nokogiri>, ["~> 1.5"])
68
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
69
+ s.add_dependency(%q<mocha>, [">= 0.9"])
70
+ s.add_dependency(%q<jeweler>, [">= 0"])
71
+ s.add_dependency(%q<nokogiri>, [">= 1.5"])
72
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
63
73
  s.add_dependency(%q<test-unit>, ["~> 2"])
64
74
  s.add_dependency(%q<mocha>, [">= 0.9"])
65
75
  end
66
76
  else
67
- s.add_dependency(%q<nokogiri>, ["= 1.4.4"])
68
- s.add_dependency(%q<builder>, ["~> 2.1.2"])
77
+ s.add_dependency(%q<rake>, [">= 0"])
78
+ s.add_dependency(%q<nokogiri>, ["~> 1.5"])
79
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
80
+ s.add_dependency(%q<mocha>, [">= 0.9"])
81
+ s.add_dependency(%q<jeweler>, [">= 0"])
82
+ s.add_dependency(%q<nokogiri>, [">= 1.5"])
83
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
69
84
  s.add_dependency(%q<test-unit>, ["~> 2"])
70
85
  s.add_dependency(%q<mocha>, [">= 0.9"])
71
86
  end
@@ -41,20 +41,20 @@ module FaxFinder
41
41
 
42
42
  class ResponseMethodsTest<Test::Unit::TestCase
43
43
  def setup
44
- @response=Response.new#(Nokogiri::XML(File.open('test/fixtures/send_response_success.xml')))
44
+ @response=Response.new(Nokogiri::XML(File.open('test/fixtures/send_response_success.xml')))
45
45
  end
46
46
 
47
- def extract_fax_and_entry_key_handles_nil
47
+ def test_extract_fax_and_entry_key_handles_nil
48
48
  assert_nothing_thrown {
49
- assert_equal([nil, nil], @response.extract_fax_and_entry_key(nil) )
49
+ assert_equal(nil, @response.extract_fax_and_entry_key(nil) )
50
50
  }
51
51
  end
52
52
 
53
- def extract_fax_and_entry_key_handles_parses_url
53
+ def test_extract_fax_and_entry_key_handles_parses_url
54
54
  assert_nothing_thrown { @response.extract_fax_and_entry_key(nil) }
55
55
  end
56
56
 
57
- def extract_fax_and_entry_key_handles_parses_url
57
+ def test_extract_fax_and_entry_key_handles_parses_url
58
58
  assert_equal(['0000001B','0000'], @response.extract_fax_and_entry_key('https://192.168.2.1/ffws/v1/ofax/0000001B/0000'))
59
59
  end
60
60
 
data/test/send_test.rb CHANGED
@@ -137,7 +137,7 @@ module FaxFinder
137
137
 
138
138
  def test_including_an_external_url_will_override_embedded_document
139
139
  @doc=Nokogiri::XML(Send.construct_xml('1234567890', @options.merge(:external_url=>'https://localhost/something')))
140
- assert_empty(@doc.xpath('//schedule_fax/attachment/content'))
140
+ assert_equal(0, @doc.xpath('//schedule_fax/attachment/content').length)
141
141
  end
142
142
 
143
143
  def test_supports_passing_in_a_base64_string_directly
data/test/test_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
- gem 'test-unit', '~> 2'
2
+ # gem 'test-unit', '~> 2'
3
3
  require 'test/unit'
4
- gem 'mocha'
4
+ # gem 'mocha'
5
5
  require 'mocha'
6
6
  # require 'builder'
7
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fax_finder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 0.3.0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Erich L. Timkar
@@ -15,31 +15,44 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-12 00:00:00 Z
18
+ date: 2012-07-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: nokogiri
21
+ name: rake
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - "="
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 15
28
+ hash: 3
29
29
  segments:
30
- - 1
31
- - 4
32
- - 4
33
- version: 1.4.4
30
+ - 0
31
+ version: "0"
34
32
  type: :runtime
35
33
  version_requirements: *id001
36
34
  - !ruby/object:Gem::Dependency
37
- name: builder
35
+ name: nokogiri
38
36
  prerelease: false
39
37
  requirement: &id002 !ruby/object:Gem::Requirement
40
38
  none: false
41
39
  requirements:
42
40
  - - ~>
41
+ - !ruby/object:Gem::Version
42
+ hash: 5
43
+ segments:
44
+ - 1
45
+ - 5
46
+ version: "1.5"
47
+ type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: builder
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
43
56
  - !ruby/object:Gem::Version
44
57
  hash: 15
45
58
  segments:
@@ -48,11 +61,71 @@ dependencies:
48
61
  - 2
49
62
  version: 2.1.2
50
63
  type: :runtime
51
- version_requirements: *id002
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: mocha
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 25
74
+ segments:
75
+ - 0
76
+ - 9
77
+ version: "0.9"
78
+ type: :runtime
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: jeweler
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ type: :runtime
93
+ version_requirements: *id005
94
+ - !ruby/object:Gem::Dependency
95
+ name: nokogiri
96
+ prerelease: false
97
+ requirement: &id006 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ hash: 5
103
+ segments:
104
+ - 1
105
+ - 5
106
+ version: "1.5"
107
+ type: :runtime
108
+ version_requirements: *id006
109
+ - !ruby/object:Gem::Dependency
110
+ name: builder
111
+ prerelease: false
112
+ requirement: &id007 !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ hash: 15
118
+ segments:
119
+ - 2
120
+ - 1
121
+ - 2
122
+ version: 2.1.2
123
+ type: :runtime
124
+ version_requirements: *id007
52
125
  - !ruby/object:Gem::Dependency
53
126
  name: test-unit
54
127
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
128
+ requirement: &id008 !ruby/object:Gem::Requirement
56
129
  none: false
57
130
  requirements:
58
131
  - - ~>
@@ -62,11 +135,11 @@ dependencies:
62
135
  - 2
63
136
  version: "2"
64
137
  type: :development
65
- version_requirements: *id003
138
+ version_requirements: *id008
66
139
  - !ruby/object:Gem::Dependency
67
140
  name: mocha
68
141
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
142
+ requirement: &id009 !ruby/object:Gem::Requirement
70
143
  none: false
71
144
  requirements:
72
145
  - - ">="
@@ -77,7 +150,7 @@ dependencies:
77
150
  - 9
78
151
  version: "0.9"
79
152
  type: :development
80
- version_requirements: *id004
153
+ version_requirements: *id009
81
154
  description:
82
155
  email: erich@hordesoftware.com
83
156
  executables: []
@@ -90,6 +163,8 @@ extra_rdoc_files:
90
163
  files:
91
164
  - .project
92
165
  - Changelog
166
+ - Gemfile
167
+ - Gemfile.lock
93
168
  - LICENSE
94
169
  - README.rdoc
95
170
  - Rakefile
@@ -102,8 +177,6 @@ files:
102
177
  - lib/fax_finder/request.rb
103
178
  - lib/fax_finder/response.rb
104
179
  - lib/fax_finder/send.rb
105
- - pkg/fax_finder-0.2.1.gem
106
- - pkg/fax_finder-0.2.2.gem
107
180
  - test/abort_test.rb
108
181
  - test/fixtures/send_request_external.xml
109
182
  - test/fixtures/send_request_inline.xml
@@ -143,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
216
  requirements: []
144
217
 
145
218
  rubyforge_project: fax_finder
146
- rubygems_version: 1.7.2
219
+ rubygems_version: 1.8.24
147
220
  signing_key:
148
221
  specification_version: 3
149
222
  summary: Provides support MultiTech's FaxFinder server
Binary file
Binary file