bobhr 0.1.0 → 0.3.0

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: c3a576e62ca3b77d88283be9e4a13b77c4196c99ae9d4a1eab96373fe09bdcae
4
- data.tar.gz: fe774f30c3c845d81dfbe8f0da3857cc1055f9938539fe3abd43b18898a279be
3
+ metadata.gz: 49f184d406b6d8d4ca486575bf5a5128d5bfdddade6b16ddbdc05d167b639c1e
4
+ data.tar.gz: 54291512a0368b35ee9ad1f6bf06ce2423a0f53cee26ec369944951cd1138ae9
5
5
  SHA512:
6
- metadata.gz: d4812690e91027a4afd886da2fc6b6eba6f743018ba05a86a909d6ed209c8847967a1b9a4b2fbdeb2f1744e1508913449f7d2fbaebe3f511c521402c87598060
7
- data.tar.gz: dce2b58367cf53b8d263c911e475d174dff6b4d071ce845d7b4dbbef4c6cfbaee44f447f61557e2a4b6c3fae030ba71f2e15987c547789af32e23f3b1e66ae75
6
+ metadata.gz: ad5429acf3625d89a60241df8ccfb3125c25d8db0f2d5cbe00a36e0c7c7629b317f5d988a8548c3bd1c4904e7453d3cf96ec9883e444cb367cc0ffe2e7dd963f
7
+ data.tar.gz: abfe38397ae9647c606c99eaad0ff04f913452519073c168c970525ccdaa42a5aab928210f0484b51ce3e3e661a2e60ef7aac6f2d0ba92d012d80f2167692412
data/README.md CHANGED
@@ -1,12 +1,14 @@
1
1
  # Bob
2
2
 
