sneaker 0.1.0 → 0.1.1

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: 24e059214d6bade0c5fc4592020d413173bac7ed
4
- data.tar.gz: 6a4a376ef7e6b41ee25ab3ac284c5f0d3f5307c3
3
+ metadata.gz: 487530f3f9cc7dc6032e2b3fd2cb5962a1b5a648
4
+ data.tar.gz: fc3c3d065e0283f07a996f835f1527bd46302da9
5
5
  SHA512:
6
- metadata.gz: 4aed58f7fd4af2e9be692dfece1b2a3c02b82f6beb657f2f32908d10a016cdda0d1423bc1bb38aa6aa11ac8edc9ff6f21955f08b846c18c2d7f19bcbbfd8a481
7
- data.tar.gz: 5df67eb52af192d9e9030305b7a6c3f90c59748832c74f29f253623d353e8c686969d38a14ec0b624717b321a9e8773e50a8d2ee066fb8fccba12bba0bfb1934
6
+ metadata.gz: 686f594bc98657cb7c7d093c6cceb5e03b985b83a7968e0e9b6c033cac6326a205c5cbe2fd76c8dd0a7973421c1e47303213f3373a495913bb75c234bef14050
7
+ data.tar.gz: d2ff0050e4ba393c76475d2b33cb63da72ef0b79c920aade3f5f1ce8332a90f984ce72dea012ecdc1f1183aecc745545fd7ffa12fa3521923f79a505360f717b
data/.gitignore CHANGED
@@ -10,3 +10,6 @@
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
+
14
+ # vim swap files
15
+ **/*swp
data/lib/sneaker/stage.rb CHANGED
@@ -1,16 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'English'
4
+ require 'yaml'
4
5
 
5
6
  module Sneaker
6
7
  class Stage
7
- LIST_DIR = File.join(File.dirname(__FILE__), '..', '..', 'config', 'deploy')
8
+ DIRECTORY = File.join('config', 'deploy')
9
+ STAGES_FILE = File.join(DIRECTORY, 'stages.yml')
8
10
 
9
- RAILS_RUNNER_ENV = 'RUBY_GC_TUNE_VERBOSE=0'
11
+ RAILS_RUNNER_ENV = 'RUBY_GC_TUNE_VERBOSE=0'.freeze
10
12
 
11
13
  def self.files
12
14
  @files ||=
13
- Dir[File.join(LIST_DIR, '**rb')]
15
+ Dir[File.join(DIRECTORY, '**rb')]
14
16
  end
15
17
 
16
18
  def self.list
@@ -27,7 +29,15 @@ module Sneaker
27
29
  new file
28
30
  end
29
31
 
30
- list.reject { |stage| BAD_STAGES.include?(stage.name) }
32
+ list.reject { |stage| ignored_stages.include?(stage.name) }
33
+ end
34
+
35
+ def self.ignored_stages
36
+ stages_hash['ignore'] || []
37
+ end
38
+
39
+ def self.stages_hash
40
+ @stages_hash ||= File.exist?(STAGES_FILE) ? YAML.load_file(STAGES_FILE) : {}
31
41
  end
32
42
 
33
43
  private_class_method :build_list
@@ -1,3 +1,3 @@
1
1
  module Sneaker
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/sneaker.gemspec CHANGED
@@ -23,6 +23,10 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.15"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency "pry"
27
+ spec.add_development_dependency "gem-release"
28
+ spec.add_development_dependency "rubocop"
29
+ spec.add_development_dependency "reek"
26
30
 
27
31
  spec.add_dependency "tty-table", "~> 0.10.0"
28
32
  spec.add_dependency "tty-cursor", "~> 0.5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sneaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ideas4allInnovation
@@ -52,6 +52,62 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: gem-release
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: reek
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
55
111
  - !ruby/object:Gem::Dependency
56
112
  name: tty-table
57
113
  requirement: !ruby/object:Gem::Requirement