sudokku_cli 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: 90ecc61b1f4f33012c177b0f49e0e4a379bdb09df6dc58a554cab826f8718c04
4
- data.tar.gz: 84c5f36850ca89ab43fa8762d7598c73569713529215de5d4e868e2983930ea6
3
+ metadata.gz: 5fa18b6bbbdea6a2c4b50b5cb15ffe5dd6ea6c2eabb0e00f633cb1cf0deb0d85
4
+ data.tar.gz: c01a5f9ff622046447f5bd4c0c6a3ce1a885b24c3c6ede291e8b224098b4ca24
5
5
  SHA512:
6
- metadata.gz: 4b5e2b4483327130c5375749a5eb397da16ca0705687e239d33027ea0e9cc9abc7312f1384f264f1d785c8fd5c5190b0390798d0c4301c026e8197e507488d43
7
- data.tar.gz: 8a1ca48af4f9491d5729082b4898616f55841550df51c6e3f06eb112b3365e40e81d934dbb7a00df826f4b12b828a574cc23e9293138c1449ede0752205d8587
6
+ metadata.gz: b2c1e85c5223856261652d0b576130c59d48722ae68b5233d43242efb7b017f9c42ffd674e2034d5d992a26a3562687d74db13b6c67e9e6e905e77c4585d93c2
7
+ data.tar.gz: d613c5687cb3ab54bd36e8059747e6a2f94d6c65d922ed7419d4f6eb74b0a47cc505f1b27b501d14e63d2e46aec071c55dc53cba58038526efa1edc31e218670
data/Gemfile CHANGED
@@ -9,3 +9,4 @@ gem "rake", "~> 13.0"
9
9
 
10
10
  gem "minitest", "~> 5.0"
11
11
  gem 'dotenv'
12
+ gem 'launchy'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sudokku_cli (0.1.4)
4
+ sudokku_cli (0.1.7)
5
5
  dotenv
6
6
  json
7
7
  net-http
@@ -11,9 +11,13 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
+ addressable (2.8.4)
15
+ public_suffix (>= 2.0.2, < 6.0)
14
16
  date (3.3.3)
15
17
  dotenv (2.8.1)
16
18
  json (2.6.1)
19
+ launchy (2.5.2)
20
+ addressable (~> 2.8)
17
21
  minitest (5.17.0)
18
22
  net-http (0.2.0)
19
23
  net-protocol
@@ -25,6 +29,7 @@ GEM
25
29
  stringio
26
30
  time
27
31
  uri
32
+ public_suffix (5.0.3)
28
33
  rake (13.0.6)
29
34
  stringio (3.0.1)
30
35
  time (0.2.0)
@@ -37,6 +42,7 @@ PLATFORMS
37
42
 
38
43
  DEPENDENCIES
39
44
  dotenv
45
+ launchy
40
46
  minitest (~> 5.0)
41
47
  rake (~> 13.0)
42
48
  sudokku_cli!
data/bin/sudokku CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "sudokku_cli"
3
+ require_relative '../lib/sudokku_cli'
4
4
 
5
5
  SudokkuCli.start(ARGV)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SudokkuCli
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
data/lib/sudokku_cli.rb CHANGED
@@ -6,6 +6,7 @@ require 'json'
6
6
  require 'open-uri'
7
7
  require 'net/http'
8
8
  require 'dotenv/load'
9
+ require 'launchy'
9
10
 
10
11
  module SudokkuCli
11
12
  class Error < StandardError; end
@@ -34,6 +35,7 @@ module SudokkuCli
34
35
  token = response['token']
35
36
  # credentials are not valid, prompt user to authenticate via browser
36
37
  puts "Please visit #{response['url']} to authenticate."
38
+ Launchy.open response['url']
37
39
  puts "Waiting for authentication..."
38
40
  # check for new credentials
39
41
  loop do
data/sudokku_cli.gemspec CHANGED
@@ -9,12 +9,12 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["tas.o.s@hotmail.com"]
10
10
 
11
11
  spec.summary = "A CLI program for logging in to Sudokku git server."
12
- spec.homepage = "https://github.com/yourusername/sudokku_cli"
12
+ spec.homepage = "https://github.com/Tashows/sudokku_cli"
13
13
  spec.license = "MIT"
14
14
  spec.required_ruby_version = ">= 2.6.0"
15
15
 
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
- spec.metadata["source_code_uri"] = "https://github.com/yourusername/sudokku_cli"
17
+ spec.metadata["source_code_uri"] = "https://github.com/Tashows/sudokku_cli"
18
18
 
19
19
  # Specify which files should be added to the gem when it is released.
20
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sudokku_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tasos Maschalidis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netrc
@@ -99,12 +99,12 @@ files:
99
99
  - lib/sudokku_cli/version.rb
100
100
  - sig/sudokku_cli.rbs
101
101
  - sudokku_cli.gemspec
102
- homepage: https://github.com/yourusername/sudokku_cli
102
+ homepage: https://github.com/Tashows/sudokku_cli
103
103
  licenses:
104
104
  - MIT
105
105
  metadata:
106
- homepage_uri: https://github.com/yourusername/sudokku_cli
107
- source_code_uri: https://github.com/yourusername/sudokku_cli
106
+ homepage_uri: https://github.com/Tashows/sudokku_cli
107
+ source_code_uri: https://github.com/Tashows/sudokku_cli
108
108
  post_install_message:
109
109
  rdoc_options: []
110
110
  require_paths: