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 Web::Controllers::Conferences | |
class Create | |
include Web::Action | |
before :check_for_admin_role | |
expose :conference | |
params do |
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 Web::Controllers::Posts | |
class Update | |
include Web::Action | |
before :check_for_admin_role | |
params do | |
param :post do | |
param :title, presence: true | |
param :body, presence: true |
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
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/hanami-utils-0.7.1/lib/hanami/utils/class_attribute.rb:67: warning: `*' interpreted as argument prefix | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/url_mount-0.2.1/lib/url_mount.rb:55: warning: method redefined; discarding old variables | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/url_mount-0.2.1/lib/url_mount.rb:27: warning: previous definition of variables was here | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/route.rb:10: warning: method redefined; discarding old match_partially | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/route.rb:10: warning: method redefined; discarding old router | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/generator.rb:58: warning: assigned but unused variable - generator | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/http_router-0.11.2/lib/http_router/route_helper.rb:99: warning: assigned but unused variable - params | |
/home/sebastjan/.rvm/gems/ruby-2.2.1/gems/h |
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 Web::Controllers::Parents | |
class Create | |
include Web::Action | |
expose :parent | |
params do | |
param :parent do | |
param :name, presence: true | |
param :surname, presence: true |
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
source 'https://rubygems.org' | |
gem 'bundler' | |
gem 'rake' | |
gem 'hanami', '0.7.0' | |
gem 'hanami-model', '~> 0.5' | |
gem 'thin' | |
gem 'sqlite3' | |
gem 'launchy' | |
gem 'bcrypt' |
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 'bcrypt' | |
class Parent | |
include Hanami::Entity | |
attributes :name, :surname, :email, :password, | |
:password_confirmation, :password_reset_token, :password_reset_sent_at | |
attr_reader :password_hash, :password_salt | |
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
1) Failure: | |
Web::Controllers::Projects::Show#test_0001_exposes a project [C:/Users/sebastjan/Documents/projekti/lotus/myProject/spec/web/controllers/projects/show_spec.rb:19]: | |
Expected: {:project=>#<Project:0x5de5668 @name="Test povezave1", @number="123", | |
@customer="Customer 1", @creation_date="23. 02. 2015", @purchase_order="sl-123", | |
@deadline="01. 04. 2015", @id=435>} | |
Actual: {:params=>#<Web::Controllers::Projects::Show::Params:0x5de53f8 | |
@env={:id=>435, "lotus.action"=>#<Web::Controllers::Projects::Show:0x5de54d0 @_env={...}, | |
@headers={"X-Frame-Options"=>"DENY", "Content-Security-Policy"=>"default-src 'none'; script-src 'self'; |
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 'features_helper' | |
describe 'Projects' do | |
after do | |
ProjectRepository.clear | |
end | |
it 'can create a new project' do | |
visit '/projects/new' | |
save_and_open_page |
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 'camping' | |
Camping.goes :People | |
module People::Controllers | |
class Index < R '/' | |
def get | |
render :index | |
end | |
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
require 'pm' | |
require 'qm' |