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 +1 -1
- data/Gemfile.lock +6 -10
- data/History.txt +7 -0
- data/lib/impostor/config.rb +1 -1
- data/lib/impostor.rb +1 -1
- data/spec/caged_net_http.rb +3 -2
- data/spec/phpbb2_spec.rb +1 -1
- data/spec/phpbb3_spec.rb +1 -1
- data/spec/wwf79_spec.rb +1 -1
- data/spec/wwf80_spec.rb +1 -1
- metadata +53 -79
data/Gemfile
CHANGED
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.
|
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.
|
16
|
-
|
17
|
-
|
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 (
|
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.
|
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
data/lib/impostor/config.rb
CHANGED
data/lib/impostor.rb
CHANGED
data/spec/caged_net_http.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
-
|
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
|
-
|
19
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
61
|
-
segments:
|
62
|
-
- 2
|
63
|
-
- 10
|
64
|
-
version: "2.10"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '2.10'
|
65
44
|
type: :development
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
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
|
-
|
199
|
-
|
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
|
-
|
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.
|
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
|
-
|