impostor 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ gem "mechanize", "=1.0.0"
8
8
  gem "nokogiri", ">=1.4.4"
9
9
 
10
10
  group :development, :test do
11
- gem "mongrel", ">=1.1.5"
11
+ gem 'mongrel', '>= 1.2.0.pre2'
12
12
  gem "rspec", ">= 2.3.0"
13
13
  gem "redgreen", ">=1.2.2"
14
14
  gem "vcr", ">=1.5.1"
data/Gemfile.lock CHANGED
@@ -2,21 +2,17 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  addressable (2.2.6)
5
- cgi_multipart_eof_fix (2.5.0)
6
5
  crack (0.1.8)
7
- daemons (1.1.4)
6
+ daemons (1.0.10)
8
7
  diff-lcs (1.1.2)
9
- fastthread (1.0.7)
10
8
  gem_plugin (0.2.3)
11
9
  hoe (2.10.0)
12
10
  rake (~> 0.8)
13
11
  mechanize (1.0.0)
14
12
  nokogiri (>= 1.2.1)
15
- mongrel (1.1.5)
16
- cgi_multipart_eof_fix (>= 2.4)
17
- daemons (>= 1.0.3)
18
- fastthread (>= 1.0.1)
19
- gem_plugin (>= 0.2.3)
13
+ mongrel (1.2.0.pre2)
14
+ daemons (~> 1.0.10)
15
+ gem_plugin (~> 0.2.3)
20
16
  nokogiri (1.5.0)
21
17
  rake (0.9.2)
22
18
  rdoc (3.8)
@@ -31,7 +27,7 @@ GEM
31
27
  rspec-mocks (2.6.0)
32
28
  vcr (1.10.2)
33
29
  webmock (1.6.4)
34
- addressable (> 2.2.5, ~> 2.2)
30
+ addressable (~> 2.2, > 2.2.5)
35
31
  crack (>= 0.1.7)
36
32
 
37
33
  PLATFORMS
@@ -40,7 +36,7 @@ PLATFORMS
40
36
  DEPENDENCIES
41
37
  hoe (>= 2.8.0)
42
38
  mechanize (= 1.0.0)
43
- mongrel (>= 1.1.5)
39
+ mongrel (>= 1.2.0.pre2)
44
40
  nokogiri (>= 1.4.4)
45
41
  rdoc
46
42
  redgreen (>= 1.2.2)
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ ### 1.1.0 / 2011-10-18
2
+
3
+ * 1 major enhancement
4
+ * ruby 1.9.2 compatible
5
+ * 1 major fix
6
+ * syntax bug fix
7
+
1
8
  ### 1.0.2 / 2011-07-19 (help, I've fallen and can't get up, part dux)
2
9
 
3
10
  * re-release with correct gem deps in Rackfile
@@ -67,7 +67,7 @@ class Impostor::Config
67
67
  forum = forum.to_s
68
68
  topic = topic.to_s
69
69
  if self.topics[forum].nil?
70
- self.topics[forum] = {topic, name}
70
+ self.topics[forum] = {topic => name}
71
71
  else
72
72
  self.topics[forum][topic] = name
73
73
  end
data/lib/impostor.rb CHANGED
@@ -52,7 +52,7 @@ class Impostor
52
52
  ##
53
53
  # Gem version of Impostor
54
54
 
55
- VERSION = '1.0.2'
55
+ VERSION = '1.1.0'
56
56
 
57
57
  ##
58
58
  # Pass in a config hash to initialize
@@ -5,8 +5,9 @@ module Net #:nodoc:
5
5
  alias :old_net_http_connect :connect
6
6
 
7
7
  def request(req, body = nil, &block)
8
- prot = use_ssl ? "https" : "http"
9
- uri_cls = use_ssl ? URI::HTTPS : URI::HTTP
8
+ # prot = use_ssl ? "https" : "http"
9
+ # uri_cls = use_ssl ? URI::HTTPS : URI::HTTP
10
+ uri_cls = URI::HTTP
10
11
  query = req.path.split('?',2)
11
12
  opts = {:host => self.address,
12
13
  :port => self.port, :path => query[0]}
data/spec/phpbb2_spec.rb CHANGED
@@ -185,7 +185,7 @@ describe "a phpbb2 impostor" do
185
185
 
186
186
  it "should set_message(form, message)" do
187
187
  form = @post.get_post_form(@reply_response_page)
188
- form.should_receive(:message=, "Hello World")
188
+ form.should_receive(:message=).with("Hello World")
189
189
  lambda {
190
190
  @post.set_message(form, "Hello World")
191
191
  }.should_not raise_error
data/spec/phpbb3_spec.rb CHANGED
@@ -189,7 +189,7 @@ describe "a phpbb3 impostor" do
189
189
 
