nasty 0.0.1388168019 → 0.0.1395464273

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57820ec4f2767d8a0ae9a79d0808eb777d8b2b66
4
- data.tar.gz: 289fb7a505664e581e71f50ffe865f218a8f7c0a
3
+ metadata.gz: 0422b912c9b1fdb27c2252df1b22722dc588daeb
4
+ data.tar.gz: 6939d3a3902f2785c3034abf743bf4530be8474b
5
5
  SHA512:
6
- metadata.gz: c1abcf96dc2052b19aff9851af517dbcc1054493c4168c3e62f5c4d60f92d8864bd8189919bb4707b8515c6139bdc02e53116221cdda27899f8c40bddebf7733
7
- data.tar.gz: 8b3c983c3e214061275a68eebc97ae673bb844795df9932bc99aa111ba85eb5a06908720f251ca64841d9dbf6c3e70f971eb1d902c0f772f12bcd46a54f2058f
6
+ metadata.gz: 5295a4b70d2e4090f9d95e7930d7a1113972b4338e3e7d88bffb6ffaeebf955245298f6063ac5cf35c66ab3a83def28d50de1a71facfddf025c05c27bb679360
7
+ data.tar.gz: 23a1a905a9fd7136e16c44ede5c35e978ac120cb9edf92856ef624d43ffc7d20c32036e4362f757521f9a189b710a401fffcffcdcdd345eb831f1eda89bf53cc
@@ -1,5 +1,7 @@
1
1
  module Nasty
2
2
  class CompositeCommand
3
+ include Command
4
+
3
5
  def initialize(first, last)
4
6
  @first = first
5
7
  @last = last
@@ -20,12 +20,13 @@ module Nasty
20
20
  context "without parameters" do
21
21
  let(:first_command) { SimpleCommand.new }
22
22
  let(:second_command) { SimpleCommand.new }
23
+ let(:third_command) { SimpleCommand.new }
23
24
 
24
- it "chains two commands together" do
25
- result = first_command.then(second_command)
26
- result.run
25
+ it "chains multiple commands together" do
26
+ first_command.then(second_command).then(third_command).run
27
27
  first_command.ran?.should be_true
28
28
  second_command.ran?.should be_true
29
+ third_command.ran?.should be_true
29
30
  end
30
31
  end
31
32
 
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nasty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1388168019
4
+ version: 0.0.1395464273
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo khan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-27 00:00:00.000000000 Z
11
+ date: 2014-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simplecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: something nasty to add to your ruby
@@ -73,8 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
78
  - Gemfile
79
79
  - LICENSE.txt
80
80
  - README.md
@@ -115,17 +115,17 @@ require_paths:
115
115
  - lib
116
116
  required_ruby_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - '>='
118
+ - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: 2.0.0
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.0.14
128
+ rubygems_version: 2.2.2
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: basicly it's a commons library