dev_orbit 0.5.0 → 0.5.1

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: 81c671aa577a917ca0147e98e71227375b2f6bdb7d3191d64d4d8eded5c7d34e
4
- data.tar.gz: 7327d11e7ebe8a546d5cc54b15516337801ba435daad4c8124eb55b9571225a9
3
+ metadata.gz: 49d580cf75ef85e8e082e763b2c48232431ce5f945edb6f28050a16d98f717b8
4
+ data.tar.gz: 65f47c79b4f40649c9e36a7a4186c854340d335e503d503927a81cb06027c1d2
5
5
  SHA512:
6
- metadata.gz: 1efb625e90bbe73b44efcbb6fe0e4fcbe279f7ec2908c30d1b71e9e58e888155e81daffcf8dae5857c4c9ebdc2dae8516c74bfb77db83f56f3867a537e06cac1
7
- data.tar.gz: a146a6dbb68bbc27ed224d44aab866ac25957d730c00400ba5671ac575982cff637113c125ec331bffaf2efd822d5bc638a70a2817c80431c072d00284204ee8
6
+ metadata.gz: bda03fdecb838c3b11f217a7a5da316cb05a64942aaadad0b6bf17d82aae00792af8ceed8250c259e7b3de2933836e338c9a6730eb584a897544ff7061cae5b5
7
+ data.tar.gz: 4caf442b3598ec3727604049825d6cfc90f8a47bbdc5b0942a2693b82e8a8d6eb1550f6dd4c48a5ddfd805dc4849fbead1213923229e5356d3421430c0847e7a
data/CHANGELOG.md CHANGED
@@ -48,4 +48,7 @@
48
48
  ## [0.5.0] - 2021-07-08
49
49
 
50
50
  - Add pagination for all DEV interactions
51
- - Dynamically filter what to send to Orbit based on last item of that type in the Orbit workspace
51
+ - Dynamically filter what to send to Orbit based on last item of that type in the Orbit workspace
52
+ ## [0.5.1] - 2021-07-11
53
+
54
+ - Fix URL query params path for organization comments
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dev_orbit (0.4.1)
4
+ dev_orbit (0.5.1)
5
5
  actionview (~> 6.1)
6
6
  activesupport (~> 6.1)
7
7
  http (~> 4.4)
@@ -68,7 +68,7 @@ GEM
68
68
  rake (~> 13.0)
69
69
  zeitwerk (~> 2.4)
70
70
  parallel (1.20.1)
71
- parser (3.0.1.1)
71
+ parser (3.0.2.0)
72
72
  ast (~> 2.4.1)
73
73
  public_suffix (4.0.6)
74
74
  racc (1.5.2)
@@ -78,7 +78,7 @@ GEM
78
78
  rails-html-sanitizer (1.3.0)
79
79
  loofah (~> 2.3)
80
80
  rainbow (3.0.0)
81
- rake (13.0.5)
81
+ rake (13.0.6)
82
82
  regexp_parser (2.1.1)
83
83
  rexml (3.2.5)
84
84
  rspec (3.10.0)
data/lib/dev_orbit/dev.rb CHANGED
@@ -69,7 +69,7 @@ module DevOrbit
69
69
  url = URI("https://dev.to/api/articles?username=#{@username}&page=#{page}&per_page=1000") if type == "user"
70
70
 
71
71
  if type == "organization"
72
- url = URI("https://dev.to/api/organizations/#{@organization}/articles&page=#{page}&per_page=1000")
72
+ url = URI("https://dev.to/api/organizations/#{@organization}/articles?page=#{page}&per_page=1000")
73
73
  end
74
74
 
75
75
  https = Net::HTTP.new(url.host, url.port)
@@ -79,6 +79,8 @@ module DevOrbit
79
79
 
80
80
  response = https.request(request)
81
81
 
82
+ break if response.code == "404"
83
+
82
84
  response = JSON.parse(response.body) if DevOrbit::Utils.valid_json?(response.body)
83
85
 
84
86
  articles << response unless response.empty? || response.nil?
@@ -106,6 +108,8 @@ module DevOrbit
106
108
 
107
109
  response = https.request(request)
108
110
 
111
+ break if response.code == "404"
112
+
109
113
  response = JSON.parse(response.body) if DevOrbit::Utils.valid_json?(response.body)
110
114
 
111
115
  followers << response unless response.empty? || response.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DevOrbit
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_orbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orbit DevRel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-07-08 00:00:00.000000000 Z
12
+ date: 2021-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport