orbit_activities 0.0.1 → 0.0.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: c26b382df27b22b7e81b7bea5245cf76057a6be007bade8477144edb19e21347
4
- data.tar.gz: a84f1efce2cc24565e5c7ed7b4f6aa18ee155ac483d1a8c05759df6c848fbddc
3
+ metadata.gz: dc1080c10767a93d1c123355c585449928dd1ad520b895bc479efbae3ceb6e5b
4
+ data.tar.gz: 564bb88bbeeda2ceb8149b3a24a101e9872437322c8ded44d15aa00ac48832c1
5
5
  SHA512:
6
- metadata.gz: af88365fa3a0d1ca59d0b1f54cb9204f9be397fe06394b4140f700e3b24ecc3711674cb8f4494e6bd2655dc92b6724b56e311bd577b295e64e30d40e0fb949e3
7
- data.tar.gz: 6cd5d2bfc5d0d8eaca37c4c0af8082e0008316d6fc5e67f1712274c998e13673105d07b8b0539a70af3b3955cf9b53ffb9e70bcd0ad0892ec55d4d765ac319ab
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
@@ -1,2 +1,3 @@
1
1
  .byebug_history
2
- .env
2
+ .env
3
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orbit_activities (0.0.1)
4
+ orbit_activities (0.0.2)
5
5
  http (~> 4.4)
6
6
  json (~> 2.5)
7
7
  rake (~> 13.0)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Orbit API Create Custom Activities Helper
2
2
 
3
- ![Build Status](https://github.com/orbit-love/ruby-create-activities/workflows/CI/badge.svg)
3
+ ![Build Status](https://github.com/orbit-love/ruby-orbit-activities/workflows/CI/badge.svg)
4
4
  [![Gem Version](https://badge.fury.io/rb/orbit_activities.svg)](https://badge.fury.io/rb/orbit_activities)
5
5
  [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](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
 
@@ -39,8 +39,6 @@ module OrbitActivities
39
39
 
40
40
  req.body = @body
41
41
 
42
- req.body = @body.to_json
43
-
44
42
  response = http.request(req)
45
43
 
46
44
  response.body
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OrbitActivities
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."
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OrbitActivities
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
 
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.1
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-13 00:00:00.000000000 Z
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