dev_orbit 0.0.9 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2c4b8c2f8de5eabeff15996ee2d7d03b7ed40710d8f2f604ef0fb832cef0476
4
- data.tar.gz: a50f6959cc9292b7822b1da81153df7f0d3a6ad397dd9e5211a5ca6900888085
3
+ metadata.gz: 1cf2cb11061773667c041e7d8110d0d80526f40fdb7451d6ae2d05a8b526a530
4
+ data.tar.gz: 2d8744c9b9649c84891f0e44b10c78e3476b5bc92085574918bf923dc7430c39
5
5
  SHA512:
6
- metadata.gz: 95575a8af9172ad28c5c3613510d2f45076c38e9eb726e7a7670acd6a476f2b3b8683ce4c7abf5c7c8dd5d2c9f1c68c8f41287e4c2e52f6d63d2f74eaed34f62
7
- data.tar.gz: d71011147c850f5bc5b8b4d6467bf7fb723dc5e766127046c9bb854dfd8afdf2f2e3b136e37b60585dbcf6e2e0503f99a07b7a8e7adbe375f03a4d30eebb5fc3
6
+ metadata.gz: a320ab09b535655f3f6fca9a54e59d35405f749b33fb483f926321f1493b6f9b845a62afc621f683bba7709b1fa681d6350f01d814ab6d8f968271d8967ef6a6
7
+ data.tar.gz: 24c6cde04ef951e77be279d890a98794fb16a735a2920338f8425192af3a47f07a4de58b8cf6da2237fec7ff2c5bcdc2e95469e6318e0265cddf42be99233b03
data/.gitignore CHANGED
@@ -6,4 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- .byebug_history
9
+ .byebug_history
10
+ .env
data/CHANGELOG.md CHANGED
@@ -33,4 +33,12 @@
33
33
 
34
34
  ## [0.0.9] - 2021-04-11
35
35
 
36
- - Add check for new DEV followers functionality
36
+ - Add check for new DEV followers functionality
37
+
38
+ ## [0.0.10] - 2021-04-23
39
+
40
+ - Fix filter for DEV comments
41
+ ## [0.1.0] - 2021-05-06
42
+
43
+ - Correct CLI `CheckFollowers` action
44
+ - Update gem specifications
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dev_orbit (0.0.8)
4
+ dev_orbit (0.1.2)
5
5
  actionview (~> 6.1)
6
6
  activesupport (~> 6.1)
7
7
  http (~> 4.4)
@@ -12,13 +12,13 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- actionview (6.1.3)
16
- activesupport (= 6.1.3)
15
+ actionview (6.1.3.2)
16
+ activesupport (= 6.1.3.2)
17
17
  builder (~> 3.1)
18
18
  erubi (~> 1.4)
19
19
  rails-dom-testing (~> 2.0)
20
20
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
21
- activesupport (6.1.3)
21
+ activesupport (6.1.3.2)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 1.6, < 2)
24
24
  minitest (>= 5.1)
@@ -52,14 +52,14 @@ GEM
52
52
  http-form_data (2.3.0)
53
53
  http-parser (1.2.3)
54
54
  ffi-compiler (>= 1.0, < 2.0)
55
- i18n (1.8.9)
55
+ i18n (1.8.10)
56
56
  concurrent-ruby (~> 1.0)
57
57
  json (2.5.1)
58
- loofah (2.9.0)
58
+ loofah (2.9.1)
59
59
  crass (~> 1.0.2)
60
60
  nokogiri (>= 1.5.9)
61
61
  minitest (5.14.4)
62
- nokogiri (1.11.2-x86_64-darwin)
62
+ nokogiri (1.11.3-arm64-darwin)
63
63
  racc (~> 1.4)
64
64
  parallel (1.20.1)
65
65
  parser (3.0.0.0)
@@ -74,7 +74,7 @@ GEM
74
74
  rainbow (3.0.0)
75
75
  rake (13.0.3)
76
76
  regexp_parser (2.1.1)
77
- rexml (3.2.4)
77
+ rexml (3.2.5)
78
78
  rspec (3.10.0)
79
79
  rspec-core (~> 3.10.0)
80
80
  rspec-expectations (~> 3.10.0)
@@ -114,7 +114,9 @@ GEM
114
114
  zeitwerk (2.4.2)
115
115
 
116
116
  PLATFORMS
