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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e441d7d411d624933b49a89966c9d9023c9900331bb9cbbb7af8d02a50f7319
4
- data.tar.gz: 1ac3a40fe2ef4d5774dfe9caf0f2b640748f8c5de843e25befd35b6a95cbfb34
3
+ metadata.gz: d0c300c316245d349f1eb6e5179b0420c65797850c3dfee6888c3571b7ec7c8a
4
+ data.tar.gz: f429873aec348666cd39765131a39e7073b280da50125b866bafb49e4505cfbd
5
5
  SHA512:
6
- metadata.gz: e80986de66645e653331881fa4877ee9b9c7351e9c0825ab5d3502c03e4eb4c3f255591127ca5ce08c36354a3873c702fe223afc56db5560030ba519722cc7a6
7
- data.tar.gz: a4aaa0da9079d373bc800d6f5a7f7702218f326accf98b3a750270cb17025920590903a817bc2653c754b7f60db5641e0cd0cc1c72e36e1638242fe00dcf0d26
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.15.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.boolean "approval"
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
@@ -1,3 +1,3 @@
1
1
  module HubStore
2
- VERSION = "0.15.0"
2
+ VERSION = "0.18.0"
3
3
  end
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.15.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-02 00:00:00.000000000 Z
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.15.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.15.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