Commit 7ede1e96 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

Ajustamos dependencias

parent b4db9d35
example_id | status | run_time | example_id | status | run_time |
------------------------------------ | ------ | --------------- | ------------------------------------ | ------ | --------------- |
./spec/google-wedoops_spec.rb[1:1] | passed | 0.00104 seconds | ./spec/google-wedoops_spec.rb[1:1] | passed | 0.00118 seconds |
./spec/google-wedoops_spec.rb[1:2] | passed | 0.00114 seconds | ./spec/google-wedoops_spec.rb[1:2] | passed | 0.00102 seconds |
./spec/google-wedoops_spec.rb[1:3:1] | passed | 0.00059 seconds | ./spec/google-wedoops_spec.rb[1:3:1] | passed | 0.00062 seconds |
./spec/google-wedoops_spec.rb[1:3:2] | passed | 0.00014 seconds | ./spec/google-wedoops_spec.rb[1:3:2] | passed | 0.00006 seconds |
./spec/google-wedoops_spec.rb[1:4:1] | failed | 0.00007 seconds |
./spec/google-wedoops_spec.rb[1:4:2] | failed | 0.00009 seconds |
./spec/google-wedoops_spec.rb[1:4:3] | failed | 0.00007 seconds |
...@@ -12,3 +12,4 @@ gem 'http','~> 4.4.0' ...@@ -12,3 +12,4 @@ gem 'http','~> 4.4.0'
gem 'logger','~> 1.4.2' gem 'logger','~> 1.4.2'
gem 'google' gem 'google'
gem 'googleauth' gem 'googleauth'
gem 'google-api-client'
\ No newline at end of file
...@@ -3,6 +3,7 @@ PATH ...@@ -3,6 +3,7 @@ PATH
specs: specs:
google-wedoops (0.0.1b) google-wedoops (0.0.1b)
google google
google-api-client
googleauth googleauth
http (~> 4.4.0) http (~> 4.4.0)
logger (~> 1.4.2) logger (~> 1.4.2)
...@@ -12,6 +13,8 @@ GEM ...@@ -12,6 +13,8 @@ GEM
specs: specs:
addressable (2.7.0) addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 5.0)
declarative (0.0.10)
declarative-option (0.1.0)
diff-lcs (1.3) diff-lcs (1.3)
domain_name (0.5.20190701) domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0) unf (>= 0.0.5, < 1.0.0)
...@@ -28,6 +31,14 @@ GEM ...@@ -28,6 +31,14 @@ GEM
json (~> 1) json (~> 1)
ruby-readability (~> 0.5) ruby-readability (~> 0.5)
trollop (~> 1) trollop (~> 1)
google-api-client (0.38.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 0.9)
httpclient (>= 2.8.1, < 3.0)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
signet (~> 0.12)
googleauth (0.12.0) googleauth (0.12.0)
faraday (>= 0.17.3, < 2.0) faraday (>= 0.17.3, < 2.0)
jwt (>= 1.4, < 3.0) jwt (>= 1.4, < 3.0)
...@@ -50,6 +61,7 @@ GEM ...@@ -50,6 +61,7 @@ GEM
httparty (0.18.0) httparty (0.18.0)
mime-types (~> 3.0) mime-types (~> 3.0)
multi_xml (>= 0.5.2) multi_xml (>= 0.5.2)
httpclient (2.8.3)
json (1.8.6) json (1.8.6)
jwt (2.2.1) jwt (2.2.1)
logger (1.4.2) logger (1.4.2)
...@@ -57,6 +69,7 @@ GEM ...@@ -57,6 +69,7 @@ GEM
mime-types (3.3.1) mime-types (3.3.1)
mime-types-data (~> 3.2015) mime-types-data (~> 3.2015)
mime-types-data (3.2020.0425) mime-types-data (3.2020.0425)
mini_mime (1.0.2)
mini_portile2 (2.4.0) mini_portile2 (2.4.0)
multi_json (1.14.1) multi_json (1.14.1)
multi_xml (0.6.0) multi_xml (0.6.0)
...@@ -66,6 +79,11 @@ GEM ...@@ -66,6 +79,11 @@ GEM
os (1.1.0) os (1.1.0)
public_suffix (4.0.4) public_suffix (4.0.4)
rake (13.0.1) rake (13.0.1)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rspec (3.9.0) rspec (3.9.0)
rspec-core (~> 3.9.0) rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0) rspec-expectations (~> 3.9.0)
...@@ -88,6 +106,7 @@ GEM ...@@ -88,6 +106,7 @@ GEM
jwt (>= 1.5, < 3.0) jwt (>= 1.5, < 3.0)
multi_json (~> 1.10) multi_json (~> 1.10)
trollop (1.16.2) trollop (1.16.2)
uber (0.1.0)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.7.7) unf_ext (0.0.7.7)
...@@ -98,6 +117,7 @@ PLATFORMS ...@@ -98,6 +117,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
bundler (~> 2.1.4) bundler (~> 2.1.4)
google google
google-api-client
google-wedoops! google-wedoops!
googleauth googleauth
http (~> 4.4.0) http (~> 4.4.0)
......
...@@ -34,6 +34,7 @@ Gem::Specification.new do |spec| ...@@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'logger','~> 1.4.2' spec.add_dependency 'logger','~> 1.4.2'
spec.add_dependency 'google' spec.add_dependency 'google'
spec.add_dependency 'googleauth' spec.add_dependency 'googleauth'
spec.add_dependency 'google-api-client'
spec.add_development_dependency 'bundler', '~> 2.1.4' spec.add_development_dependency 'bundler', '~> 2.1.4'
......
#require 'google/apis/drive_v2'
require 'google/apis/drive_v2' require 'google/apis/drive_v2'
require 'pp' require 'pp'
module Wedoops module Wedoops
module Google module Google
class Drive class Drive
Drive = Google::Apis::DriveV2 # Alias the module Drive = ::Google::Apis::DriveV2 # Alias the module
def initialize(authorization) def initialize(authorization)
puts "Wedoops Drive" puts "Wedoops Drive"
......
...@@ -7,7 +7,7 @@ module Wedoops ...@@ -7,7 +7,7 @@ module Wedoops
module Google module Google
class Reseller class Reseller
Reseller = Google::Apis::ResellerV1 Reseller = ::Google::Apis::ResellerV1
def initialize(authorization) def initialize(authorization)
puts "Wedoops Reseller" puts "Wedoops Reseller"
......
...@@ -20,4 +20,20 @@ RSpec.describe Wedoops::Google do ...@@ -20,4 +20,20 @@ RSpec.describe Wedoops::Google do
end end
end end
describe 'Components' do
it 'El authenticator es un Wedoops::Google::Autenticator' do
expect(Wedoops::Google::Autenticator.new).to be_a_kind_of(Wedoops::Google::Autenticator)
end
it 'El Drive es un Wedoops::Google::Drive' do
expect(Wedoops::Google::Drive.new).to be_a_kind_of(Wedoops::Google::Drive)
end
it 'El Reseller es un Wedoops::Google::Reseller' do
expect(Wedoops::Google::Reseller.new).to be_a_kind_of(Wedoops::Google::Reseller)
end
end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment