cukesalad 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- default: -p side_door
2
- front_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/side_door
3
- side_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/front_door
4
- back_door: --exclude features/lib/roles/front_door --exclude features/lib/roles/side_door
1
+ default: -p side_door -s
2
+ front_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/side_door -s
3
+ side_door: --exclude features/lib/roles/back_door --exclude features/lib/roles/front_door -s
4
+ back_door: --exclude features/lib/roles/front_door --exclude features/lib/roles/side_door -s
5
5
  autotest: --color
6
6
  autotest-all: --color
@@ -19,7 +19,7 @@ module CalculatingIndividual
19
19
  if next_operator == :equals
20
20
  equals
21
21
  else
22
- @calculator.get_ready_to @operate_with[next_operator.to_s]
22
+ @calculator.get_ready_to @operate_with[next_operator]
23
23
  end
24
24
  end
25
25
 
@@ -1,4 +1,3 @@
1
-
2
1
  module Calculations
3
2
 
4
3
  def follow_the_steps_for sum
@@ -6,10 +5,10 @@ module Calculations
6
5
  end
7
6
 
8
7
  def enter_numbers_and_operators_for sum
9
- operators = Calculator::OPERATORS
8
+ operators = Calculator::OPERATIONS.invert
10
9
  sum.each do | token |
11
10
  enter token.to_i if token =~ /\d+/
12
- press operators[token].to_sym if operators.include? token
11
+ press operators[token] if operators.include? token
13
12
  end
14
13
  end
15
14
  end
@@ -1,8 +1,10 @@
1
-
2
1
  class Calculator
3
2
 
4
- OPERATIONS = { 'plus' => '+', 'minus' => '-', 'equals' => '=' }
5
- OPERATORS = OPERATIONS.invert
3
+ OPERATIONS = {
4
+ plus: '+',
5
+ minus: '-',
6
+ equals: '='
7
+ }
6
8
 
7
9
  attr_reader :display
8
10
 
@@ -17,8 +17,8 @@ class WebCalculator < Sinatra::Base
17
17
  Calculator::OPERATIONS
18
18
  end
19
19
 
20
- def operate_with operator
21
- available_operations[operator]
20
+ def operate_with operation
21
+ available_operations[operation.to_sym]
22
22
  end
23
23
 
24
24
  def persist calc
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cukesalad (0.8.1)
4
+ cukesalad (0.8.2)
5
5
  aruba (= 0.4.3)
6
- cucumber (= 1.0.6)
6
+ cucumber (= 1.1.9)
7
7
  rspec (>= 2.5.0)
8
8
 
9
9
  GEM
@@ -19,39 +19,44 @@ GEM
19
19
  bcat (0.6.2)
20
20
  rack (~> 1.0)
21
21
  builder (3.0.0)
22
- childprocess (0.2.2)
22
+ childprocess (0.3.1)
23
23
  ffi (~> 1.0.6)
24
- cucumber (1.0.6)
24
+ cucumber (1.1.9)
25
25
  builder (>= 2.1.2)
26
26
  diff-lcs (>= 1.1.2)
27
- gherkin (~> 2.4.18)
27
+ gherkin (~> 2.9.0)
28
28
  json (>= 1.4.6)
29
29
  term-ansicolor (>= 1.0.6)
30
30
  diff-lcs (1.1.3)
31
- ffi (1.0.9)
32
- gherkin (2.4.21)
31
+ ffi (1.0.11)
32
+ ffi (1.0.11-java)
33
+ gherkin (2.9.0)
34
+ json (>= 1.4.6)
35
+ gherkin (2.9.0-java)
33
36
  json (>= 1.4.6)
34
37
  json (1.4.6)
35
38
  json (1.4.6-java)
36
39
  mime-types (1.16)
37
- rack (1.3.3)
40
+ rack (1.4.1)
38
41
  rake (0.9.2)
39
42
  rdiscount (1.6.8)
43
+ rdoc (3.12)
44
+ json (~> 1.4)
40
45
  relish (0.3.0)
41
46
  archive-tar-minitar (~> 0.5.2)
42
47
  json (~> 1.4.6)
43
48
  rest-client (~> 1.6.1)
44
49
  rest-client (1.6.7)
45
50
  mime-types (>= 1.16)
46
- rspec (2.6.0)
47
- rspec-core (~> 2.6.0)
48
- rspec-expectations (~> 2.6.0)
49
- rspec-mocks (~> 2.6.0)
50
- rspec-core (2.6.4)
51
- rspec-expectations (2.6.0)
51
+ rspec (2.8.0)
52
+ rspec-core (~> 2.8.0)
53
+ rspec-expectations (~> 2.8.0)
54
+ rspec-mocks (~> 2.8.0)
55
+ rspec-core (2.8.0)
56
+ rspec-expectations (2.8.0)
52
57
  diff-lcs (~> 1.1.2)
