sinatra-s3 0.98 → 0.99
Sign up to get free protection for your applications and to get access to all the features.
- data/README +36 -18
- data/bin/sinatra-s3 +47 -15
- data/examples/wiki.rb +13 -13
- data/lib/sinatra-s3/admin.rb +1 -1
- data/lib/sinatra-s3/base.rb +1 -5
- data/lib/sinatra-s3/models/bit.rb +2 -2
- data/lib/sinatra-s3/s3.rb +11 -4
- data/public/js/wiki.js +35 -0
- data/s3.yml.example +6 -3
- metadata +63 -67
- data/examples/README +0 -9
- data/examples/wikicloth/MIT-LICENSE +0 -20
- data/examples/wikicloth/README +0 -81
- data/examples/wikicloth/Rakefile +0 -23
- data/examples/wikicloth/init.rb +0 -1
- data/examples/wikicloth/install.rb +0 -0
- data/examples/wikicloth/lib/core_ext.rb +0 -43
- data/examples/wikicloth/lib/wiki_buffer.rb +0 -279
- data/examples/wikicloth/lib/wiki_buffer/html_element.rb +0 -237
- data/examples/wikicloth/lib/wiki_buffer/link.rb +0 -70
- data/examples/wikicloth/lib/wiki_buffer/table.rb +0 -159
- data/examples/wikicloth/lib/wiki_buffer/var.rb +0 -77
- data/examples/wikicloth/lib/wiki_cloth.rb +0 -61
- data/examples/wikicloth/lib/wiki_link_handler.rb +0 -138
- data/examples/wikicloth/lib/wikicloth.rb +0 -5
- data/examples/wikicloth/run_tests.rb +0 -48
- data/examples/wikicloth/sample_documents/air_force_one.wiki +0 -170
- data/examples/wikicloth/sample_documents/cheatsheet.wiki +0 -205
- data/examples/wikicloth/sample_documents/default.css +0 -34
- data/examples/wikicloth/sample_documents/elements.wiki +0 -7
- data/examples/wikicloth/sample_documents/george_washington.wiki +0 -526
- data/examples/wikicloth/sample_documents/images.wiki +0 -15
- data/examples/wikicloth/sample_documents/lists.wiki +0 -421
- data/examples/wikicloth/sample_documents/pipe_trick.wiki +0 -68
- data/examples/wikicloth/sample_documents/random.wiki +0 -55
- data/examples/wikicloth/sample_documents/tv.wiki +0 -312
- data/examples/wikicloth/sample_documents/wiki.png +0 -0
- data/examples/wikicloth/sample_documents/wiki_tables.wiki +0 -410
- data/examples/wikicloth/tasks/wikicloth_tasks.rake +0 -0
- data/examples/wikicloth/test/test_helper.rb +0 -3
- data/examples/wikicloth/test/wiki_cloth_test.rb +0 -8
- data/examples/wikicloth/uninstall.rb +0 -0
- data/examples/wikicloth/wikicloth-0.1.3.gem +0 -0
- data/examples/wikicloth/wikicloth.gemspec +0 -69
- data/public/test.html +0 -8
@@ -1,77 +0,0 @@
|
|
1
|
-
module WikiCloth
|
2
|
-
|
3
|
-
class WikiBuffer::Var < WikiBuffer
|
4
|
-
|
5
|
-
def initialize(data="",options={})
|
6
|
-
super(data,options)
|
7
|
-
self.buffer_type = "var"
|
8
|
-
@in_quotes = false
|
9
|
-
end
|
10
|
-
|
11
|
-
def skip_html?
|
12
|
-
true
|
13
|
-
end
|
14
|
-
|
15
|
-
def function_name
|
16
|
-
@fname
|
17
|
-
end
|
18
|
-
|
19
|
-
def to_s
|
20
|
-
if self.is_function?
|
21
|
-
ret = "#{buffer_type}"
|
22
|
-
ret += " function #{function_name}"
|
23
|
-
ret += "(#{params.inspect})"
|
24
|
-
ret += " [#{data}]"
|
25
|
-
else
|
26
|
-
ret = @options[:link_handler].include_resource("#{params[0]}".strip,params[1..-1])
|
27
|
-
end
|
28
|
-
ret ||= "<!-- TEMPLATE[#{params[0]}] NOT FOUND -->"
|
29
|
-
ret
|
30
|
-
end
|
31
|
-
|
32
|
-
def is_function?
|
33
|
-
self.function_name.nil? || self.function_name.blank? ? false : true
|
34
|
-
end
|
35
|
-
|
36
|
-
protected
|
37
|
-
def function_name=(val)
|
38
|
-
@fname = val
|
39
|
-
end
|
40
|
-
|
41
|
-
def new_char()
|
42
|
-
case
|
43
|
-
when current_char == '|' && @in_quotes == false
|
44
|
-
self.current_param = self.data
|
45
|
-
self.data = ""
|
46
|
-
self.params << ""
|
47
|
-
|
48
|
-
# Start of either a function or a namespace change
|
49
|
-
when current_char == ':' && @in_quotes == false && self.params.size <= 1
|
50
|
-
self.function_name = self.data
|
51
|
-
self.data = ""
|
52
|
-
puts "[found var function (#{function_name})"
|
53
|
-
|
54
|
-
# Dealing with variable names within functions
|
55
|
-
# and variables
|
56
|
-
when current_char == '=' && @in_quotes == false
|
57
|
-
self.current_param = self.data
|
58
|
-
self.data = ""
|
59
|
-
self.name_current_param()
|
60
|
-
|
61
|
-
# End of a template, variable, or function
|
62
|
-
when current_char == '}' && previous_char == '}'
|
63
|
-
self.data.chop!
|
64
|
-
self.current_param = self.data
|
65
|
-
self.data = ""
|
66
|
-
return false
|
67
|
-
|
68
|
-
else
|
69
|
-
self.data += current_char
|
70
|
-
end
|
71
|
-
|
72
|
-
return true
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|
76
|
-
|
77
|
-
end
|
@@ -1,61 +0,0 @@
|
|
1
|
-
require 'jcode'
|
2
|
-
|
3
|
-
module WikiCloth
|
4
|
-
|
5
|
-
class WikiCloth
|
6
|
-
|
7
|
-
def initialize(opt={})
|
8
|
-
self.load(opt[:data],opt[:params]) unless opt[:data].nil? || opt[:data].blank?
|
9
|
-
self.options[:link_handler] = opt[:link_handler] unless opt[:link_handler].nil?
|
10
|
-
end
|
11
|
-
|
12
|
-
def load(data,p={})
|
13
|
-
data.gsub!(/<!--(.|\s)*?-->/,"")
|
14
|
-
self.params = p
|
15
|
-
self.html = data
|
16
|
-
end
|
17
|
-
|
18
|
-
def render(opt={})
|
19
|
-
self.options = { :output => :html, :link_handler => self.link_handler, :params => self.params }.merge(opt)
|
20
|
-
self.options[:link_handler].params = options[:params]
|
21
|
-
buffer = WikiBuffer.new("",options)
|
22
|
-
self.html.each_char { |c| buffer.add_char(c) }
|
23
|
-
buffer.to_s
|
24
|
-
end
|
25
|
-
|
26
|
-
def to_html(opt={})
|
27
|
-
self.render(opt)
|
28
|
-
end
|
29
|
-
|
30
|
-
def link_handler
|
31
|
-
self.options[:link_handler] ||= WikiLinkHandler.new
|
32
|
-
end
|
33
|
-
|
34
|
-
def html
|
35
|
-
@page_data + (@page_data[-1,1] == "\n" ? "" : "\n")
|
36
|
-
end
|
37
|
-
|
38
|
-
def params
|
39
|
-
@page_params ||= {}
|
40
|
-
end
|
41
|
-
|
42
|
-
protected
|
43
|
-
def options=(val)
|
44
|
-
@options = val
|
45
|
-
end
|
46
|
-
|
47
|
-
def options
|
48
|
-
@options ||= {}
|
49
|
-
end
|
50
|
-
|
51
|
-
def html=(val)
|
52
|
-
@page_data = val
|
53
|
-
end
|
54
|
-
|
55
|
-
def params=(val)
|
56
|
-
@page_params = val
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
60
|
-
|
61
|
-
end
|
@@ -1,138 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'builder'
|
3
|
-
|
4
|
-
module WikiCloth
|
5
|
-
|
6
|
-
class WikiLinkHandler
|
7
|
-
|
8
|
-
def references
|
9
|
-
@references ||= []
|
10
|
-
end
|
11
|
-
|
12
|
-
def section_link(section)
|
13
|
-
""
|
14
|
-
end
|
15
|
-
|
16
|
-
def params
|
17
|
-
@params ||= {}
|
18
|
-
end
|
19
|
-
|
20
|
-
def external_links
|
21
|
-
@external_links ||= []
|
22
|
-
end
|
23
|
-
|
24
|
-
def find_reference_by_name(n)
|
25
|
-
references.each { |r| return r if !r[:name].nil? && r[:name].strip == n }
|
26
|
-
return nil
|
27
|
-
end
|
28
|
-
|
29
|
-
def reference_index(h)
|
30
|
-
references.each_index { |r| return r+1 if references[r] == h }
|
31
|
-
return nil
|
32
|
-
end
|
33
|
-
|
34
|
-
def references=(val)
|
35
|
-
@references = val
|
36
|
-
end
|
37
|
-
|
38
|
-
def params=(val)
|
39
|
-
@params = val
|
40
|
-
end
|
41
|
-
|
42
|
-
def external_link(url,text)
|
43
|
-
self.external_links << url
|
44
|
-
elem.a({ :href => url }) { |x| x << (text.blank? ? url : text) }
|
45
|
-
end
|
46
|
-
|
47
|
-
def external_links=(val)
|
48
|
-
@external_links = val
|
49
|
-
end
|
50
|
-
|
51
|
-
def url_for(page)
|
52
|
-
"javascript:void(0)"
|
53
|
-
end
|
54
|
-
|
55
|
-
def link_attributes_for(page)
|
56
|
-
{ :href => url_for(page) }
|
57
|
-
end
|
58
|
-
|
59
|
-
def link_for(page, text)
|
60
|
-
ltitle = !text.nil? && text.blank? ? self.pipe_trick(page) : text
|
61
|
-
ltitle = page if text.nil?
|
62
|
-
elem.a(link_attributes_for(page)) { |x| x << ltitle.strip }
|
63
|
-
end
|
64
|
-
|
65
|
-
def include_resource(resource, options=[])
|
66
|
-
return self.params[resource] unless self.params[resource].nil?
|
67
|
-
end
|
68
|
-
|
69
|
-
def link_for_resource(prefix, resource, options=[])
|
70
|
-
ret = ""
|
71
|
-
prefix.downcase!
|
72
|
-
case
|
73
|
-
when ["image","file","media"].include?(prefix)
|
74
|
-
ret += wiki_image(resource,options)
|
75
|
-
else
|
76
|
-
title = options[0] ? options[0] : "#{prefix}:#{resource}"
|
77
|
-
ret += link_for("#{prefix}:#{resource}",title)
|
78
|
-
end
|
79
|
-
ret
|
80
|
-
end
|
81
|
-
|
82
|
-
protected
|
83
|
-
def pipe_trick(page)
|
84
|
-
t = page.split(":")
|
85
|
-
t = t[1..-1] if t.size > 1
|
86
|
-
return t.join("").split(/[,(]/)[0]
|
87
|
-
end
|
88
|
-
|
89
|
-
# this code needs some work... lots of work
|
90
|
-
def wiki_image(resource,options)
|
91
|
-
pre_img = ''
|
92
|
-
post_img = ''
|
93
|
-
css = []
|
94
|
-
loc = "right"
|
95
|
-
type = nil
|
96
|
-
w = 180
|
97
|
-
h = nil
|
98
|
-
title = nil
|
99
|
-
ffloat = false
|
100
|
-
|
101
|
-
options.each do |x|
|
102
|
-
case
|
103
|
-
when ["thumb","thumbnail","frame","border"].include?(x.strip)
|
104
|
-
type = x.strip
|
105
|
-
when ["left","right","center","none"].include?(x.strip)
|
106
|
-
ffloat = true
|
107
|
-
loc = x.strip
|
108
|
-
when x.strip =~ /^([0-9]+)\s*px$/
|
109
|
-
w = $1
|
110
|
-
css << "width:#{w}px"
|
111
|
-
when x.strip =~ /^([0-9]+)\s*x\s*([0-9]+)\s*px$/
|
112
|
-
w = $1
|
113
|
-
css << "width:#{w}px"
|
114
|
-
h = $2
|
115
|
-
css << "height:#{h}px"
|
116
|
-
else
|
117
|
-
title = x.strip
|
118
|
-
end
|
119
|
-
end
|
120
|
-
css << "float:#{loc}" if ffloat == true
|
121
|
-
css << "border:1px solid #000" if type == "border"
|
122
|
-
|
123
|
-
sane_title = title.nil? ? "" : title.gsub(/<\/?[^>]*>/, "")
|
124
|
-
if type == "thumb" || type == "thumbnail" || type == "frame"
|
125
|
-
pre_img = '<div class="thumb t' + loc + '"><div class="thumbinner" style="width: ' + w.to_s +
|
126
|
-
'px;"><a href="" class="image" title="' + sane_title + '">'
|
127
|
-
post_img = '</a><div class="thumbcaption">' + title + '</div></div></div>'
|
128
|
-
end
|
129
|
-
"#{pre_img}<img src=\"#{resource}\" alt=\"#{sane_title}\" title=\"#{sane_title}\" style=\"#{css.join(";")}\" />#{post_img}"
|
130
|
-
end
|
131
|
-
|
132
|
-
def elem
|
133
|
-
Builder::XmlMarkup.new
|
134
|
-
end
|
135
|
-
|
136
|
-
end
|
137
|
-
|
138
|
-
end
|
@@ -1,5 +0,0 @@
|
|
1
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "core_ext")
|
2
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "wiki_cloth")
|
3
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "wiki_buffer")
|
4
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "wiki_link_handler")
|
5
|
-
String.send(:include, ExtendedString)
|
@@ -1,48 +0,0 @@
|
|
1
|
-
require 'init'
|
2
|
-
include WikiCloth
|
3
|
-
|
4
|
-
class CustomLinkHandler < WikiLinkHandler
|
5
|
-
def include_resource(resource,options=[])
|
6
|
-
case resource
|
7
|
-
when "date"
|
8
|
-
Time.now.to_s
|
9
|
-
else
|
10
|
-
# default behavior
|
11
|
-
super(resource,options)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
def url_for(page)
|
15
|
-
"javascript:alert('You clicked on: #{page}');"
|
16
|
-
end
|
17
|
-
def link_attributes_for(page)
|
18
|
-
{ :href => url_for(page) }
|
19
|
-
end
|
20
|
-
end
|
21
|
-
@wiki = WikiCloth::WikiCloth.new({
|
22
|
-
:data => "<nowiki>{{test}}</nowiki> ''Hello {{test}}!''\n",
|
23
|
-
:params => { "test" => "World" } })
|
24
|
-
puts @wiki.to_html
|
25
|
-
@wiki = WikiCloth::WikiCloth.new({
|
26
|
-
:params => { "PAGENAME" => "Testing123" },
|
27
|
-
:link_handler => CustomLinkHandler.new,
|
28
|
-
:data => "\n[[Hello World]] From {{ PAGENAME }} on {{ date }}\n"
|
29
|
-
})
|
30
|
-
puts @wiki.to_html
|
31
|
-
|
32
|
-
Dir.glob("sample_documents/*.wiki").each do |x|
|
33
|
-
|
34
|
-
start_time = Time.now
|
35
|
-
out_name = "#{x}.html"
|
36
|
-
data = File.open(x) { |x| x.read }
|
37
|
-
|
38
|
-
tmp = WikiCloth::WikiCloth.new()
|
39
|
-
tmp.load(data, { "PAGENAME" => "HelloWorld" })
|
40
|
-
out = tmp.render({ :output => :html })
|
41
|
-
out = "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" dir=\"ltr\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><link rel=\"stylesheet\" href=\"default.css\" type=\"text/css\" /></head><body>#{out}</body></html>"
|
42
|
-
|
43
|
-
File.open(out_name, "w") { |x| x.write(out) }
|
44
|
-
end_time = Time.now
|
45
|
-
puts "#{out_name}: Completed (#{end_time - start_time} sec) | External Links: #{tmp.link_handler.external_links.size} -- References: #{tmp.link_handler.references.size}"
|
46
|
-
|
47
|
-
end
|
48
|
-
|
@@ -1,170 +0,0 @@
|
|
1
|
-
{{for|the current aircraft|Boeing VC-25}}
|
2
|
-
{{otheruses}}
|
3
|
-
<!-- This article is a part of [[Wikipedia:WikiProject Aircraft]]. Please see [[Wikipedia:WikiProject Aircraft/page content]] for recommended layout. -->
|
4
|
-
{{Infobox Aviation
|
5
|
-
|name = Air Force One
|
6
|
-
|image = Image:Air Force One over Mt. Rushmore.jpg
|
7
|
-
|caption = SAM 28000, one of the two VC-25s used as Air Force One, above [[Mount Rushmore]]
|
8
|
-
}}
|
9
|
-
|
10
|
-
'''Air Force One''' is the [[air traffic control]] [[call sign]] of any [[United States Air Force]] aircraft carrying the [[President of the United States]].<ref name="foxtrot"> [http://www.faa.gov/airports_airtraffic/air_traffic/publications/atpubs/ATC/Chp2/atc0204.html#2-4-20 Order 7110.65R (Air Traffic Control)] Federal Aviation Administration 14 March 2007. Retrieved: 27 August 2007. </ref> Since 1990, the presidential fleet has consisted of two specifically configured, highly customized [[Boeing 747-200#747-200|Boeing 747-200B]] series aircraft – [[Tail Code|tail codes]] '''S'''pecial '''A'''ir '''M'''ission ('''SAM''') "28000" and '''SAM''' "29000" – with Air Force designation "[[Boeing VC-25|VC-25A]]". While these aircraft are referred to as "Air Force One" only while the president is on board, the term is commonly used to describe either of the two aircraft normally used and maintained by the U.S. Air Force solely for the president, as well as any additional Air Force aircraft used by the president; a recent example is when President [[Barack Obama]] flew to New York City aboard a U.S. Air Force [[Gulfstream V|C-37A]].<ref> Bosman, Julie. [http://www.nytimes.com/2009/05/31/nyregion/31obama.html?_r=1&scp=9&sq=obama%20broadway&st=cse "Politics Can Wait: The President Has a Date."] ''[[The New York Times]]'', May 30, 2009. Retrieved: June 17, 2009.</ref>
|
11
|
-
|
12
|
-
Air Force One is a prominent symbol of the [[United States|American]] presidency and its power.<ref name=Walsh/> The aircraft are among the most famous and most photographed in the world.<ref name="af1">Wallace, Chris (host). [http://www.foxnews.com/video-search/m/21504368/aboard_air_force_one.htm?pageid=23236 "Aboard Air Force One."] ''Fox News'', November 24, 2008. Retrieved: November 28, 2008.</ref>
|
13
|
-
|
14
|
-
==History==
|
15
|
-
On October 11, 1910, [[Theodore Roosevelt]] became the first U.S. president to fly in an aircraft, although at the time of the flight in an early [[Wright Flyer]] from Kinloch Field (near [[St. Louis]], [[Missouri]]), he was no longer in office, having been succeeded by [[William Howard Taft]]. The record-making occasion was a brief overflight of the crowd at a country fair but was nonetheless, the beginning of presidential air travel.<ref> Hardesty 2003, pp. 31–32.</ref>
|
16
|
-
|
17
|
-
Prior to [[World War II]], overseas and cross-country presidential travel was rare. Lack of wireless telecommunication and quick transportation made long-distance travel impractical, as it took much time and isolated the president from events in [[Washington, D.C.]] By the late 1930s, with the arrival of aircraft such as the [[Douglas DC-3]], increasing numbers of the U.S. public saw passenger air travel as a reasonable mode of transportation. All-metal aircraft, more reliable engines, and new radio aids to navigation had made commercial airline travel safer and more convenient. Life insurance companies even began to offer airline pilots insurance policies, albeit at extravagant rates, and many commercial travelers and government officials began using the airlines in preference to rail travel, especially for longer trips.
|
18
|
-
|
19
|
-
[[Franklin D. Roosevelt]] was the first president to fly in an aircraft while in office. During World War II, Roosevelt traveled on the ''Dixie Clipper'', a Pan Am-crewed [[Boeing 314]] [[flying boat]] to the 1943 [[Casablanca Conference (1943)|Casablanca Conference]], in [[Morocco]], a flight that covered 5,500 miles (in three "legs").<ref> Hardesty 2003, pp. 38.</ref> The threat from the German submarines throughout the [[Battle of the Atlantic (1939–1945)|Battle of the Atlantic]] made transatlantic air travel the preferred method of transportation.<ref> Hardesty 2003, p. 39.</ref>
|
20
|
-
|
21
|
-
[[Image:Sacred Cow airplane.jpg|thumb|right|President Franklin D. Roosevelt's [[C-54 Skymaster]] aircraft, nicknamed "the Sacred Cow".]]
|
22
|
-
|
23
|
-
The first dedicated aircraft proposed for presidential use was a [[C-87 Liberator Express|C-87A]] VIP transport aircraft. This aircraft, number 41-24159, was re-modified in 1943 for use as a presidential VIP transport, the ''Guess Where II'', intended to carry President Franklin D. Roosevelt on international trips.<ref name= "Dorr"/> Had it been accepted, it would have been the first aircraft to be used in presidential service, in effect the first Air Force One. However, after a review of the C-87's highly controversial safety record in service, the [[United States Secret Service|Secret Service]] flatly refused to approve the ''Guess Where II'' for presidential carriage.<ref name= "Dorr">Dorr 2002, p. l34.</ref> The aircraft was then used to transport senior members of the Roosevelt administration on various trips. In March 1944, the ''Guess Where II'' transported [[Eleanor Roosevelt]] on a goodwill tour of several Latin American countries. The C-87 was scrapped in 1945.<ref name= "Dorr"/>
|
24
|
-
|
25
|
-
The Secret Service subsequently reconfigured a Douglas [[C-54 Skymaster]] for duty as a presidential transport. This aircraft, nicknamed the ''Sacred Cow'', included a sleeping area, radio telephone, and retractable elevator for Roosevelt's wheelchair. As modified, the presidential C-54 carried the president on several important trips.
|
26
|
-
|
27
|
-
[[Image:Independence aircraft.png|thumb|left|The ''Independence'' used primarily by President Truman]]
|
28
|
-
|
29
|
-
After Roosevelt died in spring 1945, Vice President [[Harry S. Truman]] became President. He replaced the C-54 in 1947 with a modified [[Douglas DC-6|C-118 Liftmaster]], calling it the ''Independence''. This was the first aircraft acting as Air Force One that had a distinctive exterior–a [[bald eagle]] head painted on its nose.
|
30
|
-
|
31
|
-
The presidential call sign was established for security purposes during the administration of [[Dwight D. Eisenhower]]. The change stemmed from a 1953 incident where an [[Eastern Air Lines|Eastern Airlines]] commercial flight (8610) had the same call sign as a flight the president was on (Air Force 8610). The aircraft accidentally entered the same airspace, and after the incident the unique call sign "Air Force One" was introduced for the presidential aircraft.
|
32
|
-
|
33
|
-
[[File:Lockheed VC-121E Super Constellation.jpg|thumb|right|The ''Columbine III'' used by President Eisenhower]]
|
34
|
-
|
35
|
-
Eisenhower also introduced four other [[propeller]] aircraft, the [[Lockheed Constellation|Lockheed C-121 Constellations]] (VC-121E) to presidential service. These aircraft were named ''Columbine II'' and ''Columbine III'' by [[Mamie Eisenhower]] after the [[Aquilegia caerulea|columbine]], the official state flower of Colorado, her adopted home state. Two [[Aero Commander 500|Aero Commanders]] were also added to the fleet and earned the distinction of being the smallest planes ever to serve as Air Force One. President Eisenhower also upgraded Air Force One's technology by adding an air-to-ground telephone and an air-to-ground teletype machine. Towards the end of Eisenhower's term in 1958, the Air Force added three [[C-137 Stratoliner|Boeing 707]] [[jet aircraft|jet]]s (as VC-137s designated SAM 970, 971, and 972), into the fleet. Eisenhower became the first president to use the VC-137 during his "Flight to Peace" Goodwill tour, from 3 December through 22 December 1959. He visited 11 Asian nations, flying {{convert|22000|mi|km}} in 19 days, about twice as fast as he would have on ''Columbine''.
|
36
|
-
|
37
|
-
===Boeing 707s===
|
38
|
-
{{main|VC-137C SAM 26000|VC-137C SAM 27000}}
|
39
|
-
[[File:VC-137-1 Air Force One .jpg|thumb|left|Boeing 707 ([[SAM 26000]]) served Presidents Kennedy to Clinton.]]
|
40
|
-
|
41
|
-
In October 1962, the [[John F. Kennedy]] administration purchased a [[C-137 Stratoliner]], [[SAM 26000|a modified long-range 707—Special Air Mission (SAM) 26000]], although he had used the Eisenhower-era jets for trips to Canada, France, Austria and the United Kingdom.
|
42
|
-
|
43
|
-
The Air Force had attempted a special presidential [[livery]] of their own design: a scheme in red and metallic gold, with the nation's name in block letters. Kennedy felt the aircraft appeared too regal, and, on advice from his wife, First Lady [[Jacqueline Kennedy]], he contacted the French-born American industrial designer [[Raymond Loewy]] for help in designing a new livery and interiors for the VC-137 jet.<ref name=Walsh>Walsh, Kenneth T. ''Air Force One: A History of the Presidents and Their Planes''. New York: Hyperion: 2003. ISBN 1-4013-0004-9.</ref> Loewy met with the president, and his earliest research on the project took him to the National Archives, where he looked at the first printed copy of the [[United States Declaration of Independence]], and saw the country's name set widely spaced and in upper case in a typeface called [[Caslon]]. He chose to expose the polished aluminum fuselage on the bottom side, and used two blues; a slate-blue associated with the early republic and the presidency, and a more contemporary [[cyan]] to represent the present and future. The [[Seal of the President of the United States|presidential seal]] was added to both sides of the fuselage near the nose, a large American flag was painted on the tail, and the sides of the aircraft read "United States of America" in all capital letters. Loewy's work won immediate praise from the president and the press. The VC-137 markings were adapted for the larger VC-25 when it entered service in 1990.<ref>Hardesty 2003, p. 70.</ref>
|
44
|
-
|
45
|
-
[[Image:Air Force One SAM 27000.jpg|thumb|right|Boeing 707 [[SAM 27000]] as Air Force One SAM 27000 served Presidents Nixon to Bush 43, and was the primary transport for Nixon to Reagan.]]
|
46
|
-
SAM 26000 was in service from 1962 to 1998, serving Presidents Kennedy to [[Bill Clinton|Clinton]]. On November 22, 1963, SAM 26000 carried President Kennedy to Dallas, Texas, where it served as the backdrop as President and Mrs. Kennedy greeted well-wishers at Dallas' Love Field. Later that afternoon, Kennedy was assassinated, and Vice President [[Lyndon Johnson]] assumed the job of president and took the oath of office aboard SAM 26000. At Johnson's request, the plane carried Kennedy's body back to Washington. It also flew over [[Arlington National Cemetery]] as Kennedy was being laid to rest, following 50 fighter jets. A decade later, it brought Johnson's own body to Washington for his [[state funeral]] and then back home to Texas. As the former president was laid to rest at [[LBJ Ranch|his ranch]], a former pilot of SAM 26000 presented the flag to [[Lady Bird Johnson]].
|
47
|
-
|
48
|
-
President Johnson twice used Air Force One, in 1966 and 1967, to visit American troops in Vietnam. <ref>Hardesty 2003, p. 88.</ref> Another unusual use of the aircraft was a five-day odyssey beginning on December 19, 1967 when Johnson embarked on a world tour. Ostensibly the president was to attend the funeral of Prime Minister Harold Holt of Australia, but the press corps flying on a "no-frills" charter jet airliner derided the unscheduled and haphazard nature of the flights that ended with visits to the leaders of 14 countries covering a total of 28,210 miles.<ref>Hardesty 2003, pp. 88–89.</ref> A visit to [[Pope Paul VI]] ended the whirlwind trek, widely criticized by the world press as an "extravagant feat that mocked every role of protocol."<ref>Hardesty 2003, p. 94.</ref>
|
49
|
-
|
50
|
-
SAM 26000 was replaced in 1972 by another VC-137, [[SAM 27000|Special Air Mission 27000]], although SAM 26000 was kept as a backup until it was finally retired in 1998. SAM 26000 is now on display at the [[National Museum of the United States Air Force]]. [[Richard Nixon]] was the first president to use SAM 27000, and the newer aircraft served every president since Nixon, until it was replaced by two [[Boeing VC-25|VC-25]] aircraft (SAM 28000 and 29000) in 1990. After announcing his intention to resign, Nixon boarded SAM 27000 to travel to California. Over Missouri, the call sign for the airplane changed from Air Force One to SAM 27000 after Gerald Ford became president.
|
51
|
-
|
52
|
-
SAM 27000 was decommissioned in 2001 by President [[George W. Bush]], flown to [[San Bernardino International Airport]] in California, and later dismantled and taken to the [[Ronald Reagan Presidential Library]] in [[Simi Valley]], where it was reassembled and is currently on permanent display.
|
53
|
-
|
54
|
-
===Boeing 747s===
|
55
|
-
{{see also|Boeing VC-25}}
|
56
|
-
[[File:Barack Obama meets his staff in Air Force One Conference Room.jpg|thumb|left|President [[Barack Obama]] meets with staff in the conference room, April 3, 2009.]]
|
57
|
-
|
58
|
-
Though [[Ronald Reagan]]'s two terms as president saw no major changes to Air Force One, the fabrication of the current 747s began during his presidency. Reagan ordered two identical [[Boeing 747]]s to replace the aging 707 that he used for transport.<ref name="747-dod">Williams, Rudi. [https://www.defenselink.mil/news/newsarticle.aspx?id=26295 "Reagan Makes First, Last Flight in Jet He Ordered."] ''United States Department of Defense''. June 10, 2004. Retrieved: June 23, 2009.</ref> The interior designs were drawn up by First Lady [[Nancy Reagan]], who used designs reminiscent of the [[American Southwest]].<ref name="747-dod"/> The first aircraft was delivered in 1990, during the administration of [[George H. W. Bush]]. Delays were experienced to allow for additional work to protect the aircraft from [[electromagnetic pulse]] (EMP) effects.
|
59
|
-
|
60
|
-
The VC-25 is equipped with both secure and unsecure phone and computer communications systems, enabling the president to perform duties while in the air in the event of an attack on the United States.
|
61
|
-
|
62
|
-
When [[George W. Bush|President Bush]] came to the end of his second term, a VC-25 was used to transport him to Texas - for this purpose, the craft was called Special Air Mission 28000, as the aircraft did not carry the President of the United States.
|
63
|
-
|
64
|
-
[[Image:George and Laura Bush at Bagram Air Base in Afghanistan.jpg|thumb|right|President [[George W. Bush]] and first lady [[Laura Bush]] walk on the tarmac as Air Force One sits at [[Bagram Air Base]] in [[Afghanistan]], March 1, 2006.]]
|
65
|
-
One of the most dramatic episodes aboard Air Force One happened during the [[September 11 attacks]]. President George W. Bush was interrupted at [[Emma E. Booker Elementary School]] in [[Sarasota, Florida]] after the attack on the World Trade Center South Tower in New York City. He flew on a VC-25 from [[Sarasota-Bradenton International Airport]] to [[Barksdale Air Force Base]] in Louisiana and then to [[Offutt Air Force Base]] in Nebraska before returning to Washington. The next day, officials at the White House and the Justice Department explained that President Bush did this because there was "specific and credible information that the White House and Air Force One were also intended targets."<ref>[http://georgewbush-whitehouse.archives.gov/news/releases/2001/09/20010912-8.html White House News releases]</ref> The White House later could not confirm evidence of a threat made against Air Force One, and subsequent investigation found the original claim to be a result of miscommunication.<ref>[http://www.washingtonpost.com/ac2/wp-dyn?pagename=article&node=&contentId=A32319-2001Sep26 "White House Drops Claim of Threat to Bush."] ''The Washington Post'', September 27, 2001. Retrieved: February 28, 2007.</ref>
|
66
|
-
|
67
|
-
The presidential air fleet is maintained by the [[89th Airlift Wing]] at [[Andrews Air Force Base]], [[Maryland]].
|
68
|
-
Air Force One usually does not have fighter aircraft to escort the presidential aircraft over the United States, but this has occurred. In June 1974, while President Nixon was on his way to a scheduled stop in Syria, Syrian fighter jets intercepted Air Force One to act as escorts. However, the Air Force One crew was not informed in advance and, as a result, took evasive action including a dive.<ref> [http://www.washingtonpost.com/wp-srv/liveonline/03/special/books/sp_books_walsh052203.htm "Washington Post Book Review of ''Air Force One: A History of the Presidents and Their Planes''".] New York: Hyperion: 2003. ISBN 1-4013-0004-9.</ref>
|
69
|
-
|
70
|
-
On April 27, 2009, a low-flying VC-25 circled [[New York City]] for a [[photo-op]] and [[military exercise|training exercise]] and caused a scare for many in New York.<ref>[http://www.cnn.com/2009/POLITICS/04/28/low.flying.plane/index.html Photo-op]</ref> Fallout from the [[Air Force One photo op incident|photo op incident]] led to the resignation of the director of the White House Military Office.
|
71
|
-
|
72
|
-
The VC-25As are expected to be replaced, as they have become less cost-effective to operate. The USAF [[Air Mobility Command]] has been charged with looking into possible replacements, including the new [[Boeing 747-8]] and the [[EADS]] [[Airbus A380]].<ref>[http://www.flightglobal.com/articles/2007/10/17/218681/exclusive-us-considers-airbus-a380-as-air-force-one-and-potentially-a-c-5-replacement.html "US considers Airbus A380 as Air Force One and potentially a C-5 replacement."] ''Flight Global'', October 17, 2007. Retrieved: June 23, 2009.</ref> On January 7, 2009, the USAF [[Air Materiel Command]] issued a new requirement for a replacement aircraft to enter service beginning in 2017.<ref>[https://www.fbo.gov/index?s=opportunity&mode=form&id=e35e259abc36437e8e7665d42bdac9b2&tab=core&_cview=0 "USAF Presidential Aircraft Recapitalization (PAR) Program."] ''USAF Materiel Command'', 7 January 2007. Retrieved: 8 January 2009.</ref> On January 28, 2009, [[EADS]] announced they would not bid on the program, leaving Boeing the sole bidder, with either their Boeing 747-8 or [[Boeing 787]] being proposed.<ref>[http://www.aviationweek.com/aw/generic/story.jsp?id=news/AF1-012809.xml&headline=Boeing%20Only%20Contender%20for%20New%20Air%20Force%20One&channel=defense "Boeing Only Contender for New Air Force One".] ''AviationWeek.com'', January 28, 2009. Retrieved: June 23, 2009.</ref> <!-- This is a summary. Keep replacement details at [[Boeing VC-25]]. -->
|
73
|
-
|
74
|
-
==Other presidential aircraft==
|
75
|
-
[[United Airlines]] has the distinction of being the only commercial airline to have operated ''[[Executive One]]'', the designation given to a civilian flight on which the U.S. President is aboard. On December 26, 1973, then-President [[Richard Nixon]] flew as a passenger aboard a [[Washington Dulles International Airport|Washington Dulles]] to [[Los Angeles International Airport|Los Angeles International]] flight. It was explained by his staff that this was done in order to conserve fuel by not having to fly the usual [[Boeing 707]] Air Force aircraft; however, the 707 followed behind in case of emergency.<ref name=Exec1CBS>[http://tvnews.vanderbilt.edu/program.pl?ID=226900 Vanderbilt Television News Archive "President / Commercial Airline Flight."] ''[[CBS News]]'', December 27, 1973. Retrieved: June 23, 2009.</ref>
|
76
|
-
|
77
|
-
On March 8, 2000, President [[Bill Clinton]] flew to Pakistan aboard an unmarked [[Gulfstream III]] while another aircraft with the call sign "Air Force One" flew on the same route a few minutes later.<ref>Sammon, Bill. "Clinton uses decoy flight for security." ''Washington Times'', March 26, 2000, p. C.1.</ref><ref>Haniffa, Aziz. "Playing hide-and-seek on trip to Islamabad." ''India Abroad''. New York: March 31, 2000, Vol. XXX, Issue 27, p. 22.</ref><ref>"Clinton's trip to Asia cost at least $50 million." ''Milwaukee Journal Sentinel'', April 9, 2000, p. 175 A.</ref> This diversion was reported by several U.S. press outlets.
|
78
|
-
|
79
|
-
Other heads of state also have special aircraft assigned. See [[Air transports of heads of state and government]] for further details.
|
80
|
-
|
81
|
-
==Air Force One aircraft on display==
|
82
|
-
[[Image:George W. Bush Tours Air Force One.jpg|thumb|right|In 2005, President [[George W. Bush]], First Lady [[Laura Bush]], and former First Lady [[Nancy Reagan]] toured [[VC-137C SAM 27000|SAM 27000]], the aircraft that served seven presidents from 1972–2001; it is now housed at the [[Ronald Reagan Presidential Library]].]]
|
83
|
-
|
84
|
-
Several presidential aircraft that have formerly served as Air Force One (''Sacred Cow'', ''Independence'', ''Columbine III'', [[VC-137C SAM 26000|SAM 26000]], and other smaller presidential aircraft) are on display in the presidential hangar of the [[National Museum of the United States Air Force]] (located at [[Wright-Patterson Air Force Base|Wright-Patterson AFB]] near [[Dayton, Ohio|Dayton]], [[Ohio]]) and at the [[Museum of Flight]] in [[Seattle]], [[Washington]] (earlier VC-137B SAM 970). The Boeing 707 that served as Air Force One from the Nixon years through the George H. W. Bush administration ([[VC-137C SAM 27000|SAM 27000]]) is on display in [[Simi Valley]], [[California]] at the [[Ronald Reagan Presidential Library]]. The library's Air Force One Pavilion was opened to the public on October 24, 2005.
|
85
|
-
|
86
|
-
A [[Douglas DC-6|VC-118A Liftmaster]] used by [[John F. Kennedy]] is on display at the [[Pima Air & Space Museum]] in [[Tucson, Arizona|Tucson]], [[Arizona]].
|
87
|
-
|
88
|
-
==See also==
|
89
|
-
{{portal|United States Air Force|Seal of the US Air Force.svg}}
|
90
|
-
* [[Air Force Two]]
|
91
|
-
* [[Air transports of heads of state and government]]
|
92
|
-
* [[Cadillac One]]
|
93
|
-
* [[Marine One]]
|
94
|
-
* [[Marine Two]]
|
95
|
-
* [[Army One]]
|
96
|
-
* [[Navy One]]
|
97
|
-
* [[Air Force One photo op incident]]
|
98
|
-
|
99
|
-
==References==
|
100
|
-
===Notes===
|
101
|
-
{{reflist}}
|
102
|
-
<references />
|
103
|
-
|
104
|
-
===Bibliography===
|
105
|
-
{{refbegin}}
|
106
|
-
* Abbott James A. and Elaine M. Rice. ''Designing Camelot: The Kennedy White House Restoration.'' New York: Van Nostrand Reinhold, 1998. ISBN 0-442-02532-7.
|
107
|
-
* Albertazzie, Ralph and [[Jerald TerHorst|Jerald F. TerHorst]]. ''Flying White House: The Story of Air Force One''. New York: Book Sales, 1979. ISBN 0-698-10930-9.
|
108
|
-
* Braun, David. [http://news.nationalgeographic.com/news/2003/05/0529_030529_airforceone.html Q&A: U.S. Presidential Jet Air Force One.] ''National Geographic News,'' May 29, 2003.
|
109
|
-
* Dorr, Robert F. ''Air Force One''. St. Paul, Minnesota: Motorbooks International, 2002. ISBN 0-7603-1055-6.
|
110
|
-
* Hardesty, Von. ''Air Force One: The Aircraft that Shaped the Modern Presidency''. Chanhassen, Minnesota: Northword Press, 2003. ISBN 1-55971-894-3.
|
111
|
-
* Harris, Tom. [http://www.howstuffworks.com/air-force-one.htm "How Air Force One Works."] ''HowStuffWorks.com''. Retrieved: October 10, 2006.
|
112
|
-
* Technical Order 00-105E-9, Segment 9, Chapter 7 [http://www.0x4d.net/files/AF1/ Technical Order 00-105E-9]
|
113
|
-
* Walsh, Kenneth T. ''Air Force One: A History of the Presidents and Their Planes''. New York: Hyperion, 2003. ISBN 1-4013-0004-9.
|
114
|
-
{{refend}}
|
115
|
-
|
116
|
-
==External links==
|
117
|
-
{{commons}}
|
118
|
-
* [http://www.nationalmuseum.af.mil/factsheets/factsheet.asp?id=570 SAM 26000 at the National Museum of the United States Air Force]
|
119
|
-
* [http://www.707sim.com/air-force-one.html Facts and History of 707 as Air Force One and "Where they are Now?"]
|
120
|
-
* [http://www.reaganfoundation.org/airforceone/ Air Force One Pavilion]
|
121
|
-
* [http://www.af.mil/factsheets/factsheet.asp?id=131 Air Force Fact Sheet, VC-25 - AIR FORCE ONE]
|
122
|
-
* [http://www.whitehouse.gov/about/air_force_one/ Air Force One page on White House site]
|
123
|
-
* [http://www.trumanlibrary.org/photographs/search.php?access=selectbycategory&keywords=Presidential+aircraft Truman Library & Museum]
|
124
|
-
* [http://www.af.mil/photos/index.asp?galleryID=55 United States Air Force]
|
125
|
-
* [http://www.boeing.com/history/boeing/airforceone.html Boeing History of Air Force One]
|
126
|
-
|
127
|
-
{{PresidentialCallsigns}}
|
128
|
-
{{White House Military Office}}
|
129
|
-
{{US Air Force navbox}}
|
130
|
-
{{aviation lists}}
|
131
|
-
|
132
|
-
[[Category:Executive Office of the President of the United States]]
|
133
|
-
[[Category:Presidency of the United States]]
|
134
|
-
[[Category:Individual aircraft]]
|
135
|
-
[[Category:Presidential aircraft]]
|
136
|
-
[[Category:United States special-purpose aircraft]]
|
137
|
-
[[Category:United States Air Force]]
|
138
|
-
[[Category:Call signs]]
|
139
|
-
|
140
|
-
[[cs:Air Force One]]
|
141
|
-
[[da:Air Force One]]
|
142
|
-
[[de:Air Force One]]
|
143
|
-
[[es:Air Force One]]
|
144
|
-
[[eo:Air Force One]]
|
145
|
-
[[fa:یکم نیروی هوایی]]
|
146
|
-
[[fr:Air Force One]]
|
147
|
-
[[ko:에어 포스 원]]
|
148
|
-
[[hr:Air Force One]]
|
149
|
-
[[id:Air Force One]]
|
150
|
-
[[it:Air Force One]]
|
151
|
-
[[lv:Air Force One]]
|
152
|
-
[[he:אייר פורס 1]]
|
153
|
-
[[hu:Air Force One]]
|
154
|
-
[[nl:Air Force One (roepletter)]]
|
155
|
-
[[ja:エアフォースワン]]
|
156
|
-
[[no:Air Force One]]
|
157
|
-
[[pl:Air Force One]]
|
158
|
-
[[ro:Air Force One]]
|
159
|
-
[[ru:Air Force One]]
|
160
|
-
[[simple:Air Force One]]
|
161
|
-
[[sk:Air Force One]]
|
162
|
-
[[sl:Air Force One]]
|
163
|
-
[[fi:Air Force One]]
|
164
|
-
[[sv:Air Force One]]
|
165
|
-
[[th:แอร์ฟอร์ซวัน]]
|
166
|
-
[[tr:Air Force One]]
|
167
|
-
[[vi:Air Force One]]
|
168
|
-
[[yi:עיר פארס וואן]]
|
169
|
-
[[zh:空军一号]]
|
170
|
-
|