Skip to content

Instantly share code, notes, and snippets.

header =
{ b01_36 : 36bytes;
(* 0x010000000000000000000000000000000000000000000000000000000004000000050000 *)
num_strokes : 2bytes; (* more likely 16bit short than byte *)
b38_39 : 2bytes (* Always 0x0000? *) }
stroke =
{ stroke_header : stroke_header;
points : point list }
issue = Issue.find(35)
if issue.is_task?
issue = issue.becomes(RbTask)
elsif issue.is_story?
issue = issue.becomes(RbStory)
else
raise "Neither a task nor a story"
end
puts issue.burndown.inspect
@retorquere
retorquere / install_log.txt
Created November 6, 2011 13:27
MiniPortile & Ubuntu 10.10
Script started on Sun 06 Nov 2011 02:22:07 PM CET
Using /home/hnse/.rvm/gems/ruby-1.9.2-p180 with gemset han4me-oauth(B
Using /home/hnse/.rvm/gems/ruby-1.9.2-p180(B
Using /home/hnse/.rvm/gems/ruby-1.9.2-p180 with gemset han4me-oauth(B
'han4me-oauth' gemset created (/home/hnse/.rvm/gems/ruby-1.9.2-p180@han4me-oauth).(B
Using /home/hnse/.rvm/gems/ruby-1.9.2-p180 with gemset han4me-oauth(B
Using /home/hnse/.rvm/gems/ruby-1.9.2-p180 with gemset han4me-oauth(B
Using /home/hnse/.rvm/gems/ruby-1.9.2-p180 with gemset han4me-oauth(B
Building native extensions. This could take a while...
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
diff --git a/lib/backlogs_issue_patch.rb b/lib/backlogs_issue_patch.rb
index fcf867d..297cb94 100644
--- a/lib/backlogs_issue_patch.rb
+++ b/lib/backlogs_issue_patch.rb
@@ -192,7 +192,7 @@ module Backlogs
values = [nil] * active_days.size
- property = property.to_s
+ property_s = property.to_s
*** LOCAL GEMS ***
actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
Ascii85 (1.0.1)
builder (3.0.0)
capybara (0.3.9)
diff --git a/db/migrate/033_unique_positions.rb b/db/migrate/033_unique_positions.rb
index d269dba..62dc665 100644
--- a/db/migrate/033_unique_positions.rb
+++ b/db/migrate/033_unique_positions.rb
@@ -26,6 +26,9 @@ class UniquePositions < ActiveRecord::Migration
from issues story
")
+ execute("select id, position from issues left join _backlogs_tmp_position on id = issue_id where new_position is null").each{|row|
+ puts row.inspect
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: somepass
encoding: utf8
development:
adapter: mysql
11:39:54 | Controller | Using existing ssh-agent with PID=0
11:39:56 | Auth | The following keys will be available to SparkleShare:
11:41:56 | Invite | Uploaded public key to http://localhost:3000/site/invite/9b902-470b-95e0-55ec72e1c4d5
11:41:56 | Fetcher | [C:\Users\hnse.STAFF\SparkleShare\.tmp\iris-advies_nl] Fetching folder: ssh://git@localhost/iris-advies_nl
11:41:56 | Auth | Fetching host key for localhost
11:41:56 | Auth | Fingerprint matches
11:41:56 | Cmd | .tmp | git clone --progress --no-checkout --depth=1 "ssh://git@localhost/iris-advies_nl" "C:\Users\hnse.STAFF\SparkleShare\.tmp\iris-advies_nl"
diff --git a/app/views/hooks/_rb_include_scripts.html.erb b/app/views/hooks/_rb_include_scripts.html.erb
index 0bfc1de..82d1c16 100644
--- a/app/views/hooks/_rb_include_scripts.html.erb
+++ b/app/views/hooks/_rb_include_scripts.html.erb
@@ -1,7 +1,12 @@
<%= stylesheet_link_tag 'jquery/jquery.jqplot.min.css', :plugin => 'redmine_backlogs' %>
-<%= javascript_include_tag 'jquery/jquery-1.6.2.min.js', :plugin => 'redmine_backlogs' %>
-<%= javascript_include_tag 'jquery/jquery-ui-1.8.16.custom.min.js', :plugin => 'redmine_backlogs' %>
+<% if Backlogs.platform == :redmine && Redmine::VERSION.to_a[0,2] == [2, 1] %>
diff --git a/lib/backlogs_project_patch.rb b/lib/backlogs_project_patch.rb
index 229483b..6dea409 100644
--- a/lib/backlogs_project_patch.rb
+++ b/lib/backlogs_project_patch.rb
@@ -16,7 +16,14 @@ module Backlogs
@all_sprints.each{|sprint| sprint.burndown.direction = :up }
days = @past_sprints.collect{|s| s.days.size}.sum
if days != 0
- @points_per_day = @past_sprints.collect{|s| s.burndown.data[:points_committed][0]}.compact.sum / days
+ @points_per_day = @past_sprints.collect{|s|