lunarlogic / rubytime Goto Github PK
View Code? Open in Web Editor NEWA Merb-based time tracking and invoicing system
Home Page: rubytime.org
A Merb-based time tracking and invoicing system
Home Page: rubytime.org
Please help!!!!
I have been struggelling with this for a few days now and have not been able to get the app up and running.
When running rake db:automigrate
bundle exec rake db:automigrate
(in /Users/Saggezza/rubyprojects/rubytime)
Merb root at: /Users/Saggezza/rubyprojects/rubytime
Loading init file from ./config/init.rb
rake aborted!
dlopen(/Users/Saggezza/.rvm/gems/ruby-1.8.7-p352/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle, 9): Library not loaded: /opt/local/lib/mysql5/mysql/libmysqlclient.16.dylib
Referenced from: /Users/Saggezza/.rvm/gems/ruby-1.8.7-p352/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle
Reason: Incompatible library version: do_mysql.bundle requires version 17.0.0 or later, but libmysqlclient.16.dylib provides version 16.0.0 - /Users/Saggezza/.rvm/gems/ruby-1.8.7-p352/gems/do_mysql-0.10.2/lib/do_mysql/do_mysql.bundle
/Users/Saggezza/rubyprojects/rubytime/Rakefile:12
(See full trace by running task with --trace)
I have been unable to get rubytime up and running. I'm sure I am going something wrong. I get the following:
sudo bundle exec rake db:automigrate --trace
(in /opt/bitnami/projects/rubytimenotstable)
Merb root at: /opt/bitnami/projects/rubytimenotstable
Loading init file from ./config/init.rb
Loading ./config/environments/development.rb
DataMapper::Resource.append_inclusions is deprecated, use DataMapper::Model.append_inclusions instead (/opt/bitnami/ruby/lib/ruby/gems/1.8/bundler/gems/merb_dm_xss_terminate-5ee5f92/lib/merb_dm_xss_terminate.rb:7)
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rcov_stats-2.0.1/lib/rcov_stats.rb:6: warning: already initialized constant TYPES
** Invoke db:automigrate (first_time)
** Invoke merb_env (first_time)
** Execute merb_env
Merb root at: /opt/bitnami/projects/rubytimenotstable
Loading ./config/environments/rake.rb
~ Loaded RAKE Environment...
rake aborted!
no such file to load -- merb-core/dispatch/session
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/bootloader.rb:582:in require' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/bootloader.rb:582:in
run'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/bootloader.rb:97:in run' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/server.rb:172:in
bootup'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/server.rb:42:in start' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core.rb:165:in
start'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/merb-core-1.1.0.pre/lib/merb-core.rb:178:in start_environment' /opt/bitnami/projects/rubytimenotstable/Rakefile:24 /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/1.8/monitor.rb:242:in synchronize' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in invoke_prerequisites' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
each'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in invoke_prerequisites' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/1.8/monitor.rb:242:in synchronize' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run'
/opt/bitnami/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/opt/bitnami/ruby/bin/rake:19:in `load'
/opt/bitnami/ruby/bin/rake:19
Any ideas on how to address this?
anyone could tell me how to install the rubytime on windows?
Thanks a lot.
My enviroment:
WinXP
Ruby 1.8.7
rails 2.3.14
mysql 5.X
but I can not install rubytime. I'm not sure how to install it in windows.
when I use command:
bundle install
it shows error like this
Fetching git://github.com/schwabsauce/merb_dm_xss_terminate.git
C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:579:in ``': No such file or d
irectory - git clone "git://github.com/schwabsauce/merb_dm_xss_terminate.git" "C:/Ruby187/lib/ruby/g
ems/1.8/cache/bundler/git/merb_dm_xss_terminate-f162775321755e31badc8a51282cbc0b773d1381" --bare --n
o-hardlinks (Errno::ENOENT)
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:579:ingit' from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:653:in
cache'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:551:in`specs'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:147:in `reso
lve'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:145:in`each
'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:145:in `reso
lve'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in`specs
'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:85:in `resol
ve_remotely!'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:43:in`run'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in `install
'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in`install'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
`send'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
`run'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:
118:in `invoke_task'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in`dis
patch'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in
`start'
from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.21/bin/bundle:13
from C:/Ruby187/bin/bundle:19:in`load'
I keep getting the below error. I have installed all gems (using bundle install), and I have run both "bundle exec rake db:automigrate" and "bundle exec rake rubytime:kickstart" - which successfully run. The error occurs on ruby 1.8.6 running on Ubuntu 8.04. I am using latest stable from git (e05151b). The app does not work at all, as this happens with all requests, so I can't do anything.
merb : worker (port 4000) ~ Starting Mongrel at port 4000
merb : worker (port 4000) ~ Successfully bound to port 4000
merb : worker (port 4000) ~ In repository block default
merb : worker (port 4000) ~ Started request handling: Tue Jun 01 11:35:15 +0200 2010
merb : worker (port 4000) ~ Routed to: {"action"=>"index", "controller"=>"activities"}
merb : worker (port 4000) ~ Params: {"action"=>"index", "controller"=>"activities"}
merb : worker (port 4000) ~ wrong argument type Symbol (expected Proc) - (TypeError)
/home/eskild/rubytime/app/controllers/activities.rb:227:in `load_column_properties'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:352:in `send'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:352:in `_call_filters'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:344:in `each'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:344:in `_call_filters'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:286:in `_dispatch'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:284:in `catch'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/abstract_controller.rb:284:in `_dispatch'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/merb_controller.rb:285:in `_dispatch'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/merb_controller.rb:262:in `_call'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/controller/merb_controller.rb:252:in `call'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/dispatch/dispatcher.rb:98:in `dispatch_action'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/dispatch/dispatcher.rb:98:in `synchronize'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/dispatch/dispatcher.rb:98:in `dispatch_action'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/dispatch/dispatcher.rb:76:in `handle'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/dispatch/dispatcher.rb:36:in `handle'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/rack/application.rb:17:in `call'
/home/eskild/.bundle/ruby/1.8/gems/rack_revision_info-0.3.5/lib/rack_revision_info.rb:20:in `call'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/rack/middleware/static.rb:28:in `call'
/home/eskild/.bundle/ruby/1.8/gems/merb_datamapper-1.1.0.pre/lib/merb_datamapper.rb:88:in `call'
/home/eskild/.bundle/ruby/1.8/gems/dm-core-0.10.2/lib/dm-core.rb:208:in `repository'
/home/eskild/.bundle/ruby/1.8/gems/dm-core-0.10.2/lib/dm-core/repository.rb:111:in `scope'
/home/eskild/.bundle/ruby/1.8/gems/dm-core-0.10.2/lib/dm-core.rb:208:in `repository'
/home/eskild/.bundle/ruby/1.8/gems/merb_datamapper-1.1.0.pre/lib/merb_datamapper.rb:86:in `call'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/rack/handler/mongrel.rb:82:in `process'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/home/eskild/.bundle/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/rack/adapter/mongrel.rb:38:in `start_server'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/rack/adapter/abstract.rb:298:in `start_at_port'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/rack/adapter/abstract.rb:131:in `start'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/server.rb:174:in `bootup'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core/server.rb:42:in `start'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/lib/merb-core.rb:165:in `start'
/home/eskild/.bundle/ruby/1.8/gems/merb-core-1.1.0.pre/bin/merb:20
/home/eskild/.bundle/ruby/1.8/bin/merb:19:in `load'
/home/eskild/.bundle/ruby/1.8/bin/merb:19
merb : worker (port 4000) ~ Params: {"action"=>"index", "controller"=>"activities"}
merb : worker (port 4000) ~ {:dispatch_time=>0.044117, :before_filters_time=>4.4e-05, :action_time=>0.042072, :after_filters_time=>3.2e-05}
I'm a new comer for rubytime. so I have some question for the rubytime.
in master I can not find how to build database. so the rubytime3 should be built based on the database of rubytime 2.x?
I tried to install rubytime3 for test, and found some problem.
DataMapper::Resource.append_inclusions is deprecated, use DataMapper::Model.append_inclusions instea
d (C:/Ruby187/lib/ruby/gems/1.8/bundler/gems/merb_dm_xss_terminate-5ee5f92/lib/merb_dm_xss_terminate
.rb:7)
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
E:/rubytime/app/models/user.rb:4: warning: already initialized constant RECENT_ACTIVITIES_NUM
E:/rubytime/app/models/user.rb:5: warning: already initialized constant LOGIN_REGEXP
E:/rubytime/app/models/hourly_rate_log.rb:4: warning: already initialized constant VALID_OPERATION_T
YPES
E:/rubytime/app/models/hourly_rate_log.rb:5: warning: already initialized constant ATTRIBUTES_TO_LOG
E:/rubytime/app/models/activity.rb:3: warning: already initialized constant HOURS_REGEX
E:/rubytime/app/controllers/application.rb:5: warning: already initialized constant JSON_API_VERSION
~ Compiling routes...
~ Could not find resource model Session
~ (0.000000) SET sql_auto_is_null = 0
~ (0.000000) SET SESSION sql_mode = 'ANSI,NO_BACKSLASH_ESCAPES,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUT
ION,NO_UNSIGNED_SUBTRACTION,TRADITIONAL'
~ (0.000000) SELECT id
, date
, minutes
, project_id
, role_id
, activity_type_id
, user_id
, invoice_id
, price_value
, price_currency_id
, updated_at
, created_at
FROM activities
WHE
RE role_id
= -1 ORDER BY id
LIMIT 1
~ Table 'rubytime3_dev.activities' doesn't exist (code: 1146, sql state: 42S02, query: SELECT id
,
date
, minutes
, project_id
, role_id
, activity_type_id
, user_id
, invoice_id
, price_val ue
, price_currency_id
, updated_at
, created_at
FROM activities
WHERE role_id
= -1 ORDER BY
id
LIMIT 1, uri: mysql://root:root@localhostrubytime3_dev?encoding=UTF-8)
2S02, query: SELECT id
, date
, minutes
, project_id
, role_id
, activity_type_id
, user_id
,
invoice_id
, price_value
, price_currency_id
, updated_at
, created_at
FROM activities
WHER
E role_id
= -1 ORDER BY id
LIMIT 1, uri: mysql://root:root@localhostrubytime3_dev?encoding=UTF-8
)>
rake aborted!
so, anything I do wrong? Could anyone tell me how to install the rubytime3? I can not install it correctly by the installation Guide or something I've missed? Thanks so much.
could rubytime support other language(besides English) ? How can I change it into Japanese or other language?
Thanks
while try to install this application in windows ruby1.9.2 i am unable to proceed from bundle install step
Error:--
when bundle install
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem::Specification#has_rdoc= called from D:/RailsInstaller/Ruby1.9.2/lib/ruby/ge
ms/1.9.1/bundler/gems/merb_dm_xss_terminate-5ee5f92/merb_dm_xss_terminate.gemspe
c:14
.
Fetching source index for http://rubygems.org/
D:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:
427:in rescue in request': too many connection resets (http://cachefly.mirrors. rubygems.org/quick/Marshal.4.8/dm-core-0.10.2.gemspec.rz) (Gem::RemoteFetcher::F etchError) from D:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/remot e_fetcher.rb:372:in
request'
from D:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:202:in `fetch_http'
from D:/RailsInstaller/Ruby1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/remot
hello,
i have a dev install on a local server using sqlite3. i have followed the deploy instructions in the README file. how does the database type (sqlite3, mysql, pgsql, etc) get defined and therefore the appropriate gems installed in deploy process?
regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.