hub_store 0.15.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hub_store.gemspec +2 -1
- data/lib/hub_store/storage/database.rb +2 -6
- data/lib/hub_store/ui.rb +12 -2
- data/lib/hub_store/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c300c316245d349f1eb6e5179b0420c65797850c3dfee6888c3571b7ec7c8a
|
4
|
+
data.tar.gz: f429873aec348666cd39765131a39e7073b280da50125b866bafb49e4505cfbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68611048392607ae871def60f86d0acc00c32bbe4f0e3c6e1fefe221b87c39c540747458440250f124aa2b730aeebf2cd699a2fe8999a0b4a206beca9e5f1003
|
7
|
+
data.tar.gz: 1ac957cb6cb2574bc7cd182039b9dcd9e51b80de223401c8b376fc23530bece8a0f495e7859c4056579769aeebf68b0294c2a8407ce9c5c9df7103fd3abf3d97
|
data/hub_store.gemspec
CHANGED
@@ -29,7 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_dependency "activerecord"
|
31
31
|
spec.add_dependency "dotenv"
|
32
|
-
spec.add_dependency "hub_link", ">= 0.
|
32
|
+
spec.add_dependency "hub_link", ">= 0.18.0"
|
33
|
+
spec.add_dependency "pastel"
|
33
34
|
spec.add_dependency "sqlite3"
|
34
35
|
spec.add_dependency "tty-spinner"
|
35
36
|
end
|
@@ -30,13 +30,9 @@ module HubStore::Storage
|
|
30
30
|
t.string "repo"
|
31
31
|
t.string "state"
|
32
32
|
t.string "html_url"
|
33
|
-
t.integer "approval_time"
|
34
|
-
t.integer "time_to_first_review"
|
35
|
-
t.integer "merge_time"
|
36
33
|
t.integer "additions"
|
37
34
|
t.integer "comments_count"
|
38
35
|
t.integer "review_comments_count"
|
39
|
-
t.boolean "straight_approval"
|
40
36
|
t.datetime "closed_at"
|
41
37
|
t.datetime "merged_at"
|
42
38
|
t.datetime "created_at", null: false
|
@@ -50,9 +46,9 @@ module HubStore::Storage
|
|
50
46
|
t.datetime "submitted_at"
|
51
47
|
t.string "reviewer"
|
52
48
|
t.string "state"
|
53
|
-
t.boolean "reply"
|
54
49
|
t.string "html_url"
|
55
|
-
t.
|
50
|
+
t.integer "review_comments_count"
|
51
|
+
t.boolean "reply"
|
56
52
|
t.text "body"
|
57
53
|
end
|
58
54
|
end
|
data/lib/hub_store/ui.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "pastel"
|
1
2
|
require "tty/spinner"
|
2
3
|
|
3
4
|
module HubStore
|
@@ -20,7 +21,7 @@ module HubStore
|
|
20
21
|
end
|
21
22
|
|
22
23
|
def start(msg)
|
23
|
-
spinner.update(title: msg, status: nil)
|
24
|
+
spinner.update(title: format(msg), status: nil)
|
24
25
|
spinner.auto_spin
|
25
26
|
end
|
26
27
|
|
@@ -30,11 +31,20 @@ module HubStore
|
|
30
31
|
|
31
32
|
def stop(msg)
|
32
33
|
spinner.update(status: nil)
|
33
|
-
spinner.success("(#{msg})")
|
34
|
+
spinner.success("(#{format msg, :green})")
|
34
35
|
end
|
35
36
|
|
36
37
|
private
|
37
38
|
|
38
39
|
attr_reader :spinner
|
40
|
+
|
41
|
+
def format(msg, options = [])
|
42
|
+
options << :bold if msg.start_with?("*")
|
43
|
+
pastel.decorate msg, *options
|
44
|
+
end
|
45
|
+
|
46
|
+
def pastel
|
47
|
+
@_pastel ||= Pastel.new
|
48
|
+
end
|
39
49
|
end
|
40
50
|
end
|
data/lib/hub_store/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hub_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.18.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.18.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pastel
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: sqlite3
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|