GithubHelp home page GithubHelp logo

holidays's People

Contributors

iceskysl avatar littlefreaky avatar undigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

holidays's Issues

Error on 2.4.1

on Installation the plugin on 2.4.1 wie see the following errors.

a) wrong installation instructions for getting the plugin:
git clone [email protected]:IceskYsl/holidays.git
we used: git clone git://github.com/IceskYsl/holidays.git

b) errors on migrate to redmine:
rake redmine:plugins:migrate RAILS_ENV=production
...
rake aborted!
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/trace_output.rb:16:in block in trace_on': invalid byte sequence in US-ASCII (ArgumentError) from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/trace_output.rb:14:inmap'
from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/trace_output.rb:14:in trace_on' from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:340:intrace'
from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:187:in display_error_message' from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:174:inrescue in standard_exception_handling'
from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:165:in standard_exception_handling' from /var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:75:inrun'
from /var/lib/gems/1.9.1/gems/rake-10.1.0/bin/rake:33:in <top (required)>' from /usr/local/bin/rake:23:inload'
from /usr/local/bin/rake:23:in `

'
...

no problems with other plugins.
we use redmine 2.4.1 on debian wheezy with german utf8 localization

I Get some Error in this plugin

i run rake db:migrate_plugins RAILS_ENV=production get this error:

rake aborted!
D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/trace_output.
rb:16:in block in trace_on': invalid byte sequence in US-ASCII (ArgumentError) from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/ trace_output.rb:14:inmap'
from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/
trace_output.rb:14:in trace_on' from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/ application.rb:340:intrace'
from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/
application.rb:187:in display_error_message' from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/ application.rb:174:inrescue in standard_exception_handling'
from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/
application.rb:165:in standard_exception_handling' from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/lib/rake/ application.rb:75:inrun'
from D:/WebDev/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rake-10.1.0/bin/rake:
33:in <top (required)>' from D:/WebDev/ruby-1.9.3/bin/rake:23:inload'
from D:/WebDev/ruby-1.9.3/bin/rake:23:in `

'

Missing translations

Hi,

I am using version 0.1.0 and some translation are missing in config/locales/en.yml. I did not find them either in zh.yml.

For instance, when I go to the plugin settings, I get this:
holidays_plugin

The same applies on the holidays page:
holidays_plugin2

Not a big thing, but it would help :)

Thanks.

cannot reach the repo

with "git clone [email protected]:IceskYsl/holidays.git"

I get the following error:

Cloning into 'holidays'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

500 Internal Server Error while clicking the "holidays" tab

Hi there.

I successfully completed the install instructions:

http://www.redmine.org/plugins/holidays

Then I clicked on the "holidays" tab and I got below exception:

Started GET "/holidays" for 10.0.0.16 at Mon Jun 23 15:22:45 +0200 2014
Processing by HolidaysController#index as HTML
Current user: javier.legido (id=9)
Rendered plugins/holidays/app/views/holidays/_nav.html.erb (1.2ms)
Rendered plugins/holidays/app/views/holidays/index.html.erb within layouts/base (5.3ms)
Completed 500 Internal Server Error in 19.8ms

ActionView::Template::Error (undefined method sunday?' for Mon, 26 May 2014:Date): 13: <% day = @calendar.startdt 14: while day <= @calendar.enddt %> 15: <%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == @calendar.first_wday %> 16: <td class="<%= [email protected] ? 'even' : 'odd' %><%= ' today' if Date.today == day %> <%= (day.sunday? || day.saturday?) ? 'weekend' : 'weekday' %>"> 17: <p class="day-num"><%= day.day %></p> 18: <% @calendar.events_on(day).each do |i| %> 19: <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip"> plugins/holidays/app/views/holidays/index.html.erb:16:in_plugins_holidays_app_views_holidays_index_html_erb___1858800593_70021819238460'
actionpack (3.2.15) lib/action_view/template.rb:145:in send' actionpack (3.2.15) lib/action_view/template.rb:145:inrender'
activesupport (3.2.15) lib/active_support/notifications.rb:125:in instrument' actionpack (3.2.15) lib/action_view/template.rb:143:inrender'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:47:in render_template' actionpack (3.2.15) lib/action_view/renderer/abstract_renderer.rb:38:ininstrument'
activesupport (3.2.15) lib/active_support/notifications.rb:123:in instrument' activesupport (3.2.15) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.15) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.15) lib/action_view/renderer/abstract_renderer.rb:38:ininstrument'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:46:in render_template' actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:54:inrender_with_layout'
actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:45:in render_template' actionpack (3.2.15) lib/action_view/renderer/template_renderer.rb:18:inrender'
actionpack (3.2.15) lib/action_view/renderer/renderer.rb:36:in render_template' actionpack (3.2.15) lib/action_view/renderer/renderer.rb:17:inrender'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:110:in _render_template' actionpack (3.2.15) lib/action_controller/metal/streaming.rb:225:in_render_template'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:103:in render_to_body' actionpack (3.2.15) lib/action_controller/metal/renderers.rb:28:inrender_to_body'
actionpack (3.2.15) lib/action_controller/metal/compatibility.rb:50:in render_to_body' actionpack (3.2.15) lib/abstract_controller/rendering.rb:88:inrender'
actionpack (3.2.15) lib/action_controller/metal/rendering.rb:16:in render' actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:40:inrender'
activesupport (3.2.15) lib/active_support/core_ext/benchmark.rb:5:in ms' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
activesupport (3.2.15) lib/active_support/core_ext/benchmark.rb:5:in ms' actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:40:inrender'
actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:83:in cleanup_view_runtime' activerecord (3.2.15) lib/active_record/railties/controller_runtime.rb:24:incleanup_view_runtime'
actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:39:in render' actionpack (3.2.15) lib/action_controller/metal/implicit_render.rb:10:indefault_render'
actionpack (3.2.15) lib/action_controller/metal/implicit_render.rb:5:in send_action' actionpack (3.2.15) lib/abstract_controller/base.rb:167:inprocess_action'
actionpack (3.2.15) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.15) lib/abstract_controller/callbacks.rb:18:inprocess_action'
activesupport (3.2.15) lib/active_support/callbacks.rb:469:in _run__1597795220__process_action__42862657__callbacks' activesupport (3.2.15) lib/active_support/callbacks.rb:405:insend'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.15) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in send' activesupport (3.2.15) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.15) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:30:in process_action' activesupport (3.2.15) lib/active_support/notifications.rb:123:ininstrument'
activesupport (3.2.15) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.15) lib/active_support/notifications.rb:123:ininstrument'
actionpack (3.2.15) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.15) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
activerecord (3.2.15) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.15) lib/abstract_controller/base.rb:121:inprocess'
actionpack (3.2.15) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.15) lib/action_controller/metal.rb:203:indispatch'
actionpack (3.2.15) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.15) lib/action_controller/metal.rb:246:inaction'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:73:indispatch'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:incall'
journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall'
actionpack (3.2.15) lib/action_dispatch/routing/route_set.rb:608:in call' rack-openid (1.4.1) lib/rack/openid.rb:99:incall'
actionpack (3.2.15) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall'
rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.15) lib/action_dispatch/middleware/head.rb:14:incall'
actionpack (3.2.15) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.15) lib/action_dispatch/middleware/flash.rb:242:incall'
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall'
actionpack (3.2.15) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.15) lib/active_record/query_cache.rb:64:incall'
activerecord (3.2.15) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'

Remove holidays

The functionality is missing. You can only add holiday. If you make a mistake - you have to manually in database remove the row.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.