117
+ arm64-darwin-20
117
118
  x86_64-darwin-19
119
+ x86_64-linux
118
120
 
119
121
  DEPENDENCIES
120
122
  byebug
@@ -125,4 +127,4 @@ DEPENDENCIES
125
127
  webmock (~> 3.12)
126
128
 
127
129
  BUNDLED WITH
128
- 2.2.13
130
+ 2.2.16
data/README.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # DEV.to Interactions to Orbit Workspace
2
2
 
3
- ![Build Status](https://github.com/bencgreenberg/dev_orbit/workflows/CI/badge.svg)
3
+ ![Build Status](https://github.com/orbit-love/community-ruby-dev-orbit/workflows/CI/badge.svg)
4
4
  [![Gem Version](https://badge.fury.io/rb/dev_orbit.svg)](https://badge.fury.io/rb/dev_orbit)
5
5
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](code_of_conduct.md)
6
6
 
7
7
  This is a Ruby gem that can be used to integrate your DEV interactions, like DEV comments on blog posts, into your organization's Orbit workspace.
8
8
 
9
+ |<p align="left">:sparkles:</p> This is a *community project*. The Orbit team does its best to maintain it and keep it up to date with any recent API changes.<br/><br/>We welcome community contributions to make sure that it stays current. <p align="right">:sparkles:</p>|
10
+ |-----------------------------------------|
11
+
9
12
  ## Installation
10
13
 
11
14
  Add this line to your application's Gemfile:
@@ -85,7 +88,7 @@ $ ORBIT_API_KEY='...' ORBIT_WORKSPACE='...' DEV_API_KEY='...' DEV_USERNAME='...'
85
88
 
86
89
  ## Contributing
87
90
 
88
- Bug reports and pull requests are welcome on GitHub at https://github.com/bencgreenberg/dev_orbit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/bencgreenberg/dev_orbit/blob/master/CODE_OF_CONDUCT.md).
91
+ Bug reports and pull requests are welcome on GitHub at https://github.com/orbit-love/community-ruby-dev-orbit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/orbit-love/community-ruby-dev-orbit/blob/main/CODE_OF_CONDUCT.md).
89
92
 
90
93
  ## License
91
94
 
@@ -93,4 +96,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
93
96
 
94
97
  ## Code of Conduct
95
98
 
96
- Everyone interacting in the project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/bencgreenberg/dev_orbit/blob/master/CODE_OF_CONDUCT.md).
99
+ Everyone interacting in the project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/orbit-love/community-ruby-dev-orbit/blob/main/CODE_OF_CONDUCT.md).
data/bin/dev_orbit CHANGED
@@ -23,6 +23,7 @@ $LOAD_PATH.unshift(File.expand_path('../lib/dev_orbit', __dir__))
23
23
 
24
24
  require_relative '../lib/dev_orbit'
25
25
  require_relative '../scripts/check_comments'
26
+ require_relative '../scripts/check_followers'
26
27
 
27
28
  if check_comments
28
29
  puts "Checking for new DEV comments within the past day and posting them to your Orbit workspace..."
@@ -33,5 +34,5 @@ end
33
34
  if check_followers
34
35
  puts "Checking for new DEV followers posting them to your Orbit workspace..."
35
36
  ARGV[0] = 'render'
36
- DevOrbit::Scripts::CheckComments.start(ARGV)
37
+ DevOrbit::Scripts::CheckFollowers.start(ARGV)
37
38
  end
data/dev_orbit.gemspec CHANGED
@@ -5,18 +5,18 @@ require_relative "lib/dev_orbit/version"
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "dev_orbit"
7
7
  spec.version = DevOrbit::VERSION
8
- spec.authors = ["Ben Greenberg"]
9
- spec.email = ["ben.greenberg@hey.com"]
8
+ spec.authors = ["Orbit DevRel", "Ben Greenberg"]
9
+ spec.email = ["devrel@orbit.love"]
10
10
 
11
11
  spec.summary = "Integrate DEV interactions into your Orbit workspace"
12
12
  spec.description = "This gem integrates DEV blog interactions like comments, etc. into your Orbit workspace"
13
- spec.homepage = "https://github.com/bencgreenberg/dev_orbit"
13
+ spec.homepage = "https://github.com/orbit-love/community-ruby-dev-orbit"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/bencgreenberg/dev_orbit"
19
- spec.metadata["changelog_uri"] = "https://github.com/bencgreenberg/dev_orbit/blob/master/CHANGELOG.md"
18
+ spec.metadata["source_code_uri"] = "https://github.com/orbit-love/community-ruby-dev-orbit"
19
+ spec.metadata["changelog_uri"] = "https://github.com/orbit-love/community-ruby-dev-orbit/blob/main/CHANGELOG.md"
20
20
 
21
21
  # Specify which files should be added to the gem when it is released.
22
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
data/lib/dev_orbit.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "zeitwerk"
4
+ require_relative "dev_orbit/version"
4
5
 
5
6
  module DevOrbit
6
7
  loader = Zeitwerk::Loader.new
data/lib/dev_orbit/dev.rb CHANGED
@@ -97,7 +97,7 @@ module DevOrbit
97
97
 
98
98
  def filter_comments(comments)
99
99
  comments.select do |comment|
100
- comment["created_at"] >= 1.day.ago
100
+ comment["created_at"] <= 1.day.ago
101
101
  end
102
102
  end
103
103
  end
@@ -30,6 +30,7 @@ module DevOrbit
30
30
  req["Accept"] = "application/json"
31
31
  req["Content-Type"] = "application/json"
32
32
  req["Authorization"] = "Bearer #{@api_key}"
33
+ req["User-Agent"] = "community-ruby-dev-orbit/#{DevOrbit::VERSION}"
33
34
 
34
35
  req.body = construct_body
35
36
 
@@ -44,6 +45,7 @@ module DevOrbit
44
45
  hash = {
45
46
  activity: {
46
47
  activity_type: "dev:comment",
48
+ tags: ["channel:dev"],
47
49
  key: "dev-comment-#{@id}",
48
50
  title: "Commented on the DEV blog post: #{@article_title}",
49
51
  description: @body,
@@ -28,6 +28,7 @@ module DevOrbit
28
28
  req["Accept"] = "application/json"
29
29
  req["Content-Type"] = "application/json"
30
30
  req["Authorization"] = "Bearer #{@api_key}"
31
+ req["User-Agent"] = "community-ruby-dev-orbit/#{DevOrbit::VERSION}"
31
32
 
32
33
  req.body = construct_body
33
34
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DevOrbit
4
- VERSION = "0.0.9"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_orbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
+ - Orbit DevRel
7
8
  - Ben Greenberg
8
- autorequire:
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2021-04-11 00:00:00.000000000 Z
12
+ date: 2021-05-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activesupport
@@ -125,7 +126,7 @@ dependencies:
125
126
  description: This gem integrates DEV blog interactions like comments, etc. into your
126
127
  Orbit workspace
127
128
  email:
128
- - ben.greenberg@hey.com
129
+ - devrel@orbit.love
129
130
  executables:
130
131
  - console
131
132
  - dev_orbit
@@ -159,14 +160,14 @@ files:
159
160
  - lib/dev_orbit/version.rb
160
161
  - scripts/check_comments.rb
161
162
  - scripts/check_followers.rb
162
- homepage: https://github.com/bencgreenberg/dev_orbit
163
+ homepage: https://github.com/orbit-love/community-ruby-dev-orbit
163
164
  licenses:
164
165
  - MIT
165
166
  metadata:
166
- homepage_uri: https://github.com/bencgreenberg/dev_orbit
167
- source_code_uri: https://github.com/bencgreenberg/dev_orbit
168
- changelog_uri: https://github.com/bencgreenberg/dev_orbit/blob/master/CHANGELOG.md
169
- post_install_message:
167
+ homepage_uri: https://github.com/orbit-love/community-ruby-dev-orbit
168
+ source_code_uri: https://github.com/orbit-love/community-ruby-dev-orbit
169
+ changelog_uri: https://github.com/orbit-love/community-ruby-dev-orbit/blob/main/CHANGELOG.md
170
+ post_install_message:
170
171
  rdoc_options: []
171
172
  require_paths:
172
173
  - lib
@@ -181,8 +182,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  - !ruby/object:Gem::Version
182
183
  version: '0'
183
184
  requirements: []
184
- rubygems_version: 3.1.4
185
- signing_key:
185
+ rubygems_version: 3.2.15
186
+ signing_key:
186
187
  specification_version: 4
187
188
  summary: Integrate DEV interactions into your Orbit workspace
188
189
  test_files: []