google-simple-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module GoogleSimpleClient
|
|
21
21
|
init_file_options = read_options_from_init_file
|
22
22
|
@options.merge!(init_file_options)
|
23
23
|
@options.merge!(options)
|
24
|
-
@verbose = options.delete(:verbose)
|
24
|
+
@verbose = @options.delete(:verbose)
|
25
25
|
raise Error.new("Missing option error #{@options.inspect}") unless @options.values.all?
|
26
26
|
end
|
27
27
|
|
@@ -30,6 +30,18 @@ module GoogleSimpleClient
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
describe 'with option :vebose = nil' do
|
34
|
+
it 'is properly initialized' do
|
35
|
+
session = Session.new({
|
36
|
+
client_id: 'cid',
|
37
|
+
client_secret: 'secret',
|
38
|
+
email: 'email',
|
39
|
+
password: 'password',
|
40
|
+
verbose: nil
|
41
|
+
})
|
42
|
+
session.should be
|
43
|
+
end
|
44
|
+
end
|
33
45
|
describe 'with options in init file' do
|
34
46
|
before do
|
35
47
|
File.open('.google-simple-client', 'w') do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-simple-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-08-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mechanize
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153491420 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153491420
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: google-api-client
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153491000 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153491000
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153490320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153490320
|
47
47
|
description: ! "Simplifies the usage of google-api-client and\n provides
|
48
48
|
a command line tool for finding and\n getting documents
|
49
49
|
from Google Drive."
|