53
- rspec-mocks (2.6.0)
54
- term-ansicolor (1.0.6)
58
+ rspec-mocks (2.8.0)
59
+ term-ansicolor (1.0.7)
55
60
 
56
61
  PLATFORMS
57
62
  java
@@ -61,4 +66,5 @@ DEPENDENCIES
61
66
  bundler (~> 1.0.0)
62
67
  cukesalad!
63
68
  rake (~> 0.9.2)
69
+ rdoc (>= 2.4.0)
64
70
  relish (= 0.3.0)
data/Rakefile CHANGED
@@ -7,6 +7,7 @@ rescue Bundler::BundlerError => e
7
7
  $stderr.puts "Run `bundle install` to install missing gems"
8
8
  exit e.status_code
9
9
  end
10
+ require 'rake/dsl_definition'
10
11
  require 'rake'
11
12
  Bundler::GemHelper.install_tasks
12
13
 
@@ -25,8 +26,8 @@ end
25
26
 
26
27
  task :default => [:spec, :cucumber]
27
28
 
28
- require 'rake/rdoctask'
29
- Rake::RDocTask.new do |rdoc|
29
+ require 'rdoc/task'
30
+ RDoc::Task.new do |rdoc|
30
31
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
31
32
 
32
33
  rdoc.rdoc_dir = 'rdoc'
@@ -25,11 +25,12 @@ Gem::Specification.new do |s|
25
25
  s.default_executable = "cukesalad"
26
26
  s.require_paths = ["lib"]
27
27
 
28
- s.add_runtime_dependency "cucumber", "1.0.6"
28
+ s.add_runtime_dependency "cucumber", "1.1.9"
29
29
  s.add_runtime_dependency "rspec", ">=2.5.0"
30
30
  s.add_runtime_dependency "aruba", "0.4.3"
31
31
 
32
32
  s.add_development_dependency "bundler", "~> 1.0.0"
33
33
  s.add_development_dependency "rake", "~> 0.9.2"
34
34
  s.add_development_dependency "relish", "= 0.3.0"
35
+ s.add_development_dependency "rdoc", ">= 2.4.0"
35
36
  end
@@ -3,7 +3,6 @@ Feature: Define a Task
3
3
  You want to describe a task
4
4
  So that your steps that use that role are executed
5
5
 
6
-
7
6
  Background:
8
7
  Given you are a Step Free Cuker
9
8
  And you have created a role, named 'NewCustomer'
@@ -53,8 +52,8 @@ Feature: Define a Task
53
52
  Then you should see it has 'passed'
54
53
 
55
54
  Scenario: Tasks can contain numbers
56
- Given you have created a task: called 'do something for 123Company'
57
- When you run a scenario: containing
55
+ Given you have created a task, called 'do something for 123Company'
56
+ When you run a scenario, containing
58
57
  """
59
58
  Given I am a New Customer
60
59
  When I do something for 123Company
@@ -63,7 +62,6 @@ Feature: Define a Task
63
62
 
64
63
  Scenario Outline: There are all sorts of ways you can say things
65
64
  Given you have created a task, called 'do something'
66
- And you have created a task, called 'done something'
67
65
  When you run a scenario: containing
68
66
  """
69
67
  Given I am a New Customer
@@ -1,3 +1,3 @@
1
1
  module CukeSalad
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cukesalad
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.1
5
+ version: 0.8.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - RiverGlide
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-17 00:00:00 Z
13
+ date: 2012-03-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - "="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.0.6
22
+ version: 1.1.9
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: *id001
@@ -78,6 +78,17 @@ dependencies:
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
+ name: rdoc
83
+ requirement: &id007 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 2.4.0
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *id007
81
92
  description: "CukeSalad allows you to focus on the tasks at hand - expressing examples, the roles involved in those examples and the tasks that those roles need to perform with the product under development.\n New in this version:\n - Single or double quotes can be used for parameters\n - Single or double quotes can be used for expectations\n - You can initialise the actor by having a role_preparation method in your role\n "
82
93
  email:
83
94
  - talktous@riverglide.com
@@ -186,7 +197,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
197
  requirements:
187
198
  - - ">="
188
199
  - !ruby/object:Gem::Version
189
- hash: -189885101072141451
200
+ hash: 303152584528065187
190
201
  segments:
191
202
  - 0
192
203
  version: "0"
@@ -195,14 +206,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
206
  requirements:
196
207
  - - ">="
197
208
  - !ruby/object:Gem::Version
198
- hash: -189885101072141451
209
+ hash: 303152584528065187
199
210
  segments:
200
211
  - 0
201
212
  version: "0"
202
213
  requirements: []
203
214
 
204
215
  rubyforge_project:
205
- rubygems_version: 1.8.10
216
+ rubygems_version: 1.8.8
206
217
  signing_key:
207
218
  specification_version: 3
208
219
  summary: Friction Free BDD/ATDD with cucumber