scrumship-client 1.0.14 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/scrumship/client.rb +11 -7
- data/scrumship-client.gemspec +2 -2
- metadata +3 -4
- data/lib/scrumship/client/version.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f6229b9eb100a8e1bd7a8bb5755b4e32935c945a1fb7f7b0b50c23a0ce9eab6
|
|
4
|
+
data.tar.gz: d6062591016cdac1b1bd3fdb6479655ef3f563db3d715a105a8c3783514e22db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78971896695dd4d16ec3cbb542b4a6596f37cbb9597d9c1878b490aae2bc23a07f9c2c9c001e7137fb5f07b44ec2cfd45b092f618b09439c841eb8ec543d40ee
|
|
7
|
+
data.tar.gz: b70830acd38d0e50452ae4e9acc24efc569ad7b0af98131979ff6d15379dce6bb433e98da9eca3b3ab49a5b2c0800ea73fc8b54a01fede8e5edee3fa042ce72c
|
data/lib/scrumship/client.rb
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require "scrumship/client/version"
|
|
2
1
|
require 'net/http'
|
|
3
2
|
require 'json'
|
|
4
3
|
|
|
@@ -46,7 +45,7 @@ module Scrumship
|
|
|
46
45
|
def self.do_log(activity_token, config_file)
|
|
47
46
|
begin
|
|
48
47
|
config = JSON.parse(File.read(config_file)).symbolize_keys
|
|
49
|
-
url = "#{config[:
|
|
48
|
+
url = "#{config[:url]}/#{config[:pt]}/#{activity_token}/#{config[:u]}"
|
|
50
49
|
http = client(url)
|
|
51
50
|
http.get(url)
|
|
52
51
|
rescue
|
|
@@ -66,16 +65,21 @@ module Scrumship
|
|
|
66
65
|
begin
|
|
67
66
|
result = `#{command}`
|
|
68
67
|
if result == ""
|
|
69
|
-
|
|
68
|
+
do_abort
|
|
70
69
|
end
|
|
71
70
|
result
|
|
72
71
|
rescue
|
|
73
|
-
|
|
74
|
-
"\n git config --global user.name \"Your Username\"" +
|
|
75
|
-
"\n git config --global user.email \"email@example.com\""
|
|
76
|
-
exit 1
|
|
72
|
+
do_abort
|
|
77
73
|
end
|
|
78
74
|
end
|
|
79
75
|
|
|
76
|
+
private
|
|
77
|
+
|
|
78
|
+
def self.do_abort
|
|
79
|
+
abort "Please set up your git user and git user email: " +
|
|
80
|
+
"\n git config --global user.name \"Your Username\"" +
|
|
81
|
+
"\n git config --global user.email \"email@example.com\""
|
|
82
|
+
end
|
|
83
|
+
|
|
80
84
|
end
|
|
81
85
|
end
|
data/scrumship-client.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'scrumship-client'
|
|
3
|
-
s.version = '1.0.
|
|
4
|
-
s.date = '2021-12-
|
|
3
|
+
s.version = '1.0.18'
|
|
4
|
+
s.date = '2021-12-05'
|
|
5
5
|
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
6
6
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
7
7
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scrumship-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Greg Dymek
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|
|
@@ -23,7 +23,6 @@ files:
|
|
|
23
23
|
- bin/console
|
|
24
24
|
- bin/setup
|
|
25
25
|
- lib/scrumship/client.rb
|
|
26
|
-
- lib/scrumship/client/version.rb
|
|
27
26
|
- scrumship-client.gemspec
|
|
28
27
|
homepage:
|
|
29
28
|
licenses: []
|
|
@@ -43,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
43
42
|
- !ruby/object:Gem::Version
|
|
44
43
|
version: '0'
|
|
45
44
|
requirements: []
|
|
46
|
-
rubygems_version: 3.
|
|
45
|
+
rubygems_version: 3.2.17
|
|
47
46
|
signing_key:
|
|
48
47
|
specification_version: 4
|
|
49
48
|
summary: Scrumship Client
|