mdt-simple 0.0.2 → 0.0.3

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: 41b88495aecceaf3a5334df32a298778dd6527ee8e6d5ef58fa32d0d08645c45
4
- data.tar.gz: 4a48b16f4ca9d5a748af2c22e8db85d508f15606839b0c58194ffee81d4ca03d
3
+ metadata.gz: 3303bbb151a1826b3e512f2de137d5d79ddb06136baff9873c8759b8add33984
4
+ data.tar.gz: 9fec4b1e92798c8f72f963a090b6ca5bfc4e56b500170ccdd7559dad4d62d949
5
5
  SHA512:
6
- metadata.gz: 0d0aea7c06733163966c5c9e6e40b1d64feff2f27a319248433d89cea7fd5d6223c68606cef3641ac4f2cdf2492e3a595768533875bce02c5b9dbff3f3983ad1
7
- data.tar.gz: 2cb4eef4c55d32a8df15cb0ff9422234b3dc96dbd5baeab5e98410822e9532e308a35fdcd94177575cce7c2500c9ac1500ceb8d6785dcd279cf6bbbfeba0347f
6
+ metadata.gz: a9fff36472bb89cee0f9834b7b628740c085da85160b0a7df4903d4539f176a8164e4e6139530a6d32f0efed6e9623ff67d46a66c0c3c859e438e10f99cef897
7
+ data.tar.gz: 49d97dd421e578ee56fff351c6919a0ad76eb43814975b988478e156144a4a6a5b10862355e79f89cb4ac70044dfc76f9328e831147de4cef63b5d70688ee56c
@@ -54,10 +54,10 @@ module MDT
54
54
  begin
55
55
  if options['parents']
56
56
  puts "Creating directory with parents: #{options['path']}"
57
- FileUtils.mkdir_p(Dir[options['path']].first)
57
+ FileUtils.mkdir_p(options['path'])
58
58
  else
59
59
  puts "Creating directory: #{options['path']}"
60
- FileUtils.mkdir(Dir[options['path']].first)
60
+ FileUtils.mkdir(options['path'])
61
61
  end
62
62
  0
63
63
  rescue
@@ -134,16 +134,16 @@ module MDT
134
134
  begin
135
135
  if options['symbolic'] && options['force']
136
136
  puts "Creating a symbolic link with force to: #{options['destination_path']} named: #{options['link_name']}"
137
- FileUtils.ln_sf(Dir[options['destination_path']].first, Dir[options['link_name']].first)
137
+ FileUtils.ln_sf(Dir[options['destination_path']], Dir[options['link_name']].first)
138
138
  elsif options['symbolic']
139
139
  puts "Creating a symbolic link to: #{options['destination_path']} named: #{options['link_name']}"
140
- FileUtils.ln_s(Dir[options['destination_path']].first, Dir[options['link_name']].first)
140
+ FileUtils.ln_s(Dir[options['destination_path']], Dir[options['link_name']].first)
141
141
  elsif options['force']
142
142
  puts "Creating a link with force to: #{options['destination_path']} named: #{options['link_name']}"
143
- FileUtils.ln_f(Dir[options['destination_path']].first, Dir[options['link_name']].first)
143
+ FileUtils.ln_f(Dir[options['destination_path']], Dir[options['link_name']].first)
144
144
  else
145
145
  puts "Creating a link to: #{options['destination_path']} named: #{options['link_name']}"
146
- FileUtils.ln(Dir[options['destination_path']].first, Dir[options['link_name']].first)
146
+ FileUtils.ln(Dir[options['destination_path']], Dir[options['link_name']].first)
147
147
  end
148
148
  0
149
149
  rescue
@@ -33,7 +33,7 @@ module MDT
33
33
  if options['path']
34
34
  begin
35
35
  puts "Creating directory: #{options['path']}"
36
- FileUtils.mkdir_p(Dir[options['path']].first)
36
+ FileUtils.mkdir_p(options['path'])
37
37
  0
38
38
  rescue
39
39
  1
@@ -3,6 +3,6 @@ module MDT
3
3
  # A module referring specifically to mdt-simple
4
4
  module Simple
5
5
  # mdt-simple gem version
6
- VERSION = '0.0.2'
6
+ VERSION = '0.0.3'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdt-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phitherek_