file_distribution 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/file_distribution.rb +1 -3
  3. metadata +6 -26
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ data.tar.gz: e7259171f747c761e79f4e04877438ceb32bcefc34bd7959439f881217b7f6a15e1c5b172926f7c0365b06d622880614b53fd00bd7b17298356df6734bcd0b84
4
+ metadata.gz: d77dcd75cfb199ac1e1e6bf9b4f46389681fc853ab27076b5d0beeeb4cb443cdb666d0d61ebf72f177df39ff338c2ce7985a89419d7947f55b1c60534295a1d7
5
+ SHA1:
6
+ data.tar.gz: 800b6d7ecf62418a426111682e9a304284fc0e05
7
+ metadata.gz: d5b5cb72d357425952bf40930e5b76f633593f02
@@ -2,8 +2,6 @@
2
2
  # @author: Adam Kubica (caffecoder) <caffecoder@kaizen-step.com>
3
3
  #
4
4
 
5
- require 'ftools'
6
-
7
5
  #
8
6
  # Class for manage hashed file distribution.
9
7
  #
@@ -49,7 +47,7 @@ class FileDistribution
49
47
  # Raises a SystemCallError if the file cannot be renamed.
50
48
  def rename_from(path)
51
49
  dst_dir = File.dirname(@path)
52
- File.mkpath(dst_dir) unless File.exists?(dst_dir)
50
+ FileUtils.mkpath(dst_dir) unless File.exists?(dst_dir)
53
51
 
54
52
  File.rename(path,@path)
55
53
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_distribution
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
4
+ version: 0.1.1
11
5
  platform: ruby
12
6
  authors:
13
7
  - Adam Kubica
@@ -15,21 +9,15 @@ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
11
 
18
- date: 2013-04-28 00:00:00 Z
12
+ date: 2015-04-13 00:00:00 Z
19
13
  dependencies:
20
14
  - !ruby/object:Gem::Dependency
21
15
  name: rake
22
16
  prerelease: false
23
17
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
18
  requirements:
26
19
  - - ">="
27
20
  - !ruby/object:Gem::Version
28
- hash: 79
29
- segments:
30
- - 10
31
- - 0
32
- - 0
33
21
  version: 10.0.0
34
22
  type: :development
35
23
  version_requirements: *id001
@@ -49,37 +37,29 @@ files:
49
37
  homepage: http://github.org/caffecoder/fdist-ruby
50
38
  licenses:
51
39
  - MIT
40
+ metadata: {}
41
+
52
42
  post_install_message:
53
43
  rdoc_options: []
54
44
 
55
45
  require_paths:
56
46
  - lib
57
47
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
48
  requirements:
60
49
  - - ">="
61
50
  - !ruby/object:Gem::Version
62
- hash: 57
63
- segments:
64
- - 1
65
- - 8
66
- - 7
67
51
  version: 1.8.7
68
52
  required_rubygems_version: !ruby/object:Gem::Requirement
69
- none: false
70
53
  requirements:
71
54
  - - ">="
72
55
  - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
56
  version: "0"
77
57
  requirements: []
78
58
 
79
59
  rubyforge_project:
80
- rubygems_version: 1.8.25
60
+ rubygems_version: 2.0.15
81
61
  signing_key:
82
- specification_version: 3
62
+ specification_version: 4
83
63
  summary: Simple file distribution library.
84
64
  test_files:
85
65
  - test/test_file_distribution.rb