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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f49bdffafdb03e24047bed3e4ba924484e8efe2976a5f3133e8045e9afdc955
4
- data.tar.gz: 5fe7e44b7a68a1e3d2d36f91351b2523b04c69f21c0199d55f0127d76f55ddf8
3
+ metadata.gz: 6111a9c3afb93650bcd20613f2fcde66be74bbf065cfd5a24385d9c2f5fe9bdb
4
+ data.tar.gz: 7da8d609bcbfa371b292496c9519eec1ffa52d1536e03dca217fbce784fd6d06
5
5
  SHA512:
6
- metadata.gz: a316529d34fbea645ce64f0be27f6bba6af1fc7f4dc8867b51ce46d8384e45f9a13c1bbc80ad671e9ed616ce3949b277d9d1eaa9122cd077b49978b4c6806407
7
- data.tar.gz: 30de65519fc46b7868a376a238e24a1e5fcbf84907741befcc0d08a4b7da7015a1ca62e08ba888c648edde0afbefb4a2b688a719b61cf79ade0161eda56c79c8
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- client_success (0.1.2)
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.3)
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.6)
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
 
@@ -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.
@@ -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
@@ -17,7 +17,6 @@ module ClientSuccess
17
17
  response = connection.post(
18
18
  "/v1/subscriptions", body)
19
19
 
20
-
21
20
  if response.body.blank?
22
21
  raise InvalidAttributes, "subscription has invalid attributes"
23
22
  else
@@ -1,3 +1,3 @@
1
1
  module ClientSuccess
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.7".freeze
3
3
  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.2
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-04-06 00:00:00.000000000 Z
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: