tdiary 4.0.2.20140201 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -0
  3. data/ChangeLog +3 -0
  4. data/Gemfile +5 -5
  5. data/Gemfile.lock +48 -29
  6. data/README.md +1 -1
  7. data/Rakefile +1 -1
  8. data/index.rb +2 -2
  9. data/js/01conf.js +16 -0
  10. data/misc/convert2.rb +3 -3
  11. data/misc/filter/limitdays.rb +2 -2
  12. data/misc/filter/linkcheck.rb +2 -2
  13. data/misc/lib/fcgi_patch.rb +3 -3
  14. data/misc/paas/cloudfoundry/Gemfile.lock +51 -48
  15. data/misc/paas/heroku/Gemfile.lock +23 -21
  16. data/misc/paas/sqale/Gemfile.lock +23 -21
  17. data/misc/plugin/a.rb +4 -4
  18. data/misc/plugin/calendar2.rb +1 -1
  19. data/misc/plugin/category.rb +3 -3
  20. data/misc/plugin/comment_emoji_autocomplete.rb +1 -1
  21. data/misc/plugin/comment_mail-qmail.rb +1 -1
  22. data/misc/plugin/comment_mail-sendmail.rb +1 -1
  23. data/misc/plugin/comment_mail-smtp.rb +1 -1
  24. data/misc/plugin/counter.rb +27 -27
  25. data/misc/plugin/disp_referrer.rb +1 -1
  26. data/misc/plugin/en/amazon.rb +2 -2
  27. data/misc/plugin/en/category.rb +1 -1
  28. data/misc/plugin/en/counter.rb +1 -1
  29. data/misc/plugin/en/disp_referrer.rb +1 -1
  30. data/misc/plugin/en/kw.rb +1 -1
  31. data/misc/plugin/en/search_form.rb +1 -1
  32. data/misc/plugin/en/todo.rb +1 -1
  33. data/misc/plugin/en/weather.rb +5 -2
  34. data/misc/plugin/image.rb +2 -2
  35. data/misc/plugin/ja/disp_referrer.rb +7 -7
  36. data/misc/plugin/ja/my-sequel.rb +1 -1
  37. data/misc/plugin/ja/recent_comment3.rb +1 -1
  38. data/misc/plugin/ja/referer_scheme.rb +1 -1
  39. data/misc/plugin/ja/search_control.rb +1 -1
  40. data/misc/plugin/ja/search_form.rb +2 -2
  41. data/misc/plugin/ja/todo.rb +1 -1
  42. data/misc/plugin/ja/weather.rb +17 -12
  43. data/misc/plugin/makelirs.rb +4 -4
  44. data/misc/plugin/my-ex.rb +1 -1
  45. data/misc/plugin/my-sequel.rb +1 -1
  46. data/misc/plugin/pb-show.rb +1 -1
  47. data/misc/plugin/recent_comment.rb +5 -5
  48. data/misc/plugin/recent_comment3.rb +2 -2
  49. data/misc/plugin/recent_namazu.rb +4 -4
  50. data/misc/plugin/recent_rss.rb +7 -7
  51. data/misc/plugin/referer_scheme.rb +2 -2
  52. data/misc/plugin/search-default.rb +1 -1
  53. data/misc/plugin/sn.rb +3 -3
  54. data/misc/plugin/speed_comment.rb +1 -1
  55. data/misc/plugin/squeeze.rb +8 -8
  56. data/misc/plugin/tb-show.rb +1 -1
  57. data/misc/plugin/theme_online.rb +25 -0
  58. data/misc/plugin/tlink.rb +2 -2
  59. data/misc/plugin/todo.rb +2 -2
  60. data/misc/plugin/weather.rb +82 -26
  61. data/misc/plugin/whatsnew.rb +1 -1
  62. data/misc/plugin/xmlrpc/xmlrpc.rb +11 -11
  63. data/misc/theme_convert/theme_convert.rb +3 -3
  64. data/plugin/00default.rb +35 -28
  65. data/plugin/50sp.rb +1 -1
  66. data/plugin/60sf.rb +1 -1
  67. data/plugin/90migrate.rb +2 -2
  68. data/plugin/en/00default.rb +1 -1
  69. data/plugin/ja/00default.rb +1 -1
  70. data/spec/acceptance/append_comment_spec.rb +18 -18
  71. data/spec/acceptance/append_diary_spec.rb +22 -22
  72. data/spec/acceptance/bugfix/encoding_error_spec.rb +1 -1
  73. data/spec/acceptance/save_conf_comment_spec.rb +15 -15
  74. data/spec/acceptance/save_conf_default_spec.rb +26 -26
  75. data/spec/acceptance/save_conf_dnsbl_spec.rb +19 -19
  76. data/spec/acceptance/save_conf_filter_spec.rb +6 -6
  77. data/spec/acceptance/save_conf_plugin_spec.rb +11 -11
  78. data/spec/acceptance/save_conf_referer_spec.rb +4 -4
  79. data/spec/acceptance/save_conf_security_spec.rb +28 -28
  80. data/spec/acceptance/update_diary_spec.rb +16 -16
  81. data/spec/acceptance/view_category_spec.rb +1 -1
  82. data/spec/acceptance/view_comment_spec.rb +6 -6
  83. data/spec/acceptance/view_diary_spec.rb +25 -25
  84. data/spec/acceptance/view_referer_spec.rb +3 -3
  85. data/spec/core/compatible_spec.rb +5 -5
  86. data/spec/core/configuration_spec.rb +3 -3
  87. data/spec/core/core_ext_spec.rb +7 -7
  88. data/spec/core/io/default_spec.rb +1 -1
  89. data/spec/core/plugin_spec.rb +41 -41
  90. data/spec/core/rack/assets/precompile_spec.rb +3 -3
  91. data/spec/core/rack/html_anchor_spec.rb +15 -15
  92. data/spec/core/rack/static_spec.rb +3 -3
  93. data/spec/core/rack/valid_request_path_spec.rb +13 -13
  94. data/spec/core/style/tdiary_style_spec.rb +10 -10
  95. data/spec/core/style/wiki_style_spec.rb +16 -16
  96. data/spec/plugin/bq_spec.rb +2 -2
  97. data/spec/spec_helper.rb +3 -1
  98. data/tdiary/configuration.rb +2 -2
  99. data/tdiary/environment.rb +1 -1
  100. data/tdiary/io/default.rb +1 -1
  101. data/tdiary/lang/ja.rb +2 -2
  102. data/tdiary/tasks/db.rake +5 -5
  103. data/tdiary/version.rb +1 -1
  104. data/test/disp_referrer_test.rb +4 -4
  105. data/test/my-sequel_test.rb +1 -1
  106. data/test/test_plugin_helper.rb +47 -0
  107. data/test/weather-ADDS-METARS-PHTO-140131.html +109 -0
  108. data/test/weather-ADDS-METARS-RJAA-130131.html +111 -0
  109. data/test/weather-ADDS-METARS-RJAA-130227.html +111 -0
  110. data/test/weather_test.rb +144 -18
  111. data/update.rb +2 -2
  112. metadata +10 -3
