prototyper 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82a68873cf85a62964afd320e25b4d62cee0cc96
4
- data.tar.gz: bd34b59b659568b6b3cf8a5dd2533070f4c6fad4
3
+ metadata.gz: a1bbc6a771cdc05afb404dbbf1dbe3040ded9b9f
4
+ data.tar.gz: 6094ca0305c577e4ac4a9dac028e8c9ce63c382b
5
5
  SHA512:
6
- metadata.gz: 6135bbbbb27f38513a170e22294c7a8ace2f21ab73d0ab7a05297b30f891ee51afeb9ed1bba524889c488996b4ce35bcf153685196e3395e64f6102605063fb2
7
- data.tar.gz: b803b5b345473727db85a3bb93c863c819ee449812836ab414bfb7f409b06f5681e6cd4a30730efe0c2431ad658c8081e85e12c59c30dc18c88586e199b0d651
6
+ metadata.gz: b458f357a32269b24874b7b18eaac679c6765b22f5230c5d663e3eaf11e357687dd0358e8e65d053990e3102d638f5757000bc04b18acdfc248dcc81efc090d3
7
+ data.tar.gz: 2cc5f08ba2a8d0ae60a1ae11342c3e9e29d381813f995c0abc0bd8332428fbd64feebf922f03b8f7129e5104b9885eb951a6c0405d7832871aca084bcf7c30a8
@@ -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, :verbose => 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
 
@@ -1,3 +1,3 @@
1
1
  module Prototyper
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -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.exists?("test_sinatra")
19
+ assert Dir.exist?("test_sinatra")
20
20
  end
21
21
 
22
22
  def test_that_it_creates_subdirs
23
- assert Dir.exists?("test_sinatra/assets")
24
- assert Dir.exists?("test_sinatra/views")
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
- # FileUtils.rm_rf("test_html")
54
+ FileUtils.rm_rf("test_html")
55
55
  end
56
56
 
57
57
  def test_that_it_creates_a_project
58
- assert Dir.exists?("test_html")
58
+ assert Dir.exist?("test_html")
59
59
  end
60
60
 
61
61
  def test_that_it_creates_subdirs
62
- assert Dir.exists?("test_html/assets")
62
+ assert Dir.exist?("test_html/assets")
63
63
  end
64
64
 
65
65
  def test_that_it_creates_necessary_files
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prototyper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Vingiano