stack_commander 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88727f317aeb1c15a2cf5125608b3307f006453d
4
- data.tar.gz: d1112eadfc48d7f147da59051aa503bc82622e2b
3
+ metadata.gz: 1fda9f945f05219e9438a17bc8f263ee0584cf93
4
+ data.tar.gz: de1e0efe45393029d55d2d09439b30d76160cb20
5
5
  SHA512:
6
- metadata.gz: 838fbcc1b518d5c11d54be5bb408a5376c8baefac8c048d1089d901e18d4da3f892d17e89638e4d8b2c5b22935e8c1f59b132a2543661e97093a7723027f397e
7
- data.tar.gz: 406882fa923046d3018e9a1119180e9e5e424157f05ad476ac1fd7b39fe0b7da9bc66172d26e8bfd5807363ef7419fc06049d79fc06523630285dcaee027390f
6
+ metadata.gz: 07d32fb84a42ee80ca7d02f28a93eb41a6e6eb8d98bd6d5cf0a3f6f028f8228f0be1a79d645135c9a04dcbe69a8280a9ff5233e2e37c92d3026f2266c35f43db
7
+ data.tar.gz: a050a61eec438f9d910da316f404af49e618672f6708616342bc88578258acb474dc4c0352212aea6e45f403057c83d2892c627ae7646d7e27e0ae61dfd749f9
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
7
+ - 2.1.1
8
+ env:
9
+ global:
10
+ secure: JOSlHlo8J1HvzL2BMjok9LMDbhXBHy50Rv7RnYtct1ITeQR/r1qIPIZOCmVr3sh28XDY1ZbUsMbH1tSUL9xfgcGd/On37I4H3BesSMq+gG2EgZgOJAAdeUBG5xsoJpzyZbd9YSUZJRfbt8wlNA7EDaCfOiBQZPS2RhukBSTyTL4=
data/Gemfile CHANGED
@@ -9,4 +9,5 @@ gem 'github-markup'
9
9
  group :test do
10
10
  gem 'pry-debugger'
11
11
  gem 'pry-stack_explorer'
12
+ gem 'codeclimate-test-reporter', require: nil
12
13
  end
@@ -1,7 +1,12 @@
1
1
  require 'stack_commander'
2
+ require 'forwardable'
2
3
 
3
4
  module StackCommander
4
5
  class Stack
6
+ extend Forwardable
7
+
8
+ def_delegator :@queue, :include?
9
+
5
10
  def initialize(scope)
6
11
  @queue = []
7
12
  @scope = scope
@@ -1,3 +1,3 @@
1
1
  module StackCommander
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,6 @@
1
- # This file was generated by the `rspec --init` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # Require this file using `require "spec_helper"` to ensure that it is only
4
- # loaded once.
5
- #
1
+ require 'codeclimate-test-reporter'
2
+ CodeClimate::TestReporter.start
3
+
6
4
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
5
  RSpec.configure do |config|
8
6
  config.treat_symbols_as_metadata_keys_with_true_values = true
data/spec/stack_spec.rb CHANGED
@@ -56,6 +56,14 @@ describe StackCommander::Stack do
56
56
 
57
57
  stack.call
58
58
  end
59
+
60
+ it 'includes original command' do
61
+ expect(stack).to include(command)
62
+ end
63
+
64
+ it 'includes other command' do
65
+ expect(stack).to include(other_command)
66
+ end
59
67
  end
60
68
  end
61
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Cichra
@@ -14,56 +14,56 @@ dependencies:
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.6'
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.6'
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: yard
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: Write simple commands that execute on stack
@@ -73,9 +73,10 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .rspec
78
- - .yardopts
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - ".yardopts"
79
80
  - Gemfile
80
81
  - LICENSE.txt
81
82
  - README.md
@@ -102,12 +103,12 @@ require_paths:
102
103
  - lib
103
104
  required_ruby_version: !ruby/object:Gem::Requirement
104
105
  requirements:
105
- - - '>='
106
+ - - ">="
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
109
  required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  requirements:
110
- - - '>='
111
+ - - ">="
111
112
  - !ruby/object:Gem::Version
112
113
  version: '0'
113
114
  requirements: []