ofac 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +24 -49
  3. data/lib/ofac/version.rb +1 -0
  4. data/test/test_helper.rb +5 -1
  5. metadata +118 -94
  6. data/.document +0 -5
  7. data/.ruby-gemset +0 -1
  8. data/.ruby-version +0 -1
  9. data/History.txt +0 -134
  10. data/PostInstall.txt +0 -11
  11. data/VERSION.yml +0 -5
  12. data/generators/ofac_migration/.DS_Store +0 -0
  13. data/generators/ofac_migration/ofac_migration_generator.rb +0 -12
  14. data/generators/ofac_migration/templates/.DS_Store +0 -0
  15. data/generators/ofac_migration/templates/migration.rb +0 -31
  16. data/nbproject/project.properties +0 -7
  17. data/nbproject/project.xml +0 -15
  18. data/ofac.gemspec +0 -129
  19. data/rdoc/CreateOfacSdns.html +0 -249
  20. data/rdoc/Ofac.html +0 -434
  21. data/rdoc/OfacMatch.html +0 -299
  22. data/rdoc/OfacMigration.html +0 -138
  23. data/rdoc/OfacMigration/Generators.html +0 -138
  24. data/rdoc/OfacMigration/Generators/BuildGenerator.html +0 -251
  25. data/rdoc/OfacSdn.html +0 -209
  26. data/rdoc/OfacSdnLoader.html +0 -238
  27. data/rdoc/README_rdoc.html +0 -323
  28. data/rdoc/String.html +0 -262
  29. data/rdoc/classes/Ofac.html +0 -411
  30. data/rdoc/classes/OfacMatch.html +0 -239
  31. data/rdoc/classes/OfacSdn.html +0 -111
  32. data/rdoc/classes/OfacSdnLoader.html +0 -190
  33. data/rdoc/classes/String.html +0 -207
  34. data/rdoc/created.rid +0 -10
  35. data/rdoc/files/README_rdoc.html +0 -317
  36. data/rdoc/files/lib/ofac/models/ofac_rb.html +0 -101
  37. data/rdoc/files/lib/ofac/models/ofac_sdn_loader_rb.html +0 -110
  38. data/rdoc/files/lib/ofac/models/ofac_sdn_rb.html +0 -108
  39. data/rdoc/files/lib/ofac/ofac_match_rb.html +0 -101
  40. data/rdoc/files/lib/ofac/ruby_string_extensions_rb.html +0 -101
  41. data/rdoc/files/lib/ofac_rb.html +0 -113
  42. data/rdoc/fr_class_index.html +0 -31
  43. data/rdoc/fr_file_index.html +0 -33
  44. data/rdoc/fr_method_index.html +0 -35
  45. data/rdoc/images/add.png +0 -0
  46. data/rdoc/images/arrow_up.png +0 -0
  47. data/rdoc/images/brick.png +0 -0
  48. data/rdoc/images/brick_link.png +0 -0
  49. data/rdoc/images/bug.png +0 -0
  50. data/rdoc/images/bullet_black.png +0 -0
  51. data/rdoc/images/bullet_toggle_minus.png +0 -0
  52. data/rdoc/images/bullet_toggle_plus.png +0 -0
  53. data/rdoc/images/date.png +0 -0
  54. data/rdoc/images/delete.png +0 -0
  55. data/rdoc/images/find.png +0 -0
  56. data/rdoc/images/loadingAnimation.gif +0 -0
  57. data/rdoc/images/macFFBgHack.png +0 -0
  58. data/rdoc/images/package.png +0 -0
  59. data/rdoc/images/page_green.png +0 -0
  60. data/rdoc/images/page_white_text.png +0 -0
  61. data/rdoc/images/page_white_width.png +0 -0
  62. data/rdoc/images/plugin.png +0 -0
  63. data/rdoc/images/ruby.png +0 -0
  64. data/rdoc/images/tag_blue.png +0 -0
  65. data/rdoc/images/tag_green.png +0 -0
  66. data/rdoc/images/transparent.png +0 -0
  67. data/rdoc/images/wrench.png +0 -0
  68. data/rdoc/images/wrench_orange.png +0 -0
  69. data/rdoc/images/zoom.png +0 -0
  70. data/rdoc/index.html +0 -96
  71. data/rdoc/js/darkfish.js +0 -155
  72. data/rdoc/js/jquery.js +0 -18
  73. data/rdoc/js/navigation.js +0 -142
  74. data/rdoc/js/search.js +0 -94
  75. data/rdoc/js/search_index.js +0 -1
  76. data/rdoc/js/searcher.js +0 -228
  77. data/rdoc/lib/generators/ofac_migration/build/build_generator_rb.html +0 -97
  78. data/rdoc/lib/generators/ofac_migration/build/templates/create_ofac_sdns_rb.html +0 -97
  79. data/rdoc/lib/ofac/models/ofac_rb.html +0 -97
  80. data/rdoc/lib/ofac/models/ofac_sdn_loader_rb.html +0 -97
  81. data/rdoc/lib/ofac/models/ofac_sdn_rb.html +0 -97
  82. data/rdoc/lib/ofac/ofac_match_rb.html +0 -97
  83. data/rdoc/lib/ofac/ruby_string_extensions_rb.html +0 -97
  84. data/rdoc/lib/ofac_rb.html +0 -97
  85. data/rdoc/rdoc-style.css +0 -208
  86. data/rdoc/rdoc.css +0 -595
  87. data/rdoc/table_of_contents.html +0 -120
