skylark 0.0.0.alpha.1 → 0.0.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
  SHA1:
3
- metadata.gz: 2007b306b6bc887c49ad3b05960be25c59673bbd
4
- data.tar.gz: d15341bea8daadd4f5e8e082217422aaf02ff4b1
3
+ metadata.gz: 4b28f5eb4fcaa47c79ca72f7589353bd1858b26c
4
+ data.tar.gz: 5a61bb683d57d22026b132db68dbabaa8a970ba8
5
5
  SHA512:
6
- metadata.gz: 50fec2e688e70b4a9674c2e0d0a9c7a9fc48cb9e20523ea102d947baaec9d4d2c15f61e444b3a14064c5e61a9917356bdd8fda5c12b41399cea8b36fe4d20c1d
7
- data.tar.gz: aabf2f7b2569d47239de8596867aed9e4556b44018a245866a32f4f83a992bf9c3cc57d0c4f86fd0de1e36d40081be605c96005c92579d3303882bc2a8b09e4c
6
+ metadata.gz: 8e455b755eff4f3d6f95029d5e0399e72a452f1e919d74daba4b767aeade33a730973a3b22101461c6a6f337ab7ab6314c6bbcd498b0e4305df96b8a09429118
7
+ data.tar.gz: 76ef32884d68736bfd1faff5f1cf9abbdaf0e3a5cad2fd7ba68d89742c98eea6bb2d4ebd6047ec2cba5fbca82c6fedd31fdf2aff48a0aa5fcfbac31b9f6db383
data/lib/skylark/cli.rb CHANGED
@@ -21,7 +21,7 @@ module Skylark
21
21
 
22
22
  if spec_configuration['searches'].is_a? Array
23
23
  spec_configuration['searches'].each do |search|
24
- dump_root_directory = File.join(ROOT_DIRECTORY, 'data', spec_configuration['server']['host'])
24
+ dump_root_directory = File.join(File.dirname(spec_file), search['dump_directory'])
25
25
 
26
26
  auth = {method: :simple, username: spec_configuration['server']['auth']['username'], password: spec_configuration['server']['auth']['password']}
27
27
  encryption = {method: :simple_tls, tls_options: {verify_mode: OpenSSL::SSL::VERIFY_NONE}}
@@ -60,7 +60,8 @@ module Skylark
60
60
  filename = File.join(dump_directory, "#{entry[:cn].first || ('_OU=' + entry[:ou].first if !entry[:ou].empty?) || ('_' + entry[:dn].first if !entry[:dn].empty?)}.json")
61
61
 
62
62
  open(filename, 'wb') do |io|
63
- io.write JSON.pretty_generate(hash) + '\n'
63
+ io.write JSON.pretty_generate(hash)
64
+ io.write '\n'
64
65
  end
65
66
  end
66
67
  end
@@ -21,6 +21,6 @@ module Skylark
21
21
  end
22
22
  end
23
23
 
24
- VERSION = Version.new(0, 0, 0, 'alpha.1')
24
+ VERSION = Version.new(0, 0, 0)
25
25
 
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.alpha.1
4
+ version: 0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristofer Rye
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '2.5'
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - ">"
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: 1.3.1
127
+ version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 2.4.5