prototyper 1.1.1 → 1.1.2
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/prototyper.rb +1 -1
- data/lib/prototyper/version.rb +1 -1
- data/test/unit/prototyper.rb +6 -6
- 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: a1bbc6a771cdc05afb404dbbf1dbe3040ded9b9f
|
4
|
+
data.tar.gz: 6094ca0305c577e4ac4a9dac028e8c9ce63c382b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b458f357a32269b24874b7b18eaac679c6765b22f5230c5d663e3eaf11e357687dd0358e8e65d053990e3102d638f5757000bc04b18acdfc248dcc81efc090d3
|
7
|
+
data.tar.gz: 2cc5f08ba2a8d0ae60a1ae11342c3e9e29d381813f995c0abc0bd8332428fbd64feebf922f03b8f7129e5104b9885eb951a6c0405d7832871aca084bcf7c30a8
|
data/lib/prototyper.rb
CHANGED
@@ -6,7 +6,7 @@ module Prototyper
|
|
6
6
|
def generate(name, opts={ :type => "html" })
|
7
7
|
dir = FileUtils.mkdir(name)
|
8
8
|
new_dir = "#{Dir.pwd}/#{name}"
|
9
|
-
FileUtils.cp_r Dir["#{Dir.pwd}/lib/templates/#{opts[:type].to_s}/*"], new_dir, :preserve => true
|
9
|
+
FileUtils.cp_r Dir["#{Dir.pwd}/lib/templates/#{opts[:type].to_s}/*"], new_dir, :preserve => true
|
10
10
|
puts "done!"
|
11
11
|
end
|
12
12
|
|
data/lib/prototyper/version.rb
CHANGED
data/test/unit/prototyper.rb
CHANGED
@@ -16,12 +16,12 @@ class TestSinatraApp < MiniTest::Test
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_that_it_creates_a_project
|
19
|
-
assert Dir.
|
19
|
+
assert Dir.exist?("test_sinatra")
|
20
20
|
end
|
21
21
|
|
22
22
|
def test_that_it_creates_subdirs
|
23
|
-
assert Dir.
|
24
|
-
assert Dir.
|
23
|
+
assert Dir.exist?("test_sinatra/assets")
|
24
|
+
assert Dir.exist?("test_sinatra/views")
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_that_it_creates_a_sinatra_app
|
@@ -51,15 +51,15 @@ class TestHTMLApp < MiniTest::Test
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def teardown
|
54
|
-
|
54
|
+
FileUtils.rm_rf("test_html")
|
55
55
|
end
|
56
56
|
|
57
57
|
def test_that_it_creates_a_project
|
58
|
-
assert Dir.
|
58
|
+
assert Dir.exist?("test_html")
|
59
59
|
end
|
60
60
|
|
61
61
|
def test_that_it_creates_subdirs
|
62
|
-
assert Dir.
|
62
|
+
assert Dir.exist?("test_html/assets")
|
63
63
|
end
|
64
64
|
|
65
65
|
def test_that_it_creates_necessary_files
|