3
- Bob is a Ruby wrapper and CLI for the [Bob API](https://apidocs.hibob.com/).
3
+ Bob is a Ruby wrapper and CLI for the [Bob API](https://apidocs.hibob.com/). To interact with this Ruby gem you need
4
+ access to Bob.
5
+
4
6
  ## Installation
5
7
 
6
8
  Add this line to your application's Gemfile:
7
9
 
8
10
  ```ruby
9
- gem 'bob'
11
+ gem 'bobhr'
10
12
  ```
11
13
 
12
14
  And then execute:
@@ -15,16 +17,20 @@ And then execute:
15
17
 
16
18
  Or install it yourself as:
17
19
 
18
- $ gem install bob
20
+ $ gem install bobhr
19
21
 
20
22
  ## Usage
21
23
 
24
+ Create a Service User in Bob and use the ID and token to configure the client.
25
+
22
26
  Configuration example:
23
27
 
24
28
  ```ruby
29
+ require 'bob' # not needed in Rails applications
25
30
 
26
31
  Bob.configure do |config|
27
32
  config.access_token = 'your-access-token'
33
+ config.access_user_name = 'your-access-user-name'
28
34
  end
29
35
  ```
30
36
 
@@ -33,7 +39,8 @@ Usage examples:
33
39
  ```ruby
34
40
 
35
41
  Bob.access_token = 'your-access-token'
36
-
42
+ employee = Bob::Employees.find(1)
43
+ employee_trainings = Bob::Employees::Trainings.all(1)
37
44
  ```
38
45
 
39
46
  ## Development
data/lib/bob/api.rb CHANGED
@@ -15,12 +15,37 @@ module Bob
15
15
  JSON.parse(response.body)
16
16
  end
17
17
 
18
+ def self.post(endpoint, params = {})
19
+ url = build_url(endpoint)
20
+ response = RestClient.post(url, params.to_json, headers.merge(content_headers))
21
+ response.code
22
+ end
23
+
24
+ def self.delete(endpoint)
25
+ url = build_url(endpoint)
26
+ response = RestClient.delete(url)
27
+ response.code
28
+ end
29
+
30
+ def self.put(endpoint, params = {})
31
+ url = build_url(endpoint)
32
+ response = RestClient.put(url, params.to_json, headers.merge(content_headers))
33
+ response.code
34
+ end
35
+
18
36
  def self.headers
19
37
  {
20
38
  Authorization: "Basic #{Base64.strict_encode64("#{Bob.access_user_name}:#{Bob.access_token}")}"
21
39
  }
22
40
  end
23
41
 
42
+ def self.content_headers
43
+ {
44
+ Accept: 'application/json',
45
+ 'Content-Type': 'application/json'
46
+ }
47
+ end
48
+
24
49
  def self.build_url(endpoint, params = {})
25
50
  url = "#{BASE_URL}/#{Bob.api_version}/#{endpoint}"
26
51
  url += "?#{URI.encode_www_form(params)}" unless params.empty?
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class Documents < API
6
+ def self.add_public_document(employee_id, params = {})
7
+ post("docs/people/#{employee_id}/shared", params)
8
+ end
9
+
10
+ def self.add_private_document(employee_id, params = {})
11
+ post("docs/people/#{employee_id}/confidential", params)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class EquityGrants < API
6
+ def self.all(employee_id)
7
+ get("people/#{employee_id}/equities")
8
+ end
9
+
10
+ def self.create(employee_id, params = {})
11
+ post("people/#{employee_id}/equities", params)
12
+ end
13
+
14
+ def self.remove(employee_id, entry_id)
15
+ delete("people/#{employee_id}/salaries/#{entry_id}")
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class Invites < API
6
+ def self.send(employee_id, wizard_id)
7
+ post("employees/#{employee_id}/invitations", { welcomeWizardId: wizard_id })
8
+ end
9
+
10
+ def self.revoke(employee_id)
11
+ post("employees/#{employee_id}/uninvite")
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class Salaries < API
6
+ def self.all(employee_id)
7
+ get("people/#{employee_id}/salaries")
8
+ end
9
+
10
+ def self.create(employee_id, params = {})
11
+ post("people/#{employee_id}/salaries", params)
12
+ end
13
+
14
+ def self.remove(employee_id, salary_id)
15
+ delete("people/#{employee_id}/salaries/#{salary_id}")
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class Trainings < API
6
+ def self.all(employee_id)
7
+ get("people/#{employee_id}/training")
8
+ end
9
+
10
+ def self.create(employee_id, params = {})
11
+ post("people/#{employee_id}/training", params)
12
+ end
13
+
14
+ def self.remove(employee_id, training_id)
15
+ delete("people/#{employee_id}/training/#{training_id}")
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module Employee
5
+ class VariablePayments < API
6
+ def self.all(employee_id)
7
+ get("people/#{employee_id}/variable")
8
+ end
9
+
10
+ def self.create(employee_id, params = {})
11
+ post("people/#{employee_id}/variable", params)
12
+ end
13
+ end
14
+ end
15
+ end
data/lib/bob/employees.rb CHANGED
@@ -1,13 +1,34 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'employee/invites'
4
+ require_relative 'employee/trainings'
5
+ require_relative 'employee/salaries'
6
+ require_relative 'employee/equity_grants'
7
+ require_relative 'employee/documents'
8
+
3
9
  module Bob
4
10
  class Employees < API
5
11
  def self.all(params = {})
6
- get('people', params)
12
+ get('people', params)['employees']
13
+ end
14
+
15
+ def self.find(employee_id_or_email)
16
+ get("people/#{employee_id_or_email}")
17
+ end
18
+
19
+ def self.find_by(field:, value:)
20
+ all.find do |employee|
21
+ employee[field] == value
22
+ end
23
+ end
24
+
25
+ # start date needs to be in ISO format
26
+ def self.update_start_date(employee_id, start_date)
27
+ post("employees/#{employee_id}", { startDate: start_date })
7
28
  end
8
29
 
9
- def self.find(id_or_email)
10
- get("people/#{id_or_email}")
30
+ def self.update_email(employee_id, email)
31
+ put("people/#{employee_id}/email", { email: email })
11
32
  end
12
33
  end
13
34
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module MetaData
5
+ class CompanyFields < API
6
+ def self.all
7
+ get('company/people/fields')
8
+ end
9
+
10
+ def self.create(params = {})
11
+ post('company/people/fields', params)
12
+ end
13
+
14
+ def self.update(field_id, params = {})
15
+ put("company/people/fields/#{field_id}", params)
16
+ end
17
+
18
+ def self.remove(field_id)
19
+ delete("company/people/fields/#{field_id}")
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ module MetaData
5
+ class CompanyLists < API
6
+ def self.all
7
+ get('company/named-lists')
8
+ end
9
+
10
+ def self.find(list_name)
11
+ get("company/named-lists/#{list_name}")
12
+ end
13
+
14
+ def self.add_item(list_name, params = {})
15
+ post("company/named-lists/#{list_name}", params)
16
+ end
17
+
18
+ def self.update_item(list_name, item_id, params = {})
19
+ put("company/named-lists/#{list_name}/#{item_id}", params)
20
+ end
21
+
22
+ def self.remove_item(list_name, item_id)
23
+ delete("company/named-lists/#{list_name}/#{item_id}")
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'metadata/company_lists'
4
+ require_relative 'metadata/company_fields'
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ class OnboardingWizards < API
5
+ def self.all
6
+ get('onboarding/wizards')
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bob
4
+ class TimeOff < API
5
+ def self.all_changed_since(since)
6
+ get('timeoff/requests/changes', { since: since })['changes']
7
+ end
8
+
9
+ def self.today
10
+ get('timeoff/outtoday')
11
+ end
12
+ end
13
+ end
data/lib/bob/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bob
4
- VERSION = '0.1.0'
4
+ VERSION = '0.3.0'
5
5
  end
data/lib/bob.rb CHANGED
@@ -4,6 +4,9 @@ require_relative 'bob/version'
4
4
  require_relative 'bob/configuration'
5
5
  require_relative 'bob/api'
6
6
  require_relative 'bob/employees'
7
+ require_relative 'bob/time_off'
8
+ require_relative 'bob/onboarding_wizards'
9
+ require_relative 'bob/metadata'
7
10
 
8
11
  module Bob
9
12
  extend Configuration
data/lib/bobhr.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bob'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bobhr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lien Van Den Steen
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -41,34 +41,30 @@ dependencies:
41
41
  description: Ruby gem for Bob API
42
42
  email:
43
43
  - lienvandensteen@gmail.com
44
- executables:
45
- - bob
44
+ executables: []
46
45
  extensions: []
47
46
  extra_rdoc_files: []
48
47
  files:
49
- - ".github/workflows/main.yml"
50
- - ".gitignore"
51
- - ".rspec"
52
- - ".rubocop.yml"
53
- - ".rubocop_todo.yml"
54
- - CHANGELOG.md
55
- - CODE_OF_CONDUCT.md
56
- - Gemfile
57
- - Gemfile.lock
58
48
  - LICENSE.txt
59
49
  - README.md
60
- - Rakefile
61
- - bin/console
62
- - bin/setup
63
- - bob-0.1.0.gem
64
- - bob.gemspec
65
- - exe/bob
66
50
  - lib/bob.rb
67
51
  - lib/bob/api.rb
68
52
  - lib/bob/configuration.rb
53
+ - lib/bob/employee/documents.rb
54
+ - lib/bob/employee/equity_grants.rb
55
+ - lib/bob/employee/invites.rb
56
+ - lib/bob/employee/salaries.rb
57
+ - lib/bob/employee/trainings.rb
58
+ - lib/bob/employee/variable_payments.rb
69
59
  - lib/bob/employees.rb
60
+ - lib/bob/metadata.rb
61
+ - lib/bob/metadata/company_fields.rb
62
+ - lib/bob/metadata/company_lists.rb
63
+ - lib/bob/onboarding_wizards.rb
64
+ - lib/bob/time_off.rb
70
65
  - lib/bob/version.rb
71
- homepage: https://github.com/lienvdsteen/bob
66
+ - lib/bobhr.rb
67
+ homepage: https://github.com/lienvdsteen/hibob
72
68
  licenses:
73
69
  - MIT
74
70
  metadata:
@@ -88,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
84
  - !ruby/object:Gem::Version
89
85
  version: '0'
90
86
  requirements: []
91
- rubygems_version: 3.2.22
87
+ rubygems_version: 3.2.31
92
88
  signing_key:
93
89
  specification_version: 4
94
90
  summary: Ruby gem for Bob API
@@ -1,16 +0,0 @@
1
- name: Ruby
2
-
3
- on: [push,pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: 3.0.2
14
- bundler-cache: true
15
- - name: Run the default task
16
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,18 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- TargetRubyVersion: 3.0
5
- NewCops: enable
6
-
7
- Style/StringLiteralsInInterpolation:
8
- Enabled: true
9
- EnforcedStyle: double_quotes
10
-
11
- Layout/LineLength:
12
- Max: 120
13
-
14
- Style/Documentation:
15
- Enabled: false
16
-
17
- Metrics/BlockLength:
18
- Max: 45
data/.rubocop_todo.yml DELETED
@@ -1,14 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2021-11-17 13:12:47 UTC using RuboCop version 1.23.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # Configuration parameters: AllowedMethods.
11
- # AllowedMethods: respond_to_missing?
12
- Style/OptionalBooleanParameter:
13
- Exclude:
14
- - 'bin/console'
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2021-11-16
4
-
5
- - Initial release
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at TODO: Write your email address. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in bob.gemspec
6
- gemspec
7
-
8
- gem 'rake', '~> 13.0'
9
-
10
- gem 'rspec', '~> 3.0'
11
-
12
- gem 'rubocop', '~> 1.7'
data/Gemfile.lock DELETED
@@ -1,75 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bobhr (0.1.0)
5
- json
6
- rest-client (~> 2.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ast (2.4.2)
12
- diff-lcs (1.4.4)
13
- domain_name (0.5.20190701)
14
- unf (>= 0.0.5, < 1.0.0)
15
- http-accept (1.7.0)
16
- http-cookie (1.0.4)
17
- domain_name (~> 0.5)
18
- json (2.6.1)
19
- mime-types (3.4.1)
20
- mime-types-data (~> 3.2015)
21
- mime-types-data (3.2021.1115)
22
- netrc (0.11.0)
23
- parallel (1.21.0)
24
- parser (3.0.2.0)
25
- ast (~> 2.4.1)
26
- rainbow (3.0.0)
27
- rake (13.0.6)
28
- regexp_parser (2.1.1)
29
- rest-client (2.1.0)
30
- http-accept (>= 1.7.0, < 2.0)
31
- http-cookie (>= 1.0.2, < 2.0)
32
- mime-types (>= 1.16, < 4.0)
33
- netrc (~> 0.8)
34
- rexml (3.2.5)
35
- rspec (3.10.0)
36
- rspec-core (~> 3.10.0)
37
- rspec-expectations (~> 3.10.0)
38
- rspec-mocks (~> 3.10.0)
39
- rspec-core (3.10.1)
40
- rspec-support (~> 3.10.0)
41
- rspec-expectations (3.10.1)
42
- diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.10.0)
44
- rspec-mocks (3.10.2)
45
- diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-support (3.10.3)
48
- rubocop (1.23.0)
49
- parallel (~> 1.10)
50
- parser (>= 3.0.0.0)
51
- rainbow (>= 2.2.2, < 4.0)
52
- regexp_parser (>= 1.8, < 3.0)
53
- rexml
54
- rubocop-ast (>= 1.12.0, < 2.0)
55
- ruby-progressbar (~> 1.7)
56
- unicode-display_width (>= 1.4.0, < 3.0)
57
- rubocop-ast (1.13.0)
58
- parser (>= 3.0.1.1)
59
- ruby-progressbar (1.11.0)
60
- unf (0.1.4)
61
- unf_ext
62
- unf_ext (0.0.8)
63
- unicode-display_width (2.1.0)
64
-
65
- PLATFORMS
66
- ruby
67
-
68
- DEPENDENCIES
69
- bobhr!
70
- rake (~> 13.0)
71
- rspec (~> 3.0)
72
- rubocop (~> 1.7)
73
-
74
- BUNDLED WITH
75
- 2.2.22
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require 'rubocop/rake_task'
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
data/bin/console DELETED
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'bob'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
-
16
- def reload!(print = true)
17
- puts 'Reloading ...' if print
18
- # Main project directory.
19
- root_dir = File.expand_path('..', __dir__)
20
- # Directories within the project that should be reloaded.
21
- reload_dirs = %w[lib]
22
- # Loop through and reload every file in all relevant project directories.
23
- reload_dirs.each do |dir|
24
- Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
25
- end
26
- # Return true when complete.
27
- true
28
- end
29
-
30
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/bob-0.1.0.gem DELETED
Binary file
data/bob.gemspec DELETED
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/bob/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'bobhr'
7
- spec.version = Bob::VERSION
8
- spec.authors = ['Lien Van Den Steen']
9
- spec.email = ['lienvandensteen@gmail.com']
10
-
11
- spec.summary = 'Ruby gem for Bob API'
12
- spec.description = 'Ruby gem for Bob API'
13
- spec.homepage = 'https://github.com/lienvdsteen/bob'
14
- spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 3.0'
16
-
17
- spec.metadata['homepage_uri'] = spec.homepage
18
- spec.metadata['source_code_uri'] = 'https://github.com/lienvdsteen/bob'
19
- spec.metadata['changelog_uri'] = 'https://github.com/lienvdsteen/bob/CHANGELOG.md'
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
- end
26
- spec.bindir = 'exe'
27
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
- spec.require_paths = ['lib']
29
-
30
- spec.add_runtime_dependency 'json'
31
- spec.add_runtime_dependency 'rest-client', '~> 2.0'
32
-
33
- # For more information and examples about making a new gem, checkout our
34
- # guide at: https://bundler.io/guides/creating_gem.html
35
- spec.metadata = {
36
- 'rubygems_mfa_required' => 'true'
37
- }
38
- end
data/exe/bob DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
- #!/usr/bin/env ruby
3
-
4
- require "bob"