This file contains 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
require 'action_view' | |
module ActionView | |
module Template::Handlers | |
class NokogiriBuilder | |
class_attribute :default_format | |
self.default_format = Mime::XML | |
def call(template) | |
require 'nokogiri' |
This file contains 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/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
This file contains 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/sh | |
set -u | |
set -e | |
# Feel free to change any of the following variables for your app: | |
export PATH=/usr/local/bin:$PATH | |
export HOME=/home/deploy | |
APP_ROOT=/var/www/pragmaticly/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid |
This file contains 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
config.action_mailer.delivery_method = :file | |
config.action_mailer.file_settings = { | |
location: 'tmp/mails', | |
smtp_settings: { | |
address: "localhost", | |
port: 25, | |
domain: 'localhost.localdomain', | |
user_name: nil, | |
password: nil, | |
authentication: nil, |
This file contains 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
class App.Ticket extends Spine.Model | |
@configure 'Ticket', "id", "project_id" | |
@scope: -> | |
"projects/#{current.project_id}" | |
scope: -> | |
"projects/#{@project_id}" |
This file contains 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
class App.Project extends Spine.Model | |
@configure 'Project', 'id', 'name', 'description', 'owner_id', 'uid' | |
@extend Spine.Model.Ajax | |
@extend Spine.Model.Dirty | |
validate: -> | |
'name required' unless @name | |
inviteUser: (email) -> | |
App.Invitation.create(project_id: @id, email: email) |
This file contains 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
class App.TicketsController extends Spine.Controller | |
constructor: -> | |
super | |
@routes | |
"/tickets": @index | |
"/tickets/:id" : (params) -> | |
@show(params.id) | |
index: -> | |
tickets = App.Ticket.all() |
This file contains 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
class App.LeftIterationController extends Spine.Controller | |
el: '.sidebar #iterations' | |
elements: | |
'ul.list': 'list' | |
constructor: -> | |
super | |
App.Iteration.bind 'create', @addIteration | |
App.Iteration.bind 'refresh', @refreshIterations |
This file contains 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
├── app | |
│ ├── controllers | |
│ │ ├── center | |
│ │ │ ├── filter_controller.js.coffee | |
│ │ │ └── tickets_controller.js.coffee | |
│ │ ├── center_content_controller.coffee | |
│ │ ├── comments_controller.js.coffee | |
│ │ ├── header | |
│ │ │ └── project_nav_controller.js.coffee | |
│ │ ├── header_controller.coffee |
This file contains 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
class Notifier | |
constructor: -> | |
@enableNotification = false | |
@checkOrRequirePermission() | |
hasSupport: -> | |
window.webkitNotifications? | |
requestPermission: (cb) -> | |
window.webkitNotifications.requestPermission (cb) |
NewerOlder