yhara-moneyrail 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. data/.gitignore +5 -0
  2. data/.gitmodules +6 -0
  3. data/Changelog +21 -0
  4. data/README +1 -0
  5. data/Rakefile +32 -0
  6. data/VERSION +1 -0
  7. data/app/controllers/accounts_controller.rb +99 -0
  8. data/app/controllers/application_controller.rb +10 -0
  9. data/app/controllers/categories_controller.rb +99 -0
  10. data/app/controllers/home_controller.rb +31 -0
  11. data/app/controllers/items_controller.rb +105 -0
  12. data/app/controllers/logs_controller.rb +20 -0
  13. data/app/helpers/accounts_helper.rb +2 -0
  14. data/app/helpers/application_helper.rb +3 -0
  15. data/app/helpers/categories_helper.rb +2 -0
  16. data/app/helpers/home_helper.rb +2 -0
  17. data/app/helpers/items_helper.rb +2 -0
  18. data/app/helpers/logs_helper.rb +42 -0
  19. data/app/models/account.rb +12 -0
  20. data/app/models/category.rb +26 -0
  21. data/app/models/expense.rb +2 -0
  22. data/app/models/income.rb +2 -0
  23. data/app/models/item.rb +31 -0
  24. data/app/models/move.rb +37 -0
  25. data/app/models/simple_item.rb +27 -0
  26. data/app/views/accounts/edit.html.erb +16 -0
  27. data/app/views/accounts/index.html.erb +24 -0
  28. data/app/views/accounts/new.html.erb +15 -0
  29. data/app/views/accounts/show.html.erb +8 -0
  30. data/app/views/categories/edit.html.erb +20 -0
  31. data/app/views/categories/index.html.erb +26 -0
  32. data/app/views/categories/new.html.erb +19 -0
  33. data/app/views/categories/show.html.erb +13 -0
  34. data/app/views/home/index.html.erb +15 -0
  35. data/app/views/items/edit.html.erb +45 -0
  36. data/app/views/items/index.html.erb +38 -0
  37. data/app/views/items/new.html.erb +40 -0
  38. data/app/views/items/show.html.erb +3 -0
  39. data/app/views/layouts/application.html.erb +37 -0
  40. data/app/views/logs/view.html.erb +120 -0
  41. data/config/boot.rb +110 -0
  42. data/config/database.yml +25 -0
  43. data/config/environment.rb +41 -0
  44. data/config/environments/cucumber.rb +21 -0
  45. data/config/environments/development.rb +17 -0
  46. data/config/environments/production.rb +28 -0
  47. data/config/environments/test.rb +28 -0
  48. data/config/initializers/backtrace_silencers.rb +7 -0
  49. data/config/initializers/inflections.rb +10 -0
  50. data/config/initializers/mime_types.rb +5 -0
  51. data/config/initializers/new_rails_defaults.rb +19 -0
  52. data/config/initializers/session_store.rb +15 -0
  53. data/config/locales/en.yml +5 -0
  54. data/config/routes.rb +80 -0
  55. data/db/migrate/20090802070406_create_accounts.rb +14 -0
  56. data/db/migrate/20090802073601_create_categories.rb +15 -0
  57. data/db/migrate/20090804065900_create_items.rb +26 -0
  58. data/doc/README_FOR_APP +2 -0
  59. data/features/step_definitions/webrat_steps.rb +129 -0
  60. data/features/support/env.rb +37 -0
  61. data/features/support/paths.rb +27 -0
  62. data/lib/tasks/cucumber.rake +20 -0
  63. data/lib/tasks/rspec.rake +182 -0
  64. data/main.rb +5 -0
  65. data/moneyrail.gemspec +170 -0
  66. data/public/404.html +30 -0
  67. data/public/422.html +30 -0
  68. data/public/500.html +30 -0
  69. data/public/favicon.ico +0 -0
  70. data/public/images/rails.png +0 -0
  71. data/public/javascripts/application.js +2 -0
  72. data/public/javascripts/controls.js +963 -0
  73. data/public/javascripts/dragdrop.js +973 -0
  74. data/public/javascripts/editor.js +188 -0
  75. data/public/javascripts/effects.js +1128 -0
  76. data/public/javascripts/jquery-ui.js +160 -0
  77. data/public/javascripts/jquery.js +32 -0
  78. data/public/javascripts/prototype.js +4320 -0
  79. data/public/robots.txt +5 -0
  80. data/public/stylesheets/editor.less +67 -0
  81. data/script/about +4 -0
  82. data/script/autospec +6 -0
  83. data/script/console +3 -0
  84. data/script/cucumber +8 -0
  85. data/script/dbconsole +3 -0
  86. data/script/destroy +3 -0
  87. data/script/generate +3 -0
  88. data/script/performance/benchmarker +3 -0
  89. data/script/performance/profiler +3 -0
  90. data/script/plugin +3 -0
  91. data/script/runner +3 -0
  92. data/script/server +3 -0
  93. data/script/spec +10 -0
  94. data/script/spec_server +9 -0
  95. data/spec/_fixtures/accounts.yml +5 -0
  96. data/spec/_fixtures/categories.yml +19 -0
  97. data/spec/_fixtures/incomes.yml +7 -0
  98. data/spec/_fixtures/items.yml +7 -0
  99. data/spec/fixtures/accounts.yml +11 -0
  100. data/spec/fixtures/categories.yml +24 -0
  101. data/spec/fixtures/items.yml +82 -0
  102. data/spec/helpers/accounts_helper_spec.rb +11 -0
  103. data/spec/helpers/categories_helper_spec.rb +11 -0
  104. data/spec/helpers/items_helper_spec.rb +11 -0
  105. data/spec/models/account_spec.rb +13 -0
  106. data/spec/models/category_spec.rb +9 -0
  107. data/spec/models/income_spec.rb +9 -0
  108. data/spec/models/item_spec.rb +13 -0
  109. data/spec/rcov.opts +2 -0
  110. data/spec/spec.opts +4 -0
  111. data/spec/spec_helper.rb +51 -0
  112. data/vendor/plugins/acts_as_list/README +23 -0
  113. data/vendor/plugins/acts_as_list/init.rb +3 -0
  114. data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
  115. data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
  116. data/vendor/plugins/less/LICENCE +20 -0
  117. data/vendor/plugins/less/README +52 -0
  118. data/vendor/plugins/less/init.rb +19 -0
  119. data/vendor/plugins/less/lib/less_for_rails.rb +37 -0
  120. data/vendor/plugins/less/test/less_for_rails_test.rb +15 -0
  121. metadata +201 -0
