Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/garrett rewind/ec 2881/fix error logging to nucleus membrane loggers #23

Closed
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [3.0.0]

- Removes passing block to logger for `http.rb` and `json.rb`
- Updates developer dependancies

## [2.2.1]

- Switch release to github actions
Expand Down
72 changes: 38 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,77 +1,81 @@
PATH
remote: .
specs:
eight_ball (2.2.0)
eight_ball (3.0.0)
awrence (~> 1.1)
plissken (~> 1.2)

GEM
remote: https://rubygems.org/
specs:
ansi (1.5.0)
awrence (1.1.1)
awrence (1.2.1)
bigdecimal (3.1.8)
byebug (11.1.3)
coderay (1.1.3)
diff-lcs (1.3)
docile (1.3.2)
diff-lcs (1.5.1)
docile (1.4.1)
inch (0.8.0)
pry
sparkr (>= 0.2.0)
term-ansicolor
yard (~> 0.9.12)
method_source (1.0.0)
plissken (1.3.1)
pry (0.13.1)
method_source (1.1.0)
plissken (1.4.1)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.9.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (~> 0.13.0)
rake (13.0.1)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.2)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.2)
pry (>= 0.13, < 0.15)
rake (13.2.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
simplecov (0.18.5)
rspec-support (~> 3.13.0)
rspec-support (3.13.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-console (0.7.2)
simplecov_json_formatter (~> 0.1)
simplecov-console (0.9.2)
ansi
simplecov
terminal-table
simplecov-html (0.12.2)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
sparkr (0.4.1)
sync (0.5.0)
term-ansicolor (1.7.1)
term-ansicolor (1.11.2)
tins (~> 1.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
tins (1.25.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
tins (1.37.1)
bigdecimal
sync
unicode-display_width (1.7.0)
yard (0.9.25)
unicode-display_width (2.6.0)
yard (0.9.37)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.17)
bundler (~> 2)
eight_ball!
inch (~> 0.8)
pry-byebug (~> 3.6)
pry-byebug (~> 3)
rake (~> 13.0)
rspec (~> 3.9.0)
rspec (~> 3)
simplecov (~> 0.16)
simplecov-console (~> 0.4)

BUNDLED WITH
1.17.2
2.5.20
6 changes: 3 additions & 3 deletions eight_ball.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ Gem::Specification.new do |spec|
spec.add_dependency 'plissken', '~> 1.2'

# Development
spec.add_development_dependency 'bundler', '~> 1.17'
spec.add_development_dependency 'bundler', '~> 2'
spec.add_development_dependency 'inch', '~> 0.8'
spec.add_development_dependency 'pry-byebug', '~> 3.6'
spec.add_development_dependency 'pry-byebug', '~> 3'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.9.0'
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'simplecov', '~> 0.16'
spec.add_development_dependency 'simplecov-console', '~> 0.4'
end
2 changes: 1 addition & 1 deletion lib/eight_ball/marshallers/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def unmarshall(json)
EightBall::Feature.new feature[:name], enabled_for, disabled_for
end
rescue JSON::ParserError => e
EightBall.logger.error { "Failed to parse JSON: #{e.message}" }
EightBall.logger.error "Failed to parse JSON: #{e.message}"
[]
end

Expand Down
2 changes: 1 addition & 1 deletion lib/eight_ball/providers/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def features
def fetch
@features = @marshaller.unmarshall Net::HTTP.get(@uri)
rescue StandardError => e
EightBall.logger.error { "Failed to fetch data from #{@uri}: #{e.message}" }
EightBall.logger.error "Failed to fetch data from #{@uri}: #{e.message}"
@features = []
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/eight_ball/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module EightBall
VERSION = '2.2.1'
VERSION = '3.0.0'
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

require 'eight_ball'

require 'pry'
require 'pry-byebug'

# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
Expand Down
Loading