orbit_activities 0.0.1 → 0.0.2
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/.github/workflows/ci.yml +25 -0
- data/.gitignore +2 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/orbit_activities/request.rb +0 -2
- data/lib/orbit_activities/utils.rb +7 -7
- data/lib/orbit_activities/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc1080c10767a93d1c123355c585449928dd1ad520b895bc479efbae3ceb6e5b
|
|
4
|
+
data.tar.gz: 564bb88bbeeda2ceb8149b3a24a101e9872437322c8ded44d15aa00ac48832c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9608a1ee59c7bc5a2b09117b4979888b09966ef9e227b1d1d97ca46b9453930eed3e46dc3a3e560a36a03bd59225b52e971071f344e5665b7eb1b8a26dc15f11
|
|
7
|
+
data.tar.gz: c237011ad251ac5493a78f79ee07f1a17f1bf8f67efb6862264be9cc6de71e9b85b58702da36bcffa254896a94a32b06e299eacbca5d2942a30bfeafb970e32d
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
os: [ubuntu-latest, macos-latest]
|
|
14
|
+
ruby: [2.7, 3.0]
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v2
|
|
18
|
+
- name: Set up Ruby
|
|
19
|
+
uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: bundle install
|
|
24
|
+
- name: Run tests
|
|
25
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Orbit API Create Custom Activities Helper
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
[](https://badge.fury.io/rb/orbit_activities)
|
|
5
5
|
[](code_of_conduct.md)
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ To send a custom activity to Orbit using the gem, instantiate a new instance of
|
|
|
28
28
|
OrbitActivities::Request.new(
|
|
29
29
|
api_key: # Your Orbit API key,
|
|
30
30
|
workspace_id: # Your Orbit workspace ID,
|
|
31
|
-
body: # The custom activity object
|
|
31
|
+
body: # The custom activity object in JSON format
|
|
32
32
|
)
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module OrbitActivities
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
end
|
|
4
|
+
class Utils
|
|
5
|
+
def self.valid_json?(string)
|
|
6
|
+
!JSON.parse(string).nil?
|
|
7
|
+
rescue JSON::ParserError
|
|
8
|
+
raise ArgumentError, "Expected confirmation from the Orbit API, but received nothing. Please check your logs and try again."
|
|
10
9
|
end
|
|
11
|
-
end
|
|
10
|
+
end
|
|
11
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orbit_activities
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
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-05-
|
|
12
|
+
date: 2021-05-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: http
|
|
@@ -133,6 +133,7 @@ executables:
|
|
|
133
133
|
extensions: []
|
|
134
134
|
extra_rdoc_files: []
|
|
135
135
|
files:
|
|
136
|
+
- ".github/workflows/ci.yml"
|
|
136
137
|
- ".gitignore"
|
|
137
138
|
- CODE_OF_CONDUCT.md
|
|
138
139
|
- CONTRIBUTING.md
|