@@ -42,7 +42,7 @@ honbun
42
42
  </div>
43
43
  EOF
44
44
  end
45
- it { @diary.to_html.should eq @html }
45
+ it { expect(@diary.to_html).to eq @html }
46
46
  end
47
47
 
48
48
  context 'CHTML' do
@@ -56,11 +56,11 @@ honbun
56
56
  <%=section_leave_proc( Time.at( 1041346800 ) )%>
57
57
  EOF
58
58
  end
59
- it { @diary.to_html({}, :CHTML).should eq @html }
59
+ it { expect(@diary.to_html({}, :CHTML)).to eq @html }
60
60
  end
61
61
 
62
62
  context 'to_src' do
63
- it { @diary.to_src.should eq @source }
63
+ it { expect(@diary.to_src).to eq @source }
64
64
  end
65
65
  end
66
66
 
@@ -97,7 +97,7 @@ replace
97
97
  </div>
98
98
  EOF
99
99
  end
100
- it { @diary.to_html.should eq @html }
100
+ it { expect(@diary.to_html).to eq @html }
101
101
  end
102
102
 
103
103
  describe '#add_section' do
@@ -131,7 +131,7 @@ honbun
131
131
  </div>
132
132
  EOF
133
133
  end
134
- it { @diary.to_html.should eq @html }
134
+ it { expect(@diary.to_html).to eq @html }
135
135
  end
136
136
 
137
137
  describe '#delete_section' do
@@ -157,7 +157,7 @@ honbun
157
157
  </div>
158
158
  EOF
159
159
  end
160
- it { @diary.to_html.should eq @html }
160
+ it { expect(@diary.to_html).to eq @html }
161
161
  end
162
162
 
