glpi-sdk-ruby 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 21a3fbd08d202f883324a985278c095c0288bbc9
4
+ data.tar.gz: 9699a69a6c7421d6d62f1cefcf72fcd4351189ed
5
+ SHA512:
6
+ metadata.gz: 557aeff7aab8fba3297b46807d07b4b5913ab4f6754acabec848bc294bb194e596033b2ea10734064786ba67d17a2be80bf28e6f85ae79199ce7b2086bec93cf
7
+ data.tar.gz: ead5380a4798963378c4a8e6c2cef1b7b227a136a2f3ec75be16a088ca74dbdf6ba73f47538601a58a4c4594d136611dc389befbd7df06a4758b681755689bf7
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ Documentation:
2
+ Enabled: false
3
+ Metrics/LineLength:
4
+ Max: 100
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.15.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at filipepmenezes@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in glpi-sdk-ruby.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Truly Systems
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,45 @@
1
+ # GLPI SDK for Ruby
2
+
3
+ [![Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/glpi/sdk`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'glpi-sdk-ruby'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install glpi-sdk-ruby
24
+
25
+ ## Usage
26
+
27
+ TODO: Write usage instructions here
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/truly-systems/glpi-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
38
+
39
+ ## License
40
+
41
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
42
+
43
+ ## Code of Conduct
44
+
45
+ Everyone interacting in the Glpi::Sdk::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/truly-systems/glpi-sdk-ruby/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'glpi/sdk'
5
+
6
+ require 'pry'
7
+ Pry.start
@@ -0,0 +1,8 @@
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
@@ -0,0 +1,32 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'glpi/sdk/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'glpi-sdk-ruby'
7
+ spec.version = GLPI::SDK::VERSION
8
+ spec.authors = ['Filipe Menezes']
9
+ spec.email = ['filipepmenezes@gmail.com']
10
+
11
+ spec.summary = 'GLPI SDK for Ruby'
12
+ spec.description = 'A Ruby library for the GLPI API'
13
+ spec.homepage = 'https://github.com/truly-systems/glpi-sdk-ruby'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.15'
24
+ spec.add_development_dependency 'pry'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
+
27
+ spec.add_development_dependency 'rspec', '~> 3.0'
28
+ spec.add_development_dependency 'vcr'
29
+ spec.add_development_dependency 'webmock'
30
+
31
+ spec.add_runtime_dependency 'httparty'
32
+ end
@@ -0,0 +1,16 @@
1
+ require 'httparty'
2
+
3
+ require 'glpi/sdk/version'
4
+ require 'glpi/sdk/util/hash_converter'
5
+ require 'glpi/sdk/session'
6
+ require 'glpi/sdk/error'
7
+ require 'glpi/sdk/resource'
8
+
9
+ require 'glpi/sdk/resources/profile'
10
+ require 'glpi/sdk/resources/ticket'
11
+ require 'glpi/sdk/resources/user'
12
+
13
+ module GLPI
14
+ module SDK
15
+ end
16
+ end
@@ -0,0 +1,66 @@
1
+ module GLPI
2
+ module SDK
3
+ module Error
4
+ ERRORS = {
5
+ 'ERROR_ITEM_NOT_FOUND' => 'ItemNotFoundError',
6
+ 'ERROR_BAD_ARRAY' => 'BadArrayError',
7
+ 'ERROR_METHOD_NOT_ALLOWED' => 'MethodNotAllowedError',
8
+ 'ERROR_RIGHT_MISSING' => 'RightMissingError',
9
+ 'ERROR_SESSION_TOKEN_INVALID' => 'SessionTokenInvalidError',
10
+ 'ERROR_SESSION_TOKEN_MISSING' => 'SessionTokenMissingError',
11
+ 'ERROR_APP_TOKEN_PARAMETERS_MISSING' => 'AppTokenParametersMissingError',
12
+ 'ERROR_NOT_DELETED' => 'NotDeletedError',
13
+ 'ERROR_NOT_ALLOWED_IP' => 'NotAllowedIPError',
14
+ 'ERROR_LOGIN_PARAMETERS_MISSING' => 'LoginParametersMissingError',
15
+ 'ERROR_LOGIN_WITH_CREDENTIALS_DISABLED' => 'LoginWithCredentialsDisabledError',
16
+ 'ERROR_GLPI_LOGIN_USER_TOKEN' => 'LoginUserTokenError',
17
+ 'ERROR_GLPI_LOGIN' => 'LoginError',
18
+ 'ERROR_ITEMTYPE_NOT_FOUND_NOR_COMMONDBTM' => 'ItemTypeNotFoundNorCommonDBTMError',
19
+ 'ERROR_SQL' => 'SQLError',
20
+ 'ERROR_RANGE_EXCEED_TOTAL' => 'RangeExceedTotalError',
21
+ 'ERROR_GLPI_ADD' => 'AddError',
22
+ 'ERROR_GLPI_PARTIAL_ADD' => 'PartialAddError',
23
+ 'ERROR_GLPI_UPDATE' => 'UpdateError',
24
+ 'ERROR_GLPI_PARTIAL_UPDATE' => 'PartialUpdateError',
25
+ 'ERROR_GLPI_DELETE' => 'DeleteError',
26
+ 'ERROR_GLPI_PARTIAL_DELETE' => 'PartialDeleteError'
27
+ }.freeze
28
+
29
+ class ItemNotFoundError < StandardError; end
30
+ class BadArrayError < StandardError; end
31
+ class MethodNotAllowedError < StandardError; end
32
+ class RightMissingError < StandardError; end
33
+ class SessionTokenInvalidError < StandardError; end
34
+ class SessionTokenMissingError < StandardError; end
35
+ class AppTokenParametersMissingError < StandardError; end
36
+ class NotDeletedError < StandardError; end
37
+ class NotAllowedIPError < StandardError; end
38
+ class LoginParametersMissingError < StandardError; end
39
+ class LoginWithCredentialsDisabledError < StandardError; end
40
+ class LoginUserTokenError < StandardError; end
41
+ class LoginError < StandardError; end
42
+ class ItemTypeNotFoundNorCommonDBTMError < StandardError; end
43
+ class SQLError < StandardError; end
44
+ class RangeExceedTotalError < StandardError; end
45
+ class AddError < StandardError; end
46
+ class PartialAddError < StandardError; end
47
+ class UpdateError < StandardError; end
48
+ class PartialUpdateError < StandardError; end
49
+ class DeleteError < StandardError; end
50
+ class PartialDeleteError < StandardError; end
51
+
52
+ def self.dispatch(type, message)
53
+ raise constantize(type), message
54
+ end
55
+
56
+ def self.constantize(type)
57
+ error_class = ERRORS[type]
58
+ error_class = error_class ? "#{self}::#{error_class}" : 'StandardError'
59
+
60
+ Object.const_get(error_class)
61
+ end
62
+
63
+ private_class_method :constantize
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,62 @@
1
+ module GLPI
2
+ module SDK
3
+ class Resource
4
+ def initialize(attributes = {})
5
+ @attributes = attributes
6
+ end
7
+
8
+ def self.create(session, attributes = {})
9
+ item_type = attributes.key?(:item_type) ? attributes.delete(:item_type) : type_name
10
+ payload = { input: attributes }.to_json
11
+ response = session.request :post, "/#{item_type}", body: payload
12
+ find(session, response['id'], item_type)
13
+ end
14
+
15
+ def self.update(session, id, attributes = {})
16
+ item_type = attributes.key?(:item_type) ? attributes.delete(:item_type) : type_name
17
+ payload = { input: attributes }.to_json
18
+ session.request :put, "/#{item_type}/#{id}", body: payload
19
+ find(session, id, item_type)
20
+ end
21
+
22
+ def self.destroy(session, id, item_type = nil)
23
+ item_type ||= type_name
24
+ payload = { force_purge: true }.to_json
25
+ response = session.request :delete, "/#{item_type}/#{id}", body: payload
26
+ response[0][id.to_s]
27
+ end
28
+
29
+ def self.find(session, id, item_type = nil)
30
+ item_type ||= type_name
31
+ response = session.request :get, "/#{item_type}/#{id}"
32
+ new(response)
33
+ end
34
+
35
+ def self.all(session, **params)
36
+ item_type = params.key?(:item_type) ? params.delete(:item_type) : type_name
37
+ endpoint = "/#{item_type}"
38
+ endpoint += "?#{HashConverter.to_query(params)}" if params
39
+ response = session.request :get, endpoint
40
+ response.map { |item| new(item) }
41
+ end
42
+
43
+ class << self
44
+ alias where all
45
+ end
46
+
47
+ def self.type_name
48
+ name.split('::').last
49
+ end
50
+
51
+ private
52
+
53
+ def method_missing(name, *args, &block)
54
+ @attributes.key?(name.to_s) ? @attributes[name.to_s] : super
55
+ end
56
+
57
+ def respond_to_missing?(name, include_private = false)
58
+ @attributes.key?(name.to_s)
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,6 @@
1
+ module GLPI
2
+ module SDK
3
+ class Profile < Resource
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module GLPI
2
+ module SDK
3
+ class Ticket < Resource
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module GLPI
2
+ module SDK
3
+ class User < Resource
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,67 @@
1
+ module GLPI
2
+ module SDK
3
+ class Session
4
+ include HTTParty
5
+
6
+ attr_accessor :token, :app_token
7
+
8
+ def initialize(url, app_token, username, password)
9
+ @url = url
10
+ @app_token = app_token
11
+ @auth = { username: username, password: password }
12
+
13
+ init
14
+ end
15
+
16
+ # Request a session token to uses other api endpoints
17
+ def init
18
+ response = request :get, '/initSession', basic_auth: @auth
19
+ self.token = response['session_token']
20
+ end
21
+
22
+ # Destroy a session identified by a session token.
23
+ def kill
24
+ request :get, '/killSession'
25
+ self.token = nil
26
+ end
27
+
28
+ # Return the current active profile
29
+ def active_profile
30
+ request :get, '/getActiveProfile'
31
+ end
32
+
33
+ # Return active entities of current logged user
34
+ def active_entities
35
+ request :get, '/getActiveEntities'
36
+ end
37
+
38
+ # Return the current php $_SESSION
39
+ def full_session
40
+ request :get, '/getFullSession'
41
+ end
42
+
43
+ # Return the current $CFG_GLPI
44
+ def glpi_config
45
+ request :get, '/getGlpiConfig'
46
+ end
47
+
48
+ def request(method, endpoint, options = {})
49
+ options[:base_uri] = @url
50
+
51
+ options[:headers] = options.fetch(:headers, {})
52
+ options[:headers]['Content-Type'] = 'application/json'
53
+ options[:headers]['App-Token'] = @app_token
54
+ options[:headers]['Session-Token'] = @token if @token
55
+
56
+ response = self.class.send(method, endpoint, options)
57
+
58
+ unless response.success?
59
+ type, message = response.parsed_response
60
+ Error.dispatch(type, message)
61
+ end
62
+
63
+ response.parsed_response
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,30 @@
1
+ module GLPI
2
+ module SDK
3
+ module HashConverter
4
+ def self.to_query(params)
5
+ URI.encode_www_form(encode(params))
6
+ end
7
+
8
+ def self.encode(value, key = nil, out_hash = {})
9
+ case value
10
+ when Hash then
11
+ value.each { |k, v| encode(v, append_key(key, k), out_hash) }
12
+ out_hash
13
+ when Array then
14
+ value.each { |v| encode(v, "#{key}[]", out_hash) }
15
+ out_hash
16
+ when nil then ''
17
+ else
18
+ out_hash[key] = value
19
+ out_hash
20
+ end
21
+ end
22
+
23
+ def self.append_key(root_key, key)
24
+ root_key.nil? ? :"#{key}" : :"#{root_key}[#{key.to_s}]"
25
+ end
26
+
27
+ private_class_method :append_key, :encode
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,5 @@
1
+ module GLPI
2
+ module SDK
3
+ VERSION = '0.0.2'.freeze
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: glpi-sdk-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Filipe Menezes
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: httparty
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: A Ruby library for the GLPI API
112
+ email:
113
+ - filipepmenezes@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - CODE_OF_CONDUCT.md
123
+ - Gemfile
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - glpi-sdk-ruby.gemspec
130
+ - lib/glpi/sdk.rb
131
+ - lib/glpi/sdk/error.rb
132
+ - lib/glpi/sdk/resource.rb
133
+ - lib/glpi/sdk/resources/profile.rb
134
+ - lib/glpi/sdk/resources/ticket.rb
135
+ - lib/glpi/sdk/resources/user.rb
136
+ - lib/glpi/sdk/session.rb
137
+ - lib/glpi/sdk/util/hash_converter.rb
138
+ - lib/glpi/sdk/version.rb
139
+ homepage: https://github.com/truly-systems/glpi-sdk-ruby
140
+ licenses:
141
+ - MIT
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ requirements: []
158
+ rubyforge_project:
159
+ rubygems_version: 2.6.13
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: GLPI SDK for Ruby
163
+ test_files: []