tamebou 0.0.3 → 0.0.4
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/tamebou/version.rb +1 -1
- data/lib/tamebou/writer.rb +3 -3
- 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: 06cdc15c566782df9f6baf8cdb9bc0c9707c3228
|
|
4
|
+
data.tar.gz: f2e384e82386ab36590b361ec6687cb9559ac1e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0e2b403119fe9707bdd961d213f186813fda869e7a4865ec1726683c360252cd20696a64185643b1e57b785832341e952d1e1833b5366753fc2950c5a024bd3
|
|
7
|
+
data.tar.gz: 55052e057ea8e38e7f0deba1384a2d5960c87e40eb269dfd8a1f3529d1515c6982f0c6b034626317dae67d6d8c6bb6dde74e881efe3f0720aac01dd0a74202ff
|
data/lib/tamebou/version.rb
CHANGED
data/lib/tamebou/writer.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Tamebou
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def initialize(path, template_path=DefaultTemplate::MINITEST, is_warning_parse_failure=false)
|
|
9
|
-
@
|
|
9
|
+
@template_path = case template_path
|
|
10
10
|
when DefaultTemplate::MINITEST
|
|
11
11
|
File.join(File.dirname(__FILE__), '../templates/minitest.txt.erb')
|
|
12
12
|
when DefaultTemplate::RSPEC
|
|
@@ -15,7 +15,7 @@ module Tamebou
|
|
|
15
15
|
template_path
|
|
16
16
|
end
|
|
17
17
|
@is_warning_parse_failure = is_warning_parse_failure
|
|
18
|
-
@
|
|
18
|
+
@path = path
|
|
19
19
|
set_model_name
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -65,7 +65,7 @@ module Tamebou
|
|
|
65
65
|
|
|
66
66
|
def print_test_code
|
|
67
67
|
puts "============================================="
|
|
68
|
-
erb = ::ERB.new(File.read(@
|
|
68
|
+
erb = ::ERB.new(File.read(@template_pat))
|
|
69
69
|
puts erb.result(binding)
|
|
70
70
|
puts "============================================="
|
|
71
71
|
end
|