163
163
  describe 'test_wiki_style2' do
@@ -185,7 +185,7 @@ honbun
185
185
  </div>
186
186
  EOF
187
187
  end
188
- it { @diary.to_html.should eq @html }
188
+ it { expect(@diary.to_html).to eq @html }
189
189
  end
190
190
 
191
191
  context 'CHTML' do
@@ -198,7 +198,7 @@ honbun
198
198
  <%=section_leave_proc( Time.at( 1041346800 ) )%>
199
199
  EOF
200
200
  end
201
- it { @diary.to_html({}, :CHTML).should eq @html }
201
+ it { expect(@diary.to_html({}, :CHTML)).to eq @html }
202
202
  end
203
203
  end
204
204
 
@@ -237,7 +237,7 @@ honbun
237
237
  </div>
238
238
  EOF
239
239
  end
240
- it { @diary.to_html.should eq @html }
240
+ it { expect(@diary.to_html).to eq @html }
241
241
  end
242
242
 
243
243
  context 'CHTML' do
@@ -254,7 +254,7 @@ honbun
254
254
  <%=section_leave_proc( Time.at( 1041346800 ) )%>
255
255
  EOF
256
256
  end
257
- it { @diary.to_html({}, :CHTML).should eq @html }
257
+ it { expect(@diary.to_html({}, :CHTML)).to eq @html }
258
258
  end
259
259
  end
260
260
 
@@ -300,7 +300,7 @@ ge
300
300
  </div>
301
301
  EOF
302
302
  end
303
- it { @diary.to_html.should eq @html }
303
+ it { expect(@diary.to_html).to eq @html }
304
304
  end
305
305
 
306
306
  context 'CHTML' do
@@ -324,7 +324,7 @@ ge
324
324
  <%=section_leave_proc( Time.at( 1041346800 ) )%>
325
325
  EOF
326
326
  end
327
- it { @diary.to_html({}, :CHTML).should eq @html }
327
+ it { expect(@diary.to_html({}, :CHTML)).to eq @html }
328
328
  end
329
329
  end
330
330
 
@@ -372,7 +372,7 @@ http://ja.wikipedia.org/wiki/%E9%AF%96
372
372
  </div>
373
373
  EOF
374
374
  end
375
- it { @diary.to_html.should eq @html }
375
+ it { expect(@diary.to_html).to eq @html }
376
376
  end
377
377
 
378
378
  context 'CHTML' do
@@ -392,7 +392,7 @@ http://ja.wikipedia.org/wiki/%E9%AF%96
392
392
  <%=section_leave_proc( Time.at( 1041346800 ) )%>
393
393
  EOF
394
394
  end
395
- it { @diary.to_html({}, :CHTML).should eq @html }
395
+ it { expect(@diary.to_html({}, :CHTML)).to eq @html }
396
396
  end
397
397
  end
398
398
 
@@ -422,7 +422,7 @@ appended body
422
422
  </div>
423
423
  EOF
424
424
  end
425
- it { @diary.to_html.should eq @html }
425
+ it { expect(@diary.to_html).to eq @html }
426
426
  end
427
427
 
428
428
  context 'CHTML' do
@@ -435,7 +435,7 @@ appended body
435
435
  <%=section_leave_proc( Time.at( 1041346800 ) )%>
436
436
  EOF
437
437
  end
438
- it { @diary.to_html({}, :CHTML).should eq @html }
438
+ it { expect(@diary.to_html({}, :CHTML)).to eq @html }
439
439
  end
440
440
  end
441
441
  end
@@ -14,8 +14,8 @@ describe "bq plugin w/" do
14
14
  @body_snippet = plugin.bq('foo')
15
15
  end
16
16
 
17
- it { @body_snippet.should == expected_html_body(
18
- :src => 'foo') }
17
+ it { expect(@body_snippet).to eq(expected_html_body(
18
+ :src => 'foo')) }
19
19
  end
20
20
 
21
21
  def expected_html_body(options)
data/spec/spec_helper.rb CHANGED
@@ -20,7 +20,9 @@ end
20
20
  require 'tdiary'
21
21
 
22
22
  RSpec.configure do |config|
23
- config.treat_symbols_as_metadata_keys_with_true_values = true
23
+ config.expect_with :rspec do |c|
24
+ c.syntax = :expect
25
+ end
24
26
  end
25
27
 
26
28
  class DummyTDiary
