ipaccess 0.0.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +15 -0
  2. checksums.yaml.gz.sig +1 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gemtest +0 -0
  5. data/.rspec +1 -0
  6. data/.yardopts +12 -0
  7. data/ChangeLog +1495 -0
  8. data/{docs/LGPL-LICENSE → LGPL-LICENSE} +0 -0
  9. data/Manifest.txt +76 -0
  10. data/README.md +96 -0
  11. data/Rakefile +65 -42
  12. data/docs/COPYING +41 -45
  13. data/docs/FAQ +12 -0
  14. data/docs/HISTORY +17 -0
  15. data/docs/LEGAL +1 -1
  16. data/docs/LGPL +166 -0
  17. data/docs/TODO +150 -7
  18. data/docs/images/ipaccess.png +0 -0
  19. data/docs/images/ipaccess_ac_for_args.png +0 -0
  20. data/docs/images/ipaccess_ac_for_socket.png +0 -0
  21. data/docs/images/ipaccess_logo.png +0 -0
  22. data/docs/images/ipaccess_relations.png +0 -0
  23. data/docs/images/ipaccess_setup_origin.png +0 -0
  24. data/docs/images/ipaccess_setup_origin_tab.png +0 -0
  25. data/docs/images/ipaccess_view.png +0 -0
  26. data/docs/rdoc.css +22 -0
  27. data/examples/ftp.rb +62 -0
  28. data/examples/http.rb +81 -0
  29. data/examples/imap.rb +37 -0
  30. data/examples/pop.rb +31 -0
  31. data/examples/smtp.rb +26 -0
  32. data/examples/tcp_server.rb +32 -0
  33. data/examples/tcp_socket.rb +7 -3
  34. data/examples/telnet.rb +32 -0
  35. data/examples/text_message.rb +45 -0
  36. data/lib/ipaccess.rb +557 -7
  37. data/lib/ipaccess/arm_sockets.rb +7 -4
  38. data/lib/ipaccess/ghost_doc/ghost_doc.rb +23 -0
  39. data/lib/ipaccess/ghost_doc/ghost_doc_acl.rb +54 -0
  40. data/lib/ipaccess/ghost_doc/ghost_doc_net_ftp.rb +213 -0
  41. data/lib/ipaccess/ghost_doc/ghost_doc_net_http.rb +272 -0
  42. data/lib/ipaccess/ghost_doc/ghost_doc_net_smtp.rb +186 -0
  43. data/lib/ipaccess/ghost_doc/ghost_doc_net_telnet.rb +227 -0
  44. data/lib/ipaccess/ghost_doc/ghost_doc_p_blacklist.rb +36 -0
  45. data/lib/ipaccess/ghost_doc/ghost_doc_p_blacklist_e.rb +7 -0
  46. data/lib/ipaccess/ghost_doc/ghost_doc_p_unblacklist.rb +36 -0
  47. data/lib/ipaccess/ghost_doc/ghost_doc_p_unblacklist_e.rb +7 -0
  48. data/lib/ipaccess/ghost_doc/ghost_doc_p_unwhitelist.rb +36 -0
  49. data/lib/ipaccess/ghost_doc/ghost_doc_p_unwhitelist_e.rb +7 -0
  50. data/lib/ipaccess/ghost_doc/ghost_doc_p_whitelist.rb +36 -0
  51. data/lib/ipaccess/ghost_doc/ghost_doc_p_whitelist_e.rb +7 -0
  52. data/lib/ipaccess/ghost_doc/ghost_doc_patched_usage.rb +64 -0
  53. data/lib/ipaccess/ghost_doc/ghost_doc_sockets.rb +571 -0
  54. data/lib/ipaccess/ip_access_check.rb +508 -0
  55. data/lib/ipaccess/ip_access_errors.rb +186 -40
  56. data/lib/ipaccess/ip_access_list.rb +955 -1122
  57. data/lib/ipaccess/ip_access_set.rb +212 -0
  58. data/lib/ipaccess/net/ftp.rb +39 -0
  59. data/lib/ipaccess/net/http.rb +39 -0
  60. data/lib/ipaccess/net/https.rb +30 -0
  61. data/lib/ipaccess/net/imap.rb +39 -0
  62. data/lib/ipaccess/net/pop.rb +46 -0
  63. data/lib/ipaccess/net/smtp.rb +39 -0
  64. data/lib/ipaccess/net/telnet.rb +38 -0
  65. data/lib/ipaccess/patches/generic.rb +807 -0
  66. data/lib/ipaccess/patches/net_ftp.rb +165 -0
  67. data/lib/ipaccess/patches/net_http.rb +175 -0
  68. data/lib/ipaccess/patches/net_https.rb +29 -0
  69. data/lib/ipaccess/patches/net_imap.rb +117 -0
  70. data/lib/ipaccess/patches/net_pop.rb +171 -0
  71. data/lib/ipaccess/patches/net_smtp.rb +130 -0
  72. data/lib/ipaccess/patches/net_telnet.rb +103 -0
  73. data/lib/ipaccess/{netaddr_patch.rb → patches/netaddr.rb} +20 -11
  74. data/lib/ipaccess/patches/sockets.rb +586 -0
  75. data/lib/ipaccess/socket.rb +52 -1
  76. data/lib/ipaccess/sockets.rb +4 -30
  77. data/spec/ip_access_list_spec.rb +33 -21
  78. data/spec/spec.opts +2 -2
  79. metadata +289 -63
  80. metadata.gz.sig +0 -0
  81. data/docs/DOWNLOAD +0 -17
  82. data/docs/README +0 -95
  83. data/docs/WELCOME +0 -8
  84. data/lib/ipaccess/ghost_doc.rb +0 -206
  85. data/lib/ipaccess/ghost_doc_acl.rb +0 -31
  86. data/lib/ipaccess/ip_access.rb +0 -456
  87. data/lib/ipaccess/ip_access_patches.rb +0 -431
  88. data/spec/core_spec.rb +0 -5
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjBiZjM4NzIwMGZhMTY2NThhNDY4NzE0OTU1NWJlYjQwMDE3NmU4OA==
5
+ data.tar.gz: !binary |-
6
+ ODAzZDA5NzNjOWIxOGQ5Mzk4OGM4NWYzZDliZmFlYmExYmZmYWU4OQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YzQ5NzZhZmY3YTcxZGI3NDg4NjhlYjg1MTFlODJkYzU0MWJiODk1ZTcyNGRm
10
+ NjdkNzMzNDgxY2YxNzExZDNhMDIzZmFjYTA4NTZiNmM0NDRmOGViODkzMzA0
11
+ ZTgwNzNkNmQxODA4NGMyMTg4NGU4MDFjNzM2ZjhhM2U5MmRhNWI=
12
+ data.tar.gz: !binary |-
13
+ MjcwOWI3ZWFiOTY2NmI2MmZiNjYxNDU1NWEzNDYxOWFmZWZjM2E0MWVlNjg2
14
+ NzFhMTExYTUyNDliYzg4ODJjNzM5Mjg4Y2Q5NWEwMzIyOTY3YmVhOGFiYzg1
15
+ ZjhiNGE4MTQ3OWIyNWM4NWU0ODA5YjA3MWJjOWQwOTZkNzI4YTE=
checksums.yaml.gz.sig ADDED
@@ -0,0 +1 @@
1
+ �K:`�i3e�4"Iփ��߼��:;1d�T��Ű�?�4w�����=>�0)��&�R���}�8����9��Ik�eC*�PM��3�F�9.��k�C���� � +��&��}�>�NB��*����PY��i)�+�!Z�Sb<���I�N��q�S�������-�+�Q~��9��@��q���E��}�hՂe9��H�ܥc!�|M�g��BfI���� �1W$Nm�x��O���s��3g�UgRq/�x�Lk
data.tar.gz.sig ADDED
Binary file
data/.gemtest ADDED
File without changes
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --format nested --color
data/.yardopts ADDED
@@ -0,0 +1,12 @@
1
+ --title 'IP Access Control for Ruby'
2
+ --protected
3
+ --readme README.md
4
+ --no-private
5
+ --hide-void-return
6
+ -p docs/yard-tpl
7
+ -t default
8
+ -
9
+ docs/HISTORY
10
+ ChangeLog
11
+ docs/COPYING
12
+ docs/LGPL
data/ChangeLog ADDED
@@ -0,0 +1,1495 @@
1
+ commit 1abc7037ac85d2bf56dd5f8fa22450ef158fefd7
2
+ Author: Paweł Wilk <siefca@gnu.org>
3
+ Date: Mon Dec 23 13:02:16 2013 +0100
4
+
5
+ Generated gemspec
6
+
7
+ commit 77b1ccb98e7729fcfe43cb8147ae6e2034ec270a
8
+ Author: Paweł Wilk <siefca@gnu.org>
9
+ Date: Mon Dec 23 12:56:33 2013 +0100
10
+
11
+ Checking methods relaxed
12
+
13
+ commit 4f01890f5241c7aaa50404d9b133d87da3a32bfe
14
+ Author: Paweł Wilk <siefca@gnu.org>
15
+ Date: Mon Dec 23 12:43:02 2013 +0100
16
+
17
+ ChangeLog and Manifest.txt updated
18
+
19
+ commit 5c7c90b7962820c9b83a704f7faeffd461183e8d
20
+ Author: Paweł Wilk <siefca@gnu.org>
21
+ Date: Mon Dec 23 12:42:22 2013 +0100
22
+
23
+ Documentation updated
24
+
25
+ commit 3d8807981890d46a0fcb0a8a0995fe74574eaea5
26
+ Author: Paweł Wilk <siefca@gnu.org>
27
+ Date: Mon Dec 23 12:39:33 2013 +0100
28
+
29
+ Documentation updated
30
+
31
+ commit b1d564f65fcb34a9375acc14703176352e6c445c
32
+ Author: Paweł Wilk <siefca@gnu.org>
33
+ Date: Mon Dec 23 11:49:34 2013 +0100
34
+
35
+ Added ChangeLog
36
+
37
+ commit e36a68cbc19e9e158eb89728f5f753b08d3865cb
38
+ Author: Paweł Wilk <siefca@gnu.org>
39
+ Date: Mon Dec 23 11:49:24 2013 +0100
40
+
41
+ Added Gemfile
42
+
43
+ commit 56d3b2af60f8d151ccdea3874d3372718901fef0
44
+ Author: Paweł Wilk <siefca@gnu.org>
45
+ Date: Mon Dec 23 11:49:05 2013 +0100
46
+
47
+ RSpec options updated, added .yardopts
48
+
49
+ commit 69ad58a583145eb67ccf947b6cde6a0a6e09851a
50
+ Author: Paweł Wilk <siefca@gnu.org>
51
+ Date: Mon Dec 23 11:48:38 2013 +0100
52
+
53
+ Copyright note updated
54
+
55
+ commit f1dc4209e041613ec4360813aabacc74ecaf43c4
56
+ Author: Paweł Wilk <siefca@gnu.org>
57
+ Date: Mon Dec 23 11:47:48 2013 +0100
58
+
59
+ Rakefile refreshed
60
+
61
+ commit 349c4f7ebae7c03235ff57e052aef7deb0577f24
62
+ Author: Paweł Wilk <siefca@gnu.org>
63
+ Date: Mon Dec 23 11:25:51 2013 +0100
64
+
65
+ Moved some logic to ip_access_check.rb, added List::Check class
66
+
67
+ commit aeb42501586a1dc9218f07f69bd16530c027a318
68
+ Author: Paweł Wilk <siefca@gnu.org>
69
+ Date: Mon Dec 23 11:22:25 2013 +0100
70
+
71
+ Added optional socket attribute to IPAccessDenied exception class
72
+
73
+ commit 7da56a71c0e5cf7ca7cb297a16c4d89803611dc1
74
+ Author: Paweł Wilk <siefca@gnu.org>
75
+ Date: Mon Dec 23 11:21:04 2013 +0100
76
+
77
+ Deps updated, README moved
78
+
79
+ commit aa70dcf9ff36a292d03ab9af371b0b276cdf27af
80
+ Author: Paweł Wilk <siefca@gnu.org>
81
+ Date: Mon Nov 2 23:52:17 2009 +0100
82
+
83
+ Added bus for notifying objects about changes in access lists.
84
+
85
+ - Added IPAccess::Bus class which maintains the bus,
86
+ - modified IPAccess::List#core_add and IPAccess::List#delete! to trigger a bus,
87
+ - added IPAccessDenied::Aggregate exception class which transports a set of exceptions
88
+ collected during issuing calls to acl_recheck of registered objects.
89
+
90
+ commit 3600af7469157c90244e82b7ac6243f17b458f71
91
+ Author: Paweł Wilk <siefca@gnu.org>
92
+ Date: Mon Nov 2 14:38:47 2009 +0100
93
+
94
+ Added some documentation about different ways to control access for patched objects.
95
+
96
+ commit da4e279553d48fa214a193d938eac246174a4020
97
+ Author: Paweł Wilk <siefca@gnu.org>
98
+ Date: Mon Nov 2 13:19:04 2009 +0100
99
+
100
+ Fixed IPAccess::Patches::Net::FTP.open with a block.
101
+
102
+ commit 13b1ab75510b90612b28781c09853cee5fd16e61
103
+ Author: Paweł Wilk <siefca@gnu.org>
104
+ Date: Mon Nov 2 13:18:23 2009 +0100
105
+
106
+ Added IPAccessDenied#show method and unified error describing methods.
107
+
108
+ commit b895220a5476d8884f2149964e0b3b34b180720a
109
+ Author: Paweł Wilk <siefca@gnu.org>
110
+ Date: Mon Nov 2 13:17:29 2009 +0100
111
+
112
+ Changed *args to *addresses in many places.
113
+
114
+ commit 5fb4a78f6b6608f7be8263c8192f81c008f86f16
115
+ Author: Paweł Wilk <siefca@gnu.org>
116
+ Date: Mon Nov 2 13:16:48 2009 +0100
117
+
118
+ Added _reasonable variants to ghost-docs.
119
+
120
+ commit 710456f1922fae61a566ce98c42870da48ed52d7
121
+ Author: Paweł Wilk <siefca@gnu.org>
122
+ Date: Sun Nov 1 23:47:00 2009 +0100
123
+
124
+ A day of love for the garbace collector.
125
+
126
+ commit 6a59685d1e2419482dd49a4d97ee094ae772cf06
127
+ Author: Paweł Wilk <siefca@gnu.org>
128
+ Date: Sun Nov 1 23:42:17 2009 +0100
129
+
130
+ Reasons are now deleted when IP is removed from white or blacklist. :ashen changed to :grey.
131
+
132
+ commit b2e94bffed197c8efe7ebe9618b8362f23ea4251
133
+ Author: Paweł Wilk <siefca@gnu.org>
134
+ Date: Sun Nov 1 18:47:40 2009 +0100
135
+
136
+ Added _reasonable variants of blacklisting and whitelisting methods to patches.
137
+
138
+ commit 2caef4b370e607f4f85928dab932c4c5121b23a1
139
+ Author: Paweł Wilk <siefca@gnu.org>
140
+ Date: Sun Nov 1 17:54:53 2009 +0100
141
+
142
+ Added support for storing reasons of blacklisting and whitelisting.
143
+
144
+ commit 4488abe2a4b218eb7922546fb83a84dcbb7f7ef7
145
+ Author: Paweł Wilk <siefca@gnu.org>
146
+ Date: Sun Nov 1 15:09:32 2009 +0100
147
+
148
+ Added custom CSS with some fixes. Also logo is now placed in documentation using CSS.
149
+
150
+ commit ac813124d347ad2c05e59007955c74af47ab193f
151
+ Author: Paweł Wilk <siefca@gnu.org>
152
+ Date: Sun Nov 1 15:08:27 2009 +0100
153
+
154
+ Added phantom patching module for Net::APOP.
155
+
156
+ commit b954d685bfcf1cdea9f4c8754dd43081705b800e
157
+ Author: Paweł Wilk <siefca@gnu.org>
158
+ Date: Sun Nov 1 12:25:50 2009 +0100
159
+
160
+ Fixes for Ruby 1.8 compliance.
161
+
162
+ - Calls for original class methods like Socket.for_fd are now written as ::Socket and and so forth,
163
+ - in Net::IMAP patch there is a test whether start_tls_session is defined.
164
+
165
+ commit b7413f95365495316f95e95f3f1e0d3796221edd
166
+ Author: Paweł Wilk <siefca@gnu.org>
167
+ Date: Sun Nov 1 11:50:19 2009 +0100
168
+
169
+ Fixed IPv6 presentation in short form. Fixed IPAccess::List#denied_cidr return value.
170
+
171
+ commit 1569ea06f6b5d42a08556d5087bbba47b9f3bba6
172
+ Author: Paweł Wilk <siefca@gnu.org>
173
+ Date: Sun Nov 1 02:05:48 2009 +0100
174
+
175
+ Started tests against Ruby 1.8 compliance.
176
+
177
+ commit 6603ccf967de5b6fc874d5df24486da24e5b8e41
178
+ Author: Paweł Wilk <siefca@gnu.org>
179
+ Date: Sun Nov 1 01:34:40 2009 +0100
180
+
181
+ Documentation updated.
182
+
183
+ commit aefe88b40891671591e3b5b2eaa48d621c0f1b69
184
+ Author: Paweł Wilk <siefca@gnu.org>
185
+ Date: Sun Nov 1 01:34:07 2009 +0100
186
+
187
+ Added orig argument to IPAccess::Set#check.
188
+
189
+ commit 6bd7e47bd2ebe82e6ccaef9b6d521f225e9e1e07
190
+ Author: Paweł Wilk <siefca@gnu.org>
191
+ Date: Sat Oct 31 22:11:47 2009 +0100
192
+
193
+ Added require 'ipaccess' to ip_access_list.rb and ip_access_set.rb.
194
+
195
+ commit 76387e74dcff6de470a302f980805376bd0296d2
196
+ Author: Paweł Wilk <siefca@gnu.org>
197
+ Date: Sat Oct 31 22:11:05 2009 +0100
198
+
199
+ Fixed exception raising when nil is given to IPAccess.to_cidrs.
200
+
201
+ commit 9b3b7baf0b6876aa2f1af97474debdcf717c21f4
202
+ Author: Paweł Wilk <siefca@gnu.org>
203
+ Date: Sat Oct 31 22:10:32 2009 +0100
204
+
205
+ Added some tests for IPAccess.to_cidrs.
206
+
207
+ commit 1324c52a10327d4c18ee05c453ae3e3e3d119334
208
+ Author: Paweł Wilk <siefca@gnu.org>
209
+ Date: Sat Oct 31 21:47:40 2009 +0100
210
+
211
+ IPAccess::List.to_cidrs renamed to IPAccess.to_cidrs.
212
+
213
+ commit 3fd5392ca7adda3dd0aae1807d5633ff8416ef66
214
+ Author: Paweł Wilk <siefca@gnu.org>
215
+ Date: Sat Oct 31 21:28:24 2009 +0100
216
+
217
+ Tested getaddress calls against known error with getaddresses and fixed IPAccess::List#to_cidrs.
218
+
219
+ commit 6529a495de45432f06dbf7732e4ba448dea113a5
220
+ Author: Paweł Wilk <siefca@gnu.org>
221
+ Date: Wed Oct 28 14:47:40 2009 +0100
222
+
223
+ Serious fixes and documentation updates regarding @opened_on_deny flag and args processing.
224
+
225
+ commit 12f967416a0b845c1436aa00ac4318f2eef30ec4
226
+ Author: Paweł Wilk <siefca@gnu.org>
227
+ Date: Wed Oct 28 01:04:00 2009 +0100
228
+
229
+ Fixes and documentation updates in patching routines.
230
+
231
+ commit 271050eb0b22ae973384eeae417e4748d0cd08b5
232
+ Author: Paweł Wilk <siefca@gnu.org>
233
+ Date: Tue Oct 27 22:09:28 2009 +0100
234
+
235
+ Setting close_on_deny flag should be obtained from arguments before any other variables.
236
+
237
+ commit 8ad4d6bb45a70ecc0a62dce0d1279d983ad9db9c
238
+ Author: Paweł Wilk <siefca@gnu.org>
239
+ Date: Tue Oct 27 22:05:26 2009 +0100
240
+
241
+ High-level patches for networking objects adapted to new design.
242
+
243
+ - IPAccess::Patches::ACL#try_arm_and_check_socket now sets the originator in exceptions,
244
+ - IPAccess::Patches::ACL#__ipa_singleton_hook method is now a prototype for all singleton hooks,
245
+ - added setting @close_on_deny to all initializers and class' 'new' methods,
246
+ - acl_recheck simplified in all cases (now it just calls try_arm_and_check_socket),
247
+ - added terminate methods to all patches.
248
+
249
+ commit b245d0cd9376a519542157a74b368090e6ac869a
250
+ Author: Paweł Wilk <siefca@gnu.org>
251
+ Date: Tue Oct 13 09:07:32 2009 +0200
252
+
253
+ Documentation update.
254
+
255
+ commit 2af870c3aa4a5ed4f6cccd3ba28025637a5a8969
256
+ Author: Paweł Wilk <siefca@gnu.org>
257
+ Date: Tue Oct 13 01:07:54 2009 +0200
258
+
259
+ Important documentation update for IPAccess::List and serious fixes.
260
+
261
+ - Described originator fetching for access checking methods,
262
+ - renamed IPAccess::List.obj_to_cidr to IPAccess::List.to_cidrs,
263
+ - fixed arguments checking for symbolic flags in many places
264
+ - it seems that using delete is not safe since some objects don't
265
+ like to be compared with symbols.
266
+
267
+ commit 97391bc782af17e2b49df3779d07d0fae87c467f
268
+ Author: Paweł Wilk <siefca@gnu.org>
269
+ Date: Mon Oct 12 13:09:42 2009 +0200
270
+
271
+ Image with general view of classes changed.
272
+
273
+ commit d0a319f2eeb5d085d772e30cb616fa75bbdb61db
274
+ Author: Paweł Wilk <siefca@gnu.org>
275
+ Date: Mon Oct 12 12:48:41 2009 +0200
276
+
277
+ Documentation updated for IPAccess::Set, added some diagrams and a table of states for methods.
278
+
279
+ commit 1903ba4ba6ca3527908e9e95dae9f2ab2b4eb7b3
280
+ Author: Paweł Wilk <siefca@gnu.org>
281
+ Date: Mon Oct 12 01:35:30 2009 +0200
282
+
283
+ Access checking methods modified for better handling of originator.
284
+
285
+ commit a06e1269de366b66944cd145c7b6a5bd3914355d
286
+ Author: Paweł Wilk <siefca@gnu.org>
287
+ Date: Sun Oct 11 02:02:47 2009 +0200
288
+
289
+ Added simple examples about fetching informations from exception.
290
+
291
+ commit bfa96feae6aaa9da61466bfbc608f92712318331
292
+ Author: Paweł Wilk <siefca@gnu.org>
293
+ Date: Sun Oct 11 02:02:09 2009 +0200
294
+
295
+ IPAccess::Patches for sockets adjusted for new methods from IPAccess::Set.
296
+
297
+ - Invocations of access checking method now includes second argument which is the original object
298
+ that should be transported along with an exception object as the originator attribute.
299
+
300
+ commit 286b2de126f1794373fca575b995484b811f29cd
301
+ Author: Paweł Wilk <siefca@gnu.org>
302
+ Date: Sun Oct 11 01:59:20 2009 +0200
303
+
304
+ IPAccess::Patches::ACL names' change.
305
+
306
+ - close_connection method is now called terminate,
307
+ - try_close_connection method is now called try_terminate,
308
+ - try_close_subsocket method is now called try_terminate_subsocket.
309
+
310
+ commit ed55a76a881cdd2c8f26e998deb0e36edd291f36
311
+ Author: Paweł Wilk <siefca@gnu.org>
312
+ Date: Sun Oct 11 01:55:56 2009 +0200
313
+
314
+ IPAccess::Set seriously modified. Passing information about original object is now possible.
315
+
316
+ - added method setup_originator which takes NetAddr::CIDR and other object:
317
+ - if other object is not nil it returns it and tries to set cidr.tag[:Originator]
318
+ when the last one is empty;
319
+ - if other object is nil it tries to fetch it from cidr.tag[:Originator],
320
+ - scream! now takes address and rule separately instead of hashed pair,
321
+ - if block in checking methods evaluate to true the exception is not raised,
322
+ - checking methods use setup_originator to establish original object for tested IP,
323
+ - checking methods are passing original object to block and to scream! method,
324
+ - specialized checking methods are now protected instead of private,
325
+ - easy to use check method now takes optional object as a first argument,
326
+ - checking methods now take optional object as a last argument,
327
+ - the optional object mentioned above will be used to set up originator,
328
+ - added some documentation.
329
+
330
+ commit 479605c5148916747bbc3276fe49b82f6a7866fe
331
+ Author: Paweł Wilk <siefca@gnu.org>
332
+ Date: Sun Oct 11 01:47:52 2009 +0200
333
+
334
+ IPAccess::List seriously changed.
335
+
336
+ - obj_to_cidr now takes optional argument :include_origins which causes that reference
337
+ to original objects is stored within NetAddr::CIDR.tag[:Originator],
338
+ - obj_to_cidr now handles hostname/IP-mask format.
339
+
340
+ commit a9253b6bab6087dccc0eff133efbfac0a3280c29
341
+ Author: Paweł Wilk <siefca@gnu.org>
342
+ Date: Sat Oct 10 00:22:10 2009 +0200
343
+
344
+ Patching methods seriously modified.
345
+ It's now possible to use exception to fully handle denied access.
346
+
347
+ - Added IPAccess::Set::Global#to_s for better printing and inspection,
348
+ - added accessor close_on_deny:
349
+ - indicates if network object should be left opened if IPAccessDenied exception occurs,
350
+ - uses @close_on_deny added to each patched network class,
351
+ - added open_on_deny accessor which has opposite meaning then opened_on_deny,
352
+ - __ipa_singleton_hook moved to ipaccess/patches/generic.rb because may be shared,
353
+ - patched objects' constructors and singletons' initializers now take optional
354
+ argument called :opened_on_deny which tells underlying access checking methods
355
+ to not close connection-oriented objects,
356
+ - IPAccess.arm also takes optional :opened_on_deny and passes it to singleton's initializers,
357
+ - added methods close_connection and try_close_connection for uniform way of closing connections,
358
+ - try_close_connection will call close_connection if @close_on_deny evaluates to true,
359
+ - added try_close_subsocket which does the same but with passed socket,
360
+ - all patched sockets now use blocks to terminate connections (call try_close_connection),
361
+ - added example of using new flag and dealing with exceptions to display errors before
362
+ connection is terminated.
363
+
364
+ commit 7db6ab5ce2604e7edf7d540cb785659be15f0c4c
365
+ Author: Paweł Wilk <siefca@gnu.org>
366
+ Date: Sat Oct 10 00:03:51 2009 +0200
367
+
368
+ IPAccess::Set seriously modified.
369
+
370
+ - scream! now takes argument obj, which is passed as @originator in raised IPAccessDenied,
371
+ - access checking methods now take a block and argument obj,
372
+ - if block evaluate to true then exception is not raised;
373
+ - block takes:
374
+ - IP address that matched (CIDR),
375
+ - rule that IP matched to (CIDR),
376
+ - used access list (IPAccess::List),
377
+ - tested object (depends on checking method),
378
+ - additional object that had been passed to checking method;
379
+ - scream! that raises exception is called with:
380
+ - hash of CIDR objects (:IP and :Rule),
381
+ - exception class that should be used,
382
+ - additional object that had been passed to checking method.
383
+
384
+ commit de6972bb7ffe4c5afa2a240fb3f2ada2351e5713
385
+ Author: Paweł Wilk <siefca@gnu.org>
386
+ Date: Fri Oct 9 23:45:44 2009 +0200
387
+
388
+ IPAccessDenied modified.
389
+
390
+ - The class now bases on SecurityError since it's the kind of Exception,
391
+ - added @originator accessor,
392
+ - @access_list now known as @acl (it's access set),
393
+ - added @peer_ip accessor,
394
+ - fixed message (removed unwanted space),
395
+ - added method to_s for better inspection and printing.
396
+
397
+ commit 2f991bbfab29438a0c7a929e09bfe953765bcde7
398
+ Author: Paweł Wilk <siefca@gnu.org>
399
+ Date: Fri Oct 9 23:42:00 2009 +0200
400
+
401
+ Documentation for IPAccess module updated.
402
+
403
+ commit 2d170e872df711ceae7fa089055b166438405ca8
404
+ Author: Paweł Wilk <siefca@gnu.org>
405
+ Date: Fri Oct 9 23:40:29 2009 +0200
406
+
407
+ Relations diagram updated.
408
+
409
+ commit 663e4ce27d7ad87d24de81e8a3c4f37fad28e681
410
+ Author: Paweł Wilk <siefca@gnu.org>
411
+ Date: Thu Oct 8 12:57:10 2009 +0200
412
+
413
+ Added block passing wrappers for initializers of socket handling patches.
414
+
415
+ commit 906628660d63392cd0baf39e3a70a03cf49a9db4
416
+ Author: Paweł Wilk <siefca@gnu.org>
417
+ Date: Thu Oct 8 12:56:38 2009 +0200
418
+
419
+ Indentation fixed in comments.
420
+
421
+ commit 9788199bbf9b00d5d101a80d903144002e7284d8
422
+ Author: Paweł Wilk <siefca@gnu.org>
423
+ Date: Thu Oct 8 10:26:22 2009 +0200
424
+
425
+ Documentation updated.
426
+
427
+ - Added IPAccess module description,
428
+ - some examples fixed.
429
+
430
+ commit 9882f395cca5ed63b239d851c9ce4c5eb31291f5
431
+ Author: Paweł Wilk <siefca@gnu.org>
432
+ Date: Thu Oct 8 00:37:43 2009 +0200
433
+
434
+ Namespace related fixes and documentation updates.
435
+
436
+ - Added logo and some diagrams to the documentation,
437
+ - documentation readjusted,
438
+ - some method and attributes names fixed according to new namespaces,
439
+ - added FAQ do docs subdirectory.
440
+
441
+ commit d1477b251addfb445b95b407cb1271848d31072b
442
+ Author: Paweł Wilk <siefca@gnu.org>
443
+ Date: Wed Oct 7 18:09:37 2009 +0200
444
+
445
+ BIG CHANGE: new namespaces.
446
+
447
+ - IPAccess is now a module, not a class,
448
+ - source file ipaccess/ip_access is now ipaccess/ip_access_set since it contains IPAccess::Set,
449
+ - IPAccess::Set is a class that replaces previous IPAccess class,
450
+ - there is new singleton class called IPAccess::Set::GlobalClass, which bases on IPAccess::Set,
451
+ - IPAccess::Global constant is now IPAccess::Set::Global,
452
+ - IPAccess::Set::Global is now kind of IPAccess::Set::GlobalClass,
453
+ - IPAccess::List replaces IPAccessList class,
454
+ - documentation updated and fixed.
455
+
456
+ commit 80b4560304faddcb3ccc65b72aad5879c3d09ce1
457
+ Author: Paweł Wilk <siefca@gnu.org>
458
+ Date: Tue Oct 6 16:18:08 2009 +0200
459
+
460
+ Added documentation for IPAccess::Net::SMTP.
461
+
462
+ commit 51550650c5d1b480985d106586e179f7ae8f48cb
463
+ Author: Paweł Wilk <siefca@gnu.org>
464
+ Date: Tue Oct 6 16:17:37 2009 +0200
465
+
466
+ IPAccess::Patches::Net::SMTP#do_start made private.
467
+
468
+ commit 5cd773353ad77020724b03ce2c19d581a549e331
469
+ Author: Paweł Wilk <siefca@gnu.org>
470
+ Date: Tue Oct 6 13:43:46 2009 +0200
471
+
472
+ Fixes in the inline documentation.
473
+
474
+ commit 1446fa415fcf8702c57e6ba3ac80fcc1133cf515
475
+ Author: Paweł Wilk <siefca@gnu.org>
476
+ Date: Tue Oct 6 13:43:21 2009 +0200
477
+
478
+ IPAccess#show method improved; doesn't display empty lists.
479
+
480
+ commit e750f66d77c86f89ebf52d070d348dd0caf28746
481
+ Author: Paweł Wilk <siefca@gnu.org>
482
+ Date: Tue Oct 6 13:42:10 2009 +0200
483
+
484
+ The IPAccessList#show method now doesn't print "IPv4 Tree" header if none rules are on a list.
485
+
486
+ commit 8927d0e4474d4faa2538b5c05aab748d2874165e
487
+ Author: Paweł Wilk <siefca@gnu.org>
488
+ Date: Tue Oct 6 13:40:56 2009 +0200
489
+
490
+ Added example of arming TCPSocket.
491
+
492
+ commit 2a3166e669f383b5bd140ea847047cf7e40bae9a
493
+ Author: Paweł Wilk <siefca@gnu.org>
494
+ Date: Tue Oct 6 13:40:37 2009 +0200
495
+
496
+ Important fixes in whitelist, blacklist, unwhitelist and unclacklist methods of IPAccess::Patches.
497
+
498
+ commit 78cb0b2e9d5ee626f053c417ddcd7bb86e03d298
499
+ Author: Paweł Wilk <siefca@gnu.org>
500
+ Date: Tue Oct 6 12:39:05 2009 +0200
501
+
502
+ Documentation updated for IPAccess::Net::FTP, IPAccess::Net::Telnet, IPAccess::Net::HTTP, sockets.
503
+
504
+ commit 466e01f867d2d9e01ed933ffd629952516f0eaf3
505
+ Author: Paweł Wilk <siefca@gnu.org>
506
+ Date: Tue Oct 6 01:59:51 2009 +0200
507
+
508
+ Another typo fixed in docs.
509
+
510
+ commit e0f0e28901f6752b3a0264a1e3317fdc685922dc
511
+ Author: Paweł Wilk <siefca@gnu.org>
512
+ Date: Tue Oct 6 01:58:44 2009 +0200
513
+
514
+ Inline documentation typos fixed.
515
+
516
+ commit af64164c423b060ea91fe845703fb77a2aa619d6
517
+ Author: Paweł Wilk <siefca@gnu.org>
518
+ Date: Tue Oct 6 01:54:59 2009 +0200
519
+
520
+ New model of rules management: direct instance methods for patched classes:
521
+
522
+ - blacklist,
523
+ - whitelist,
524
+ - unblacklist,
525
+ - unwhitelist.
526
+
527
+ commit b292544a0f0c7d426e770f19932da3f2a0742cd7
528
+ Author: Paweł Wilk <siefca@gnu.org>
529
+ Date: Mon Oct 5 11:59:50 2009 +0200
530
+
531
+ New IPAccessList methods for easy rules administration.
532
+
533
+ - Added IPAccessList.unwhite for removing from whitelist,
534
+ - added IPAccessList.unblack for removing from black list,
535
+ - fixed inline documentation.
536
+
537
+ commit e51ad244af3d05b27ccc588cd297322935dc1dba
538
+ Author: Paweł Wilk <siefca@gnu.org>
539
+ Date: Mon Oct 5 11:58:02 2009 +0200
540
+
541
+ Fixed resolver issue in IPAccessList.
542
+
543
+ When there was no connection the Resolv.getaddress class method responded with NoMethodError instead of Resolv::ResolvError in Ruby 1.9.1.
544
+
545
+ commit 3bc63aeb76d6b3cbaadfe415fa58ac70a3a41fca
546
+ Author: Paweł Wilk <siefca@gnu.org>
547
+ Date: Mon Oct 5 01:06:21 2009 +0200
548
+
549
+ Method IPAccess::Net::FTP::set_socket added.
550
+
551
+ commit 7c4cce902f6fc4d6da74acc50c5e694544dbccd2
552
+ Author: Paweł Wilk <siefca@gnu.org>
553
+ Date: Mon Oct 5 00:47:43 2009 +0200
554
+
555
+ Documentation updated; added IPAccess::Net::Telnet docs.
556
+
557
+ commit 47e39fcffd001fbc4bcf51267815dccc62cbc1a4
558
+ Author: Paweł Wilk <siefca@gnu.org>
559
+ Date: Sun Oct 4 13:54:53 2009 +0200
560
+
561
+ IPAccess::Net::HTTP::on_connect method made private.
562
+
563
+ commit 92b4ad0af56b364b08f85936668abb8b293943b3
564
+ Author: Paweł Wilk <siefca@gnu.org>
565
+ Date: Sun Oct 4 13:54:19 2009 +0200
566
+
567
+ Serious documentation update and fixes.
568
+
569
+ commit 155af9054ec081206090f9be76e556df847605e3
570
+ Author: Paweł Wilk <siefca@gnu.org>
571
+ Date: Sun Oct 4 13:53:03 2009 +0200
572
+
573
+ Switched to Hoe 2.3.
574
+
575
+ commit f6632a634767a44de3dfb775c6b413fc2f401018
576
+ Author: Paweł Wilk <siefca@gnu.org>
577
+ Date: Sat Oct 3 16:59:44 2009 +0200
578
+
579
+ Added new files to Manifest.
580
+
581
+ commit 6d2367089c6236a84fd718ca6f310288d22c6737
582
+ Author: Paweł Wilk <siefca@gnu.org>
583
+ Date: Sat Oct 3 16:26:49 2009 +0200
584
+
585
+ TODO updated.
586
+
587
+ commit a7fbe3cd1ad46e1e2072c3f3618ce2dbd1ccc6c3
588
+ Author: Paweł Wilk <siefca@gnu.org>
589
+ Date: Sat Oct 3 16:26:36 2009 +0200
590
+
591
+ Added ability of IPAccess::TCPServer to get IPAccess object during initialization.
592
+
593
+ commit b3a6cbbcc898f190df5e4767cb586ae6c82cb0ec
594
+ Author: Paweł Wilk <siefca@gnu.org>
595
+ Date: Sat Oct 3 16:25:43 2009 +0200
596
+
597
+ Added IPAccess::TCPServer examples.
598
+
599
+ commit 817e00235d09514d7b9d4d82b171dd1be74428be
600
+ Author: Paweł Wilk <siefca@gnu.org>
601
+ Date: Sat Oct 3 16:25:22 2009 +0200
602
+
603
+ Inline documentation updated in IPAccess and IPAccessList.
604
+
605
+ commit 8dafe52c7412af43c17e311059ed8105fb3ca89b
606
+ Author: Paweł Wilk <siefca@gnu.org>
607
+ Date: Sat Oct 3 15:42:51 2009 +0200
608
+
609
+ Added IPAccess::Patches::Net::SMTP patching routines.
610
+
611
+ commit a98e87df806581237444de0c2bbec4f277bbfa2d
612
+ Author: Paweł Wilk <siefca@gnu.org>
613
+ Date: Sat Oct 3 15:15:10 2009 +0200
614
+
615
+ Important typo fixes for IPAccess::Patches::Net::POP3.
616
+
617
+ commit 3062c50a43daa529096a1eb905ed677fd51ae0bc
618
+ Author: Paweł Wilk <siefca@gnu.org>
619
+ Date: Sat Oct 3 13:44:58 2009 +0200
620
+
621
+ Added files required for easy inclusion of HTTPS-enabled Net::HTTP.
622
+
623
+ commit 156b09c96f81c3944f0d5a4ee539e61129b7fff9
624
+ Author: Paweł Wilk <siefca@gnu.org>
625
+ Date: Sat Oct 3 13:37:03 2009 +0200
626
+
627
+ Added IPAccess::Patches::Net::POP3 patching routines.
628
+
629
+ commit c17c5fa1d67e18b73c0317357b1f139be65e087b
630
+ Author: Paweł Wilk <siefca@gnu.org>
631
+ Date: Sat Oct 3 13:36:30 2009 +0200
632
+
633
+ IPAccess::Patches::Net::HTTP::acl_recheck simplified.
634
+
635
+ commit 9bbe64593cbdca279e8f9054d5ef33f9967dceec
636
+ Author: Paweł Wilk <siefca@gnu.org>
637
+ Date: Sat Oct 3 13:35:52 2009 +0200
638
+
639
+ IPAccess::Patches::ACL::real_socket simplified.
640
+
641
+ The method now relies on duck typing instead of checking which kind is object of.
642
+
643
+ commit 4483054334c9ec4c2f83bbcfb413e97ff7b1d901
644
+ Author: Paweł Wilk <siefca@gnu.org>
645
+ Date: Sat Oct 3 13:34:23 2009 +0200
646
+
647
+ Fixed IPAccess::Patches::Net::HTTP::on_connect().
648
+
649
+ The method now correctly calls its original version.
650
+
651
+ commit ac8a7369054b51d2e4efe64ba8e3e8d6c211bf38
652
+ Author: Paweł Wilk <siefca@gnu.org>
653
+ Date: Sat Oct 3 13:33:17 2009 +0200
654
+
655
+ Cosmetics in comments at IPAccess::Patches.
656
+
657
+ commit 2e10d9afd5321307f08fd81fbf151e6d66a8c3b8
658
+ Author: Paweł Wilk <siefca@gnu.org>
659
+ Date: Sat Oct 3 13:32:13 2009 +0200
660
+
661
+ Inline documentation updated for IPAccessList.obj_to_cidr().
662
+
663
+ commit 2d7d6441485c76be01f3c29fad460c21f20670f2
664
+ Author: Paweł Wilk <siefca@gnu.org>
665
+ Date: Sat Oct 3 02:18:59 2009 +0200
666
+
667
+ Added IPAccess::Patches::ACL helper methods and modified patching routines to use it. Less messy.
668
+
669
+ - Added real_socket() to obtain real socket object from SSL-ed connections,
670
+ - added try_arm_socket() which tries to arm socket and assign given access set to it,
671
+ - added try_arm_and_check_socket() which replaces messy pieces of code,
672
+ - added try_check_out_socket_acl() and try_check_in_socket_acl() which may be used in future,
673
+ - IPAccess::Patches::Net::HTTP now uses new socket helpers,
674
+ - IPAccess::Patches::Net::FTP now uses new socket helpers,
675
+ - IPAccess::Patches::Net::Telnet now uses new socket helpers,
676
+ - IPAccess::Patches::Net::IMAP now uses new socket helpers,
677
+ - there will be less ACL double-checks (for main object and used socket)
678
+ which happened before.
679
+
680
+ commit 7115b5f62b2cf337f1de0898043bafb3ce82d19f
681
+ Author: Paweł Wilk <siefca@gnu.org>
682
+ Date: Sat Oct 3 02:10:45 2009 +0200
683
+
684
+ Typo fixed in inline doc.
685
+
686
+ commit c5c6230131ce6bdeac87fa04c077c8bc59e1ba44
687
+ Author: Paweł Wilk <siefca@gnu.org>
688
+ Date: Sat Oct 3 00:04:21 2009 +0200
689
+
690
+ Added IPAccess::Patches::Net::IMAP that patches Net::IMAP.
691
+
692
+ commit be36c905d2f551fff588a03bece846a855005f12
693
+ Author: Paweł Wilk <siefca@gnu.org>
694
+ Date: Sat Oct 3 00:03:40 2009 +0200
695
+
696
+ Method Net::FTP::sendcmd is excluded from patching since we're not so paranoid.
697
+
698
+ commit 7c5623b29a340eed39de71019e53621d792464bb
699
+ Author: Paweł Wilk <siefca@gnu.org>
700
+ Date: Sat Oct 3 00:02:38 2009 +0200
701
+
702
+ Cosmetics at patches/netaddr.rb.
703
+
704
+ commit 6a6f3c9d106273740a7e76f5857e7d16ccab9492
705
+ Author: Paweł Wilk <siefca@gnu.org>
706
+ Date: Sat Oct 3 00:02:01 2009 +0200
707
+
708
+ Code for patching all sockets by calling IPAccess.arm(:sockets) is now loaded from file.
709
+
710
+ commit 7143ab0b145d9ae1d9f068cc1666182a506970ca
711
+ Author: Paweł Wilk <siefca@gnu.org>
712
+ Date: Tue Sep 29 23:56:59 2009 +0200
713
+
714
+ Cosmetics at IPAccess::Patches.
715
+
716
+ commit c1708e9bf79f8c715a4a9f7164f00d9c3247abd8
717
+ Author: Paweł Wilk <siefca@gnu.org>
718
+ Date: Tue Sep 29 23:52:22 2009 +0200
719
+
720
+ Added patching support for Net::FTP class.
721
+
722
+ commit bf42a8fa73260abe2fa208f28deb3494b192660c
723
+ Author: Paweł Wilk <siefca@gnu.org>
724
+ Date: Tue Sep 29 23:51:49 2009 +0200
725
+
726
+ Added SOCKSSocket patching support to IPAccess::Patches::Net::HTTP and IPAccess::Patches::Net::FTP.
727
+
728
+ commit e14e5980de70760a137987eadf492f633be8cc3c
729
+ Author: Paweł Wilk <siefca@gnu.org>
730
+ Date: Tue Sep 29 23:50:38 2009 +0200
731
+
732
+ Added massive sockets patching option to IPAccess.arm.
733
+
734
+ commit 39de90b80a5e02951c86e8e7a9978f9e7e558a4a
735
+ Author: Paweł Wilk <siefca@gnu.org>
736
+ Date: Tue Sep 29 21:48:42 2009 +0200
737
+
738
+ IPAccess::Patches::Net::HTTP.new() changed (overloaded again, not overwritten).
739
+
740
+ commit e2d4faf57924329e2073334c40faa4fe9fb3434f
741
+ Author: Paweł Wilk <siefca@gnu.org>
742
+ Date: Tue Sep 29 15:42:05 2009 +0200
743
+
744
+ Added some ideas.
745
+
746
+ commit 623c2c79752697848dbf910fd3a70c0187847c01
747
+ Author: Paweł Wilk <siefca@gnu.org>
748
+ Date: Tue Sep 29 15:41:48 2009 +0200
749
+
750
+ Serious changes in IPAccess::Patches::Net::HTTP.
751
+
752
+ - HTTP.new() variant is now overwritten not overloaded and may take acl argument,
753
+ - other class methods variants have been rewritten using define_method and wrappers for Ruby 1.8,
754
+ - initializer now sets internal ACL and takes additional, optional argument (access list),
755
+ - code reorganized.
756
+
757
+ commit ab315129501006c7fbd166c0ddf3872fd0c20962
758
+ Author: Paweł Wilk <siefca@gnu.org>
759
+ Date: Tue Sep 29 15:34:32 2009 +0200
760
+
761
+ Cosmetics in IPAccess::Patches.
762
+
763
+ - IPAccess::Patches::Net::Telnet::acl_recheck now uses IPAccess.arm to patch internal socket,
764
+ - IPAccess::Patches::Net::HTTP::acl_recheck now uses IPAccess.arm to patch internal socket.
765
+
766
+ commit 5ac3946255ecc3dfb581c0a4fc22b72474445f27
767
+ Author: Paweł Wilk <siefca@gnu.org>
768
+ Date: Tue Sep 29 15:26:34 2009 +0200
769
+
770
+ IPAccess.arm now returns a patched object.
771
+
772
+ commit 4746c2b63afb6d0eff7049f2fa06e4be8ff2e28b
773
+ Author: Paweł Wilk <siefca@gnu.org>
774
+ Date: Tue Sep 29 15:25:40 2009 +0200
775
+
776
+ Serious changes in internal ACL naming conventions.
777
+
778
+ - Added IPAccess::Patches::ACL::real_acl which returns IPAccess::Global when ACL responds to nil?
779
+ - improved IPAccess::Patches::ACL::acl= setter; it sets @acl to IPAccess::Global when ACL is nil,
780
+ - changed methods of networking objects' patches accordingly.
781
+
782
+ commit ffa633a2b41d1b3a3f034316279bd30fda6b4147
783
+ Author: Paweł Wilk <siefca@gnu.org>
784
+ Date: Tue Sep 29 15:17:18 2009 +0200
785
+
786
+ Addedd IPAccess:show which calls show() for @input and @output access list.
787
+
788
+ commit 2ad6b13c39dc90ce264ee0e7d6ff98cae70ca4a1
789
+ Author: Paweł Wilk <siefca@gnu.org>
790
+ Date: Mon Sep 28 14:32:51 2009 +0200
791
+
792
+ Socket patching modules are now ready to patch singletons.
793
+
794
+ commit 3a32a86ab066cfe7f17a1c9700ef5f042918f8a9
795
+ Author: Paweł Wilk <siefca@gnu.org>
796
+ Date: Mon Sep 28 14:32:10 2009 +0200
797
+
798
+ Inline documentation updated in patching modules.
799
+
800
+ commit f6e027c593df323717f17e8760676eaeb6546e43
801
+ Author: Paweł Wilk <siefca@gnu.org>
802
+ Date: Mon Sep 28 14:31:24 2009 +0200
803
+
804
+ Added Usage section to README.
805
+
806
+ commit 1b4ab34182c048c6e1258d843630187cc13f8a9c
807
+ Author: Paweł Wilk <siefca@gnu.org>
808
+ Date: Mon Sep 28 00:09:49 2009 +0200
809
+
810
+ Serious hacks in IPAccess::Net::HTTP module.
811
+
812
+ - It now supports patching singletons (added __ipa_singleton_hook),
813
+ - doing rechecks is also supported (acl_recheck),
814
+ - method conn_address now returns IP address (serious fix),
815
+ - method on_connect was overloaded and now calls acl_recheck,
816
+ - TCPSocket object is patched when possible to handle strange situations when IP changes
817
+ or socket is patched during execution of code block inside of start().
818
+
819
+ commit a9a88453c31c7e79e06b32c323b24e34b829c67d
820
+ Author: Paweł Wilk <siefca@gnu.org>
821
+ Date: Sun Sep 27 21:56:41 2009 +0200
822
+
823
+ GlobalSet.instance changed to IPAccess::GlobalSet.instance in socket patching module.
824
+
825
+ commit 4c954d3b53fb28b6d998594a1790b80fcdb16fd0
826
+ Author: Paweł Wilk <siefca@gnu.org>
827
+ Date: Sun Sep 27 21:55:02 2009 +0200
828
+
829
+ Net::Telnet objects can now be armed individually.
830
+
831
+ Besides: IP is rechecked against ACL each time @acl is updated and socket shares ACL.
832
+
833
+ commit 15226f4594dff7185059dedaf57d98c67cabf47c
834
+ Author: Paweł Wilk <siefca@gnu.org>
835
+ Date: Sun Sep 27 21:51:49 2009 +0200
836
+
837
+ Added and fixed some examples.
838
+
839
+ commit ea34ec0b7d92c82fd7c4101a0add4ac399c6cfae
840
+ Author: Paweł Wilk <siefca@gnu.org>
841
+ Date: Sun Sep 27 21:51:18 2009 +0200
842
+
843
+ Serious changes in generic patching modules.
844
+
845
+ - IPAccess::Patches::GlobalSet renamed to IPAccess::GlobalSet
846
+ - IPAccess::GlobalSet now emulates IPAccess::Global when compared with it or when inspected
847
+ - added method IPAccess.global? and IPAccess::Global.global? which test if ACL is the global one,
848
+ - added documentation example containing arming of a single object,
849
+ - IPAccess.arm takes now the acl argument passed to __ipa_singleton_hook when arming single object.
850
+
851
+ commit 138ab2c4f86079818e853af0e7cdceba20aab825
852
+ Author: Paweł Wilk <siefca@gnu.org>
853
+ Date: Sun Sep 27 18:18:05 2009 +0200
854
+
855
+ IPAccess.arm class method is now able to patch socket objects and add proper singleton methods.
856
+
857
+ Further modifications are required in certain mixins.
858
+
859
+ commit 7c5930d60c82ed3cb0f074fbaf7c53d9306d2ec4
860
+ Author: Paweł Wilk <siefca@gnu.org>
861
+ Date: Sun Sep 27 14:46:35 2009 +0200
862
+
863
+ IPAccess::Net::Telnet instances are now sharing access set with its socket.
864
+
865
+ Initializer of IPAccess::Net::Telnet now mixes IPAccess::Patches::TCPSocket into the socket's singleton (TCPSocket) due to share the access set.
866
+
867
+ commit a429a7df5177f4a7ec3c01f0dcd7ac816225b5da
868
+ Author: Paweł Wilk <siefca@gnu.org>
869
+ Date: Sun Sep 27 14:39:47 2009 +0200
870
+
871
+ Important fix in IPAccess::Patches::ACL::acl=()
872
+
873
+ When initializing new access set using IPAccess::Global constant the value of internal @acl member should be set to GlobalSet.instance (sweet variant of nil singleton) instead of global access set's reference. It's because we don't wan't to reveal global access set to the outside world to make it immune from any modification by objects that are using it. The only way to set the global ACL should be by using IPAccess::Global constant.
874
+
875
+ commit 096d6cca83198b24479cc99d009ce1979c13b37c
876
+ Author: Paweł Wilk <siefca@gnu.org>
877
+ Date: Sun Sep 27 13:48:11 2009 +0200
878
+
879
+ Typo fixed.
880
+
881
+ commit 47b6c074c43ed4ad2a12f10f0489f5035cb12773
882
+ Author: Paweł Wilk <siefca@gnu.org>
883
+ Date: Sun Sep 27 13:31:04 2009 +0200
884
+
885
+ IPAccess::Net::Telnet now uses IPAccess::check_out_socket to recheck remote peer's IP.
886
+
887
+ commit 345a66b3cb57563b6943551fb944a33e34e735b8
888
+ Author: Paweł Wilk <siefca@gnu.org>
889
+ Date: Sun Sep 27 13:29:38 2009 +0200
890
+
891
+ Added automatic ACL rechecking when setting ACL for supported networking object.
892
+
893
+ commit 28a1f9536b15ddd74ffd8c2007d0bfb112366cb4
894
+ Author: Paweł Wilk <siefca@gnu.org>
895
+ Date: Sun Sep 27 13:28:33 2009 +0200
896
+
897
+ Added IOError catching to IPAccess::check_socket to avoid errors on not connected sockets
898
+
899
+ commit c044c81433e382d6bad556208277475729064e4f
900
+ Author: Paweł Wilk <siefca@gnu.org>
901
+ Date: Sun Sep 27 13:20:47 2009 +0200
902
+
903
+ Introducing acl_recheck method, which may be used on established TCP/IP sessions to validate them against (changed) access set.
904
+
905
+ commit 15a0023d7de5631cada4b56e1bd8cc489c35b0a9
906
+ Author: Paweł Wilk <siefca@gnu.org>
907
+ Date: Sun Sep 27 13:19:56 2009 +0200
908
+
909
+ Added IPAccess::Net::Telnet.
910
+
911
+ commit 88321989ca399be3d96e18949e88b9d296dba405
912
+ Author: Paweł Wilk <siefca@gnu.org>
913
+ Date: Sun Sep 27 13:19:17 2009 +0200
914
+
915
+ Sockets' wrappers are now using IPAccess.valid_acl? to check whether access set had been passed as last argument.
916
+
917
+ commit 8e91319a33a57bf72c01e3f4b78693ff6df60b90
918
+ Author: Paweł Wilk <siefca@gnu.org>
919
+ Date: Sun Sep 27 13:17:48 2009 +0200
920
+
921
+ Fixed typos in IPAccess::Net::HTTP variant.
922
+
923
+ commit d18244179034f16b14179ef7924640d89b5b9c16
924
+ Author: Paweł Wilk <siefca@gnu.org>
925
+ Date: Sun Sep 27 13:17:07 2009 +0200
926
+
927
+ Improved catching socket objects in IPAccessList.obj_to_cidr.
928
+
929
+ commit 1564bc08ce578e44a7e3d5e29c6d04f212aca29b
930
+ Author: Paweł Wilk <siefca@gnu.org>
931
+ Date: Sun Sep 27 13:13:45 2009 +0200
932
+
933
+ Example for Net::HTTP fixed.
934
+
935
+ commit e1ddbb62a19fdb9ea91b6af462b4a38e93524a9f
936
+ Author: Paweł Wilk <siefca@gnu.org>
937
+ Date: Sun Sep 27 13:12:45 2009 +0200
938
+
939
+ Added some ideas.
940
+
941
+ commit 61498857241c9c19424e8766c12e68cd8a0362b4
942
+ Author: Paweł Wilk <siefca@gnu.org>
943
+ Date: Fri Sep 25 21:52:46 2009 +0200
944
+
945
+ IPAccess::Net::HTTP is ready.
946
+
947
+ commit d09fa5aa90e28bce56e7607eb88962e82ff9ddaf
948
+ Author: Paweł Wilk <siefca@gnu.org>
949
+ Date: Fri Sep 25 00:36:56 2009 +0200
950
+
951
+ Major enhancements around IPAccess::Net::HTTP.
952
+
953
+ commit e936471687cd26e5075e90eb8e2ea286515faf4e
954
+ Author: Paweł Wilk <siefca@gnu.org>
955
+ Date: Thu Sep 24 20:45:47 2009 +0200
956
+
957
+ Minor documentation update.
958
+
959
+ commit af86931673d3d2ee9714469f28fe731c559e68b6
960
+ Author: Paweł Wilk <siefca@gnu.org>
961
+ Date: Tue Jun 9 19:42:40 2009 +0200
962
+
963
+ Cosmetics in Rakefile and IPAccessDenied.
964
+
965
+ commit 36325de667529c42aea3ed43aac6a355f2450414
966
+ Author: Paweł Wilk <siefca@gnu.org>
967
+ Date: Tue Jun 9 12:51:06 2009 +0200
968
+
969
+ Small changes in examples.
970
+
971
+ commit 48e60e1f3dcf6976387efd30becfd8d644b2af23
972
+ Author: Paweł Wilk <siefca@gnu.org>
973
+ Date: Mon Jun 8 16:34:51 2009 +0200
974
+
975
+ Working on Net::HTTP variant and patch. IPAccess.arm is now more generic.
976
+
977
+ - Added patching methods for Net::HTTP in patches/net_http.rb,
978
+ - added documentation scaffold,
979
+ - moved IPAccess.arm method to patches/generic.rb and made it more generic,
980
+ - fixed minor errors in patches/sockets.rb,
981
+ - IPAccess::Patches::IPSocketAccess module renamed to IPAccess::Patches::ACL since it's generic,
982
+ - added net/http.rb containing subclass IPAccess::Net::HTTP.
983
+
984
+ commit 39c6fd551739f7b924f662018caf1f700347148e
985
+ Author: Paweł Wilk <siefca@gnu.org>
986
+ Date: Sun Jun 7 21:24:03 2009 +0200
987
+
988
+ Added Net::HTTP scaffold.
989
+
990
+ commit 991704cfea36b2c8b80b4ff6bdad725466ac03fe
991
+ Author: Paweł Wilk <siefca@gnu.org>
992
+ Date: Sun Jun 7 21:01:14 2009 +0200
993
+
994
+ Started working on version 1.0.1; codename: Mother in Law.
995
+
996
+ - Sockets subsystem separated from main code,
997
+ - fixed bug in IPAccess#check_fd (now returning file descriptor instead of temporary socket),
998
+ - created ipaccess/patches/generic.rb for generic patching operations,
999
+ - documentation updated.
1000
+
1001
+ commit 900f73d5f55bb86596b48377f9f2646a191e9286
1002
+ Author: Paweł Wilk <siefca@gnu.org>
1003
+ Date: Sun Jun 7 20:56:41 2009 +0200
1004
+
1005
+ Rakefile cleaned.
1006
+
1007
+ commit f30b77ea5e1a7b0784fb342e541cbff79ede31d1
1008
+ Author: Paweł Wilk <siefca@gnu.org>
1009
+ Date: Sun Jun 7 20:51:19 2009 +0200
1010
+
1011
+ Code reorganization: patching related stuff goes to patches subdirectory.
1012
+
1013
+ commit 4a8d53ec02319c6f3ccd0be4ba6db41fd139b7e0
1014
+ Author: Paweł Wilk <siefca@gnu.org>
1015
+ Date: Sun Jun 7 13:56:15 2009 +0200
1016
+
1017
+ Documentation updated, Manifest updated, added rsync_args to Rakefile.
1018
+
1019
+ commit 1c787e869606830c01f164b192a8dabd5ea9f7ca
1020
+ Author: Paweł Wilk <siefca@gnu.org>
1021
+ Date: Sun Jun 7 13:54:57 2009 +0200
1022
+
1023
+ Feature: developer may decide whether to use IPAccess version of sockets.
1024
+
1025
+ commit 4cc45bc54e1adb69ec328d9be092302009feb0fa
1026
+ Author: Paweł Wilk <siefca@gnu.org>
1027
+ Date: Sun Jun 7 13:52:31 2009 +0200
1028
+
1029
+ Fixed bug with improper results of IPAccess.obj_to_cidr when converting from IPAddrList.
1030
+
1031
+ commit 05c931b92322c22896c1eb7ddd52c5e975b5c067
1032
+ Author: Paweł Wilk <siefca@gnu.org>
1033
+ Date: Sun Jun 7 13:50:36 2009 +0200
1034
+
1035
+ Switched to Hoe's RSpec maintenance.
1036
+
1037
+ commit 77e43246c668502dbc9b767dee5fadff8d18ceff
1038
+ Author: Paweł Wilk <siefca@gnu.org>
1039
+ Date: Sat Jun 6 20:44:57 2009 +0200
1040
+
1041
+ Removed static gemspec.
1042
+
1043
+ commit 3eace633d4798febca40e90795d6476bdde06882
1044
+ Author: Paweł Wilk <siefca@gnu.org>
1045
+ Date: Sat Jun 6 20:43:27 2009 +0200
1046
+
1047
+ Switching to Hoe.
1048
+
1049
+ commit 76fcf2080297406b4ca20d012ec38900a896662c
1050
+ Author: Paweł Wilk <siefca@gnu.org>
1051
+ Date: Fri Jun 5 09:43:10 2009 +0200
1052
+
1053
+ Conditions around @acl fixed, removing from TODO.
1054
+
1055
+ commit 4204e752a6fe1d24985cbe1a35f22e8691c46b17
1056
+ Author: Paweł Wilk <siefca@gnu.org>
1057
+ Date: Fri Jun 5 09:40:22 2009 +0200
1058
+
1059
+ Documentation updated.
1060
+
1061
+ commit 60eb4089f88718f4040a8d497497ea9acd2f3b8f
1062
+ Author: Paweł Wilk <siefca@gnu.org>
1063
+ Date: Fri Jun 5 09:18:38 2009 +0200
1064
+
1065
+ Added example.
1066
+
1067
+ commit 25b408b0985836ed1bddff82a376f0dbc60b3bdd
1068
+ Author: Paweł Wilk <siefca@gnu.org>
1069
+ Date: Fri Jun 5 09:17:40 2009 +0200
1070
+
1071
+ Fixed @acl condition.
1072
+
1073
+ commit 92d612819f2e8cc2144916fd72e0e51ec1965cea
1074
+ Author: Paweł Wilk <siefca@gnu.org>
1075
+ Date: Fri Jun 5 09:17:29 2009 +0200
1076
+
1077
+ Added examples, fixed @acl condition.
1078
+
1079
+ commit 620530e187817bd2cefb5fba3357e82dd7bee5f0
1080
+ Author: Paweł Wilk <siefca@gnu.org>
1081
+ Date: Fri Jun 5 01:02:49 2009 +0200
1082
+
1083
+ Gemspec fixed.
1084
+
1085
+ commit 86b30f783e1b8c481e2861af0bd5aa5eae61ac4b
1086
+ Author: Paweł Wilk <siefca@gnu.org>
1087
+ Date: Fri Jun 5 00:29:06 2009 +0200
1088
+
1089
+ Added some rspec examples.
1090
+
1091
+ commit 8ace1a4bd6da308ce00d9523280567397f47dea1
1092
+ Author: Paweł Wilk <siefca@gnu.org>
1093
+ Date: Fri Jun 5 00:28:40 2009 +0200
1094
+
1095
+ Added README and WELCOME, updated gemspec.
1096
+
1097
+ commit 21532cad5162be6cd705e5534ef8bc76f2a32a62
1098
+ Author: Paweł Wilk <siefca@gnu.org>
1099
+ Date: Thu Jun 4 22:49:20 2009 +0200
1100
+
1101
+ Added singleton object that acts like nil to catch direct access to global set.
1102
+
1103
+ - Added class IPAccess::Patches::GlobalSet using singleton pattern,
1104
+ - added IPAccess::Patches::GlobalSet.instance instead of nil in @acl initializers,
1105
+ - the object will raise ArgumentError if any unknown method would be called,
1106
+ - the object will evaluate to false just like nil in || statements,
1107
+ - the object is used to deny direct accessing global access set from object's scope.
1108
+
1109
+ commit f74a7f1b4c6e062d51775a5b5dca0e75d697524c
1110
+ Author: Paweł Wilk <siefca@gnu.org>
1111
+ Date: Thu Jun 4 22:32:45 2009 +0200
1112
+
1113
+ Fixed issue with zone indexes in IPv6 addresses.
1114
+
1115
+ commit 0e02a5c220c2d418869e606e36f40b6fb8dec697
1116
+ Author: Paweł Wilk <siefca@gnu.org>
1117
+ Date: Thu Jun 4 17:19:56 2009 +0200
1118
+
1119
+ Documentation updated and corrected.
1120
+
1121
+ commit f3b4981c862891f42aaadb9ca497a377e07f93d9
1122
+ Author: Paweł Wilk <siefca@gnu.org>
1123
+ Date: Thu Jun 4 16:16:42 2009 +0200
1124
+
1125
+ Documentation headers updated, gemspec updated, documentation updated.
1126
+
1127
+ commit f109923cea9a943f0ef24263bbfcae0c14681294
1128
+ Author: Paweł Wilk <siefca@gnu.org>
1129
+ Date: Thu Jun 4 13:08:54 2009 +0200
1130
+
1131
+ Rakefile updated according to moved docs, reverted *args change.
1132
+
1133
+ commit 219796613faac5741ea7252da8dc90060b007734
1134
+ Author: Paweł Wilk <siefca@gnu.org>
1135
+ Date: Thu Jun 4 12:10:31 2009 +0200
1136
+
1137
+ Documentation moved do docs subdirectory.
1138
+
1139
+ commit 66582f07827acc429939768da78060b2c7cdbdef
1140
+ Author: Paweł Wilk <siefca@gnu.org>
1141
+ Date: Thu Jun 4 00:56:16 2009 +0200
1142
+
1143
+ Serious documentation changes (switched to Darkfish) and updates.
1144
+
1145
+ commit eb94683a4b9d1f18b7012a576e960574eacc5d97
1146
+ Author: Paweł Wilk <siefca@gnu.org>
1147
+ Date: Wed Jun 3 16:48:52 2009 +0200
1148
+
1149
+ IPAccessList#denied and familiar now return hash with :IP and :Rule, specs updated accordingly.
1150
+
1151
+ commit 2cf05b5e343087ac63fc01a075cf77da53518ef2
1152
+ Author: Paweł Wilk <siefca@gnu.org>
1153
+ Date: Wed Jun 3 16:06:54 2009 +0200
1154
+
1155
+ Working on Ruby 1.8 compatibility.
1156
+
1157
+ commit f8d3e61e0660704259a5e5ff5e129e2234d880c5
1158
+ Author: Paweł Wilk <siefca@gnu.org>
1159
+ Date: Wed Jun 3 13:21:41 2009 +0200
1160
+
1161
+ Reverted to non-debugging version of acl=.
1162
+
1163
+ commit 1e87ae3101bacf33020f49133e77e7edfe27afbd
1164
+ Author: Paweł Wilk <siefca@gnu.org>
1165
+ Date: Wed Jun 3 13:21:01 2009 +0200
1166
+
1167
+ Dependencies fixed, added IPAccessList.clear! instead of prune!, updated examples.
1168
+
1169
+ commit cf96a34d56d77ef1d155b93b34267a9b518f95d4
1170
+ Author: Paweł Wilk <siefca@gnu.org>
1171
+ Date: Wed Jun 3 12:20:49 2009 +0200
1172
+
1173
+ Added bidirectional mode for IPAccess, documentation updated.
1174
+
1175
+ commit 6f9f07f31eec457ea2600c762775e64def6a7fd9
1176
+ Author: Paweł Wilk <siefca@gnu.org>
1177
+ Date: Tue Jun 2 17:11:56 2009 +0200
1178
+
1179
+ Serious code reorganization and license change.
1180
+
1181
+ - License changed to double license: LGPL/Ruby License,
1182
+ - added Rake task for rdoc generation,
1183
+ - added TODO, README and LGPL-LICENSE documentation files,
1184
+ - added ip_access_patches.rb containing elegant method redefinitions for sockets' handling classes,
1185
+ - removed ip_socket.rb due to changed patching model,
1186
+ - added arm_sockets.rb for easy patching all sockets,
1187
+ - added sockets.rb containing ACL enabled variants of sockets' handling classes,
1188
+ - documentation updated.
1189
+
1190
+ commit e82498d7d45fd6aa98aee4183e0dca754dfec5b3
1191
+ Author: Paweł Wilk <siefca@gnu.org>
1192
+ Date: Mon Jun 1 17:41:49 2009 +0200
1193
+
1194
+ Added missing patches for sockets, fixed some typos in methods.
1195
+
1196
+ commit 1551f6ff80240da490a4e892514fe3dc6f28ae07
1197
+ Author: Paweł Wilk <siefca@gnu.org>
1198
+ Date: Mon Jun 1 14:53:34 2009 +0200
1199
+
1200
+ Patched more socket handling classes, added block calling.
1201
+
1202
+ - Patched: Socket, SOCKSSocket, UDPSocket,
1203
+ - added IPAccess#check_sockaddr,
1204
+ - added yield sections in access checking methods,
1205
+ - fixed variable and method names in IPAccess,
1206
+ - switched to analyzing sockaddr instead of socket when possible.
1207
+
1208
+ commit 2060383b97d3b3383567e149b6b0e9b5f805a654
1209
+ Author: Paweł Wilk <siefca@gnu.org>
1210
+ Date: Mon Jun 1 01:11:46 2009 +0200
1211
+
1212
+ Fixed obtaining IP addresses and access checking for Socket objects and file descriptors.
1213
+
1214
+ commit affdaf11a45e485b0d328b6998daa299226a6be2
1215
+ Author: Paweł Wilk <siefca@gnu.org>
1216
+ Date: Sun May 31 01:53:02 2009 +0200
1217
+
1218
+ Examples updated.
1219
+
1220
+ commit 339d7f143c8ef8a8be9621deabc6dfee5d678c35
1221
+ Author: Paweł Wilk <siefca@gnu.org>
1222
+ Date: Sun May 31 01:43:03 2009 +0200
1223
+
1224
+ Fixed IPAccess#check_fd, documentation updated.
1225
+
1226
+ commit b57c4bc239e286a295eb097eedd46598be01d180
1227
+ Author: Paweł Wilk <siefca@gnu.org>
1228
+ Date: Sun May 31 01:24:01 2009 +0200
1229
+
1230
+ Documentation corrected.
1231
+
1232
+ commit e32a6d8dbaed2ae22dd0b6164762b3340c0c4b1a
1233
+ Author: Paweł Wilk <siefca@gnu.org>
1234
+ Date: Sun May 31 01:14:22 2009 +0200
1235
+
1236
+ Documentation updated.
1237
+
1238
+ commit 50b649ec694684dd659a5e3d25f094939fbc9f69
1239
+ Author: Paweł Wilk <siefca@gnu.org>
1240
+ Date: Sat May 30 23:43:09 2009 +0200
1241
+
1242
+ Documentation updated, IP addresses and rules reporting fixed.
1243
+
1244
+ commit 731f2bafacc76e20b847c54092e42524fe1c14f6
1245
+ Author: Paweł Wilk <siefca@gnu.org>
1246
+ Date: Sat May 30 19:42:53 2009 +0200
1247
+
1248
+ Error reporting corrected.
1249
+
1250
+ commit f6f6103ae06fd4131c0a53e1de9f0ee96ded3f7f
1251
+ Author: Paweł Wilk <siefca@gnu.org>
1252
+ Date: Sat May 30 19:17:22 2009 +0200
1253
+
1254
+ IPAccess adapted to use new IPAccessList objects.
1255
+
1256
+ commit a4a7eb7202554a7e7361bf4924a00e308bea171b
1257
+ Author: Paweł Wilk <siefca@gnu.org>
1258
+ Date: Thu May 28 14:29:27 2009 +0200
1259
+
1260
+ NetAddr branch finished.
1261
+
1262
+ commit 4fa95de1d0ee177d892288b16666e6541f840aec
1263
+ Author: Paweł Wilk <siefca@gnu.org>
1264
+ Date: Thu May 28 02:42:56 2009 +0200
1265
+
1266
+ Added NetAddr#safe_dup.
1267
+
1268
+ commit 52b44fba4e71b032bc83654b8924f1c3221ba5d8
1269
+ Author: Paweł Wilk <siefca@gnu.org>
1270
+ Date: Wed May 27 12:44:05 2009 +0200
1271
+
1272
+ Added method delete! and updated documentation.
1273
+
1274
+ commit 362bf51c0a971e3a709c307907115f9852f3d8ef
1275
+ Author: Paweł Wilk <siefca@gnu.org>
1276
+ Date: Wed May 27 09:17:49 2009 +0200
1277
+
1278
+ Documentation updated.
1279
+
1280
+ commit 95c712bc6b2f3c69c8bbc3328050bc8d82137048
1281
+ Author: Paweł Wilk <siefca@gnu.org>
1282
+ Date: Tue May 26 17:35:27 2009 +0200
1283
+
1284
+ Access checking fixed. Added some specification examples.
1285
+
1286
+ commit 23d80be1d8b30b57105196036de4022a8baf8ffd
1287
+ Author: Paweł Wilk <siefca@gnu.org>
1288
+ Date: Tue May 26 01:04:44 2009 +0200
1289
+
1290
+ Writting raw access checking method list_denied_cidr.
1291
+
1292
+ commit 0c544e27e8ac69dc68f36e083e035362e6320e00
1293
+ Author: Paweł Wilk <siefca@gnu.org>
1294
+ Date: Mon May 25 01:10:42 2009 +0200
1295
+
1296
+ Documentation updated.
1297
+
1298
+ commit 5ede9522a209b9c64e31f2d976d3897f5b2e1784
1299
+ Author: Paweł Wilk <siefca@gnu.org>
1300
+ Date: Mon May 25 00:43:56 2009 +0200
1301
+
1302
+ Plus operator fixed, to_a fixed, method add! improved to use access list information from CIDRs.
1303
+
1304
+ commit 47054207597fef5b03f30500314050fbd665a427
1305
+ Author: Paweł Wilk <siefca@gnu.org>
1306
+ Date: Mon May 25 00:08:59 2009 +0200
1307
+
1308
+ Repairing to_a.
1309
+
1310
+ commit ec8093b375f47e59af6f0dea1c654be8e2488d23
1311
+ Author: Paweł Wilk <siefca@gnu.org>
1312
+ Date: Sun May 24 23:49:47 2009 +0200
1313
+
1314
+ Meet the method to_a.
1315
+
1316
+ commit e038f05d53dfbf741fa8f3b773e6236b717acc8b
1317
+ Author: Paweł Wilk <siefca@gnu.org>
1318
+ Date: Sun May 24 16:59:32 2009 +0200
1319
+
1320
+ Documentation updated for special, symbolic access rules in IPAccessList#obj_to_cidr.
1321
+
1322
+ commit c21c7e31be60be24e29843329ec13b34bf3f6482
1323
+ Author: Paweł Wilk <siefca@gnu.org>
1324
+ Date: Sun May 24 16:50:36 2009 +0200
1325
+
1326
+ Added special marker :ashen which tags entries that belongs to both lists (white and black).
1327
+
1328
+ - Show method updated according to :ashen internal marker (now it shows two rules),
1329
+ - dump_flat_list, rule_exists_cidr, add!, denied_find_parent and denied_find_me are :ashen aware,
1330
+ - documentation updated.
1331
+
1332
+ commit aab2316627e3c428991ab4df10ee08861496c480
1333
+ Author: Paweł Wilk <siefca@gnu.org>
1334
+ Date: Sun May 24 11:25:23 2009 +0200
1335
+
1336
+ Serious fixes in IPAccessList: access and rule validating methods are now immune to 0.0.0.0/0 entry.
1337
+
1338
+ commit c03073e99d6a62b558dc29db83bbd239573207b2
1339
+ Author: Paweł Wilk <siefca@gnu.org>
1340
+ Date: Sun May 24 02:49:15 2009 +0200
1341
+
1342
+ Serious modifications in IPAccessList. Most of methods rewritten due do optimization.
1343
+
1344
+ commit 32cae10bd0de41a9cfa455f820dbdddc2ef8d805
1345
+ Author: Paweł Wilk <siefca@gnu.org>
1346
+ Date: Sun May 17 16:36:13 2009 +0200
1347
+
1348
+ Changing approach: searches can be optimized if just one tagged list is used instead of two lists.
1349
+
1350
+ commit 919912642a684992bec1693131da1c4815dc1b20
1351
+ Author: Paweł Wilk <siefca@gnu.org>
1352
+ Date: Thu May 14 12:49:57 2009 +0200
1353
+
1354
+ Added method IPAccessList#add! and updated documentation.
1355
+
1356
+ commit 1f741e8e93690ac20c3448c0613ab1a8deddedd4
1357
+ Author: Paweł Wilk <siefca@gnu.org>
1358
+ Date: Thu May 14 10:33:05 2009 +0200
1359
+
1360
+ Commiting before going to eat pierogi ruskie.
1361
+
1362
+ commit 4f2daa6d75a9f4b5aaa7ca87be24aefe44f78940
1363
+ Author: Paweł Wilk <siefca@gnu.org>
1364
+ Date: Thu May 14 10:19:59 2009 +0200
1365
+
1366
+ NetAddr::CIDR patches fixed.
1367
+
1368
+ commit 7ca63765369150a60a82bcbe10536f54d3b3cc66
1369
+ Author: Paweł Wilk <siefca@gnu.org>
1370
+ Date: Thu May 14 01:55:45 2009 +0200
1371
+
1372
+ Changing storage to NetAddr::CIDR.
1373
+
1374
+ - Written simple patches for NetAddr to handle IPv4-to-IPv6 conversion and validation.
1375
+
1376
+ commit 47a7d8f78d916ef3d6cf7a2934e7e9e21cd976e6
1377
+ Author: Paweł Wilk <siefca@gnu.org>
1378
+ Date: Wed May 13 13:01:34 2009 +0200
1379
+
1380
+ Low-level access checking methods moved to IPAccess class, improved exception handling.
1381
+
1382
+ commit 702b7760f71ed1f8460b35329fc70fe10760caed
1383
+ Author: Paweł Wilk <siefca@gnu.org>
1384
+ Date: Tue May 12 23:57:06 2009 +0200
1385
+
1386
+ Small optimizations.
1387
+
1388
+ commit 52039ca614cad6e62392110a29a700f3bfc0fd65
1389
+ Author: Paweł Wilk <siefca@gnu.org>
1390
+ Date: Tue May 12 22:55:11 2009 +0200
1391
+
1392
+ Added rules reporting.
1393
+
1394
+ - Added IPAddr rule's reporting to all include*? methods of IPAddrList::Algorithm::IPv6BinarySearch,
1395
+ - added rule's reporting to all denied*? methods of IPAccess,
1396
+ - typos fixes and documentation updates.
1397
+
1398
+ commit 52bd4059c907a2c17faa8395a6d0f79fda7b545c
1399
+ Author: Paweł Wilk <siefca@gnu.org>
1400
+ Date: Tue May 12 21:57:13 2009 +0200
1401
+
1402
+ Major code reorganization. Doing things right.
1403
+
1404
+ - Created IPAddrList module: Algorithm::IPv6BinarySearch; all important stuff goes there,
1405
+ - improved error reporting,
1406
+ - fixed del method of IPAddrList::Algorithm::IPv6BinarySearch,
1407
+ - all methods of IPAddrList::Algorithm::IPv6BinarySearch previously using super are adapted,
1408
+ - added fast and simple include_ipaddr6? method to IPAddrList::Algorithm::IPv6BinarySearch,
1409
+ - added @name attribute to IPAccess,
1410
+ - added empty? method to IPAccess,
1411
+ - added variants of denied? method to IPAccess: denied?, denied_one? and fast ipaddr6_denied?
1412
+ - started monkey-patching IPSocket and co.
1413
+
1414
+ commit f570fe6481a5e354cf4ef7f00ec9ebadd0fb157b
1415
+ Author: Paweł Wilk <siefca@gnu.org>
1416
+ Date: Tue May 12 21:16:22 2009 +0200
1417
+
1418
+ Added exception handling class.
1419
+
1420
+ commit 792efeaa69bdbde3c078cf04959b8264fca1ec58
1421
+ Author: Paweł Wilk <siefca@gnu.org>
1422
+ Date: Tue May 12 10:55:03 2009 +0200
1423
+
1424
+ Proper names, proper names Pawel.
1425
+
1426
+ commit 19e162839944239e351f465ab8cb26c69a5a781a
1427
+ Author: Paweł Wilk <siefca@gnu.org>
1428
+ Date: Tue May 12 10:45:47 2009 +0200
1429
+
1430
+ Monkey-patching Socket in progress.
1431
+
1432
+ commit acf658a9ccec1f784af55d6af9906168f9931974
1433
+ Author: Paweł Wilk <siefca@gnu.org>
1434
+ Date: Tue May 12 10:45:04 2009 +0200
1435
+
1436
+ Socket patches renamed to socket.rb
1437
+
1438
+ commit 5d88cea1ed2d9b8c827087307e103ede4ebbabcf
1439
+ Author: Paweł Wilk <siefca@gnu.org>
1440
+ Date: Tue May 12 10:27:05 2009 +0200
1441
+
1442
+ Added IPAccess class.
1443
+
1444
+ commit c6a6b20b538a956c4fc62619f406c5717a057ac8
1445
+ Author: Paweł Wilk <siefca@gnu.org>
1446
+ Date: Mon May 11 16:56:58 2009 +0200
1447
+
1448
+ RSpec tests added.
1449
+
1450
+ commit 4501a985c61a05037fa9ca983d31584ea5895286
1451
+ Author: Paweł Wilk <siefca@gnu.org>
1452
+ Date: Mon May 11 11:15:24 2009 +0200
1453
+
1454
+ Name change reflected in sources.
1455
+
1456
+ commit 55f6590a0357d47148a1a8e1360d8a3b0f1baf2f
1457
+ Author: Paweł Wilk <siefca@gnu.org>
1458
+ Date: Mon May 11 11:13:56 2009 +0200
1459
+
1460
+ Renamed once again.
1461
+
1462
+ commit cd5e9eaec4cabb314d48686b2a9348f7c4ad40f2
1463
+ Author: Paweł Wilk <siefca@gnu.org>
1464
+ Date: Mon May 11 11:10:31 2009 +0200
1465
+
1466
+ Documentation updated.
1467
+
1468
+ commit efaba938c6169a32c6cc045c218bd5ca6cead00d
1469
+ Author: Paweł Wilk <siefca@gnu.org>
1470
+ Date: Mon May 11 11:01:11 2009 +0200
1471
+
1472
+ Names changed: ip_access_list to ip_access
1473
+
1474
+ commit fcba215a6cfdfa9a8ca4e32fcca197b3ab35dc08
1475
+ Author: Paweł Wilk <siefca@gnu.org>
1476
+ Date: Mon May 11 10:59:02 2009 +0200
1477
+
1478
+ Documentation updated. Preparing to change of names.
1479
+
1480
+ commit 1750b651fa4d850a2a67736c27836162c793f2f2
1481
+ Author: Paweł Wilk <siefca@gnu.org>
1482
+ Date: Mon May 11 10:19:19 2009 +0200
1483
+
1484
+ Major changes in convertion and operators.
1485
+
1486
+ - Added dup method,
1487
+ - fixed + and - operators,
1488
+ - added to_s method,
1489
+ - switched to IPv4-compatible IP addresses due to comparability issue.
1490
+
1491
+ commit 6cb663da88bd7bac3c713c114730bea38c858983
1492
+ Author: Paweł Wilk <siefca@gnu.org>
1493
+ Date: Mon May 11 00:33:36 2009 +0200
1494
+
1495
+ Initial revision.