ldap_cli 0.2.0 → 0.3.0

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: b22ffdc1aec4e62904e47fff2be7625c99b02ac99938d588027e34738a59ead8
4
- data.tar.gz: 89aaa80e800aca63a9be2197dc87375296abfdee1d47171585d5c2fb91d85daf
3
+ metadata.gz: d408335844e468e0b66c741e02c271c4ffdba5ee48798df5bf81d149c1e0d208
4
+ data.tar.gz: fa752dabfdf401b431d0adeccc33cd4f35e27d1ecb8ec651e316926c7cd3ac28
5
5
  SHA512:
6
- metadata.gz: a4d82df7d1cee5ce642bd977a72fa4b13104c6942f46aa0fdd906dbc59d7ef58798d1d1efdc5afa6f38a9cfd9cd4a759e5fa1998583657131b274f41fb9cba45
7
- data.tar.gz: a88af1c7136bca48ba23e59995f5449d55b54768cf3a09ba6367fb09fa3e9681b4d91eabc51f82ff830dbba654ce0317d87a2f9a5cb20d69634d34b9751295f5
6
+ metadata.gz: 433a7827f1abde4e7373a0f9d57658dcca8cc68fca0a0100196782731e25c61e571a8be6cd02eb66b069ba33a28ee9ecafeba82020b822606c4ab8e0f0681073
7
+ data.tar.gz: d9d35675993ef5b88493f2eca66e6f4e2717502595de09db07656919243e28ddb44158314c4899740fe25b6baed340c69a2e4b76dc364d28723f9058a4bbfc1f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ldap_cli (0.1.0)
4
+ ldap_cli (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Ldap Cli
2
+
3
+ Ldap::Cli is a Ruby util for reading/writing entries in an LDAP directory to/from CSV files.
4
+
1
5
  ## Installation
2
6
 
3
7
  Add this line to your application's Gemfile:
@@ -44,6 +44,8 @@ module Ldap
44
44
  @filter = args[:filter]
45
45
  add_header
46
46
  export_data
47
+ rescue StandardError => e
48
+ puts "ERROR: On LdapCli#export: #{e.message}"
47
49
  end
48
50
 
49
51
  private
@@ -84,6 +86,8 @@ module Ldap
84
86
  csv << headers.map { |x| entry.send(x).first }
85
87
  end
86
88
  end
89
+ rescue StandardError => e
90
+ puts "ERROR: on add entry to CSV from LDAP search: #{e.message}"
87
91
  end
88
92
 
89
93
  def save_record_log(ldap, row)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ldap
4
4
  class Cli
5
- VERSION = '0.2.0'.freeze
5
+ VERSION = '0.3.0'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldap_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naga Gangadhar