~ubuntu-branches/ubuntu/wily/cucumber/wily-proposed

« back to all changes in this revision

Viewing changes to examples/ramaze/app.rb

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier, Antonio Terceiro, Cédric Boutillier
  • Date: 2015-06-20 16:52:32 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150620165232-hznc8mxma08er27p
Tags: 2.0.0-1
[ Antonio Terceiro ]
* debian/cucumber.pod: fix typo in manpage (Closes: #767215)

[ Cédric Boutillier ]
* Imported Upstream version 2.0.0
* rename the file in debian/missing-source to remove -min suffix, and make
  lintian happy
* reproducibility: use last changelog date to build the manpage
* update 0004-Update_default_binary_path.patch
* drop 0001-Remove-rubygems-bundler-stuff-from-spec_helper.patch, not needed
  anymore
* build-depend on pry
* depend on ruby-cucumber-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
begin
2
 
  require 'ramaze'
3
 
rescue LoadError
4
 
  require 'rubygems'
5
 
  require 'ramaze'
6
 
end
7
 
 
8
 
class Main < Ramaze::Controller
9
 
  engine :ERB
10
 
  layout :default
11
 
 
12
 
  def index
13
 
    # just render views/index.html.erb
14
 
  end
15
 
 
16
 
  def add
17
 
    "Answer: #{request[:first].to_i + request[:second].to_i}"
18
 
  end
19
 
end
20
 
 
21
 
Ramaze.start :root => __DIR__