airdata 0.1

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 (66) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +181 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/airdata/application.js +15 -0
  5. data/app/assets/stylesheets/airdata/application.css +13 -0
  6. data/app/controllers/airdata/application_controller.rb +4 -0
  7. data/app/helpers/airdata/application_helper.rb +4 -0
  8. data/app/models/airdata/airoption.rb +5 -0
  9. data/app/models/airdata/airport.rb +7 -0
  10. data/app/models/airdata/runway.rb +8 -0
  11. data/app/models/airdata/waypoint.rb +5 -0
  12. data/app/views/layouts/airdata/application.html.erb +14 -0
  13. data/config/routes.rb +2 -0
  14. data/db/migrate/20120729093219_create_airdata_airports.rb +15 -0
  15. data/db/migrate/20120729093820_create_airdata_runways.rb +19 -0
  16. data/db/migrate/20120729134341_create_airdata_waypoints.rb +16 -0
  17. data/db/migrate/20120730092740_create_airdata_airoptions.rb +10 -0
  18. data/lib/airdata.rb +97 -0
  19. data/lib/airdata/engine.rb +5 -0
  20. data/lib/airdata/version.rb +3 -0
  21. data/lib/tasks/airdata_tasks.rake +69 -0
  22. data/test/airdata_test.rb +7 -0
  23. data/test/dummy/README.rdoc +261 -0
  24. data/test/dummy/Rakefile +7 -0
  25. data/test/dummy/app/assets/javascripts/application.js +15 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  27. data/test/dummy/app/controllers/application_controller.rb +3 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/test/dummy/config.ru +4 -0
  31. data/test/dummy/config/application.rb +59 -0
  32. data/test/dummy/config/boot.rb +10 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +37 -0
  36. data/test/dummy/config/environments/production.rb +67 -0
  37. data/test/dummy/config/environments/test.rb +37 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/inflections.rb +15 -0
  40. data/test/dummy/config/initializers/mime_types.rb +5 -0
  41. data/test/dummy/config/initializers/secret_token.rb +7 -0
  42. data/test/dummy/config/initializers/session_store.rb +8 -0
  43. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/test/dummy/config/locales/en.yml +5 -0
  45. data/test/dummy/config/routes.rb +4 -0
  46. data/test/dummy/db/development.sqlite3 +0 -0
  47. data/test/dummy/db/schema.rb +64 -0
  48. data/test/dummy/db/test.sqlite3 +0 -0
  49. data/test/dummy/log/development.log +43576 -0
  50. data/test/dummy/log/test.log +3 -0
  51. data/test/dummy/public/404.html +26 -0
  52. data/test/dummy/public/422.html +26 -0
  53. data/test/dummy/public/500.html +25 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/script/rails +6 -0
  56. data/test/fixtures/airdata/airoptions.yml +9 -0
  57. data/test/fixtures/airdata/airports.yml +19 -0
  58. data/test/fixtures/airdata/runways.yml +27 -0
  59. data/test/fixtures/airdata/waypoints.yml +21 -0
  60. data/test/integration/navigation_test.rb +10 -0
  61. data/test/test_helper.rb +15 -0
  62. data/test/unit/airdata/airoption_test.rb +9 -0
  63. data/test/unit/airdata/airport_test.rb +9 -0
  64. data/test/unit/airdata/runway_test.rb +9 -0
  65. data/test/unit/airdata/waypoint_test.rb +9 -0
  66. metadata +225 -0
