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.
- checksums.yaml +4 -4
- data/Rakefile +24 -49
- data/lib/ofac/version.rb +1 -0
- data/test/test_helper.rb +5 -1
- metadata +118 -94
- data/.document +0 -5
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/History.txt +0 -134
- data/PostInstall.txt +0 -11
- data/VERSION.yml +0 -5
- data/generators/ofac_migration/.DS_Store +0 -0
- data/generators/ofac_migration/ofac_migration_generator.rb +0 -12
- data/generators/ofac_migration/templates/.DS_Store +0 -0
- data/generators/ofac_migration/templates/migration.rb +0 -31
- data/nbproject/project.properties +0 -7
- data/nbproject/project.xml +0 -15
- data/ofac.gemspec +0 -129
- data/rdoc/CreateOfacSdns.html +0 -249
- data/rdoc/Ofac.html +0 -434
- data/rdoc/OfacMatch.html +0 -299
- data/rdoc/OfacMigration.html +0 -138
- data/rdoc/OfacMigration/Generators.html +0 -138
- data/rdoc/OfacMigration/Generators/BuildGenerator.html +0 -251
- data/rdoc/OfacSdn.html +0 -209
- data/rdoc/OfacSdnLoader.html +0 -238
- data/rdoc/README_rdoc.html +0 -323
- data/rdoc/String.html +0 -262
- data/rdoc/classes/Ofac.html +0 -411
- data/rdoc/classes/OfacMatch.html +0 -239
- data/rdoc/classes/OfacSdn.html +0 -111
- data/rdoc/classes/OfacSdnLoader.html +0 -190
- data/rdoc/classes/String.html +0 -207
- data/rdoc/created.rid +0 -10
- data/rdoc/files/README_rdoc.html +0 -317
- data/rdoc/files/lib/ofac/models/ofac_rb.html +0 -101
- data/rdoc/files/lib/ofac/models/ofac_sdn_loader_rb.html +0 -110
- data/rdoc/files/lib/ofac/models/ofac_sdn_rb.html +0 -108
- data/rdoc/files/lib/ofac/ofac_match_rb.html +0 -101
- data/rdoc/files/lib/ofac/ruby_string_extensions_rb.html +0 -101
- data/rdoc/files/lib/ofac_rb.html +0 -113
- data/rdoc/fr_class_index.html +0 -31
- data/rdoc/fr_file_index.html +0 -33
- data/rdoc/fr_method_index.html +0 -35
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -96
- data/rdoc/js/darkfish.js +0 -155
- data/rdoc/js/jquery.js +0 -18
- data/rdoc/js/navigation.js +0 -142
- data/rdoc/js/search.js +0 -94
- data/rdoc/js/search_index.js +0 -1
- data/rdoc/js/searcher.js +0 -228
- data/rdoc/lib/generators/ofac_migration/build/build_generator_rb.html +0 -97
- data/rdoc/lib/generators/ofac_migration/build/templates/create_ofac_sdns_rb.html +0 -97
- data/rdoc/lib/ofac/models/ofac_rb.html +0 -97
- data/rdoc/lib/ofac/models/ofac_sdn_loader_rb.html +0 -97
- data/rdoc/lib/ofac/models/ofac_sdn_rb.html +0 -97
- data/rdoc/lib/ofac/ofac_match_rb.html +0 -97
- data/rdoc/lib/ofac/ruby_string_extensions_rb.html +0 -97
- data/rdoc/lib/ofac_rb.html +0 -97
- data/rdoc/rdoc-style.css +0 -208
- data/rdoc/rdoc.css +0 -595
- data/rdoc/table_of_contents.html +0 -120
data/PostInstall.txt
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
For more information on ofac, see http://kevintyll.github.com/ofac/
|
|
2
|
-
|
|
3
|
-
* To create the necessary db migration, from the command line, run:
|
|
4
|
-
script/generate ofac_migration
|
|
5
|
-
* Require the gem in your environment.rb file in the Rails::Initializer block:
|
|
6
|
-
config.gem 'kevintyll-ofac', :lib => 'ofac'
|
|
7
|
-
* To load your table with the current OFAC data, from the command line, run:
|
|
8
|
-
rake ofac:update_data
|
|
9
|
-
|
|
10
|
-
* The OFAC data is not updated with any regularity, but you can sign up for email notifications when the data changes at
|
|
11
|
-
http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml.
|
data/VERSION.yml
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
class CreateOfacSdnTable < ActiveRecord::Migration
|
|
2
|
-
|
|
3
|
-
def self.up
|
|
4
|
-
create_table :ofac_sdns do |t|
|
|
5
|
-
t.text :name
|
|
6
|
-
t.string :sdn_type
|
|
7
|
-
t.string :program
|
|
8
|
-
t.string :title
|
|
9
|
-
t.string :vessel_call_sign
|
|
10
|
-
t.string :vessel_type
|
|
11
|
-
t.string :vessel_tonnage
|
|
12
|
-
t.string :gross_registered_tonnage
|
|
13
|
-
t.string :vessel_flag
|
|
14
|
-
t.string :vessel_owner
|
|
15
|
-
t.text :remarks
|
|
16
|
-
t.text :address
|
|
17
|
-
t.string :city
|
|
18
|
-
t.string :country
|
|
19
|
-
t.string :address_remarks
|
|
20
|
-
t.string :alternate_identity_type
|
|
21
|
-
t.text :alternate_identity_name
|
|
22
|
-
t.string :alternate_identity_remarks
|
|
23
|
-
t.timestamps
|
|
24
|
-
end
|
|
25
|
-
add_index :ofac_sdns, :sdn_type
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
def self.down
|
|
29
|
-
drop_table :ofac_sdns
|
|
30
|
-
end
|
|
31
|
-
end
|
data/nbproject/project.xml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
3
|
-
<type>org.netbeans.modules.ruby.rubyproject</type>
|
|
4
|
-
<configuration>
|
|
5
|
-
<data xmlns="http://www.netbeans.org/ns/ruby-project/1">
|
|
6
|
-
<name>ofac</name>
|
|
7
|
-
<source-roots>
|
|
8
|
-
<root id="src.dir"/>
|
|
9
|
-
</source-roots>
|
|
10
|
-
<test-roots>
|
|
11
|
-
<root id="test.src.dir"/>
|
|
12
|
-
</test-roots>
|
|
13
|
-
</data>
|
|
14
|
-
</configuration>
|
|
15
|
-
</project>
|
data/ofac.gemspec
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
-
# -*- encoding: utf-8 -*-
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |s|
|
|
7
|
-
s.name = "ofac"
|
|
8
|
-
s.version = "2.0.1"
|
|
9
|
-
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
-
s.authors = ["Kevin Tyll"]
|
|
12
|
-
s.date = "2014-01-07"
|
|
13
|
-
s.description = "Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list."
|
|
14
|
-
s.email = "kevintyll@gmail.com"
|
|
15
|
-
s.extra_rdoc_files = [
|
|
16
|
-
"LICENSE",
|
|
17
|
-
"README.rdoc"
|
|
18
|
-
]
|
|
19
|
-
s.files = [
|
|
20
|
-
".document",
|
|
21
|
-
".ruby-gemset",
|
|
22
|
-
".ruby-version",
|
|
23
|
-
"History.txt",
|
|
24
|
-
"LICENSE",
|
|
25
|
-
"PostInstall.txt",
|
|
26
|
-
"README.rdoc",
|
|
27
|
-
"Rakefile",
|
|
28
|
-
"VERSION.yml",
|
|
29
|
-
"generators/ofac_migration/.DS_Store",
|
|
30
|
-
"generators/ofac_migration/ofac_migration_generator.rb",
|
|
31
|
-
"generators/ofac_migration/templates/.DS_Store",
|
|
32
|
-
"generators/ofac_migration/templates/migration.rb",
|
|
33
|
-
"lib/generators/ofac_migration/build/build_generator.rb",
|
|
34
|
-
"lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb",
|
|
35
|
-
"lib/ofac.rb",
|
|
36
|
-
"lib/ofac/models/ofac.rb",
|
|
37
|
-
"lib/ofac/models/ofac_sdn.rb",
|
|
38
|
-
"lib/ofac/models/ofac_sdn_loader.rb",
|
|
39
|
-
"lib/ofac/ofac_match.rb",
|
|
40
|
-
"lib/ofac/ruby_string_extensions.rb",
|
|
41
|
-
"lib/tasks/ofac.rake",
|
|
42
|
-
"nbproject/project.properties",
|
|
43
|
-
"nbproject/project.xml",
|
|
44
|
-
"ofac.gemspec",
|
|
45
|
-
"rdoc/CreateOfacSdns.html",
|
|
46
|
-
"rdoc/Ofac.html",
|
|
47
|
-
"rdoc/OfacMatch.html",
|
|
48
|
-
"rdoc/OfacMigration.html",
|
|
49
|
-
"rdoc/OfacMigration/Generators.html",
|
|
50
|
-
"rdoc/OfacMigration/Generators/BuildGenerator.html",
|
|
51
|
-
"rdoc/OfacSdn.html",
|
|
52
|
-
"rdoc/OfacSdnLoader.html",
|
|
53
|
-
"rdoc/README_rdoc.html",
|
|
54
|
-
"rdoc/String.html",
|
|
55
|
-
"rdoc/classes/Ofac.html",
|
|
56
|
-
"rdoc/classes/OfacMatch.html",
|
|
57
|
-
"rdoc/classes/OfacSdn.html",
|
|
58
|
-
"rdoc/classes/OfacSdnLoader.html",
|
|
59
|
-
"rdoc/classes/String.html",
|
|
60
|
-
"rdoc/created.rid",
|
|
61
|
-
"rdoc/files/README_rdoc.html",
|
|
62
|
-
"rdoc/files/lib/ofac/models/ofac_rb.html",
|
|
63
|
-
"rdoc/files/lib/ofac/models/ofac_sdn_loader_rb.html",
|
|
64
|
-
"rdoc/files/lib/ofac/models/ofac_sdn_rb.html",
|
|
65
|
-
"rdoc/files/lib/ofac/ofac_match_rb.html",
|
|
66
|
-
"rdoc/files/lib/ofac/ruby_string_extensions_rb.html",
|
|
67
|
-
"rdoc/files/lib/ofac_rb.html",
|
|
68
|
-
"rdoc/fr_class_index.html",
|
|
69
|
-
"rdoc/fr_file_index.html",
|
|
70
|
-
"rdoc/fr_method_index.html",
|
|
71
|
-
"rdoc/images/add.png",
|
|
72
|
-
"rdoc/images/arrow_up.png",
|
|
73
|
-
"rdoc/images/brick.png",
|
|
74
|
-
"rdoc/images/brick_link.png",
|
|
75
|
-
"rdoc/images/bug.png",
|
|
76
|
-
"rdoc/images/bullet_black.png",
|
|
77
|
-
"rdoc/images/bullet_toggle_minus.png",
|
|
78
|
-
"rdoc/images/bullet_toggle_plus.png",
|
|
79
|
-
"rdoc/images/date.png",
|
|
80
|
-
"rdoc/images/delete.png",
|
|
81
|
-
"rdoc/images/find.png",
|
|
82
|
-
"rdoc/images/loadingAnimation.gif",
|
|
83
|
-
"rdoc/images/macFFBgHack.png",
|
|
84
|
-
"rdoc/images/package.png",
|
|
85
|
-
"rdoc/images/page_green.png",
|
|
86
|
-
"rdoc/images/page_white_text.png",
|
|
87
|
-
"rdoc/images/page_white_width.png",
|
|
88
|
-
"rdoc/images/plugin.png",
|
|
89
|
-
"rdoc/images/ruby.png",
|
|
90
|
-
"rdoc/images/tag_blue.png",
|
|
91
|
-
"rdoc/images/tag_green.png",
|
|
92
|
-
"rdoc/images/transparent.png",
|
|
93
|
-
"rdoc/images/wrench.png",
|
|
94
|
-
"rdoc/images/wrench_orange.png",
|
|
95
|
-
"rdoc/images/zoom.png",
|
|
96
|
-
"rdoc/index.html",
|
|
97
|
-
"rdoc/js/darkfish.js",
|
|
98
|
-
"rdoc/js/jquery.js",
|
|
99
|
-
"rdoc/js/navigation.js",
|
|
100
|
-
"rdoc/js/search.js",
|
|
101
|
-
"rdoc/js/search_index.js",
|
|
102
|
-
"rdoc/js/searcher.js",
|
|
103
|
-
"rdoc/lib/generators/ofac_migration/build/build_generator_rb.html",
|
|
104
|
-
"rdoc/lib/generators/ofac_migration/build/templates/create_ofac_sdns_rb.html",
|
|
105
|
-
"rdoc/lib/ofac/models/ofac_rb.html",
|
|
106
|
-
"rdoc/lib/ofac/models/ofac_sdn_loader_rb.html",
|
|
107
|
-
"rdoc/lib/ofac/models/ofac_sdn_rb.html",
|
|
108
|
-
"rdoc/lib/ofac/ofac_match_rb.html",
|
|
109
|
-
"rdoc/lib/ofac/ruby_string_extensions_rb.html",
|
|
110
|
-
"rdoc/lib/ofac_rb.html",
|
|
111
|
-
"rdoc/rdoc-style.css",
|
|
112
|
-
"rdoc/rdoc.css",
|
|
113
|
-
"rdoc/table_of_contents.html",
|
|
114
|
-
"test/files/test_address_data_load.pip",
|
|
115
|
-
"test/files/test_alt_data_load.pip",
|
|
116
|
-
"test/files/test_sdn_data_load.pip",
|
|
117
|
-
"test/files/valid_flattened_file.csv",
|
|
118
|
-
"test/mocks/test/ofac_sdn_loader.rb",
|
|
119
|
-
"test/ofac_sdn_loader_test.rb",
|
|
120
|
-
"test/ofac_test.rb",
|
|
121
|
-
"test/test_helper.rb"
|
|
122
|
-
]
|
|
123
|
-
s.homepage = "http://github.com/kevintyll/ofac"
|
|
124
|
-
s.post_install_message = "For more information on ofac, see http://kevintyll.github.com/ofac/\n\n* To create the necessary db migration, from the command line, run:\n script/generate ofac_migration\n* Require the gem in your environment.rb file in the Rails::Initializer block:\n config.gem 'kevintyll-ofac', :lib => 'ofac'\n* To load your table with the current OFAC data, from the command line, run:\n rake ofac:update_data\n\n * The OFAC data is not updated with any regularity, but you can sign up for email notifications when the data changes at\n http://www.treas.gov/offices/enforcement/ofac/sdn/index.shtml."
|
|
125
|
-
s.require_paths = ["lib"]
|
|
126
|
-
s.rubygems_version = "2.0.3"
|
|
127
|
-
s.summary = "Attempts to find a hit on the Office of Foreign Assets Control's Specially Designated Nationals list."
|
|
128
|
-
end
|
|
129
|
-
|
data/rdoc/CreateOfacSdns.html
DELETED
|
@@ -1,249 +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>class CreateOfacSdns - 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 id="top" class="class">
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
<div id="file-metadata">
|
|
49
|
-
<nav id="file-list-section" class="section">
|
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
|
51
|
-
<ul>
|
|
52
|
-
<li>lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb
|
|
53
|
-
</ul>
|
|
54
|
-
</nav>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<div id="class-metadata">
|
|
60
|
-
|
|
61
|
-
<nav id="parent-class-section" class="section">
|
|
62
|
-
<h3 class="section-header">Parent</h3>
|
|
63
|
-
|
|
64
|
-
<p class="link">ActiveRecord::Migration
|
|
65
|
-
|
|
66
|
-
</nav>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<!-- Method Quickref -->
|
|
71
|
-
<nav id="method-list-section" class="section">
|
|
72
|
-
<h3 class="section-header">Methods</h3>
|
|
73
|
-
|
|
74
|
-
<ul class="link-list">
|
|
75
|
-
|
|
76
|
-
<li ><a href="#method-c-down">::down</a>
|
|
77
|
-
|
|
78
|
-
<li ><a href="#method-c-up">::up</a>
|
|
79
|
-
|
|
80
|
-
</ul>
|
|
81
|
-
</nav>
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<div id="project-metadata">
|
|
86
|
-
<nav id="fileindex-section" class="section project-section">
|
|
87
|
-
<h3 class="section-header">Pages</h3>
|
|
88
|
-
|
|
89
|
-
<ul>
|
|
90
|
-
|
|
91
|
-
<li class="file"><a href="./README_rdoc.html">README</a>
|
|
92
|
-
|
|
93
|
-
</ul>
|
|
94
|
-
</nav>
|
|
95
|
-
|
|
96
|
-
<nav id="classindex-section" class="section project-section">
|
|
97
|
-
<h3 class="section-header">Class and Module Index</h3>
|
|
98
|
-
|
|
99
|
-
<ul class="link-list">
|
|
100
|
-
|
|
101
|
-
<li><a href="./CreateOfacSdns.html">CreateOfacSdns</a>
|
|
102
|
-
|
|
103
|
-
<li><a href="./Ofac.html">Ofac</a>
|
|
104
|
-
|
|
105
|
-
<li><a href="./OfacMatch.html">OfacMatch</a>
|
|
106
|
-
|
|
107
|
-
<li><a href="./OfacMigration.html">OfacMigration</a>
|
|
108
|
-
|
|
109
|
-
<li><a href="./OfacMigration/Generators.html">OfacMigration::Generators</a>
|
|
110
|
-
|
|
111
|
-
<li><a href="./OfacMigration/Generators/BuildGenerator.html">OfacMigration::Generators::BuildGenerator</a>
|
|
112
|
-
|
|
113
|
-
<li><a href="./OfacSdn.html">OfacSdn</a>
|
|
114
|
-
|
|
115
|
-
<li><a href="./OfacSdnLoader.html">OfacSdnLoader</a>
|
|
116
|
-
|
|
117
|
-
<li><a href="./String.html">String</a>
|
|
118
|
-
|
|
119
|
-
</ul>
|
|
120
|
-
</nav>
|
|
121
|
-
|
|
122
|
-
</div>
|
|
123
|
-
</nav>
|
|
124
|
-
|
|
125
|
-
<div id="documentation">
|
|
126
|
-
<h1 class="class">class CreateOfacSdns</h1>
|
|
127
|
-
|
|
128
|
-
<div id="description" class="description">
|
|
129
|
-
|
|
130
|
-
</div><!-- description -->
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<!-- Methods -->
|
|
145
|
-
|
|
146
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
|
147
|
-
<h3 class="section-header">Public Class Methods</h3>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<div id="method-c-down" class="method-detail ">
|
|
151
|
-
|
|
152
|
-
<div class="method-heading">
|
|
153
|
-
<span class="method-name">down</span><span
|
|
154
|
-
class="method-args">()</span>
|
|
155
|
-
|
|
156
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
157
|
-
|
|
158
|
-
</div>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<div class="method-description">
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
<div class="method-source-code" id="down-source">
|
|
169
|
-
<pre><span class="ruby-comment"># File lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb, line 28</span>
|
|
170
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">down</span>
|
|
171
|
-
<span class="ruby-identifier">drop_table</span> <span class="ruby-value">:ofac_sdns</span>
|
|
172
|
-
<span class="ruby-keyword">end</span></pre>
|
|
173
|
-
</div><!-- down-source -->
|
|
174
|
-
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</div><!-- down-method -->
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
<div id="method-c-up" class="method-detail ">
|
|
184
|
-
|
|
185
|
-
<div class="method-heading">
|
|
186
|
-
<span class="method-name">up</span><span
|
|
187
|
-
class="method-args">()</span>
|
|
188
|
-
|
|
189
|
-
<span class="method-click-advice">click to toggle source</span>
|
|
190
|
-
|
|
191
|
-
</div>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<div class="method-description">
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
<div class="method-source-code" id="up-source">
|
|
202
|
-
<pre><span class="ruby-comment"># File lib/generators/ofac_migration/build/templates/create_ofac_sdns.rb, line 3</span>
|
|
203
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">up</span>
|
|
204
|
-
<span class="ruby-identifier">create_table</span> <span class="ruby-value">:ofac_sdns</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
|
|
205
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:name</span>
|
|
206
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:sdn_type</span>
|
|
207
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:program</span>
|
|
208
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:title</span>
|
|
209
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:vessel_call_sign</span>
|
|
210
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:vessel_type</span>
|
|
211
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:vessel_tonnage</span>
|
|
212
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:gross_registered_tonnage</span>
|
|
213
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:vessel_flag</span>
|
|
214
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:vessel_owner</span>
|
|
215
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:remarks</span>
|
|
216
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:address</span>
|
|
217
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:city</span>
|
|
218
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:country</span>
|
|
219
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:address_remarks</span>
|
|
220
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:alternate_identity_type</span>
|
|
221
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">text</span> <span class="ruby-value">:alternate_identity_name</span>
|
|
222
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-value">:alternate_identity_remarks</span>
|
|
223
|
-
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">timestamps</span>
|
|
224
|
-
<span class="ruby-keyword">end</span>
|
|
225
|
-
<span class="ruby-identifier">add_index</span> <span class="ruby-value">:ofac_sdns</span>, <span class="ruby-value">:sdn_type</span>
|
|
226
|
-
<span class="ruby-keyword">end</span></pre>
|
|
227
|
-
</div><!-- up-source -->
|
|
228
|
-
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
</div><!-- up-method -->
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
</section><!-- public-class-method-details -->
|
|
238
|
-
|
|
239
|
-
</section><!-- 5Buntitled-5D -->
|
|
240
|
-
|
|
241
|
-
</div><!-- documentation -->
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
<footer id="validator-badges">
|
|
245
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
|
246
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
|
247
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
|
248
|
-
</footer>
|
|
249
|
-
|