@@ -71,10 +71,10 @@ module TDiary
71
71
  str.force_encoding(charset || 'utf-8')
72
72
  end
73
73
  unless str.valid_encoding?
74
- str.encode!('utf-16be', {:invalid => :replace, undef: :replace})
74
+ str.encode!('utf-16be', {invalid: :replace, undef: :replace})
75
75
  end
76
76
  unless str.encoding == Encoding::UTF_8
77
- str.encode!('utf-8', {:invalid => :replace, undef: :replace})
77
+ str.encode!('utf-8', {invalid: :replace, undef: :replace})
78
78
  end
79
79
  str
80
80
  end
@@ -7,7 +7,7 @@ module TDiary::Cache; end
7
7
  # Set up gems listed in the Gemfile.
8
8
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
9
 
10
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
10
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
11
11
 
12
12
  if defined?(Bundler)
13
13
  env = [:default]
data/tdiary/io/default.rb CHANGED
@@ -99,7 +99,7 @@ module TDiary
99
99
  fhr.truncate( 0 )
100
100
  fhr.puts( TDiary::TDIARY_MAGIC )
101
101
  fhr.puts( "Date: #{date}" )
102
- fhr.puts
102
+ fhr.puts
103
103
  diary.each_referer( diary.count_referers ) do |count,ref|
104
104
  fhr.puts( "#{count} #{ref}" )
105
105
  end
data/tdiary/lang/ja.rb CHANGED
@@ -23,11 +23,11 @@ def mobile_encoding
23
23
  end
24
24
 
25
25
  def to_mobile( str )
26
- str.encode(mobile_encoding, {:invalid => :replace, undef: :replace})
26
+ str.encode(mobile_encoding, {invalid: :replace, undef: :replace})
27
27
  end
28
28
 
29
29
  def to_mail( str )
30
- str.encode('iso-2022-jp', {:invalid => :replace, undef: :replace})
30
+ str.encode('iso-2022-jp', {invalid: :replace, undef: :replace})
31
31
  end
32
32
 
33
33
  def migrate_to_utf8( str )
data/tdiary/tasks/db.rake CHANGED
@@ -47,9 +47,9 @@ namespace :db do
47
47
  primary_key [:diary_id, :no]
48
48
  end unless db.table_exists?(:comments)
49
49
 
50
- diaries.each do |date, diary|
50
+ diaries.each do |d, diary|
51
51
  no = 0
52
- if /(\d\d\d\d)(\d\d)(\d\d)/ =~ date
52
+ if /(\d\d\d\d)(\d\d)(\d\d)/ =~ d
53
53
  year = $1
54
54
  month = $2
55
55
  day = $3
@@ -57,7 +57,7 @@ namespace :db do
57
57
  entry = db[:diaries].filter(:year => year,
58
58
  :month => month,
59
59
  :day => day,
60
- :diary_id => date)
60
+ :diary_id => d)
61
61
  if entry.count > 0
62
62
  entry.update(:title => diary.title,
63
63
  :last_modified => diary.last_modified.to_i,
@@ -68,7 +68,7 @@ namespace :db do
68
68
  db[:diaries].insert(:year => year,
69
69
  :month => month,
70
70
  :day => day,
71
- :diary_id => date,
71
+ :diary_id => d,
72
72
  :title => diary.title,
73
73
  :last_modified => diary.last_modified.to_i,
74
74
  :style => diary.style,
@@ -78,7 +78,7 @@ namespace :db do
78
78
 
79
79
  diary.each_comment(diary.count_comments(true)) do |com|
80
80
  no += 1
81
- comment = db[:comments].filter(:diary_id => date, :no => no)
81
+ comment = db[:comments].filter(:diary_id => d, :no => no)
82
82
  if comment.count > 0
83
83
  comment.update(:name => com.name, :mail => com.mail, :last_modified => com.date.to_i, :visible => com.visible?, :comment => com.body)
84
84
  else
data/tdiary/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TDiary
2
- VERSION = '4.0.2.20140201'
2
+ VERSION = '4.0.3'
3
3
  end
@@ -16,15 +16,15 @@ require 'uri'
16
16
  # top level. Therefore, we will spit required objects defined
17
17
  # in tdiary.rb to the top level.
18
18
 
19
- # Stab for @conf
20
- class StabConf
19
+ # Stub for @conf
20
+ class DispReferrerStubConf
21
21
  def secure; false; end
22
22
  def options; {}; end
23
23
  def referer_table; []; end
24
24
  def no_referer; []; end
25
25
  def io_class; nil; end
26
26
  end
27
- @conf = StabConf.new
27
+ @conf = DispReferrerStubConf.new
28
28
 
29
29
  # Required module and class structures
30
30
  module TDiary
@@ -45,7 +45,7 @@ require 'disp_referrer'
45
45
 
46
46
  class TestSearchEngines < Test::Unit::TestCase
47
47
  def setup
48
- @dr2_setup = DispRef2Setup.new(StabConf.new, nil, true, [], '')
48
+ @dr2_setup = DispRef2Setup.new(DispReferrerStubConf.new, nil, true, [], '')
49
49
  end
50
50
 
51
51
  def match(url, keyword, provider = nil)
@@ -164,7 +164,7 @@ class TestMySequelConf < Test::Unit::TestCase
164
164
  :title => 'Test to show text area',
165
165
  :default => "a\nb\ncc",
166
166
  :index => 4,
167
- :textarea => {:rows => 2},
167
+ :textarea => {rows: 2},
168
168
  }
169
169
  }
