impostor 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +50 -0
  3. data/README.txt +65 -0
  4. data/Rakefile +40 -0
  5. data/lib/impostor.rb +6 -0
  6. data/lib/www/impostor/phpbb2.rb +260 -0
  7. data/lib/www/impostor/wwf79.rb +254 -0
  8. data/lib/www/impostor/wwf80.rb +264 -0
  9. data/lib/www/impostor.rb +269 -0
  10. data/test/fixtures/phpbb2-get-new_topic-form-good-response.html +725 -0
  11. data/test/fixtures/phpbb2-get-viewtopic-for-new-topic-good-response.html +364 -0
  12. data/test/fixtures/phpbb2-get-viewtopic-for-new-topic-malformed-response.html +364 -0
  13. data/test/fixtures/phpbb2-index.html +361 -0
  14. data/test/fixtures/phpbb2-logged-in.html +349 -0
  15. data/test/fixtures/phpbb2-login.html +306 -0
  16. data/test/fixtures/phpbb2-not-logged-in.html +349 -0
  17. data/test/fixtures/phpbb2-post-new_topic-good-response.html +290 -0
  18. data/test/fixtures/phpbb2-post-reply-good-response.html +290 -0
  19. data/test/fixtures/phpbb2-post-reply-throttled-response.html +290 -0
  20. data/test/fixtures/phpbb2-too-many-posts.html +290 -0
  21. data/test/fixtures/wwf79-forum_posts.html +422 -0
  22. data/test/fixtures/wwf79-general-new-topic-error.html +46 -0
  23. data/test/fixtures/wwf79-general-posting-error.html +46 -0
  24. data/test/fixtures/wwf79-good-post-forum_posts.html +462 -0
  25. data/test/fixtures/wwf79-index.html +137 -0
  26. data/test/fixtures/wwf79-logged-in.html +46 -0
  27. data/test/fixtures/wwf79-login.html +123 -0
  28. data/test/fixtures/wwf79-new-topic-forum_posts-response.html +305 -0
  29. data/test/fixtures/wwf79-new-topic-post_message_form.html +212 -0
  30. data/test/fixtures/wwf79-not-logged-in.html +128 -0
  31. data/test/fixtures/wwf79-too-many-posts.html +46 -0
  32. data/test/fixtures/wwf79-too-many-topics.html +46 -0
  33. data/test/fixtures/wwf80-general-posting-error.html +54 -0
  34. data/test/fixtures/wwf80-get-new_topic-form-good-response.html +217 -0
  35. data/test/fixtures/wwf80-get-viewtopic-for-new-topic-good-response.html +290 -0
  36. data/test/fixtures/wwf80-index.html +371 -0
  37. data/test/fixtures/wwf80-logged-in.html +52 -0
  38. data/test/fixtures/wwf80-login.html +125 -0
  39. data/test/fixtures/wwf80-new_reply_form.html +204 -0
  40. data/test/fixtures/wwf80-not-logged-in.html +136 -0
  41. data/test/fixtures/wwf80-post-new_topic-good-response.html +293 -0
  42. data/test/fixtures/wwf80-post-reply-good-response.html +331 -0
  43. data/test/fixtures/wwf80-too-many-posts.html +54 -0
  44. data/test/test_helper.rb +38 -0
  45. data/test/test_www_impostor.rb +165 -0
  46. data/test/test_www_impostor_phpbb2.rb +536 -0
  47. data/test/test_www_impostor_wwf79.rb +535 -0
  48. data/test/test_www_impostor_wwf80.rb +535 -0
  49. data/vendor/plugins/impostor/lib/autotest/discover.rb +3 -0
  50. data/vendor/plugins/impostor/lib/autotest/impostor.rb +49 -0
  51. data.tar.gz.sig +3 -0
  52. metadata +156 -0
  53. metadata.gz.sig +3 -0
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: impostor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mike Mondragon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1taWtl
14
+ bW9uZHJhZ29uMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
15
+ FgNjb20wHhcNMDcwODI3MTk1NjQ1WhcNMDgwODI2MTk1NjQ1WjBEMRYwFAYDVQQD
16
+ DA1taWtlbW9uZHJhZ29uMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
17
+ k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD9J/K2
18
+ wp3uqpMzXOfOlY+zb2qRuP0Q6SaqPf8+Y/OD4n+KR91999nRcd9MED4b9okQb5XF
19
+ KjbIRtEyXRtX+nmajf3CqrtOe+Gej9Uru1jBiqwdegCipN2HRrqqOX0Tv15o2W6n
20
+ Lxayxj4JD/DWLrBaKWagv87MCwb0FeKB45Z6bZFA62QM7beBSB9TY+Lv7qpW+uPk
21
+ vlLC9nj765cU0jZNcddgLZcKVl4AihhA5YNOI6XztxA+DSYze8EryrkES8YjY+O7
22
+ oPSSvyi/13QnIPpB884/k9alxWqzx3+qQI6UxXeVY1idS9M+1q3QC6vteo5KqE41
23
+ enZ5Unpw288x+gc5AgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
24
+ A1UdDgQWBBQfSk8NE+/Ad8ZKbEAgwIoKvI5H+TANBgkqhkiG9w0BAQUFAAOCAQEA
25
+ ZyBadUGUGP/x2pZEIPYVcP9vG0l64wLDksJNVJ90rEgToaQqypCElvipbCXYF9Pe
26
+ y+5G/bJItH/OKiIHcdJUs8UdXMH5icCpyqNgNopHVkVsE8gghMYm0ptHyKWswRAK
27
+ 6nBO3mw0C2n+KiWdTSXf6HtF9sBg5SV+I/kZEGHbiFEglxfiVoUnlvsCbRt2QlCC
28
+ uMBzJ1sNVgCL3bqeEZwZj0o2HLxOHg0sSOc16rCfX5yvDo7bFM0XAMvwNgYg8ifQ
29
+ zeHINowDygx2eefh0hynPGd/QwgANxHpr4+V93KLsyLosIgAIsqoXRkNx3a5gecL
30
+ q8SfeAt4oNk4pWm9Ocmiww==
31
+ -----END CERTIFICATE-----
32
+
33
+ date: 2008-02-08 00:00:00 -08:00
34
+ default_executable:
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: hpricot
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.5.0
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: mechanize
47
+ version_requirement:
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.7.0
53
+ version:
54
+ - !ruby/object:Gem::Dependency
55
+ name: hoe
56
+ version_requirement:
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.5.0
62
+ version:
63
+ description: "Makes automatic posts to the following forum applications: * Web Wiz Forums (WWF) 7.9 * Web Wiz Forums (WWF) 8.0 * PHP Bullitin Board (phpBB) 2.0 (2.0.22) == SYNOPSIS: # config yaml has options specefic to wwf79, wwf80, phpbb2, etc. # read the impostor docs for options to the kind of forum in use # config can be keyed by symbols or strings config = YAML::load_file('conf/impostor.yml') post = WWW::Impostor.new(config) message = %q{hello world is to application programmers as tea pots are to graphics programmers} # your application stores forum and topic ids post.post(forum=5,topic=10,message) # make a new topic subject = \"about programmers...\" post.new_topic(forum=7,subject,message) post.logout"
64
+ email: mikemondragon@gmail.com
65
+ executables: []
66
+
67
+ extensions: []
68
+
69
+ extra_rdoc_files:
70
+ - History.txt
71
+ - Manifest.txt
72
+ - README.txt
73
+ files:
74
+ - History.txt
75
+ - Manifest.txt
76
+ - README.txt
77
+ - Rakefile
78
+ - lib/impostor.rb
79
+ - lib/www/impostor.rb
80
+ - lib/www/impostor/phpbb2.rb
81
+ - lib/www/impostor/wwf79.rb
82
+ - lib/www/impostor/wwf80.rb
83
+ - test/fixtures/phpbb2-get-new_topic-form-good-response.html
84
+ - test/fixtures/phpbb2-get-viewtopic-for-new-topic-good-response.html
85
+ - test/fixtures/phpbb2-get-viewtopic-for-new-topic-malformed-response.html
86
+ - test/fixtures/phpbb2-index.html
87
+ - test/fixtures/phpbb2-logged-in.html
88
+ - test/fixtures/phpbb2-login.html
89
+ - test/fixtures/phpbb2-not-logged-in.html
90
+ - test/fixtures/phpbb2-post-new_topic-good-response.html
91
+ - test/fixtures/phpbb2-post-reply-good-response.html
92
+ - test/fixtures/phpbb2-post-reply-throttled-response.html
93
+ - test/fixtures/phpbb2-too-many-posts.html
94
+ - test/fixtures/wwf79-forum_posts.html
95
+ - test/fixtures/wwf79-general-new-topic-error.html
96
+ - test/fixtures/wwf79-general-posting-error.html
97
+ - test/fixtures/wwf79-good-post-forum_posts.html
98
+ - test/fixtures/wwf79-index.html
99
+ - test/fixtures/wwf79-logged-in.html
100
+ - test/fixtures/wwf79-login.html
101
+ - test/fixtures/wwf79-new-topic-forum_posts-response.html
102
+ - test/fixtures/wwf79-new-topic-post_message_form.html
103
+ - test/fixtures/wwf79-not-logged-in.html
104
+ - test/fixtures/wwf79-too-many-posts.html
105
+ - test/fixtures/wwf79-too-many-topics.html
106
+ - test/fixtures/wwf80-general-posting-error.html
107
+ - test/fixtures/wwf80-get-new_topic-form-good-response.html
108
+ - test/fixtures/wwf80-get-viewtopic-for-new-topic-good-response.html
109
+ - test/fixtures/wwf80-index.html
110
+ - test/fixtures/wwf80-logged-in.html
111
+ - test/fixtures/wwf80-login.html
112
+ - test/fixtures/wwf80-new_reply_form.html
113
+ - test/fixtures/wwf80-not-logged-in.html
114
+ - test/fixtures/wwf80-post-new_topic-good-response.html
115
+ - test/fixtures/wwf80-post-reply-good-response.html
116
+ - test/fixtures/wwf80-too-many-posts.html
117
+ - test/test_helper.rb
118
+ - test/test_www_impostor.rb
119
+ - test/test_www_impostor_phpbb2.rb
120
+ - test/test_www_impostor_wwf79.rb
121
+ - test/test_www_impostor_wwf80.rb
122
+ - vendor/plugins/impostor/lib/autotest/discover.rb
123
+ - vendor/plugins/impostor/lib/autotest/impostor.rb
124
+ has_rdoc: true
125
+ homepage: " by Mike Mondragon"
126
+ post_install_message:
127
+ rdoc_options:
128
+ - --main
129
+ - README.txt
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: "0"
137
+ version:
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: "0"
143
+ version:
144
+ requirements: []
145
+
146
+ rubyforge_project: impostor
147
+ rubygems_version: 1.0.1
148
+ signing_key:
149
+ specification_version: 2
150
+ summary: imPOSTor posts messages to non-RESTful forums and blogs
151
+ test_files:
152
+ - test/test_www_impostor_phpbb2.rb
153
+ - test/test_www_impostor_wwf79.rb
154
+ - test/test_www_impostor_wwf80.rb
155
+ - test/test_helper.rb
156
+ - test/test_www_impostor.rb
metadata.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ �,�KcA<��Shn~�/�mk�n�<XG{�:S�t��\ ����TR�E�}!��!���\�ka[m���/^k]ە3������~�a�N}�
2
+ S �7Nc��H��
3
+ H��#y����