moneyrail 0.1.5 → 0.1.6

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.
@@ -0,0 +1,54 @@
1
+ body { background-color: #fff; color: #333; }
2
+
3
+ body, p, ol, ul, td {
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px;
7
+ }
8
+
9
+ pre {
10
+ background-color: #eee;
11
+ padding: 10px;
12
+ font-size: 11px;
13
+ }
14
+
15
+ a { color: #000; }
16
+ a:visited { color: #666; }
17
+ a:hover { color: #fff; background-color:#000; }
18
+
19
+ .fieldWithErrors {
20
+ padding: 2px;
21
+ background-color: red;
22
+ display: table;
23
+ }
24
+
25
+ #errorExplanation {
26
+ width: 400px;
27
+ border: 2px solid red;
28
+ padding: 7px;
29
+ padding-bottom: 12px;
30
+ margin-bottom: 20px;
31
+ background-color: #f0f0f0;
32
+ }
33
+
34
+ #errorExplanation h2 {
35
+ text-align: left;
36
+ font-weight: bold;
37
+ padding: 5px 5px 5px 15px;
38
+ font-size: 12px;
39
+ margin: -7px;
40
+ background-color: #c00;
41
+ color: #fff;
42
+ }
43
+
44
+ #errorExplanation p {
45
+ color: #333;
46
+ margin-bottom: 0;
47
+ padding: 5px;
48
+ }
49
+
50
+ #errorExplanation ul li {
51
+ font-size: 12px;
52
+ list-style: square;
53
+ }
54
+
metadata CHANGED
@@ -1,68 +1,147 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: moneyrail
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.6
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Yutaka HARA
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
-
12
- date: 2010-02-09 00:00:00 +09:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rails
16
+ requirement: &2154197320 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 2.3.12
17
22
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - "="
22
- - !ruby/object:Gem::Version
23
- version: 2.3.5
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: ruby-station-runtime
23
+ prerelease: false
24
+ version_requirements: *2154197320
25
+ - !ruby/object:Gem::Dependency
26
+ name: slop
27
+ requirement: &2154196780 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
27
33
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 0.0.4
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: less
34
+ prerelease: false
35
+ version_requirements: *2154196780
36
+ - !ruby/object:Gem::Dependency
37
+ name: rake
38
+ requirement: &2154196280 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
37
44
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: sqlite3-ruby
45
+ prerelease: false
46
+ version_requirements: *2154196280
47
+ - !ruby/object:Gem::Dependency
48
+ name: sqlite3
49
+ requirement: &2154195720 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
56
+ prerelease: false
57
+ version_requirements: *2154195720
58
+ - !ruby/object:Gem::Dependency
59
+ name: test-unit
60
+ requirement: &2154195200 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - =
64
+ - !ruby/object:Gem::Version
65
+ version: 1.2.3
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *2154195200
69
+ - !ruby/object:Gem::Dependency
70
+ name: thin
71
+ requirement: &2154194660 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *2154194660
80
+ - !ruby/object:Gem::Dependency
81
+ name: rails
82
+ requirement: &2154194040 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - =
86
+ - !ruby/object:Gem::Version
87
+ version: 2.3.12
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *2154194040
91
+ - !ruby/object:Gem::Dependency
92
+ name: sqlite3
93
+ requirement: &2154193440 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *2154193440
102
+ - !ruby/object:Gem::Dependency
103
+ name: test-unit
104
+ requirement: &2154192880 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - =
108
+ - !ruby/object:Gem::Version
109
+ version: 1.2.3
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *2154192880
113
+ - !ruby/object:Gem::Dependency
114
+ name: jeweler
115
+ requirement: &2154192300 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *2154192300
124
+ - !ruby/object:Gem::Dependency
125
+ name: rake
126
+ requirement: &2154191700 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: *2154191700
55
135
  description: Household account book, written in Rails
56
136
  email: yutaka.hara/at/gmail.com
57
137
  executables: []
58
-
59
138
  extensions: []
60
-
61
- extra_rdoc_files:
139
+ extra_rdoc_files:
62
140
  - README
63
- files:
64
- - .gitignore
141
+ files:
65
142
  - .gitmodules
143
+ - Gemfile
144
+ - Gemfile.lock
66
145
  - HISTORY
67
146
  - README
68
147
  - Rakefile
@@ -80,6 +159,7 @@ files:
80
159
  - app/helpers/home_helper.rb
81
160
  - app/helpers/items_helper.rb
82
161
  - app/helpers/logs_helper.rb
162
+ - app/helpers/stats_helper.rb
83
163
  - app/models/account.rb
84
164
  - app/models/category.rb
85
165
  - app/models/expense.rb
@@ -128,7 +208,7 @@ files:
128
208
  - features/support/env.rb
129
209
  - features/support/paths.rb
130
210
  - lib/tasks/cucumber.rake
131
- - lib/tasks/rspec.rake
211
+ - lib/tasks/import.rake
132
212
  - main.rb
133
213
  - moneyrail.gemspec
134
214
  - public/404.html
@@ -183,48 +263,28 @@ files:
183
263
  - vendor/plugins/acts_as_list/init.rb
184
264
  - vendor/plugins/acts_as_list/lib/active_record/acts/list.rb
185
265
  - vendor/plugins/acts_as_list/test/list_test.rb
186
- - vendor/plugins/less/LICENCE
187
- - vendor/plugins/less/README
188
- - vendor/plugins/less/init.rb
189
- - vendor/plugins/less/lib/less_for_rails.rb
190
- - vendor/plugins/less/test/less_for_rails_test.rb
191
- has_rdoc: true
192
266
  homepage: http://github.com/yhara/moneyrail
193
267
  licenses: []
194
-
195
268
  post_install_message:
196
- rdoc_options:
197
- - --charset=UTF-8
198
- require_paths:
269
+ rdoc_options: []
270
+ require_paths:
199
271
  - lib
200
- required_ruby_version: !ruby/object:Gem::Requirement
201
- requirements:
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- version: "0"
205
- version:
206
- required_rubygems_version: !ruby/object:Gem::Requirement
207
- requirements:
208
- - - ">="
209
- - !ruby/object:Gem::Version
210
- version: "0"
211
- version:
272
+ required_ruby_version: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ! '>='
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
278
+ required_rubygems_version: !ruby/object:Gem::Requirement
279
+ none: false
280
+ requirements:
281
+ - - ! '>='
282
+ - !ruby/object:Gem::Version
283
+ version: '0'
212
284
  requirements: []
213
-
214
285
  rubyforge_project:
215
- rubygems_version: 1.3.5
286
+ rubygems_version: 1.8.15
216
287
  signing_key:
217
288
  specification_version: 3
218
289
  summary: Household account book, written in Rails
219
- test_files:
220
- - spec/helpers/accounts_helper_spec.rb
221
- - spec/helpers/categories_helper_spec.rb
222
- - spec/helpers/items_helper_spec.rb
223
- - spec/models/account_spec.rb
224
- - spec/models/category_spec.rb
225
- - spec/models/income_spec.rb
226
- - spec/models/item_spec.rb
227
- - spec/spec_helper.rb
228
- - test/functional/notes_controller_test.rb
229
- - test/unit/helpers/notes_helper_test.rb
230
- - test/unit/note_test.rb
290
+ test_files: []
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- db/*.sqlite3
2
- db/schema.rb
3
- log
4
- tmp
5
- public/stylesheets/*.css
data/lib/tasks/rspec.rake DELETED
@@ -1,182 +0,0 @@
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