crafti 0.0.17 → 0.0.18
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 +4 -4
- data/lib/crafti/version.rb +1 -1
- data/lib/crafti.rb +2 -2
- data/test/crafti_test.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55ab38f0d6c653554b842a9ae431e51f9332c071
|
|
4
|
+
data.tar.gz: 8fa43234b6fdb59b2f1e0117ace82caaff4d20a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3766b4ddc43ec2315458c12c4cc282738a81d4848267d3fbf23132adfa15ec2029814c9035b863b98097d1dd05a244715c2987cf250f22dc0420018a17e465f9
|
|
7
|
+
data.tar.gz: af5793c9bc56eb7aae10baa25093be6a4aebb22109ede6a5a0a2c25f6168cb7dc3ccb2e291dcf75d2c5d9a7f07afd7191fac65132fe61dd0cb67f96c76c2358f
|
data/lib/crafti/version.rb
CHANGED
data/lib/crafti.rb
CHANGED
|
@@ -50,8 +50,8 @@ module Crafti
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
def copy(
|
|
54
|
-
::FileUtils.cp(list, app_path.join(
|
|
53
|
+
def copy(dest, list, options = {})
|
|
54
|
+
::FileUtils.cp(list, app_path.join(dest).to_s, options)
|
|
55
55
|
end
|
|
56
56
|
alias_method :cp, :copy
|
|
57
57
|
|
data/test/crafti_test.rb
CHANGED
|
@@ -73,7 +73,7 @@ module Crafti
|
|
|
73
73
|
def test_copying_files
|
|
74
74
|
::Crafti::Root.root("appname") do
|
|
75
75
|
mkdir "test"
|
|
76
|
-
copy Pathname.new(__dir__).join("test_helper.rb")
|
|
76
|
+
copy "test", Pathname.new(__dir__).join("test_helper.rb")
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
assert ::File.exists?("appname")
|
|
@@ -87,7 +87,7 @@ module Crafti
|
|
|
87
87
|
def test_chmod
|
|
88
88
|
::Crafti::Root.root("appname") do
|
|
89
89
|
mkdir "test"
|
|
90
|
-
copy ::Pathname.new(__dir__).join("test_helper.rb")
|
|
90
|
+
copy "test", ::Pathname.new(__dir__).join("test_helper.rb")
|
|
91
91
|
chmod 0777, "test/test_helper.rb"
|
|
92
92
|
end
|
|
93
93
|
|
|
@@ -106,7 +106,7 @@ module Crafti
|
|
|
106
106
|
def test_chmod_r
|
|
107
107
|
::Crafti::Root.root("appname") do
|
|
108
108
|
mkdir "test"
|
|
109
|
-
copy ::Pathname.new(__dir__).join("test_helper.rb")
|
|
109
|
+
copy "test", ::Pathname.new(__dir__).join("test_helper.rb")
|
|
110
110
|
chmod_r 0777, "test"
|
|
111
111
|
end
|
|
112
112
|
|
|
@@ -175,4 +175,4 @@ module Crafti
|
|
|
175
175
|
refute ::File.exists?("appname")
|
|
176
176
|
end
|
|
177
177
|
end
|
|
178
|
-
end
|
|
178
|
+
end
|