@@ -1,113 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>File: ofac.rb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="fileHeader">
50
- <h1>ofac.rb</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>lib/ofac.rb
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Thu Sep 02 14:42:06 -0400 2010</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
-
72
- <div id="requires-list">
73
- <h3 class="section-bar">Required files</h3>
74
-
75
- <div class="name-list">
76
- rake&nbsp;&nbsp;
77
- ofac/ruby_string_extensions&nbsp;&nbsp;
78
- ofac/ofac_match&nbsp;&nbsp;
79
- ofac/models/ofac_sdn&nbsp;&nbsp;
80
- ofac/models/ofac_sdn_loader&nbsp;&nbsp;
81
- ofac/models/ofac&nbsp;&nbsp;
82
- </div>
83
- </div>
84
-
85
- </div>
86
-
87
-
88
- </div>
89
-
90
-
91
- <!-- if includes -->
92
-
93
- <div id="section">
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
- <!-- if method_list -->
103
-
104
-
105
- </div>
106
-
107
-
108
- <div id="validator-badges">
109
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
110
- </div>
111
-
112
- </body>
113
- </html>
@@ -1,31 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Classes
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Classes</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Classes</h1>
22
- <div id="index-entries">
23
- <a href="classes/Ofac.html">Ofac</a><br />
24
- <a href="classes/OfacMatch.html">OfacMatch</a><br />
25
- <a href="classes/OfacSdn.html">OfacSdn</a><br />
26
- <a href="classes/OfacSdnLoader.html">OfacSdnLoader</a><br />
27
- <a href="classes/String.html">String</a><br />
28
- </div>
29
- </div>
30
- </body>
31
- </html>
@@ -1,33 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Files
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Files</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Files</h1>
22
- <div id="index-entries">
23
- <a href="files/README_rdoc.html">README.rdoc</a><br />
24
- <a href="files/lib/ofac_rb.html">lib/ofac.rb</a><br />
25
- <a href="files/lib/ofac/models/ofac_rb.html">lib/ofac/models/ofac.rb</a><br />
26
- <a href="files/lib/ofac/models/ofac_sdn_rb.html">lib/ofac/models/ofac_sdn.rb</a><br />
27
- <a href="files/lib/ofac/models/ofac_sdn_loader_rb.html">lib/ofac/models/ofac_sdn_loader.rb</a><br />
28
- <a href="files/lib/ofac/ofac_match_rb.html">lib/ofac/ofac_match.rb</a><br />
29
- <a href="files/lib/ofac/ruby_string_extensions_rb.html">lib/ofac/ruby_string_extensions.rb</a><br />
30
- </div>
31
- </div>
32
- </body>
33
- </html>
@@ -1,35 +0,0 @@
1
-
2
- <?xml version="1.0" encoding="iso-8859-1"?>
3
- <!DOCTYPE html
4
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
-
7
- <!--
8
-
9
- Methods
10
-
11
- -->
12
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
- <head>
14
- <title>Methods</title>
15
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
- <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
- <base target="docwin" />
18
- </head>
19
- <body>
20
- <div id="index">
21
- <h1 class="section-bar">Methods</h1>
22
- <div id="index-entries">
23
- <a href="classes/Ofac.html#M000007">db_hit? (Ofac)</a><br />
24
- <a href="classes/OfacSdnLoader.html#M000009">load_current_sdn_file (OfacSdnLoader)</a><br />
25
- <a href="classes/OfacMatch.html#M000001">new (OfacMatch)</a><br />
26
- <a href="classes/Ofac.html#M000005">new (Ofac)</a><br />
27
- <a href="classes/String.html#M000003">ofac_soundex (String)</a><br />
28
- <a href="classes/String.html#M000004">ofac_sounds_like (String)</a><br />
29
- <a href="classes/Ofac.html#M000008">possible_hits (Ofac)</a><br />
30
- <a href="classes/OfacMatch.html#M000002">score (OfacMatch)</a><br />
31
- <a href="classes/Ofac.html#M000006">score (Ofac)</a><br />
32
- </div>
33
- </div>
34
- </body>
35
- </html>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,96 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>ofac 2.0.1</title>
8
-
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "./";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
-
22
-
23
- <body>
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
28
- <a href="./table_of_contents.html#classes">Classes</a>
29
- <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./README_rdoc.html">README</a>
53
-
54
- </ul>
55
- </nav>
56
-
57
- <nav id="classindex-section" class="section project-section">
58
- <h3 class="section-header">Class and Module Index</h3>
59
-
60
- <ul class="link-list">
61
-
62
- <li><a href="./CreateOfacSdns.html">CreateOfacSdns</a>
63
-
64
- <li><a href="./Ofac.html">Ofac</a>
65
-
66
- <li><a href="./OfacMatch.html">OfacMatch</a>
67
-
68
- <li><a href="./OfacMigration.html">OfacMigration</a>
69
-
70
- <li><a href="./OfacMigration/Generators.html">OfacMigration::Generators</a>
71
-
72
- <li><a href="./OfacMigration/Generators/BuildGenerator.html">OfacMigration::Generators::BuildGenerator</a>
73
-
74
- <li><a href="./OfacSdn.html">OfacSdn</a>
75
-
76
- <li><a href="./OfacSdnLoader.html">OfacSdnLoader</a>
77
-
78
- <li><a href="./String.html">String</a>
79
-
80
- </ul>
81
- </nav>
82
-
83
- </div>
84
- </nav>
85
-
86
- <div id="documentation" class="description">
87
- <p>This is the API documentation for ofac 2.0.1.
88
- </div>
89
-
90
-
91
- <footer id="validator-badges">
92
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
93
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
94
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
95
- </footer>
96
-
@@ -1,155 +0,0 @@
1
- /**
2
- *
3
- * Darkfish Page Functions
4
- * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
5
- *
6
- * Author: Michael Granger <mgranger@laika.com>
7
- *
8
- */
9
-
10
- /* Provide console simulation for firebug-less environments */
11
- if (!("console" in window) || !("firebug" in console)) {
12
- var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
13
- "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
14
-
15
- window.console = {};
16
- for (var i = 0; i < names.length; ++i)
17
- window.console[names[i]] = function() {};
18
- };
19
-
20
-
21
- /**
22
- * Unwrap the first element that matches the given @expr@ from the targets and return them.
23
- */
24
- $.fn.unwrap = function( expr ) {
25
- return this.each( function() {
26
- $(this).parents( expr ).eq( 0 ).after( this ).remove();
27
- });
28
- };
29
-
30
-
31
- function showSource( e ) {
32
- var target = e.target;
33
- var codeSections = $(target).
34
- parents('.method-detail').
35
- find('.method-source-code');
36
-
37
- $(target).
38
- parents('.method-detail').
39
- find('.method-source-code').
40
- slideToggle();
41
- };
42
-
43
- function hookSourceViews() {
44
- $('.method-heading').click( showSource );
45
- };
46
-
47
- function toggleDebuggingSection() {
48
- $('.debugging-section').slideToggle();
49
- };
50
-
51
- function hookDebuggingToggle() {
52
- $('#debugging-toggle img').click( toggleDebuggingSection );
53
- };
54
-
55
- function hookTableOfContentsToggle() {
56
- $('.indexpage li .toc-toggle').each( function() {
57
- $(this).click( function() {
58
- $(this).toggleClass('open');
59
- });
60
-
61
- var section = $(this).next();
62
-
63
- $(this).click( function() {
64
- section.slideToggle();
65
- });
66
- });
67
- }
68
-
69
- function hookSearch() {
70
- var input = $('#search-field').eq(0);
71
- var result = $('#search-results').eq(0);
72
- $(result).show();
73
-
74
- var search_section = $('#search-section').get(0);
75
- $(search_section).show();
76
-
77
- var search = new Search(search_data, input, result);
78
-
79
- search.renderItem = function(result) {
80
- var li = document.createElement('li');
81
- var html = '';
82
-
83
- // TODO add relative path to <script> per-page
84
- html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
85
- if (result.params)
86
- html += '<span class="params">' + result.params + '</span>';
87
- html += '</a>';
88
-
89
-
90
- if (result.namespace)
91
- html += '<p class="search-namespace">' + this.hlt(result.namespace);
92
-
93
- if (result.snippet)
94
- html += '<div class="search-snippet">' + result.snippet + '</div>';
95
-
96
- li.innerHTML = html;
97
-
98
- return li;
99
- }
100
-
101
- search.select = function(result) {
102
- var result_element = result.get(0);
103
- window.location.href = result_element.firstChild.firstChild.href;
104
- }
105
-
106
- search.scrollIntoView = search.scrollInWindow;
107
- };
108
-
109
- function highlightTarget( anchor ) {
110
- console.debug( "Highlighting target '%s'.", anchor );
111
-
112
- $("a[name]").each( function() {
113
- if ( $(this).attr("name") == anchor ) {
114
- if ( !$(this).parent().parent().hasClass('target-section') ) {
115
- console.debug( "Wrapping the target-section" );
116
- $('div.method-detail').unwrap( 'div.target-section' );
117
- $(this).parent().wrap( '<div class="target-section"></div>' );
118
- } else {
119
- console.debug( "Already wrapped." );
120
- }
121
- }
122
- });
123
- };
124
-
125
- function highlightLocationTarget() {
126
- console.debug( "Location hash: %s", window.location.hash );
127
- if ( ! window.location.hash || window.location.hash.length == 0 ) return;
128
-
129
- var anchor = window.location.hash.substring(1);
130
- console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
131
-
132
- highlightTarget( anchor );
133
- };
134
-
135
- function highlightClickTarget( event ) {
136
- console.debug( "Highlighting click target for event %o", event.target );
137
- try {
138
- var anchor = $(event.target).attr( 'href' ).substring(1);
139
- console.debug( "Found target anchor: %s", anchor );
140
- highlightTarget( anchor );
141
- } catch ( err ) {
142
- console.error( "Exception while highlighting: %o", err );
143
- };
144
- };
145
-
146
-
147
- $(document).ready( function() {
148
- hookSourceViews();
149
- hookDebuggingToggle();
150
- hookSearch();
151
- highlightLocationTarget();
152
- hookTableOfContentsToggle();
153
-
154
- $('ul.link-list a').bind( "click", highlightClickTarget );
155
- });