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 KidsController < ApplicationController | |
crud_for :kid | |
end |
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
# language: pt | |
Funcionalidade: Exibição de Relatório Mensal | |
Para efetuar o download o relatório do Setor de Suporte ao Usuário | |
Como qualquer usuário (autênticado ou não) | |
Eu quero visualizar e navegar entre ós relatórios de cada mês | |
Contexto: | |
Dado que eu tenho os seguintes relatórios: | |
| year | month | report_file_name | | |
| 2010 | 1 | 1-2010.pdf | |
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
unicorn@urano:~$ sm --trace unicorn service setup | |
/opt/sm/sets/active/ruby/unicorn/shell//functions: line 5: typeset: -g: invalid option | |
typeset: usage: typeset [-aAfFilrtux] [-p] name[=value] ... | |
A command has returned error code '(2)' without being handled. | |
+# source file # function() | |
===================================================================================================================================================================================== | |
less +5 /opt/sm/sets/active/ruby/unicorn/shell//functions # unicorn_initialize() | |
less +130 /opt/sm/core/sm/shell/modules/functions # __sm.module.include() |
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
unicorn@urano:~$ sm --trace deploy | |
/opt/sm/exts/active/deploy/shell//initialize:27: scalar parameter previous_releases created globally in function | |
/opt/sm/exts/active/deploy/shell//initialize:29: scalar parameter previous created globally in function | |
/opt/sm/exts/active/deploy/shell//initialize:38: array parameter deploy_steps created globally in function | |
+/opt/sm/core/sm/shell/log/functions:432 __sm.actions.call():6 > do_deploy | |
+/opt/sm/exts/active/deploy/shell//functions:318 do_deploy():3 > export 'log_file=/home/unicorn/shared/log/deploy/09.21.2011T13:19:45/deploy.log' | |
+/opt/sm/exts/active/deploy/shell//functions:320 do_deploy():5 > tee -a /home/unicorn/shared/log/deploy/09.21.2011T13:19:45/deploy.log |
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
DEBUG search: sets_user_path:/home/unicorn/.sm/sets: | |
DEBUG search: exts_user_path:/home/unicorn/.sm/exts: | |
DEBUG search: extensions_search_paths:/home/unicorn/.sm/exts/active /opt/sm/exts/active /opt/sm/sets/active/ruby /opt/sm/sets/active/tools /opt/sm/core: | |
DEBUG search: preload sm/core in core/sm/shell/core. | |
DEBUG search: preload sm/string in core/internal/shell/string. | |
DEBUG search: preload sm/logging in core/sm/shell/logging. | |
DEBUG search: preload sm/command in core/sm/shell/command. | |
DEBUG search: preload sm/modules in core/sm/shell/modules. | |
DEBUG search: preload sm/versionedfs in core/sm/shell/versionedfs. | |
DEBUG search: module api/extensions/detection in core/api/shell/extensions/detection. |
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
DEBUG search: sets_user_path:/home/unicorn/.sm/sets: | |
DEBUG search: exts_user_path:/home/unicorn/.sm/exts: | |
DEBUG search: extensions_search_paths:/home/unicorn/.sm/exts/active /opt/sm/exts/active /opt/sm/sets/active/ruby /opt/sm/sets/active/tools /opt/sm/core: | |
DEBUG search: preload sm/core in core/sm/shell/core. | |
DEBUG search: preload sm/string in core/internal/shell/string. | |
DEBUG search: preload sm/logging in core/sm/shell/logging. | |
DEBUG search: preload sm/command in core/sm/shell/command. | |
DEBUG search: preload sm/modules in core/sm/shell/modules. | |
DEBUG search: preload sm/versionedfs in core/sm/shell/versionedfs. | |
DEBUG search: module api/extensions/detection in core/api/shell/extensions/detection. |
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 'rubygems' | |
require 'spork' | |
Spork.prefork do | |
# Loading more in this block will cause your tests to run faster. However, | |
# if you change any configuration or code from libraries loaded here, you'll | |
# need to restart spork for it take effect. | |
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
Spork.trap_method(Rails::Application::RoutesReloader, :reload!) |
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
window.client = new Faye.Client('/faye') | |
window.subscribe_to_game_channel = (player, game_id) -> | |
subscription = client.subscribe "/games/#{game_id}", (message) -> | |
$('.messages').append message.text | |
$ -> | |
alert('teste') |
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
get '/login' do | |
haml :login | |
end | |
post '/login' do | |
player = Player.first_or_create(:name => params[:player_name]) | |
session[:player] = player.name | |
redirect '/lobby' | |
end |
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
module Messenger | |
class Person | |
@@people = [] | |
def initialize(attributes={}) | |
@attributes = { :global_id => nil, :name => nil }.merge(attributes) | |
end | |
def self.create!(attributes={}) |