Skip to content

Commit 5f0072a

Browse files
authored
HighLine namespace fix (#177)
* Use HighLine in a way that does not pollute the global namespace * version bump
1 parent 24fa16d commit 5f0072a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.5.6
2+
- Modify usage of HighLine so that it does not pollute the global namespace
3+
14
v1.5.5
25
- Add logging of an errored oauth2 response
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.5
1+
1.5.6

lib/spark_api/authentication/oauth2_impl/cli_provider.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "highline/import"
1+
require "highline"
22

33
module SparkApi
44
module Authentication
@@ -18,7 +18,7 @@ def initialize(credentials)
1818
def redirect(url)
1919
puts "Missing OAuth2 session, redirecting..."
2020
puts "Please visit #{url}, login as a user, and paste the authorization code here:"
21-
self.code = ask("Authorization code?") do |q|
21+
self.code = HighLine.ask("Authorization code?") do |q|
2222
q.whitespace = :strip_and_collapse
2323
q.validate = /^\w+$/
2424
end

0 commit comments

Comments
 (0)