tamebou 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3873b3723deba16fbcb6242efec7a792aadcbc7
4
- data.tar.gz: edf0c98f29f0510097c7c3d8d90ccccffdbb97f3
3
+ metadata.gz: 6cdb56ad5fbd46ce7bd91b2ca9a2d56ada5dbdec
4
+ data.tar.gz: 5b5f33e3dc4a952364b6a0e2e49fb5b91b603692
5
5
  SHA512:
6
- metadata.gz: 1a52b0efc447a52b0ccf0d5e25b92000a0865de05c940fb897d49db429135e62109813580ec56e330b2496f5203636cbbb787709e32e21ae0189603f295e6415
7
- data.tar.gz: d2aaa41e45e4650a00bf72d86e1a45f10f508ccc6f83fc8b8514318ef6265a6c7ca400ee659a3f3c96ef02ddfe654f07d5dbe377ca24edda0209452887753158
6
+ metadata.gz: f07347a5aeff0edc8db70de5addaa065a2ad1538d320ab4904f990c78b0ff10f1c2adeb3583f7226238fb450c5b3b8597a2acd2bae579a89200a78d79b286031
7
+ data.tar.gz: e5809d9339b8d8900e24aa7e4e9365e7a14da920cb2fffd57c0620c364e7bc5bad2fb41a54d8966a88a6f6849aa50b23941d3659578571affb3f39df4a592021
@@ -1,3 +1,3 @@
1
1
  module Tamebou
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module Tamebou
2
2
  class Writer
3
- def initialize(path, template='./templates/minitest.txt.erb', is_warning_parse_failure=false)
3
+ def initialize(path, template='../templates/minitest.txt.erb', is_warning_parse_failure=false)
4
4
  @path = path
5
5
  @is_warning_parse_failure = is_warning_parse_failure
6
6
  @template = template
@@ -23,7 +23,7 @@ module Tamebou
23
23
  unless parse_result[:options].is_a? Hash
24
24
  warning_parse_options_failure parse_result if @is_warning_parse_failure
25
25
  @option_name = "unknown"
26
- @helper = Module.const_get("Base").send(:new, {})
26
+ @helper = Module.const_get("Tamebou::Helpers::Base").send(:new, {})
27
27
  print_test_code
28
28
  next
29
29
  end
@@ -32,10 +32,10 @@ module Tamebou
32
32
  @option_name = option_name
33
33
  helper_class_name = option_name.capitalize
34
34
  @helper = begin
35
- Module.const_get(helper_class_name).send(:new, option_value)
35
+ Module.const_get("Tamebou::Helpers::#{helper_class_name}").send(:new, option_value)
36
36
  rescue NoMethodError, NameError => e
37
37
  warning_not_found_helper if @is_warning_parse_failure
38
- Module.const_get("Base").send(:new, option_value)
38
+ Module.const_get("Tamebou::Helpers::").send(:new, option_value)
39
39
  end
40
40
  print_test_code
41
41
  end
data/tamebou-0.0.1.gem ADDED
Binary file
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - woshidan
@@ -82,7 +82,7 @@ files:
82
82
  - lib/tamebou/writer.rb
83
83
  - lib/templates/minitest.txt.erb
84
84
  - lib/templates/rspec.txt.erb
85
- - tamebou-0.1.0.gem
85
+ - tamebou-0.0.1.gem
86
86
  - tamebou.gemspec
87
87
  homepage: https://github.com/woshidan/tamebou
88
88
  licenses:
data/tamebou-0.1.0.gem DELETED
Binary file