danger 6.2.1 → 6.2.2

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: 7fc0e933daf60c17871113311a2ff2fb180248a22f0574b2b9c00f7d60705107
4
- data.tar.gz: 3a94095eaf6b2c14acc45e50f1b3ca6b9ea61814e551dbb2fc088f59425166be
3
+ metadata.gz: 45b362f1e56f963bb7e924c541d6934d426ce840f092fb26aa4158956bb9fb5d
4
+ data.tar.gz: af30407cccc20cd672276fe288626506c2e6835215fbc4ee8c775119c4703099
5
5
  SHA512:
6
- metadata.gz: 0cbc8d6e42a7b0e8bb1e89883f5206cade8543de3cf197e9cc8c26fa66cb0fcf37f498531fd5afe14170a720576271f5e5361d8d51212410a57152b7887a2550
7
- data.tar.gz: 909bc0705e6ee02713f49666f70bb4d4b05e7c6fd65badf000bbe5fe4f234a9cb1a9c5862189e556c8d8a0b569fdd23eecafacd9073bf2575346f09d0395a324
6
+ metadata.gz: bf6970506bab77f49b534185392873b8448af90d4ac1a7ba6004673a900d63e3f8141f3561372fa5da2935be0fe00646d08f7fea97da1165826d1851932ad038
7
+ data.tar.gz: b1cfca29b03ac5ad85089b92d2ea5d17df40a6a4ed2e0da15e4fa772f50696347976f1d701a4f891febf3d42acaab864aa15d1e5c2f8894fc344cb352c208f14
@@ -115,7 +115,7 @@ module Danger
115
115
  end
116
116
 
117
117
  def delete_old_comments(danger_id: "danger")
118
- @api.fetch_last_comments.each do |c|
118
+ @api.fetch_comments.each do |c|
119
119
  next if c[:user][:uuid] != @api.my_uuid
120
120
  @api.delete_comment(c[:id]) if c[:content][:raw] =~ /generated_by_#{danger_id}/
121
121
  end
@@ -48,12 +48,13 @@ module Danger
48
48
  values = []
49
49
  # TODO: use a url parts encoder to encode the query
50
50
  uri = "#{pr_api_endpoint}/comments?pagelen=100&q=deleted+%7E+false+AND+user.username+%7E+%22#{@username}%22"
51
- while(uri)
51
+
52
+ while uri
52
53
  json = fetch_json(URI(uri))
53
54
  values += json[:values]
54
55
  uri = json[:next]
55
- values
56
56
  end
57
+ values
57
58
  end
58
59
 
59
60
  def delete_comment(id)
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "6.2.1".freeze
2
+ VERSION = "6.2.2".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1
4
+ version: 6.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-02-06 00:00:00.000000000 Z
12
+ date: 2020-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide