google_directory 0.2.1 → 0.2.2

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: af0f64951d31c627a0b44faadf1ceda3bde2308239aa2415fe9412797969de13
4
- data.tar.gz: cced9b505a5c5c4e977eb5010e3acd2f64ceb3bdebbafdfc3be4ddbcbcec908c
3
+ metadata.gz: 9818097fe34668cd39dc6ef720cf127ba5fbc2538bf89ee72ce9f65f585ed0f7
4
+ data.tar.gz: 12a8026b64acb4d5f30416bb4904f89f5463ce1b880663e725e946f4bb20c2f0
5
5
  SHA512:
6
- metadata.gz: a54f6af95e42fa2fc08cef6fd87a4d9c6a4f10644163bacf3f67e92cd87ebc674963280050c57da6c5614a9e52f3b9c374d28ccd3161460657a5c3ce0404755a
7
- data.tar.gz: '001096745cae6ec49dcee64c36b32ad06822fb70735076df3e27597203420351e606815691cb5ddfca7d521194b99ab7b6d5442345ce3476351ad87c319601ad'
6
+ metadata.gz: 13c4dd4666a71ad46397c6c298f6ee7d3db374b0bac46d83bb6de540f20dae966e1098b3a0b78474bfaa889ece9ca0fc2c99e7417267523d052f3f45a96e9633
7
+ data.tar.gz: ebfa0eae70d15e7de9fa9c6ca89148824f8052d7bce27d368dc66852fd9c62450948c4f4cb2df9c656339d82f76e89d5a7bc6ef5e437c22cc52eac7b21af9ae3
@@ -1,9 +1,9 @@
1
1
  require 'google/apis/admin_directory_v1'
2
2
  require 'googleauth'
3
3
  require 'googleauth/stores/file_token_store'
4
-
5
4
  require 'fileutils'
6
5
 
6
+ require "google_directory/version"
7
7
  require "google_directory/user_commands"
8
8
 
9
9
  module GoogleDirectory
@@ -15,6 +15,7 @@ module GoogleDirectory
15
15
  # @note You can also use environment variables to override google defaults as wanted.
16
16
  class Connection
17
17
 
18
+ include GoogleDirectory::Version
18
19
  include GoogleDirectory::UserCommands
19
20
 
20
21
  # default settings from google for all users
@@ -44,6 +45,10 @@ module GoogleDirectory
44
45
  @service.authorization = authorize
45
46
  end
46
47
 
48
+ def version
49
+ VERSION
50
+ end
51
+
47
52
  # @note Run a command against Google Directory
48
53
  #
49
54
  # @param command [Symbol] choose command to perform these include: :user_get, :user_exists? (t/f), :user_create, :user_delete, :user_update & convience commands :user_suspend, :user_reactivate, :user_change_password
@@ -1,5 +1,5 @@
1
1
  module GoogleDirectory
2
2
  module Version
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_directory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Tihen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-13 00:00:00.000000000 Z
12
+ date: 2018-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-api-client