170
170
  @my_sequel_conf = MySequel::Conf.new(@defaults)
@@ -105,4 +105,51 @@ module TDiary
105
105
  @conf = TDiary::ConfStub.new
106
106
  end
107
107
  end
108
+
109
+ class StubPlugin
110
+ def self.inherited(child)
111
+ super
112
+ child.module_eval(<<-EOS)
113
+ def context
114
+ binding
115
+ end
116
+ EOS
117
+ end
118
+
119
+ include TDiary::PluginTestStub
120
+
121
+ def StubPlugin::_load_plugin(plugin_relative_path, lang = 'en')
122
+ plugin_class = Class.new(StubPlugin)
123
+ plugin = plugin_class.new(lang)
124
+ plugin.load(plugin_relative_path)
125
+ return plugin_class, plugin
126
+ end
127
+
128
+ def StubPlugin::load_plugin(plugin_relative_path, lang = 'en')
129
+ return StubPlugin::_load_plugin(plugin_relative_path, lang = 'en')[1]
130
+ end
131
+
132
+ def StubPlugin::new_plugin(plugin_relative_path, lang = 'en')
133
+ return StubPlugin::_load_plugin(plugin_relative_path, lang = 'en')[0]
134
+ end
135
+
136
+ def initialize(lang = 'en')
137
+ @lang = lang
138
+ reset
139
+ end
140
+
141
+ def load(plugin_relative_path)
142
+ reset
143
+ ppath = TDiary::PluginTestHelper.absolute_path_of(plugin_relative_path)
144
+ pl10n = TDiary::PluginTestHelper.resource_absolute_path_of(plugin_relative_path, @lang)
145
+ File.open(pl10n){|f| eval(f.read, context, TDiary::PluginTestHelper.resource_relative_path_of(plugin_relative_path, @lang))}
146
+ File.open(ppath){|f| eval(f.read, context, plugin_relative_path)}
147
+ end
148
+
149
+ def reset
150
+ @options = {}
151
+ @conf_genre_label = {}
152
+ @conf = TDiary::ConfStub.new
153
+ end
154
+ end
108
155
  end
