open_directory_utils 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c37dea537a3c3bc485752eda8c5ffc5ae651ba59abeb19ed797c9361337eca77
4
- data.tar.gz: 9acd8a277cd637a83fa5e2c378f58542b2ca8a64498ad80cabc2848ad1dddd47
3
+ metadata.gz: f89ec752b44434bacf48efcf1446327f5e6a6cc60ea03a765bb517132c7e1e10
4
+ data.tar.gz: 1ed7f7d3251df048455c7f5d0041aa032e6da99fc493c1925444765e845eb9bf
5
5
  SHA512:
6
- metadata.gz: a2e8b07003c61f730a5f1559737cfb7e20740694981ebba75afd3aadcb32973931e3b357705ee1b52c8cd0f0e32ac098ff335145bbf4639b2982c8b838edf628
7
- data.tar.gz: 153f9fc11e4951844fb27a20d462abb1035416cecec907a60573940fd43308d13d4a68e4c881276982ad47c4856167b9b3622be5d88f3d002b7fa6b8a39c6db2
6
+ metadata.gz: 5eaddadceb38877104e406edd5db58e945b6eda158ad680e4aec12864e0fcdd4be9884852dea5a80b2c8b85b5156790a5d53c8aa2661053b2118d10019e5f46f
7
+ data.tar.gz: e601168bc891ed5a9d1f3294acdf5d2c36800b943c7b5c062396b1f74838b089e52408203b8e1d693e27c50c99742d4d75b2950be2e5b62893b2cc2c75c89d7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- open_directory_utils (0.1.3)
4
+ open_directory_utils (0.1.5)
5
5
  net-ssh (~> 4.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,6 +7,7 @@ One can also build custom DSCL commands and send them to the server as needed to
7
7
 
8
8
  ## Change Log
9
9
 
10
+ * **v0.1.5** - 2018-06-14 - add version number to connection for easy checking
10
11
  * **v0.1.4** - 2018-06-13 - changed the return hash to {response: xxx, status: 'success'}
11
12
  * **v0.1.3** - 2018-06-13 - able to sync all fields in typcial OD
12
13
  - refactored results code (ssh_cmds have redacted passwords)
@@ -1,4 +1,5 @@
1
1
  require 'net/ssh'
2
+ require "open_directory_utils/version"
2
3
  require "open_directory_utils/commands_base"
3
4
  require "open_directory_utils/commands_user_attribs"
4
5
  # require "open_directory_utils/commands_user_attribs_ldap"
@@ -10,6 +11,7 @@ module OpenDirectoryUtils
10
11
 
11
12
  attr_reader :srv_info, :dir_info
12
13
 
14
+ include OpenDirectoryUtils::Version
13
15
  include OpenDirectoryUtils::CommandsBase
14
16
  include OpenDirectoryUtils::CommandsUserAttribs
15
17
  # include OpenDirectoryUtils::CommandsUserAttribsLdap
@@ -38,6 +40,10 @@ module OpenDirectoryUtils
38
40
  srv_info[:username].empty?
39
41
  end
40
42
 
43
+ def version
44
+ VERSION
45
+ end
46
+
41
47
  # after configuring a connection with .new - send commands via ssh to open directory
42
48
  # @command [Symbol] - required -- to choose the action wanted
43
49
  # @params [Hash] - required -- necessary information to accomplish action
@@ -1,5 +1,5 @@
1
1
  module OpenDirectoryUtils
2
2
  module Version
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_directory_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
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: net-ssh