dev_orbit 0.5.0 → 0.5.1
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/CHANGELOG.md +4 -1
- data/Gemfile.lock +3 -3
- data/lib/dev_orbit/dev.rb +5 -1
- data/lib/dev_orbit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49d580cf75ef85e8e082e763b2c48232431ce5f945edb6f28050a16d98f717b8
|
|
4
|
+
data.tar.gz: 65f47c79b4f40649c9e36a7a4186c854340d335e503d503927a81cb06027c1d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
+
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.
|
|
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.
|
|
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
|
|
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?
|
data/lib/dev_orbit/version.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2021-07-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|