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 +4 -4
- data/lib/tamebou/version.rb +1 -1
- data/lib/tamebou/writer.rb +4 -4
- data/tamebou-0.0.1.gem +0 -0
- metadata +2 -2
- data/tamebou-0.1.0.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cdb56ad5fbd46ce7bd91b2ca9a2d56ada5dbdec
|
|
4
|
+
data.tar.gz: 5b5f33e3dc4a952364b6a0e2e49fb5b91b603692
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f07347a5aeff0edc8db70de5addaa065a2ad1538d320ab4904f990c78b0ff10f1c2adeb3583f7226238fb450c5b3b8597a2acd2bae579a89200a78d79b286031
|
|
7
|
+
data.tar.gz: e5809d9339b8d8900e24aa7e4e9365e7a14da920cb2fffd57c0620c364e7bc5bad2fb41a54d8966a88a6f6849aa50b23941d3659578571affb3f39df4a592021
|
data/lib/tamebou/version.rb
CHANGED
data/lib/tamebou/writer.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Tamebou
|
|
2
2
|
class Writer
|
|
3
|
-
def initialize(path, template='
|
|
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("
|
|
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.
|
|
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.
|
|
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
|