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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8af5b5b306b31cc8c543b0176bd88436ffed24eb
4
- data.tar.gz: b34ec9b9120a789d7670e96624f66c202b7835f3
3
+ metadata.gz: 06cdc15c566782df9f6baf8cdb9bc0c9707c3228
4
+ data.tar.gz: f2e384e82386ab36590b361ec6687cb9559ac1e8
5
5
  SHA512:
6
- metadata.gz: 489b186541cbe1c4c6b18c856cbd117cc4d3b77064a2f31e7cb15cf95b40abf7d0f7b9a3d4abeeb48a515feac2e2234d34a68fcf809ed43ae33b0d2ae8a4e85e
7
- data.tar.gz: a37325b0b3ff24d5edaa33cca6f3d1a7789bf51af5635ca62c91d1a0c93565ced413f0144372f021b10b69562bd14deac519731054e52971f74adefa7e5c9e27
6
+ metadata.gz: d0e2b403119fe9707bdd961d213f186813fda869e7a4865ec1726683c360252cd20696a64185643b1e57b785832341e952d1e1833b5366753fc2950c5a024bd3
7
+ data.tar.gz: 55052e057ea8e38e7f0deba1384a2d5960c87e40eb269dfd8a1f3529d1515c6982f0c6b034626317dae67d6d8c6bb6dde74e881efe3f0720aac01dd0a74202ff
@@ -1,3 +1,3 @@
1
1
  module Tamebou
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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
- @path = case template_path
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
- @template = template
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(@template))
68
+ erb = ::ERB.new(File.read(@template_pat))
69
69
  puts erb.result(binding)
70
70
  puts "============================================="
71
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tamebou
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - woshidan