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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d22f93d08ccbd5c809862d7d53e3d29fa47279ab
4
- data.tar.gz: e9ed8eb6aa507c2c73ecb8cb76a4b3e31fc39319
3
+ metadata.gz: 55ab38f0d6c653554b842a9ae431e51f9332c071
4
+ data.tar.gz: 8fa43234b6fdb59b2f1e0117ace82caaff4d20a6
5
5
  SHA512:
6
- metadata.gz: 47962f267a96b7ddeeb66670af811ca118615fcb0532a654bd19161d36b97af591a015154fa8d2ebb3e5a8fd2be38ecd97816fa98c715d8c73f595c19dbfea15
7
- data.tar.gz: 7403ff5d6582a71d5c9950c678af1b581faef9d15bf1e59c77a8a81f3328e233b95669359ffa00baaa40aa032489e66d82fffe9f7e31ac4b419899b2cbcc44f1
6
+ metadata.gz: 3766b4ddc43ec2315458c12c4cc282738a81d4848267d3fbf23132adfa15ec2029814c9035b863b98097d1dd05a244715c2987cf250f22dc0420018a17e465f9
7
+ data.tar.gz: af5793c9bc56eb7aae10baa25093be6a4aebb22109ede6a5a0a2c25f6168cb7dc3ccb2e291dcf75d2c5d9a7f07afd7191fac65132fe61dd0cb67f96c76c2358f
@@ -1,7 +1,7 @@
1
1
  module Crafti
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- PATCH = 17
4
+ PATCH = 18
5
5
 
6
6
  def self.version
7
7
  [
data/lib/crafti.rb CHANGED
@@ -50,8 +50,8 @@ module Crafti
50
50
  end
51
51
  end
52
52
 
53
- def copy(list, dir, options = {})
54
- ::FileUtils.cp(list, app_path.join(dir).to_s, options)
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"), "test"
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"), "test"
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"), "test"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crafti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Evans