moneyrail 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) 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/db/production.sqlite3 +0 -0
  59. data/doc/README_FOR_APP +2 -0
  60. data/features/step_definitions/webrat_steps.rb +129 -0
  61. data/features/support/env.rb +37 -0
  62. data/features/support/paths.rb +27 -0
  63. data/lib/tasks/cucumber.rake +20 -0
  64. data/lib/tasks/rspec.rake +182 -0
  65. data/main.rb +5 -0
  66. data/moneyrail.gemspec +170 -0
  67. data/public/404.html +30 -0
  68. data/public/422.html +30 -0
  69. data/public/500.html +30 -0
  70. data/public/favicon.ico +0 -0
  71. data/public/images/rails.png +0 -0
  72. data/public/javascripts/application.js +2 -0
  73. data/public/javascripts/controls.js +963 -0
  74. data/public/javascripts/dragdrop.js +973 -0
  75. data/public/javascripts/editor.js +188 -0
  76. data/public/javascripts/effects.js +1128 -0
  77. data/public/javascripts/jquery-ui.js +160 -0
  78. data/public/javascripts/jquery.js +32 -0
  79. data/public/javascripts/prototype.js +4320 -0
  80. data/public/robots.txt +5 -0
  81. data/public/stylesheets/editor.less +67 -0
  82. data/public/stylesheets/scaffold.css +54 -0
  83. data/script/about +4 -0
  84. data/script/autospec +6 -0
  85. data/script/console +3 -0
  86. data/script/cucumber +8 -0
  87. data/script/dbconsole +3 -0
  88. data/script/destroy +3 -0
  89. data/script/generate +3 -0
  90. data/script/performance/benchmarker +3 -0
  91. data/script/performance/profiler +3 -0
  92. data/script/plugin +3 -0
  93. data/script/runner +3 -0
  94. data/script/server +3 -0
  95. data/script/spec +10 -0
  96. data/script/spec_server +9 -0
  97. data/spec/_fixtures/accounts.yml +5 -0
  98. data/spec/_fixtures/categories.yml +19 -0
  99. data/spec/_fixtures/incomes.yml +7 -0
  100. data/spec/_fixtures/items.yml +7 -0
  101. data/spec/fixtures/accounts.yml +11 -0
  102. data/spec/fixtures/categories.yml +24 -0
  103. data/spec/fixtures/items.yml +82 -0
  104. data/spec/helpers/accounts_helper_spec.rb +11 -0
  105. data/spec/helpers/categories_helper_spec.rb +11 -0
  106. data/spec/helpers/items_helper_spec.rb +11 -0
  107. data/spec/models/account_spec.rb +13 -0
  108. data/spec/models/category_spec.rb +9 -0
  109. data/spec/models/income_spec.rb +9 -0
  110. data/spec/models/item_spec.rb +13 -0
  111. data/spec/rcov.opts +2 -0
  112. data/spec/spec.opts +4 -0
  113. data/spec/spec_helper.rb +51 -0
  114. data/vendor/plugins/acts_as_list/README +23 -0
  115. data/vendor/plugins/acts_as_list/init.rb +3 -0
  116. data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
  117. data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
  118. data/vendor/plugins/less/LICENCE +20 -0
  119. data/vendor/plugins/less/README +52 -0
  120. data/vendor/plugins/less/init.rb +19 -0
  121. data/vendor/plugins/less/lib/less_for_rails.rb +37 -0
  122. data/vendor/plugins/less/test/less_for_rails_test.rb +15 -0
  123. metadata +202 -0
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>
File without changes
Binary file
@@ -0,0 +1,2 @@
1
+ // Place your application-specific JavaScript functions and classes here
2
+ // This file is automatically included by javascript_include_tag :defaults