Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.2
2.5.5
21 changes: 21 additions & 0 deletions .solargraph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
include:
- "**/*.rb"
exclude:
- spec/**/*
- test/**/*
- vendor/**/*
- ".bundle/**/*"
require: []
domains: []
reporters:
- rubocop
formatter:
rubocop:
cops: safe
except: []
only: []
extra_args: []
require_paths: []
plugins: []
max_files: 5000
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 2.5.5
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ source "http://rubygems.org"

gemspec

gem 'byebug', groups: [:development, :test]
gem 'coveralls', require: false
151 changes: 67 additions & 84 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,121 +3,104 @@ PATH
specs:
zenflow (0.8.13)
colored (~> 1.2)
httparty (~> 0.13.0)
httparty (~> 0.18.1)
terminal-table (~> 1.4.5)
thor (~> 0.19.0)

GEM
remote: http://rubygems.org/
specs:
addressable (2.3.6)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
byebug (3.1.2)
columnize (~> 0.8)
debugger-linecache (~> 1.2)
celluloid (0.15.2)
timers (~> 1.1.0)
celluloid-io (0.15.0)
celluloid (>= 0.15.0)
nio4r (>= 0.5.0)
coderay (1.1.0)
colored (1.2)
columnize (0.8.9)
coveralls (0.7.0)
coveralls (0.7.1)
multi_json (~> 1.3)
rest-client
simplecov (>= 0.7)
term-ansicolor
thor
crack (0.4.2)
safe_yaml (~> 1.0.0)
crack (0.4.5)
rexml
debugger-linecache (1.2.0)
diff-lcs (1.2.5)
domain_name (0.5.23)
diff-lcs (1.4.4)
docile (1.4.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
ffi (1.9.3)
formatador (0.2.4)
fuubar (1.1.1)
rspec (~> 2.0)
rspec-instafail (~> 0.2.0)
ruby-progressbar (~> 1.0)
guard (2.6.1)
formatador (>= 0.2.4)
listen (~> 2.7)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-rspec (3.0.3)
guard (>= 1.8)
rspec (~> 2.13)
http-cookie (1.0.2)
fuubar (2.5.1)
rspec-core (~> 3.0)
ruby-progressbar (~> 1.4)
hashdiff (1.0.1)
http-accept (1.7.0)
http-cookie (1.0.4)
domain_name (~> 0.5)
httparty (0.13.1)
json (~> 1.8)
httparty (0.18.1)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
json (1.8.1)
listen (2.7.4)
celluloid (>= 0.15.2)
celluloid-io (>= 0.15.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.5)
method_source (0.8.2)
mime-types (2.4.3)
multi_json (1.10.0)
multi_xml (0.5.5)
netrc (0.10.3)
nio4r (1.0.0)
pry (0.9.12.6)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
rb-fsevent (0.9.4)
rb-inotify (0.9.4)
ffi (>= 0.5.0)
rest-client (1.8.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.0704)
multi_json (1.15.0)
multi_xml (0.6.0)
netrc (0.11.0)
public_suffix (4.0.6)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-instafail (0.2.4)
rspec-mocks (2.14.6)
ruby-progressbar (1.4.2)
safe_yaml (1.0.3)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.5.0)
term-ansicolor (1.3.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
ruby-progressbar (1.11.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.3)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
terminal-table (1.4.5)
thor (0.19.1)
timers (1.1.0)
tins (1.1.0)
thor (0.19.4)
tins (1.29.1)
sync
unf (0.1.4)
unf_ext
unf_ext (0.0.6)
vcr (2.5.0)
webmock (1.13.0)
addressable (>= 2.2.7)
unf_ext (0.0.7.7)
vcr (6.0.0)
webmock (3.13.0)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
ruby

DEPENDENCIES
byebug
coveralls
fuubar (~> 1.1.1)
guard-rspec (~> 3.0.2)
rspec (~> 2.14)
simplecov (~> 0.7.1)
vcr (~> 2.5.0)
webmock (~> 1.13.0)
fuubar (~> 2.5.1)
rspec (~> 3.10)
simplecov (~> 0.21.2)
vcr (~> 6.0.0)
webmock (~> 3.13.0)
zenflow!

BUNDLED WITH
2.1.4
9 changes: 8 additions & 1 deletion lib/zenflow/helpers/ask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ def self.Ask(question, options={})
rescue StandardError => e
puts e.message
options[:response] = nil
retry

print '>> Retry? [Y/n]'
retry_response = $stdin.gets.chomp
retry if ['y', 'yes', ''].include? retry_response.downcase

puts "-----> Exiting...".cyan
LogToFile("-----> Received bad response with no retry. Exiting...")
raise e
rescue Interrupt => e
puts
puts "-----> Exiting...".cyan
Expand Down
11 changes: 6 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
)
SimpleCov.start do
add_filter '/spec/'
end
Expand All @@ -24,7 +26,6 @@

RSpec.configure do |config|
config.order = "random"
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus => true

Expand Down
Loading