190
190
  it "should set_message(form, message)" do
191
191
  form = @post.get_post_form(@reply_page)
192
- form.should_receive(:message=, "Hello World")
192
+ form.should_receive(:message=).with("Hello World")
193
193
  lambda {
194
194
  @post.set_message(form, "Hello World")
195
195
  }.should_not raise_error
data/spec/wwf79_spec.rb CHANGED
@@ -190,7 +190,7 @@ describe "a Web Wiz Forum 7.9 impostor" do
190
190
 
191
191
  it "should set_message(form, message)" do
192
192
  form = @post.get_post_form(@reply_response_page)
193
- form.should_receive(:message=, "Hello World")
193
+ form.should_receive(:message=).with("Hello World")
194
194
  lambda {
195
195
  @post.set_message(form, "Hello World")
196
196
  }.should_not raise_error
data/spec/wwf80_spec.rb CHANGED
@@ -188,7 +188,7 @@ describe "a Web Wiz Forum 8.0 impostor" do
188
188
 
189
189
  it "should set_message(form, message)" do
190
190
  form = @post.get_post_form(@reply_page)
191
- form.should_receive(:message=, "Hello World")
191
+ form.should_receive(:message=).with("Hello World")
192
192
  lambda {
193
193
  @post.set_message(form, "Hello World")
194
194
  }.should_not raise_error
metadata CHANGED
@@ -1,90 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: impostor
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 2
10
- version: 1.0.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Mike Mondragon
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-20 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-10-19 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: nokogiri
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &20285840 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 15
29
- segments:
30
- - 1
31
- - 4
32
- - 4
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 1.4.4
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: mechanize
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *20285840
25
+ - !ruby/object:Gem::Dependency
26
+ name: mechanize
27
+ requirement: &20285360 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - "="
43
- - !ruby/object:Gem::Version
44
- hash: 23
45
- segments:
46
- - 1
47
- - 0
48
- - 0
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
49
32
  version: 1.0.0
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: hoe
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *20285360
36
+ - !ruby/object:Gem::Dependency
37
+ name: hoe
38
+ requirement: &20284900 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
40
+ requirements:
58
41
  - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 23
61
- segments:
62
- - 2
63
- - 10
64
- version: "2.10"
42
+ - !ruby/object:Gem::Version
43
+ version: '2.10'
65
44
  type: :development
66
- version_requirements: *id003
67
- description: |-
68
- imPOSTor posts messages to forums
69
-
45
+ prerelease: false
46
+ version_requirements: *20284900
47
+ description: ! 'imPOSTor posts messages to forums
48
+
49
+
70
50
  == FEATURES/PROBLEMS:
71
-
51
+
52
+
72
53
  Makes automated posts to the following forum applications:
73
-
54
+
55
+
74
56
  * Web Wiz Forums (WWF) 7.9
57
+
75
58
  * Web Wiz Forums (WWF) 8.0
59
+
76
60
  * PHP Bullitin Board (phpBB) 2.2
77
- * PHP Bullitin Board (phpBB) 3.0
61
+
62
+ * PHP Bullitin Board (phpBB) 3.0'
78
63
  email: mikemondragon@gmail.com
79
64
  executables: []
80
-
81
65
  extensions: []
82
-
83
- extra_rdoc_files:
66
+ extra_rdoc_files:
84
67
  - History.txt
85
68
  - Manifest.txt
86
69
  - README.txt
87
- files:
70
+ files:
88
71
  - .gitignore
89
72
  - .rspec
90
73
  - .rvmrc
@@ -183,37 +166,28 @@ files:
183
166
  - .gemtest
184
167
  homepage: https://github.com/monde/impostor
185
168
  licenses: []
186
-
187
169
  post_install_message:
188
- rdoc_options:
170
+ rdoc_options:
189
171
  - --main
190
172
  - README.txt
191
- require_paths:
173
+ require_paths:
192
174
  - lib
193
- required_ruby_version: !ruby/object:Gem::Requirement
175
+ required_ruby_version: !ruby/object:Gem::Requirement
194
176
  none: false
195
- requirements:
196
- - - ">="
197
- - !ruby/object:Gem::Version
198
- hash: 3
199
- segments:
200
- - 0
201
- version: "0"
202
- required_rubygems_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
182
  none: false
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- hash: 3
208
- segments:
209
- - 0
210
- version: "0"
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
211
187
  requirements: []
212
-
213
188
  rubyforge_project: impostor
214
- rubygems_version: 1.8.5
189
+ rubygems_version: 1.8.10
215
190
  signing_key:
216
191
  specification_version: 3
217
192
  summary: imPOSTor posts messages to non-RESTful forums and blogs
218
193
  test_files: []
219
-