tesler 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -20,4 +20,5 @@ pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
22
  test/dest
23
+ example/dest
23
24
  *.gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/example/main.rb CHANGED
@@ -2,37 +2,34 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
 
3
3
  require 'tesler'
4
4
 
5
- # on supprime le repertoire de destination
5
+ # delete destination directory
6
6
  FileUtils.rm_r("dest") if File.exists?("dest")
7
7
 
8
8
  directory 'dest' do
9
9
 
10
- # copie de fichiers dans le dossier de destination
10
+ # copy files into the dest dir
11
11
  copy 'src\file1'
12
12
  copy 'src\file2'
13
13
  copy 'src\subdir1\file4'
14
14
 
15
- # creation d'un sous-dossier dans le dossier de destination
15
+ # create a sub-directory and copy files into it
16
16
  directory 'subdir1' do
17
17
  copy 'src\file3'
18
18
  copy 'src\subdir1\file5'
19
-
20
- # copie avec un chemin absolu
21
- copy 'c:\temp'
22
19
 
23
- # sous-dossier dans le sous-dossier
20
+ # a sub-directory in the sub-directory
24
21
  directory 'subdir3' do
25
22
  copy 'src\file8'
26
23
 
27
- # copie d'un fichier en le renommant
24
+ # copy a file and rename it
28
25
  copy 'src\file9', :rename => 'renamed'
29
26
  end
30
27
  end
31
28
 
32
- # copie d'un dossier entier
29
+ # copy an entire directory
33
30
  copy 'src\subdir2'
34
31
 
35
- # copie d'un dossier entier en le renommant
32
+ # copy an entire directory and rename it
36
33
  copy 'src\subdir2', :rename => 'renamed'
37
34
 
38
35
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tesler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rawane ZOSSOU
@@ -48,17 +48,6 @@ files:
48
48
  - README.md
49
49
  - Rakefile
50
50
  - VERSION
51
- - example/dest/file1
52
- - example/dest/file2
53
- - example/dest/file4
54
- - example/dest/renamed/file6
55
- - example/dest/renamed/file7
56
- - example/dest/subdir1/file3
57
- - example/dest/subdir1/file5
58
- - example/dest/subdir1/subdir3/file8
59
- - example/dest/subdir1/subdir3/renamed
60
- - example/dest/subdir2/file6
61
- - example/dest/subdir2/file7
62
51
  - example/main.rb
63
52
  - example/src/file1
64
53
  - example/src/file2
data/example/dest/file1 DELETED
File without changes
data/example/dest/file2 DELETED
File without changes
data/example/dest/file4 DELETED
File without changes
File without changes
@@ -1 +0,0 @@
1
- aaaaaaaaaaaaaa
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +0,0 @@
1
- aaaaaaaaaaaaaa