client_success 0.1.2 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gempush.yml +28 -0
- data/.github/workflows/ruby.yml +25 -0
- data/Gemfile.lock +3 -3
- data/README.md +4 -0
- data/client_success.gemspec +1 -1
- data/gempush.yml +30 -0
- data/lib/client_success/connection.rb +3 -0
- data/lib/client_success/subscription.rb +0 -1
- data/lib/client_success/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6111a9c3afb93650bcd20613f2fcde66be74bbf065cfd5a24385d9c2f5fe9bdb
|
4
|
+
data.tar.gz: 7da8d609bcbfa371b292496c9519eec1ffa52d1536e03dca217fbce784fd6d06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fecd5cb22b933c9f82346ccca8a2adf6e805da03c63e20c261ea42c6962c2c74f7d599ed6b2233d84b749a3d4ab7e5f9f83ea13258c2b13e345217f6cc5bc834
|
7
|
+
data.tar.gz: 92bb01a99c9588467251613ef7d351e4287d82380d44a20f6f606066340ae700b901caa966263a287cb5317288099bf04f90502241ff65b9adbefd38850fc7c6
|
@@ -0,0 +1,28 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Publish
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.6
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
version: 2.6.x
|
18
|
+
|
19
|
+
- name: Publish to RubyGems
|
20
|
+
run: |
|
21
|
+
mkdir -p $HOME/.gem
|
22
|
+
touch $HOME/.gem/credentials
|
23
|
+
chmod 0600 $HOME/.gem/credentials
|
24
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
25
|
+
gem build *.gemspec
|
26
|
+
gem push *.gem
|
27
|
+
env:
|
28
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby 2.6
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.6.x
|
20
|
+
- name: Check rubocop and rspec
|
21
|
+
run: |
|
22
|
+
gem install bundler
|
23
|
+
bundle install --jobs 4 --retry 3
|
24
|
+
bundle exec rubocop
|
25
|
+
bundle exec rspec
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
client_success (0.1.
|
4
|
+
client_success (0.1.7)
|
5
5
|
activesupport (~> 5.2)
|
6
6
|
dry-types (= 0.11.0)
|
7
7
|
faraday
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
ast (2.4.0)
|
21
21
|
concurrent-ruby (1.1.6)
|
22
22
|
diff-lcs (1.3)
|
23
|
-
dry-configurable (0.11.
|
23
|
+
dry-configurable (0.11.5)
|
24
24
|
concurrent-ruby (~> 1.0)
|
25
25
|
dry-core (~> 0.4, >= 0.4.7)
|
26
26
|
dry-equalizer (~> 0.2)
|
@@ -89,7 +89,7 @@ GEM
|
|
89
89
|
thread_safe (0.3.6)
|
90
90
|
typhoeus (1.3.1)
|
91
91
|
ethon (>= 0.9.0)
|
92
|
-
tzinfo (1.2.
|
92
|
+
tzinfo (1.2.7)
|
93
93
|
thread_safe (~> 0.1)
|
94
94
|
unicode-display_width (1.6.1)
|
95
95
|
vcr (5.1.0)
|
data/README.md
CHANGED
@@ -46,6 +46,10 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
46
46
|
|
47
47
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
48
48
|
|
49
|
+
## Publishing
|
50
|
+
|
51
|
+
This repository is set up to auto publish to https://rubygems.org/gems/client_success on merge into master.
|
52
|
+
|
49
53
|
|
50
54
|
## Contributing
|
51
55
|
|
data/client_success.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["dev@practiceignition.com"]
|
10
10
|
|
11
11
|
spec.summary = "An unofficial Ruby wrapper for Client Success's REST API"
|
12
|
-
spec.homepage = "https://github.com/ignitionapp/"
|
12
|
+
spec.homepage = "https://github.com/ignitionapp/client_success"
|
13
13
|
|
14
14
|
# Specify which files should be added to the gem when it is released.
|
15
15
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/gempush.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby 2.6
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
version: 2.6.x
|
20
|
+
|
21
|
+
- name: Publish to RubyGems
|
22
|
+
run: |
|
23
|
+
mkdir -p $HOME/.gem
|
24
|
+
touch $HOME/.gem/credentials
|
25
|
+
chmod 0600 $HOME/.gem/credentials
|
26
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
27
|
+
gem build *.gemspec
|
28
|
+
gem push *.gem
|
29
|
+
env:
|
30
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
@@ -10,6 +10,7 @@ module ClientSuccess
|
|
10
10
|
class NotFound < Error; end
|
11
11
|
|
12
12
|
class ParsingError < Error; end
|
13
|
+
class Failed < Error; end
|
13
14
|
|
14
15
|
class << self
|
15
16
|
def authorised(access_token)
|
@@ -92,6 +93,8 @@ module ClientSuccess
|
|
92
93
|
else
|
93
94
|
raise Error, error
|
94
95
|
end
|
96
|
+
rescue Faraday::ConnectionFailed => error
|
97
|
+
raise Failed, error
|
95
98
|
rescue SignalException => error
|
96
99
|
raise Error, error
|
97
100
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_success
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Practice Ignition
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -199,6 +199,8 @@ executables: []
|
|
199
199
|
extensions: []
|
200
200
|
extra_rdoc_files: []
|
201
201
|
files:
|
202
|
+
- ".github/workflows/gempush.yml"
|
203
|
+
- ".github/workflows/ruby.yml"
|
202
204
|
- ".gitignore"
|
203
205
|
- ".rspec"
|
204
206
|
- ".rubocop.yml"
|
@@ -210,6 +212,7 @@ files:
|
|
210
212
|
- bin/console
|
211
213
|
- bin/setup
|
212
214
|
- client_success.gemspec
|
215
|
+
- gempush.yml
|
213
216
|
- lib/client_success.rb
|
214
217
|
- lib/client_success/access_token.rb
|
215
218
|
- lib/client_success/client.rb
|
@@ -241,7 +244,7 @@ files:
|
|
241
244
|
- lib/client_success/to_do.rb
|
242
245
|
- lib/client_success/types.rb
|
243
246
|
- lib/client_success/version.rb
|
244
|
-
homepage: https://github.com/ignitionapp/
|
247
|
+
homepage: https://github.com/ignitionapp/client_success
|
245
248
|
licenses: []
|
246
249
|
metadata: {}
|
247
250
|
post_install_message:
|