moneyrail 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.gitmodules +6 -0
- data/Changelog +21 -0
- data/README +1 -0
- data/Rakefile +32 -0
- data/VERSION +1 -0
- data/app/controllers/accounts_controller.rb +99 -0
- data/app/controllers/application_controller.rb +10 -0
- data/app/controllers/categories_controller.rb +99 -0
- data/app/controllers/home_controller.rb +31 -0
- data/app/controllers/items_controller.rb +105 -0
- data/app/controllers/logs_controller.rb +20 -0
- data/app/helpers/accounts_helper.rb +2 -0
- data/app/helpers/application_helper.rb +3 -0
- data/app/helpers/categories_helper.rb +2 -0
- data/app/helpers/home_helper.rb +2 -0
- data/app/helpers/items_helper.rb +2 -0
- data/app/helpers/logs_helper.rb +42 -0
- data/app/models/account.rb +12 -0
- data/app/models/category.rb +26 -0
- data/app/models/expense.rb +2 -0
- data/app/models/income.rb +2 -0
- data/app/models/item.rb +31 -0
- data/app/models/move.rb +37 -0
- data/app/models/simple_item.rb +27 -0
- data/app/views/accounts/edit.html.erb +16 -0
- data/app/views/accounts/index.html.erb +24 -0
- data/app/views/accounts/new.html.erb +15 -0
- data/app/views/accounts/show.html.erb +8 -0
- data/app/views/categories/edit.html.erb +20 -0
- data/app/views/categories/index.html.erb +26 -0
- data/app/views/categories/new.html.erb +19 -0
- data/app/views/categories/show.html.erb +13 -0
- data/app/views/home/index.html.erb +15 -0
- data/app/views/items/edit.html.erb +45 -0
- data/app/views/items/index.html.erb +38 -0
- data/app/views/items/new.html.erb +40 -0
- data/app/views/items/show.html.erb +3 -0
- data/app/views/layouts/application.html.erb +37 -0
- data/app/views/logs/view.html.erb +120 -0
- data/config/boot.rb +110 -0
- data/config/database.yml +25 -0
- data/config/environment.rb +41 -0
- data/config/environments/cucumber.rb +21 -0
- data/config/environments/development.rb +17 -0
- data/config/environments/production.rb +28 -0
- data/config/environments/test.rb +28 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/new_rails_defaults.rb +19 -0
- data/config/initializers/session_store.rb +15 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +80 -0
- data/db/migrate/20090802070406_create_accounts.rb +14 -0
- data/db/migrate/20090802073601_create_categories.rb +15 -0
- data/db/migrate/20090804065900_create_items.rb +26 -0
- data/db/production.sqlite3 +0 -0
- data/doc/README_FOR_APP +2 -0
- data/features/step_definitions/webrat_steps.rb +129 -0
- data/features/support/env.rb +37 -0
- data/features/support/paths.rb +27 -0
- data/lib/tasks/cucumber.rake +20 -0
- data/lib/tasks/rspec.rake +182 -0
- data/main.rb +5 -0
- data/moneyrail.gemspec +170 -0
- data/public/404.html +30 -0
- data/public/422.html +30 -0
- data/public/500.html +30 -0
- data/public/favicon.ico +0 -0
- data/public/images/rails.png +0 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +973 -0
- data/public/javascripts/editor.js +188 -0
- data/public/javascripts/effects.js +1128 -0
- data/public/javascripts/jquery-ui.js +160 -0
- data/public/javascripts/jquery.js +32 -0
- data/public/javascripts/prototype.js +4320 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/editor.less +67 -0
- data/public/stylesheets/scaffold.css +54 -0
- data/script/about +4 -0
- data/script/autospec +6 -0
- data/script/console +3 -0
- data/script/cucumber +8 -0
- data/script/dbconsole +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/plugin +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/script/spec +10 -0
- data/script/spec_server +9 -0
- data/spec/_fixtures/accounts.yml +5 -0
- data/spec/_fixtures/categories.yml +19 -0
- data/spec/_fixtures/incomes.yml +7 -0
- data/spec/_fixtures/items.yml +7 -0
- data/spec/fixtures/accounts.yml +11 -0
- data/spec/fixtures/categories.yml +24 -0
- data/spec/fixtures/items.yml +82 -0
- data/spec/helpers/accounts_helper_spec.rb +11 -0
- data/spec/helpers/categories_helper_spec.rb +11 -0
- data/spec/helpers/items_helper_spec.rb +11 -0
- data/spec/models/account_spec.rb +13 -0
- data/spec/models/category_spec.rb +9 -0
- data/spec/models/income_spec.rb +9 -0
- data/spec/models/item_spec.rb +13 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +51 -0
- data/vendor/plugins/acts_as_list/README +23 -0
- data/vendor/plugins/acts_as_list/init.rb +3 -0
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
- data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
- data/vendor/plugins/less/LICENCE +20 -0
- data/vendor/plugins/less/README +52 -0
- data/vendor/plugins/less/init.rb +19 -0
- data/vendor/plugins/less/lib/less_for_rails.rb +37 -0
- data/vendor/plugins/less/test/less_for_rails_test.rb +15 -0
- metadata +202 -0
data/main.rb
ADDED
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>
|
data/public/favicon.ico
ADDED
File without changes
|
Binary file
|