breathe 0.3.3 → 0.3.6

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: de06ca95855e0cb236b40f3b496aa57a4e15ff598b81cd76a0695e51f4ed97c5
4
- data.tar.gz: 3186e3618dc562e549b28418da5050de7db7b564cd1ba23c1804cb3b00e30be7
3
+ metadata.gz: 35840be72b05dc2ebaa64eec261201e421f703502ed126594d7c51a3e20407c0
4
+ data.tar.gz: 7d79181475d35acaebc62be8c482db4ba6aeb121e5a6dc35b14eef2ec3a81066
5
5
  SHA512:
6
- metadata.gz: cbdfe5eca49eca7beb8f1430c758c659a461df68ad2e338f350bf465d48a466562af8f5add9527caaaee721200891e8cfb2d7f9fd3b1bfe7f4603debf9595035
7
- data.tar.gz: 4cb7dde65cc06fd84c19bb1d2d90964f0ebbb20a23536503ce065e283530391eb057bdbc9aeb811e0abe805a221d942ec59c8c64796362b163dee6114f2931ae
6
+ metadata.gz: 26fab5c0a1afc5a6378f7dd226dd05c434cb4d76dd75730b57f5dbd2cd52390982a41b5b4a0342e0695c84f721ba900f1c328f4d9a5163a57b27f7ad88547313
7
+ data.tar.gz: 1c364b76b1bc81651e8ceadbd0fe9e918111b8eaa6b5f1f64cc3b663a187868fbbbf2f4ce5f8d417334f5a5b02bb2f76f7f9599f349c58a58797416821a925c7
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ interval: "daily"
@@ -1,6 +1,6 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
- mkdir ~/.gem
4
+ mkdir -p ~/.gem
5
5
  echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
6
6
  chmod 0600 ~/.gem/credentials
@@ -10,11 +10,9 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
 
12
12
  steps:
13
- - uses: actions/checkout@v1
14
- - name: Set up Ruby 2.6
15
- uses: actions/setup-ruby@v1
16
- with:
17
- ruby-version: 2.6.x
13
+ - uses: actions/checkout@v3
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
18
16
  - name: Set up cache
19
17
  uses: actions/cache@preview
20
18
  with:
@@ -9,11 +9,9 @@ jobs:
9
9
  build:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v1
13
- - name: Set up Ruby 2.6
14
- uses: actions/setup-ruby@v1
15
- with:
16
- ruby-version: 2.6.x
12
+ - uses: actions/checkout@v3
13
+ - name: Set up Ruby
14
+ uses: ruby/setup-ruby@v1
17
15
  - name: Setup Rubygems
18
16
  env:
19
17
  RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.8
data/CONTRIBUTING.md ADDED
@@ -0,0 +1 @@
1
+ The [dxw standard contributing guide](https://github.com/dxw/.github/blob/main/CONTRIBUTING.md) applies for this repository.
data/README.md CHANGED
@@ -111,7 +111,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
111
111
 
112
112
  To install this gem onto your local machine, run `bundle exec rake install`.
113
113
 
114
- To release a new version, update the version number in `breathe/version.rb`, commit the change and then create a git tag for that version in the format `x.x.x` (where x is each version number). Github Actions will then automatically push the latest version to Rubygems.
114
+ To release a new version, update the version number in `lib/breathe/version.rb`, commit the change and then create a git tag for that version in the format `x.x.x` (where x is each version number). Github Actions will then automatically push the latest version to Rubygems.
115
115
 
116
116
  ## Contributing
117
117
 
data/breathe.gemspec CHANGED
@@ -29,9 +29,9 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rake", ">= 12.3.3"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
31
  spec.add_development_dependency "standard", "~> 0.1.5"
32
- spec.add_development_dependency "dotenv", "~> 2.7.5"
33
- spec.add_development_dependency "pry", "~> 0.12.2"
34
- spec.add_development_dependency "webmock", "~> 3.7.6"
32
+ spec.add_development_dependency "dotenv", "~> 2.8.1"
33
+ spec.add_development_dependency "pry", "~> 0.14.1"
34
+ spec.add_development_dependency "webmock", "~> 3.18.1"
35
35
 
36
- spec.add_dependency "sawyer", "~> 0.8.2"
36
+ spec.add_dependency "sawyer", ">= 0.8.2", "< 0.10.0"
37
37
  end
@@ -2,7 +2,7 @@ module Breathe
2
2
  class Client
3
3
  attr_reader :api_key, :last_response
4
4
 
5
- BASE_URL = "https://api.breathehr.com/v1/"
5
+ BASE_URL = ENV.fetch("BREATHE_API_URL", "https://api.breathehr.com/v1/")
6
6
 
7
7
  def initialize(api_key:, auto_paginate: false)
8
8
  @api_key = api_key
@@ -45,6 +45,9 @@ module Breathe
45
45
  when 401
46
46
  raise Breathe::AuthenticationError, "The BreatheHR API returned a 401 error - are you sure you've set the correct API key?"
47
47
  else
48
+ puts("Unknown Error")
49
+ puts(response.status)
50
+ puts(response.body)
48
51
  raise Breathe::UnknownError, "The BreatheHR API returned an unknown error"
49
52
  end
50
53
  end
@@ -1,3 +1,3 @@
1
1
  module Breathe
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.6"
3
3
  end
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:base"
5
+ ]
6
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breathe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Harrison
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,56 +72,62 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.7.5
75
+ version: 2.8.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.7.5
82
+ version: 2.8.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.12.2
89
+ version: 0.14.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.12.2
96
+ version: 0.14.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: webmock
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.7.6
103
+ version: 3.18.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 3.7.6
110
+ version: 3.18.1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sawyer
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.8.2
118
+ - - "<"
119
+ - !ruby/object:Gem::Version
120
+ version: 0.10.0
118
121
  type: :runtime
119
122
  prerelease: false
120
123
  version_requirements: !ruby/object:Gem::Requirement
121
124
  requirements:
122
- - - "~>"
125
+ - - ">="
123
126
  - !ruby/object:Gem::Version
124
127
  version: 0.8.2
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: 0.10.0
125
131
  description:
126
132
  email:
127
133
  - pezholio@gmail.com
@@ -129,6 +135,7 @@ executables: []
129
135
  extensions: []
130
136
  extra_rdoc_files: []
131
137
  files:
138
+ - ".github/dependabot.yml"
132
139
  - ".github/setup-rubygems.sh"
133
140
  - ".github/workflows/build.yml"
134
141
  - ".github/workflows/publish.yml"
@@ -137,6 +144,7 @@ files:
137
144
  - ".ruby-version"
138
145
  - CHANGELOG.md
139
146
  - CODE_OF_CONDUCT.md
147
+ - CONTRIBUTING.md
140
148
  - Gemfile
141
149
  - LICENSE.txt
142
150
  - README.md
@@ -153,6 +161,7 @@ files:
153
161
  - lib/breathe/response.rb
154
162
  - lib/breathe/sicknesses.rb
155
163
  - lib/breathe/version.rb
164
+ - renovate.json
156
165
  homepage: http://github.com/dxw/breathe_ruby
157
166
  licenses:
158
167
  - MIT
@@ -175,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
184
  - !ruby/object:Gem::Version
176
185
  version: '0'
177
186
  requirements: []
178
- rubygems_version: 3.0.3
187
+ rubygems_version: 3.1.6
179
188
  signing_key:
180
189
  specification_version: 4
181
190
  summary: A Ruby Wrapper for the BreateHR API