openlab_ruby 0.0.5 → 0.0.8

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: d61e1594b769bbf0a623cdceb44a4578453f8f1e9a0baab1cc10991760337896
4
- data.tar.gz: 53d6c3999cf4e70b833efcb47e5b4a73b1df822446ce0f5f0ccf77f4f47b230e
3
+ metadata.gz: 0e9865d113ea6876fb9adaa7a2d756b317bd09ad926bf41f3528c1623c8be7b8
4
+ data.tar.gz: c9b2993dffd37fd8b14de58288d8dc7f5b8282c75d053895f04f05bce62e5958
5
5
  SHA512:
6
- metadata.gz: 39721a80b79c4197bd29ef757208bf869ef0d3720c105237834e96db54207e2c3ec0e45e1fb14280d434ac284e5133a54f898ac2d0c41b4d48625a538e8708a7
7
- data.tar.gz: 3fd2b3039f275325c9e17ff5e106ae711d7a3b66fac17c312e8611f7c3c5fc28c083869735b71a565a32b5c70ea4164fe6318bfad2580deede86390d0036696f
6
+ metadata.gz: 0543e3fafc0f55dd47d4e43ca7ef04065657af37096b159bf7fd5ce88aebdc2091db573c63f3ef426b3a87e98d66b5114a2a504d4ff5beefe8f872df03093d5f
7
+ data.tar.gz: 6908309d74c123752e92233db76e9a176aa40f4a5eead40c13239d5ccf0ef0cb79017bb14447469bdcc2ca7a2f8e7eea43a3f2a6c6bac49a6290242b5cc5aff1
@@ -3,16 +3,17 @@ require 'httparty'
3
3
  module Openlab
4
4
  class Client
5
5
  include HTTParty
6
- default_timeout 5
6
+ default_timeout 10
7
7
  attr_reader :app_secret
8
8
  format :json
9
9
 
10
10
  def initialize(app_secret: nil)
11
11
  @app_secret = app_secret || Openlab.config.app_secret
12
- app_secret = @app_secret
13
12
 
13
+ self.class.default_options[:verify] = Openlab.config.httparty_verify
14
+ self.class.default_options[:verify_peer] = Openlab.config.httparty_verify_peer
14
15
  self.class.base_uri Openlab.config.base_uri
15
- self.class.headers 'Accept' => 'application/json', 'Authorization' => "Token token=#{app_secret}"
16
+ self.class.headers 'Accept' => 'application/json', 'Authorization' => "Token token=#{@app_secret}"
16
17
  end
17
18
 
18
19
  def projects
@@ -1,3 +1,3 @@
1
1
  module Openlab
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/openlab_ruby.rb CHANGED
@@ -16,12 +16,14 @@ module Openlab
16
16
  end
17
17
 
18
18
  class Config
19
- attr_accessor :app_secret, :base_uri
19
+ attr_accessor :app_secret, :base_uri, :httparty_verify, :httparty_verify_peer
20
20
  attr_reader :api_version_path
21
21
 
22
22
  def initialize
23
23
  @base_uri = 'https://openprojects.fab-manager.com'
24
24
  @api_version_path = '/api/v1'
25
+ @httparty_verify = true
26
+ @httparty_verify_peer = true
25
27
  end
26
28
  end
27
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openlab_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Florentin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-06 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.13'
19
+ version: '0.22'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.13'
26
+ version: '0.22'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5'
33
+ version: '6'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5'
40
+ version: '6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5'
47
+ version: '6'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5'
54
+ version: '6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -137,45 +137,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.0.8
140
+ rubygems_version: 3.4.22
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Openlab is an api wrapper for Openlab api
144
144
  test_files:
145
- - test/openlab_ruby_test.rb
146
- - test/dummy/config.ru
147
- - test/dummy/log/test.log
145
+ - test/dummy/README.rdoc
146
+ - test/dummy/Rakefile
147
+ - test/dummy/app/assets/config/manifest.js
148
+ - test/dummy/app/assets/javascripts/application.js
149
+ - test/dummy/app/assets/stylesheets/application.css
150
+ - test/dummy/app/controllers/application_controller.rb
151
+ - test/dummy/app/helpers/application_helper.rb
152
+ - test/dummy/app/views/layouts/application.html.erb
148
153
  - test/dummy/bin/bundle
149
- - test/dummy/bin/setup
150
154
  - test/dummy/bin/rails
151
155
  - test/dummy/bin/rake
152
- - test/dummy/public/404.html
153
- - test/dummy/public/500.html
154
- - test/dummy/public/favicon.ico
155
- - test/dummy/public/422.html
156
- - test/dummy/app/helpers/application_helper.rb
157
- - test/dummy/app/assets/stylesheets/application.css
158
- - test/dummy/app/assets/javascripts/application.js
159
- - test/dummy/app/assets/config/manifest.js
160
- - test/dummy/app/views/layouts/application.html.erb
161
- - test/dummy/app/controllers/application_controller.rb
162
- - test/dummy/Rakefile
163
- - test/dummy/README.rdoc
164
- - test/dummy/config/environment.rb
156
+ - test/dummy/bin/setup
157
+ - test/dummy/config/application.rb
165
158
  - test/dummy/config/boot.rb
166
- - test/dummy/config/locales/en.yml
159
+ - test/dummy/config/environment.rb
167
160
  - test/dummy/config/environments/development.rb
168
161
  - test/dummy/config/environments/production.rb
169
162
  - test/dummy/config/environments/test.rb
170
- - test/dummy/config/application.rb
163
+ - test/dummy/config/initializers/assets.rb
171
164
  - test/dummy/config/initializers/backtrace_silencers.rb
172
- - test/dummy/config/initializers/session_store.rb
173
- - test/dummy/config/initializers/filter_parameter_logging.rb
174
165
  - test/dummy/config/initializers/cookies_serializer.rb
175
- - test/dummy/config/initializers/mime_types.rb
166
+ - test/dummy/config/initializers/filter_parameter_logging.rb
176
167
  - test/dummy/config/initializers/inflections.rb
177
- - test/dummy/config/initializers/assets.rb
168
+ - test/dummy/config/initializers/mime_types.rb
169
+ - test/dummy/config/initializers/session_store.rb
178
170
  - test/dummy/config/initializers/wrap_parameters.rb
179
- - test/dummy/config/secrets.yml
171
+ - test/dummy/config/locales/en.yml
180
172
  - test/dummy/config/routes.rb
173
+ - test/dummy/config/secrets.yml
174
+ - test/dummy/config.ru
175
+ - test/dummy/log/test.log
176
+ - test/dummy/public/404.html
177
+ - test/dummy/public/422.html
178
+ - test/dummy/public/500.html
179
+ - test/dummy/public/favicon.ico
180
+ - test/openlab_ruby_test.rb
181
181
  - test/test_helper.rb