@@ -0,0 +1,109 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2
+ <HTML>
3
+ <HEAD>
4
+ <TITLE>ADDS - METARS form results</TITLE>
5
+ <LINK REL="StyleSheet" type="text/css" HREF="/layout/awc/mystyle.css">
6
+ </HEAD>
7
+ <BODY BGCOLOR="#FFFFFF">
8
+ <TABLE SUMMARY="This table is used for formatting purposes only" BORDER=0 CELLPADDING=3 CELLSPACING=0>
9
+ <TR VALIGN="top">
10
+ <TD ALIGN="left" COLSPAN="2">
11
+ <H2>Aviation Digital Data Service (ADDS)</H2>
12
+ Output produced by METARs form (1550&#160;UTC&nbsp;31 January 2014)<BR>
13
+ found at <A HREF="http://www.aviationweather.gov/adds/metars/"> http://www.aviationweather.gov/adds/metars/</A><BR>&#160;<BR>
14
+ </TD>
15
+ </TR>
16
+ <TR VALIGN="top">
17
+ <TD ALIGN="left" COLSPAN="2">
18
+ <TR VALIGN="top">
19
+ <TD ALIGN="right">
20
+ <FONT COLOR="#9999CC"><STRONG>METAR text:</STRONG></FONT>
21
+ </TD>
22
+ <TD ALIGN="left" BGCOLOR="#CDCDCD">
23
+ <STRONG>PHTO 311453Z 00000KT 10SM FEW030 OVC110 18/17 A2989 RMK
24
+ AO2 SLP120 T01830167 56003</STRONG>
25
+ </TD>
26
+ </TR>
27
+ <TR VALIGN="top">
28
+ <TD ALIGN="right">
29
+ <FONT COLOR="#9999CC"><STRONG>Conditions at:</STRONG></FONT>
30
+ </TD>
31
+ <TD ALIGN="left">
32
+ PHTO
33
+ (HILO , HI, US) observed 1453&#160;UTC&#160;31 January 2014
34
+ </TD>
35
+ </TR>
36
+ <TR VALIGN="top">
37
+ <TD ALIGN="right">
38
+ <FONT COLOR="#9999CC"><STRONG>Temperature:</STRONG></FONT>
39
+ </TD>
40
+ <TD ALIGN="left">
41
+ 18&#46;3&deg;C (65&deg;F)
42
+ </TD>
43
+ </TR>
44
+ <TR VALIGN="top">
45
+ <TD ALIGN="right">
46
+ <FONT COLOR="#9999CC"><STRONG>Dewpoint:</STRONG></FONT>
47
+ </TD>
48
+ <TD ALIGN="left">
49
+ 16&#46;7&deg;C (62&deg;F) [RH&#160;=&#160;90&#37;]
50
+ </TD>
51
+ </TR>
52
+ <TR VALIGN="top">
53
+ <TD ALIGN="right">
54
+ <FONT COLOR="#9999CC"><STRONG>Pressure (altimeter):</STRONG></FONT>
55
+ </TD>
56
+ <TD ALIGN="left">
57
+ 29&#46;89&#160;inches&#160;Hg (1012&#46;3&#160;mb)<BR>[Sea&#45;level pressure:&#160;1012&#46;0&#160;mb]
58
+ </TD>
59
+ </TR>
60
+ <TR VALIGN="top">
61
+ <TD ALIGN="right">
62
+ <FONT COLOR="#9999CC"><STRONG>Winds:</STRONG></FONT>
63
+ </TD>
64
+ <TD ALIGN="left">
65
+ calm
66
+ </TD>
67
+ </TR>
68
+ <TR VALIGN="top">
69
+ <TD ALIGN="right">
70
+ <FONT COLOR="#9999CC"><STRONG>Visibility:</STRONG></FONT>
71
+ </TD>
72
+ <TD ALIGN="left">
73
+ 10 or more miles (16+ km)
74
+ </TD>
75
+ </TR>
76
+ <TR VALIGN="top">
77
+ <TD ALIGN="right">
78
+ <FONT COLOR="#9999CC"><STRONG>Ceiling:</STRONG></FONT>
79
+ </TD>
80
+ <TD ALIGN="left">
81
+ 11000 feet AGL
82
+ </TD>
83
+ </TR>
84
+ <TR VALIGN="top">
85
+ <TD ALIGN="right">
86
+ <FONT COLOR="#9999CC"><STRONG>Clouds:</STRONG></FONT>
87
+ </TD>
88
+ <TD ALIGN="left">
89
+ few clouds at 3000 feet AGL<BR>overcast cloud deck at 11000 feet AGL
90
+ </TD>
91
+ </TR>
92
+ <TR VALIGN="top">
93
+ <TD ALIGN="right">
94
+ <FONT COLOR="#9999CC"><STRONG>Weather:</STRONG></FONT>
95
+ </TD>
96
+ <TD ALIGN="left">
97
+ no significant weather observed at this time
98
+ </TD>
99
+ </TR>
100
+ <TR VALIGN="middle">
101
+ <TD ALIGN="left" COLSPAN="2">
102
+ <HR WIDTH="65%">
103
+ </TD>
104
+ </TR>
105
+ </TD>
106
+ </TR>
107
+ </TABLE>
108
+ </BODY>
109
+ </HTML>
@@ -0,0 +1,111 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2
+ <!-- http://aviationweather.gov/adds/metars/?station_ids=RJAA&std_trans=translated&chk_metars=on&hoursStr=most+recent+only&submitmet=Submit -->
3
+ <html><head>
4
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
5
+ <title>ADDS - METARS form results</title>
6
+ <link rel="StyleSheet" type="text/css" href="ADDS-METARS-RJAA-130131_files/mystyle.css">
7
+ </head>
8
+ <body bgcolor="#FFFFFF">
9
+ <table summary="This table is used for formatting purposes only" border="0" cellpadding="3" cellspacing="0">
10
+ <tbody><tr valign="top">
11
+ <td colspan="2" align="left">
12
+ <h2>Aviation Digital Data Service (ADDS)</h2>
13
+ Output produced by METARs form (1304&nbsp;UTC&nbsp;31 January 2013)<br>
14
+ found at <a href="http://aviationweather.gov/adds/metars/"> http://aviationweather.gov/adds/metars/</a><br>&nbsp;<br>
15
+ </td>
16
+ </tr>
17
+ <tr valign="top">
18
+ <td colspan="2" align="left">
19
+ </td></tr><tr valign="top">
20
+ <td align="right">
21
+ <font color="#9999CC"><strong>METAR text:</strong></font>
22
+ </td>
23
+ <td align="left" bgcolor="#CDCDCD">
24
+ <strong>RJAA 311230Z 24002KT 9999 FEW030 M02/M04 Q1034 NOSIG RMK
25
+ 1CU030 A3055</strong>
26
+ </td>
27
+ </tr>
28
+ <tr valign="top">
29
+ <td align="right">
30
+ <font color="#9999CC"><strong>Conditions at:</strong></font>
31
+ </td>
32
+ <td align="left">
33
+ RJAA
34
+ (NEW TOKYO INTL A, JP) observed 1230&nbsp;UTC&nbsp;31 January 2013
35
+ </td>
36
+ </tr>
37
+ <tr valign="top">
38
+ <td align="right">
39
+ <font color="#9999CC"><strong>Temperature:</strong></font>
40
+ </td>
41
+ <td align="left">
42
+ -2.0�C (28�F)
43
+ </td>
44
+ </tr>
45
+ <tr valign="top">
46
+ <td align="right">
47
+ <font color="#9999CC"><strong>Dewpoint:</strong></font>
48
+ </td>
49
+ <td align="left">
50
+ -4.0�C (25�F) [RH&nbsp;=&nbsp;86%]
51
+ </td>
52
+ </tr>
53
+ <tr valign="top">
54
+ <td align="right">
55
+ <font color="#9999CC"><strong>Pressure (altimeter):</strong></font>
56
+ </td>
57
+ <td align="left">
58
+ 30.53&nbsp;inches&nbsp;Hg (1034.0&nbsp;mb)
59
+ </td>
60
+ </tr>
61
+ <tr valign="top">
62
+ <td align="right">
63
+ <font color="#9999CC"><strong>Winds:</strong></font>
64
+ </td>
65
+ <td align="left">
66
+ from the WSW (240&nbsp;degrees) at 2&nbsp;MPH (2&nbsp;knots; 1.0&nbsp;m/s)
67
+ </td>
68
+ </tr>
69
+ <tr valign="top">
70
+ <td align="right">
71
+ <font color="#9999CC"><strong>Visibility:</strong></font>
72
+ </td>
73
+ <td align="left">
74
+ 6 or more miles (10+ km)
75
+ </td>
76
+ </tr>
77
+ <tr valign="top">
78
+ <td align="right">
79
+ <font color="#9999CC"><strong>Ceiling:</strong></font>
80
+ </td>
81
+ <td align="left">
82
+ at least 12,000 feet AGL
83
+ </td>
84
+ </tr>
85
+ <tr valign="top">
86
+ <td align="right">
87
+ <font color="#9999CC"><strong>Clouds:</strong></font>
88
+ </td>
89
+ <td align="left">
90
+ few clouds at 3000 feet AGL
91
+ </td>
92
+ </tr>
93
+ <tr valign="top">
94
+ <td align="right">
95
+ <font color="#9999CC"><strong>Weather:</strong></font>
96
+ </td>
97
+ <td align="left">
98
+ no significant weather observed at this time
99
+ </td>
100
+ </tr>
101
+ <tr valign="middle">
102
+ <td colspan="2" align="left">
103
+ <hr width="65%">
104
+ </td>
105
+ </tr>
106
+
107
+
108
+ </tbody></table>
109
+
110
+
111
+ </body></html>
@@ -0,0 +1,111 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
2
+ <html><head>
3
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
4
+ <title>ADDS - METARS form results</title>
5
+ <link rel="StyleSheet" type="text/css" href="weather-ADDS-METARS-RJAA-130227_files/mystyle.css">
6
+ </head>
7
+ <body bgcolor="#FFFFFF">
8
+ <table summary="This table is used for formatting purposes only" border="0" cellpadding="3" cellspacing="0">
9
+ <tbody><tr valign="top">
10
+ <td colspan="2" align="left">
11
+ <h2>Aviation Digital Data Service (ADDS)</h2>
12
+ Output produced by METARs form (0253&nbsp;UTC&nbsp;27 February 2013)<br>
13
+ found at <a href="http://aviationweather.gov/adds/metars/"> http://aviationweather.gov/adds/metars/</a><br>&nbsp;<br>
14
+ </td>
15
+ </tr>
16
+ <tr valign="top">
17
+ <td colspan="2" align="left">
18
+ </td></tr><tr valign="top">
19
+ <td align="right">
20
+ <font color="#9999CC"><strong>METAR text:</strong></font>
21
+ </td>
22
+ <td align="left" bgcolor="#CDCDCD">
23
+ <strong>RJAA 270230Z 34011KT 0900 R34L/P1800N R34R/1700U -RA FG
24
+ FEW001 BKN002 BKN003 05/04 Q1011 NOSIG RMK 1ST001 5ST002
25
+ 7ST003 A2987</strong>
26
+ </td>
27
+ </tr>
28
+ <tr valign="top">
29
+ <td align="right">
30
+ <font color="#9999CC"><strong>Conditions at:</strong></font>
31
+ </td>
32
+ <td align="left">
33
+ RJAA
34
+ (NEW TOKYO INTL A, JP) observed 0230&nbsp;UTC&nbsp;27 February 2013
35
+ </td>
36
+ </tr>
37
+ <tr valign="top">
38
+ <td align="right">
39
+ <font color="#9999CC"><strong>Temperature:</strong></font>
40
+ </td>
41
+ <td align="left">
42
+ 5.0�C (41�F)
43
+ </td>
44
+ </tr>
45
+ <tr valign="top">
46
+ <td align="right">
47
+ <font color="#9999CC"><strong>Dewpoint:</strong></font>
48
+ </td>
49
+ <td align="left">
50
+ 4.0�C (39�F) [RH&nbsp;=&nbsp;93%]
51
+ </td>
52
+ </tr>
53
+ <tr valign="top">
54
+ <td align="right">
55
+ <font color="#9999CC"><strong>Pressure (altimeter):</strong></font>
56
+ </td>
57
+ <td align="left">
58
+ 29.85&nbsp;inches&nbsp;Hg (1011.0&nbsp;mb)
59
+ </td>
60
+ </tr>
61
+ <tr valign="top">
62
+ <td align="right">
63
+ <font color="#9999CC"><strong>Winds:</strong></font>
64
+ </td>
65
+ <td align="left">
66
+ from the NNW (340&nbsp;degrees) at 13&nbsp;MPH (11&nbsp;knots; 5.7&nbsp;m/s)
67
+ </td>
68
+ </tr>
69
+ <tr valign="top">
70
+ <td align="right">
71
+ <font color="#9999CC"><strong>Visibility:</strong></font>
72
+ </td>
73
+ <td align="left">
74
+ 0.56&nbsp;miles (0.90&nbsp;km)
75
+ </td>
76
+ </tr>
77
+ <tr valign="top">
78
+ <td align="right">
79
+ <font color="#9999CC"><strong>Ceiling:</strong></font>
80
+ </td>
81
+ <td align="left">
82
+ 200 feet AGL
83
+ </td>
84
+ </tr>
85
+ <tr valign="top">
86
+ <td align="right">
87
+ <font color="#9999CC"><strong>Clouds:</strong></font>
88
+ </td>
89
+ <td align="left">
90
+ few clouds at 100 feet AGL<br>broken clouds at 200 feet AGL<br>broken clouds at 300 feet AGL
91
+ </td>
92
+ </tr>
93
+ <tr valign="top">
94
+ <td align="right">
95
+ <font color="#9999CC"><strong>Weather:</strong></font>
96
+ </td>
97
+ <td align="left">
98
+ FG -RA&nbsp;&nbsp;(fog, light rain)
99
+ </td>
100
+ </tr>
101
+ <tr valign="middle">
102
+ <td colspan="2" align="left">
103
+ <hr width="65%">
104
+ </td>
105
+ </tr>
106
+
107
+
108
+ </tbody></table>
109
+
110
+
111
+ </body></html>