@@ -0,0 +1,20 @@
1
+ $LOAD_PATH.unshift(RAILS_ROOT + '/vendor/plugins/cucumber/lib') if File.directory?(RAILS_ROOT + '/vendor/plugins/cucumber/lib')
2
+
3
+ unless ARGV.any? {|a| a =~ /^gems/}
4
+
5
+ begin
6
+ require 'cucumber/rake/task'
7
+
8
+ Cucumber::Rake::Task.new(:features) do |t|
9
+ t.fork = true
10
+ t.cucumber_opts = ['--drb', '--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
11
+ end
12
+ task :features => 'db:test:prepare'
13
+ rescue LoadError
14
+ desc 'Cucumber rake task not available'
15
+ task :features do
16
+ abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
17
+ end
18
+ end
19
+
20
+ end
@@ -0,0 +1,182 @@
1
+ gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
2
+ rspec_gem_dir = nil
3
+ Dir["#{RAILS_ROOT}/vendor/gems/*"].each do |subdir|
4
+ rspec_gem_dir = subdir if subdir.gsub("#{RAILS_ROOT}/vendor/gems/","") =~ /^(\w+-)?rspec-(\d+)/ && File.exist?("#{subdir}/lib/spec/rake/spectask.rb")
5
+ end
6
+ rspec_plugin_dir = File.expand_path(File.dirname(__FILE__) + '/../../vendor/plugins/rspec')
7
+
8
+ if rspec_gem_dir && (test ?d, rspec_plugin_dir)
9
+ raise "\n#{'*'*50}\nYou have rspec installed in both vendor/gems and vendor/plugins\nPlease pick one and dispose of the other.\n#{'*'*50}\n\n"
10
+ end
11
+
12
+ if rspec_gem_dir
13
+ $LOAD_PATH.unshift("#{rspec_gem_dir}/lib")
14
+ elsif File.exist?(rspec_plugin_dir)
15
+ $LOAD_PATH.unshift("#{rspec_plugin_dir}/lib")
16
+ end
17
+
18
+ # Don't load rspec if running "rake gems:*"
19
+ unless ARGV.any? {|a| a =~ /^gems/}
20
+
21
+ begin
22
+ require 'spec/rake/spectask'
23
+ rescue MissingSourceFile
24
+ module Spec
25
+ module Rake
26
+ class SpecTask
27
+ def initialize(name)
28
+ task name do
29
+ # if rspec-rails is a configured gem, this will output helpful material and exit ...
30
+ require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
31
+
32
+ # ... otherwise, do this:
33
+ raise <<-MSG
34
+
35
+ #{"*" * 80}
36
+ * You are trying to run an rspec rake task defined in
37
+ * #{__FILE__},
38
+ * but rspec can not be found in vendor/gems, vendor/plugins or system gems.
39
+ #{"*" * 80}
40
+ MSG
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ Rake.application.instance_variable_get('@tasks').delete('default')
49
+
50
+ spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml')) ? "db:test:prepare" : :noop
51
+ task :noop do
52
+ end
53
+
54
+ task :default => :spec
55
+ task :stats => "spec:statsetup"
56
+
57
+ desc "Run all specs in spec directory (excluding plugin specs)"
58
+ Spec::Rake::SpecTask.new(:spec => spec_prereq) do |t|
59
+ t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
60
+ t.spec_files = FileList['spec/**/*_spec.rb']
61
+ end
62
+
63
+ namespace :spec do
64
+ desc "Run all specs in spec directory with RCov (excluding plugin specs)"
65
+ Spec::Rake::SpecTask.new(:rcov) do |t|
66
+ t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
67
+ t.spec_files = FileList['spec/**/*_spec.rb']
68
+ t.rcov = true
69
+ t.rcov_opts = lambda do
70
+ IO.readlines("#{RAILS_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
71
+ end
72
+ end
73
+
74
+ desc "Print Specdoc for all specs (excluding plugin specs)"
75
+ Spec::Rake::SpecTask.new(:doc) do |t|
76
+ t.spec_opts = ["--format", "specdoc", "--dry-run"]
77
+ t.spec_files = FileList['spec/**/*_spec.rb']
78
+ end
79
+
80
+ desc "Print Specdoc for all plugin examples"
81
+ Spec::Rake::SpecTask.new(:plugin_doc) do |t|
82
+ t.spec_opts = ["--format", "specdoc", "--dry-run"]
83
+ t.spec_files = FileList['vendor/plugins/**/spec/**/*_spec.rb'].exclude('vendor/plugins/rspec/*')
84
+ end
85
+
86
+ [:models, :controllers, :views, :helpers, :lib, :integration].each do |sub|
87
+ desc "Run the code examples in spec/#{sub}"
88
+ Spec::Rake::SpecTask.new(sub => spec_prereq) do |t|
89
+ t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
90
+ t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
91
+ end
92
+ end
93
+
94
+ desc "Run the code examples in vendor/plugins (except RSpec's own)"
95
+ Spec::Rake::SpecTask.new(:plugins => spec_prereq) do |t|
96
+ t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
97
+ t.spec_files = FileList['vendor/plugins/**/spec/**/*_spec.rb'].exclude('vendor/plugins/rspec/*').exclude("vendor/plugins/rspec-rails/*")
98
+ end
99
+
100
+ namespace :plugins do
101
+ desc "Runs the examples for rspec_on_rails"
102
+ Spec::Rake::SpecTask.new(:rspec_on_rails) do |t|
103
+ t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
104
+ t.spec_files = FileList['vendor/plugins/rspec-rails/spec/**/*_spec.rb']
105
+ end
106
+ end
107
+
108
+ # Setup specs for stats
109
+ task :statsetup do
110
+ require 'code_statistics'
111
+ ::STATS_DIRECTORIES << %w(Model\ specs spec/models) if File.exist?('spec/models')
112
+ ::STATS_DIRECTORIES << %w(View\ specs spec/views) if File.exist?('spec/views')
113
+ ::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers) if File.exist?('spec/controllers')
114
+ ::STATS_DIRECTORIES << %w(Helper\ specs spec/helpers) if File.exist?('spec/helpers')
115
+ ::STATS_DIRECTORIES << %w(Library\ specs spec/lib) if File.exist?('spec/lib')
116
+ ::STATS_DIRECTORIES << %w(Routing\ specs spec/routing) if File.exist?('spec/routing')
117
+ ::STATS_DIRECTORIES << %w(Integration\ specs spec/integration) if File.exist?('spec/integration')
118
+ ::CodeStatistics::TEST_TYPES << "Model specs" if File.exist?('spec/models')
119
+ ::CodeStatistics::TEST_TYPES << "View specs" if File.exist?('spec/views')
120
+ ::CodeStatistics::TEST_TYPES << "Controller specs" if File.exist?('spec/controllers')
121
+ ::CodeStatistics::TEST_TYPES << "Helper specs" if File.exist?('spec/helpers')
122
+ ::CodeStatistics::TEST_TYPES << "Library specs" if File.exist?('spec/lib')
123
+ ::CodeStatistics::TEST_TYPES << "Routing specs" if File.exist?('spec/routing')
124
+ ::CodeStatistics::TEST_TYPES << "Integration specs" if File.exist?('spec/integration')
125
+ end
126
+
127
+ namespace :db do
128
+ namespace :fixtures do
129
+ desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y. Load from subdirectory in test/fixtures using FIXTURES_DIR=z."
130
+ task :load => :environment do
131
+ ActiveRecord::Base.establish_connection(Rails.env)
132
+ base_dir = File.join(Rails.root, 'spec', 'fixtures')
133
+ fixtures_dir = ENV['FIXTURES_DIR'] ? File.join(base_dir, ENV['FIXTURES_DIR']) : base_dir
134
+
135
+ require 'active_record/fixtures'
136
+ (ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/).map {|f| File.join(fixtures_dir, f) } : Dir.glob(File.join(fixtures_dir, '*.{yml,csv}'))).each do |fixture_file|
137
+ Fixtures.create_fixtures(File.dirname(fixture_file), File.basename(fixture_file, '.*'))
138
+ end
139
+ end
140
+ end
141
+ end
142
+
143
+ namespace :server do
144
+ daemonized_server_pid = File.expand_path("#{RAILS_ROOT}/tmp/pids/spec_server.pid")
145
+
146
+ desc "start spec_server."
147
+ task :start do
148
+ if File.exist?(daemonized_server_pid)
149
+ $stderr.puts "spec_server is already running."
150
+ else
151
+ $stderr.puts %Q{Starting up spec_server ...}
152
+ FileUtils.mkdir_p('tmp/pids') unless test ?d, 'tmp/pids'
153
+ system("ruby", "script/spec_server", "--daemon", "--pid", daemonized_server_pid)
154
+ end
155
+ end
156
+
157
+ desc "stop spec_server."
158
+ task :stop do
159
+ unless File.exist?(daemonized_server_pid)
160
+ $stderr.puts "No server running."
161
+ else
162
+ $stderr.puts "Shutting down spec_server ..."
163
+ system("kill", "-s", "TERM", File.read(daemonized_server_pid).strip) &&
164
+ File.delete(daemonized_server_pid)
165
+ end
166
+ end
167
+
168
+ desc "restart spec_server."
169
+ task :restart => [:stop, :start]
170
+
171
+ desc "check if spec server is running"
172
+ task :status do
173
+ if File.exist?(daemonized_server_pid)
174
+ $stderr.puts %Q{spec_server is running (PID: #{File.read(daemonized_server_pid).gsub("\n","")})}
175
+ else
176
+ $stderr.puts "No server running."
177
+ end
178
+ end
179
+ end
180
+ end
181
+
182
+ end
data/main.rb ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require 'optparse'
3
+ require 'ruby-station'; RubyStation.parse_argv
4
+
5
+ RubyStation::Helper::Rails.run
data/moneyrail.gemspec ADDED
@@ -0,0 +1,170 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{moneyrail}
5
+ s.version = "0.0.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Yutaka HARA"]
9
+ s.date = %q{2009-08-20}
10
+ s.description = %q{Household account book, written in Rails}
11
+ s.email = %q{yutaka.hara/at/gmail.com}
12
+ s.extra_rdoc_files = [
13
+ "README"
14
+ ]
15
+ s.files = [
16
+ ".gitignore",
17
+ ".gitmodules",
18
+ "Changelog",
19
+ "README",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "app/controllers/accounts_controller.rb",
23
+ "app/controllers/application_controller.rb",
24
+ "app/controllers/categories_controller.rb",
25
+ "app/controllers/home_controller.rb",
26
+ "app/controllers/items_controller.rb",
27
+ "app/controllers/logs_controller.rb",
28
+ "app/helpers/accounts_helper.rb",
29
+ "app/helpers/application_helper.rb",
30
+ "app/helpers/categories_helper.rb",
31
+ "app/helpers/home_helper.rb",
32
+ "app/helpers/items_helper.rb",
33
+ "app/helpers/logs_helper.rb",
34
+ "app/models/account.rb",
35
+ "app/models/category.rb",
36
+ "app/models/expense.rb",
37
+ "app/models/income.rb",
38
+ "app/models/item.rb",
39
+ "app/models/move.rb",
40
+ "app/models/simple_item.rb",
41
+ "app/views/accounts/edit.html.erb",
42
+ "app/views/accounts/index.html.erb",
43
+ "app/views/accounts/new.html.erb",
44
+ "app/views/accounts/show.html.erb",
45
+ "app/views/categories/edit.html.erb",
46
+ "app/views/categories/index.html.erb",
47
+ "app/views/categories/new.html.erb",
48
+ "app/views/categories/show.html.erb",
49
+ "app/views/home/index.html.erb",
50
+ "app/views/items/edit.html.erb",
51
+ "app/views/items/index.html.erb",
52
+ "app/views/items/new.html.erb",
53
+ "app/views/items/show.html.erb",
54
+ "app/views/layouts/application.html.erb",
55
+ "app/views/logs/view.html.erb",
56
+ "config/boot.rb",
57
+ "config/database.yml",
58
+ "config/environment.rb",
59
+ "config/environments/cucumber.rb",
60
+ "config/environments/development.rb",
61
+ "config/environments/production.rb",
62
+ "config/environments/test.rb",
63
+ "config/initializers/backtrace_silencers.rb",
64
+ "config/initializers/inflections.rb",
65
+ "config/initializers/mime_types.rb",
66
+ "config/initializers/new_rails_defaults.rb",
67
+ "config/initializers/session_store.rb",
68
+ "config/locales/en.yml",
69
+ "config/routes.rb",
70
+ "db/migrate/20090802070406_create_accounts.rb",
71
+ "db/migrate/20090802073601_create_categories.rb",
72
+ "db/migrate/20090804065900_create_items.rb",
73
+ "db/production.sqlite3",
74
+ "doc/README_FOR_APP",
75
+ "features/step_definitions/webrat_steps.rb",
76
+ "features/support/env.rb",
77
+ "features/support/paths.rb",
78
+ "lib/tasks/cucumber.rake",
79
+ "lib/tasks/rspec.rake",
80
+ "main.rb",
81
+ "moneyrail.gemspec",
82
+ "public/404.html",
83
+ "public/422.html",
84
+ "public/500.html",
85
+ "public/favicon.ico",
86
+ "public/images/rails.png",
87
+ "public/javascripts/application.js",
88
+ "public/javascripts/controls.js",
89
+ "public/javascripts/dragdrop.js",
90
+ "public/javascripts/editor.js",
91
+ "public/javascripts/effects.js",
92
+ "public/javascripts/jquery-ui.js",
93
+ "public/javascripts/jquery.js",
94
+ "public/javascripts/prototype.js",
95
+ "public/robots.txt",
96
+ "public/stylesheets/editor.less",
97
+ "public/stylesheets/scaffold.css",
98
+ "script/about",
99
+ "script/autospec",
100
+ "script/console",
101
+ "script/cucumber",
102
+ "script/dbconsole",
103
+ "script/destroy",
104
+ "script/generate",
105
+ "script/performance/benchmarker",
106
+ "script/performance/profiler",
107
+ "script/plugin",
108
+ "script/runner",
109
+ "script/server",
110
+ "script/spec",
111
+ "script/spec_server",
112
+ "spec/_fixtures/accounts.yml",
113
+ "spec/_fixtures/categories.yml",
114
+ "spec/_fixtures/incomes.yml",
115
+ "spec/_fixtures/items.yml",
116
+ "spec/fixtures/accounts.yml",
117
+ "spec/fixtures/categories.yml",
118
+ "spec/fixtures/items.yml",
119
+ "spec/helpers/accounts_helper_spec.rb",
120
+ "spec/helpers/categories_helper_spec.rb",
121
+ "spec/helpers/items_helper_spec.rb",
122
+ "spec/models/account_spec.rb",
123
+ "spec/models/category_spec.rb",
124
+ "spec/models/income_spec.rb",
125
+ "spec/models/item_spec.rb",
126
+ "spec/rcov.opts",
127
+ "spec/spec.opts",
128
+ "spec/spec_helper.rb",
129
+ "vendor/plugins/acts_as_list/README",
130
+ "vendor/plugins/acts_as_list/init.rb",
131
+ "vendor/plugins/acts_as_list/lib/active_record/acts/list.rb",
132
+ "vendor/plugins/acts_as_list/test/list_test.rb",
133
+ "vendor/plugins/less/LICENCE",
134
+ "vendor/plugins/less/README",
135
+ "vendor/plugins/less/init.rb",
136
+ "vendor/plugins/less/lib/less_for_rails.rb",
137
+ "vendor/plugins/less/test/less_for_rails_test.rb"
138
+ ]
139
+ s.homepage = %q{http://github.com/yhara/moneyrail}
140
+ s.rdoc_options = ["--charset=UTF-8"]
141
+ s.require_paths = ["lib"]
142
+ s.rubygems_version = %q{1.3.5}
143
+ s.summary = %q{Household account book, written in Rails}
144
+ s.test_files = [
145
+ "spec/helpers/accounts_helper_spec.rb",
146
+ "spec/helpers/categories_helper_spec.rb",
147
+ "spec/helpers/items_helper_spec.rb",
148
+ "spec/models/account_spec.rb",
149
+ "spec/models/category_spec.rb",
150
+ "spec/models/income_spec.rb",
151
+ "spec/models/item_spec.rb",
152
+ "spec/spec_helper.rb"
153
+ ]
154
+
155
+ if s.respond_to? :specification_version then
156
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
157
+ s.specification_version = 3
158
+
159
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
160
+ s.add_runtime_dependency(%q<rails>, ["= 2.3.3"])
161
+ s.add_runtime_dependency(%q<ruby-station-runtime>, [">= 0.0.2"])
162
+ else
163
+ s.add_dependency(%q<rails>, ["= 2.3.3"])
164
+ s.add_dependency(%q<ruby-station-runtime>, [">= 0.0.2"])
165
+ end
166
+ else
167
+ s.add_dependency(%q<rails>, ["= 2.3.3"])
168
+ s.add_dependency(%q<ruby-station-runtime>, [">= 0.0.2"])
169
+ end
170
+ end
data/public/404.html ADDED
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+
6
+ <head>
7
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
+ <title>The page you were looking for doesn't exist (404)</title>
9
+ <style type="text/css">
10
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
+ div.dialog {
12
+ width: 25em;
13
+ padding: 0 4em;
14
+ margin: 4em auto 0 auto;
15
+ border: 1px solid #ccc;
16
+ border-right-color: #999;
17
+ border-bottom-color: #999;
18
+ }
19
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
+ </style>
21
+ </head>
22
+
23
+ <body>
24
+ <!-- This file lives in public/404.html -->
25
+ <div class="dialog">
26
+ <h1>The page you were looking for doesn't exist.</h1>
27
+ <p>You may have mistyped the address or the page may have moved.</p>
28
+ </div>
29
+ </body>
30
+ </html>
data/public/422.html ADDED
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+
6
+ <head>
7
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
+ <title>The change you wanted was rejected (422)</title>
9
+ <style type="text/css">
10
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
+ div.dialog {
12
+ width: 25em;
13
+ padding: 0 4em;
14
+ margin: 4em auto 0 auto;
15
+ border: 1px solid #ccc;
16
+ border-right-color: #999;
17
+ border-bottom-color: #999;
18
+ }
19
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
+ </style>
21
+ </head>
22
+
23
+ <body>
24
+ <!-- This file lives in public/422.html -->
25
+ <div class="dialog">
26
+ <h1>The change you wanted was rejected.</h1>
27
+ <p>Maybe you tried to change something you didn't have access to.</p>
28
+ </div>
29
+ </body>
30
+ </html>
data/public/500.html ADDED
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+
6
+ <head>
7
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
+ <title>We're sorry, but something went wrong (500)</title>
9
+ <style type="text/css">
10
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
+ div.dialog {
12
+ width: 25em;
13
+ padding: 0 4em;
14
+ margin: 4em auto 0 auto;
15
+ border: 1px solid #ccc;
16
+ border-right-color: #999;
17
+ border-bottom-color: #999;
18
+ }
19
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
+ </style>
21
+ </head>
22
+
23
+ <body>
24
+ <!-- This file lives in public/500.html -->
25
+ <div class="dialog">
26
+ <h1>We're sorry, but something went wrong.</h1>
27
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
28
+ </div>
29
+ </body>
30
+ </html>