@@ -0,0 +1,3 @@
1
+ Connecting to database specified by database.yml
2
+  (10.5ms) begin transaction
3
+  (0.0ms) rollback transaction
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ key: MyString
5
+ value: MyString
6
+
7
+ two:
8
+ key: MyString
9
+ value: MyString
@@ -0,0 +1,19 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ icao: MyString
5
+ name: MyString
6
+ lat: 1.5
7
+ lon: 1.5
8
+ elevation: 1
9
+ ta: 1
10
+ msa: 1
11
+
12
+ two:
13
+ icao: MyString
14
+ name: MyString
15
+ lat: 1.5
16
+ lon: 1.5
17
+ elevation: 1
18
+ ta: 1
19
+ msa: 1
@@ -0,0 +1,27 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ airport_id: 1
5
+ number: 1
6
+ course: 1
7
+ length: 1
8
+ ils: false
9
+ ils_freq: 1.5
10
+ ils_fac: 1
11
+ lat: 1.5
12
+ lon: 1.5
13
+ elevation: 1
14
+ glidepath: 1.5
15
+
16
+ two:
17
+ airport_id: 1
18
+ number: 1
19
+ course: 1
20
+ length: 1
21
+ ils: false
22
+ ils_freq: 1.5
23
+ ils_fac: 1
24
+ lat: 1.5
25
+ lon: 1.5
26
+ elevation: 1
27
+ glidepath: 1.5
@@ -0,0 +1,21 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ ident: MyString
5
+ name: MyString
6
+ freq: 1.5
7
+ lat: 1.5
8
+ lon: 1.5
9
+ range: 1
10
+ elevation: 1
11
+ country_code: MyString
12
+
13
+ two:
14
+ ident: MyString
15
+ name: MyString
16
+ freq: 1.5
17
+ lat: 1.5
18
+ lon: 1.5
19
+ range: 1
20
+ elevation: 1
21
+ country_code: MyString
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Airdata
4
+ class AiroptionTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Airdata
4
+ class AirportTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Airdata
4
+ class RunwayTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Airdata
4
+ class WaypointTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,225 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: airdata
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Svilen Vassilev
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.7
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.7
30
+ - !ruby/object:Gem::Dependency
31
+ name: curb
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.8.1
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.8.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: activerecord-import
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.2.9
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.2.9
62
+ - !ruby/object:Gem::Dependency
63
+ name: sqlite3
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Rails engine for adding aviation related models and data to your web
79
+ application
80
+ email:
81
+ - svilen@rubystudio.net
82
+ executables: []
83
+ extensions: []
84
+ extra_rdoc_files: []
85
+ files:
86
+ - app/models/airdata/runway.rb
87
+ - app/models/airdata/airport.rb
88
+ - app/models/airdata/airoption.rb
89
+ - app/models/airdata/waypoint.rb
90
+ - app/assets/javascripts/airdata/application.js
91
+ - app/assets/stylesheets/airdata/application.css
92
+ - app/views/layouts/airdata/application.html.erb
93
+ - app/controllers/airdata/application_controller.rb
94
+ - app/helpers/airdata/application_helper.rb
95
+ - config/routes.rb
96
+ - db/migrate/20120729093219_create_airdata_airports.rb
97
+ - db/migrate/20120729134341_create_airdata_waypoints.rb
98
+ - db/migrate/20120729093820_create_airdata_runways.rb
99
+ - db/migrate/20120730092740_create_airdata_airoptions.rb
100
+ - lib/tasks/airdata_tasks.rake
101
+ - lib/airdata.rb
102
+ - lib/airdata/version.rb
103
+ - lib/airdata/engine.rb
104
+ - LICENSE
105
+ - Rakefile
106
+ - README.md
107
+ - test/dummy/config.ru
108
+ - test/dummy/log/development.log
109
+ - test/dummy/log/test.log
110
+ - test/dummy/Rakefile
111
+ - test/dummy/db/schema.rb
112
+ - test/dummy/db/test.sqlite3
113
+ - test/dummy/db/development.sqlite3
114
+ - test/dummy/public/404.html
115
+ - test/dummy/public/favicon.ico
116
+ - test/dummy/public/500.html
117
+ - test/dummy/public/422.html
118
+ - test/dummy/app/assets/javascripts/application.js
119
+ - test/dummy/app/assets/stylesheets/application.css
120
+ - test/dummy/app/views/layouts/application.html.erb
121
+ - test/dummy/app/controllers/application_controller.rb
122
+ - test/dummy/app/helpers/application_helper.rb
123
+ - test/dummy/config/environments/development.rb
124
+ - test/dummy/config/environments/production.rb
125
+ - test/dummy/config/environments/test.rb
126
+ - test/dummy/config/routes.rb
127
+ - test/dummy/config/initializers/secret_token.rb
128
+ - test/dummy/config/initializers/wrap_parameters.rb
129
+ - test/dummy/config/initializers/inflections.rb
130
+ - test/dummy/config/initializers/session_store.rb
131
+ - test/dummy/config/initializers/mime_types.rb
132
+ - test/dummy/config/initializers/backtrace_silencers.rb
133
+ - test/dummy/config/database.yml
134
+ - test/dummy/config/locales/en.yml
135
+ - test/dummy/config/application.rb
136
+ - test/dummy/config/environment.rb
137
+ - test/dummy/config/boot.rb
138
+ - test/dummy/script/rails
139
+ - test/dummy/README.rdoc
140
+ - test/airdata_test.rb
141
+ - test/test_helper.rb
142
+ - test/fixtures/airdata/airports.yml
143
+ - test/fixtures/airdata/runways.yml
144
+ - test/fixtures/airdata/airoptions.yml
145
+ - test/fixtures/airdata/waypoints.yml
146
+ - test/unit/airdata/airport_test.rb
147
+ - test/unit/airdata/waypoint_test.rb
148
+ - test/unit/airdata/airoption_test.rb
149
+ - test/unit/airdata/runway_test.rb
150
+ - test/integration/navigation_test.rb
151
+ homepage: https://github.com/tarakanbg/airdata
152
+ licenses: []
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ none: false
159
+ requirements:
160
+ - - ! '>='
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ segments:
164
+ - 0
165
+ hash: 146581153
166
+ required_rubygems_version: !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - ! '>='
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ segments:
173
+ - 0
174
+ hash: 146581153
175
+ requirements: []
176
+ rubyforge_project:
177
+ rubygems_version: 1.8.24
178
+ signing_key:
179
+ specification_version: 3
180
+ summary: Rails engine for adding aviation related models and data to your web application
181
+ test_files:
182
+ - test/dummy/config.ru
183
+ - test/dummy/log/development.log
184
+ - test/dummy/log/test.log
185
+ - test/dummy/Rakefile
186
+ - test/dummy/db/schema.rb
187
+ - test/dummy/db/test.sqlite3
188
+ - test/dummy/db/development.sqlite3
189
+ - test/dummy/public/404.html
190
+ - test/dummy/public/favicon.ico
191
+ - test/dummy/public/500.html
192
+ - test/dummy/public/422.html
193
+ - test/dummy/app/assets/javascripts/application.js
194
+ - test/dummy/app/assets/stylesheets/application.css
195
+ - test/dummy/app/views/layouts/application.html.erb
196
+ - test/dummy/app/controllers/application_controller.rb
197
+ - test/dummy/app/helpers/application_helper.rb
198
+ - test/dummy/config/environments/development.rb
199
+ - test/dummy/config/environments/production.rb
200
+ - test/dummy/config/environments/test.rb
201
+ - test/dummy/config/routes.rb
202
+ - test/dummy/config/initializers/secret_token.rb
203
+ - test/dummy/config/initializers/wrap_parameters.rb
204
+ - test/dummy/config/initializers/inflections.rb
205
+ - test/dummy/config/initializers/session_store.rb
206
+ - test/dummy/config/initializers/mime_types.rb
207
+ - test/dummy/config/initializers/backtrace_silencers.rb
208
+ - test/dummy/config/database.yml
209
+ - test/dummy/config/locales/en.yml
210
+ - test/dummy/config/application.rb
211
+ - test/dummy/config/environment.rb
212
+ - test/dummy/config/boot.rb
213
+ - test/dummy/script/rails
214
+ - test/dummy/README.rdoc
215
+ - test/airdata_test.rb
216
+ - test/test_helper.rb
217
+ - test/fixtures/airdata/airports.yml
218
+ - test/fixtures/airdata/runways.yml
219
+ - test/fixtures/airdata/airoptions.yml
220
+ - test/fixtures/airdata/waypoints.yml
221
+ - test/unit/airdata/airport_test.rb
222
+ - test/unit/airdata/waypoint_test.rb
223
+ - test/unit/airdata/airoption_test.rb
224
+ - test/unit/airdata/runway_test.rb
225
+ - test/integration/navigation_test.rb