bootic_client 0.0.28 → 0.0.29

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: c48f813ec5b06db70c2dc8c41e926d73ea22dc26f044727c14c0e1888832dab6
4
- data.tar.gz: 6962084f2c798f2895ca3123ad8815ea722671564d09039dbf32bc85200063dd
3
+ metadata.gz: ae24e3741f7d01f738c18dd5cf46d8de303e40bf10c6d8b7be7c511b8bbef8d6
4
+ data.tar.gz: 7a1d8b7c341e89bb65d416748d5c786bc3e664fe0c2bb403595f7f1a2895c0fe
5
5
  SHA512:
6
- metadata.gz: d17691f68ff12731130e000ed699012a8daf5fb9e92868769d2e9a62fd244329257105881ee60b5d5143a42e6a3b2ca6d139e74d0bec8f313744f4d28e35cc74
7
- data.tar.gz: f73e247244aca1c9f88543dfb7a3ace4c61425fa60629221ecf183bdd07dfa927b540cbec64a75f2c0e9d915b4a1f999200e34dff5598c995b78ed7445b063e4
6
+ metadata.gz: c99198aa00ac502e646d221a4d2b60414fb547b8e4cbf3adaff0be18aa764075f08494efd68713bd47f349dc15dab37b7308b8c220c11343a0124346f821bc94
7
+ data.tar.gz: c254f93d50e7a023d04967c40708933ed8b32585f46da52dd9a7f3096d677296171eb0bca930caf4966597ea427ef2ac06c201ce48be07081946e9700dc17600
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "net-http-persistent", '~> 3.0'
24
24
  spec.add_dependency "oauth2", "~> 1.4"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.3"
27
26
  spec.add_development_dependency "rake"
28
27
  spec.add_development_dependency "rspec", "3.5.0"
29
28
  spec.add_development_dependency "jwt", "~> 1.5"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'base64'
2
4
  require 'faraday'
3
5
  require 'faraday-http-cache'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bootic_client/response_handlers'
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bootic_client/relation"
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BooticClient
2
4
  class TransportError < StandardError; end
3
5
  class ServerError < TransportError; end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bootic_client/whiny_uri"
2
4
  require "bootic_client/entity"
3
5
  require 'ostruct'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'json'
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bootic_client/strategies/oauth2_strategy'
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bootic_client/strategies/strategy'
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bootic_client/strategies/strategy'
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bootic_client/strategies/oauth2_strategy'
2
4
 
3
5
  module BooticClient
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'oauth2'
2
4
  require 'bootic_client/strategies/strategy'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BooticClient
2
4
  module Strategies
3
5
  class Strategy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module BooticClient
2
- VERSION = "0.0.28".freeze
4
+ VERSION = "0.0.29".freeze
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'uri_template'
2
4
 
3
5
  module BooticClient
@@ -35,7 +37,7 @@ module BooticClient
35
37
  def path_variables
36
38
  @path_variables ||= (
37
39
  variables.find_all{ |v|
38
- Regexp.new("(\/\{#{v}\})|(\{\/#{v}\})") =~ href
40
+ !!(href["{#{v}}"]) || !!(href["{/#{v}}"])
39
41
  }
40
42
  )
41
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootic_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-07 00:00:00.000000000 Z
11
+ date: 2020-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.4'
83
- - !ruby/object:Gem::Dependency
84
- name: bundler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.3'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.3'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -218,8 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
204
  - !ruby/object:Gem::Version
219
205
  version: '0'
220
206
  requirements: []
221
- rubyforge_project:
222
- rubygems_version: 2.7.3
207
+ rubygems_version: 3.1.2
223
208
  signing_key:
224
209
  specification_version: 4
225
210
  summary: Official Ruby client for the Bootic API