This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb | |
index cba8e59..af53ec2 100644 | |
--- a/app/controllers/issues_controller.rb | |
+++ b/app/controllers/issues_controller.rb | |
@@ -139,6 +139,7 @@ class IssuesController < ApplicationController | |
if request.get? || request.xhr? | |
@issue.start_date ||= Date.today | |
+ @issue.inspire_on(params[:inspire_on]) if params[:inspire_on] | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
production: | |
delivery_method: :smtp | |
smtp_settings: | |
address: localhost | |
port: 25 | |
domain: example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Still a work in progress but is good enough for development | |
# | |
# `rake redmine:demo_data` for it all | |
# `rake redmine:demo_data:users` | |
# `rake redmine:demo_data:projects` | |
# `rake redmine:demo_data:issues` | |
# `rake redmine:demo_data:time_entries` | |
require 'faker' | |
require 'random_data' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
# Factory girl | |
################################################## | |
# Redmine specific Factories | |
Factory.define :user do |u| | |
u.mail { Faker::Internet.email } | |
u.firstname { Faker::Name.first_name } | |
u.lastname { Faker::Name.last_name } | |
u.login { Faker::Internet.user_name } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#### Startup some of my things | |
### DISPLAY 0.0 is my left monitor group | |
### DISPLAY 0.1 is my riight monitor group | |
# Wrapper script to startup iceweasel/firefox using my default profile | |
DISPLAY=":0.0" iceweasel-default.sh & | |
DISPLAY=":0.0" icedove & | |
DISPLAY=":0.0" epiphany http://tracks http://pandora.com & | |
DISPLAY=":0.0" emacs.sh ~/tmp/scratch.txt & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changing the current user's Role | |
def change_role(role, project) | |
# User logged in? | |
if User.current.logged? | |
# Will get the existing Member object or a new one if the User isn't yet a Member of the project | |
member = Member.find_or_initialize_by_user_id_and_project_id(User.current, project.id) | |
member.role = role | |
member.project = project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'fileutils' | |
ROOT = '/home/git/checkouts/*' | |
Dir[ROOT].each do |path| | |
FileUtils.cd(path, :verbose => true) | |
system("git fetch") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def menu_item_class(selected=false) | |
if selected | |
'alt-selected' | |
else | |
'' | |
end | |
end | |
# Renders the global menu as an unordered list | |
# Returns a string containing the HTML for the global menu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = true | |
[remote "origin"] | |
mirror = true | |
url = git://github.com/edavis10/redmine-timesheet-plugin.git | |
fetch = +refs/*:refs/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edavis@theadmin:~/tmp$ git clone --bare git://github.com/bvds/andes.git | |
Initialized empty Git repository in /home/edavis/tmp/andes/ | |
remote: Counting objects: 21024, done. | |
remote: Compressing objects: 100% (6919/6919), done. | |
Indexing 21024 objects... | |
remote: Total 21024 (delta 14295), reused 20646 (delta 14002) | |
100% (21024/21024) done | |
Resolving 14295 deltas... | |
100% (14295/14295) done | |
edavis@theadmin:~/tmp$ cd andes/ |