tamebou 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d3873b3723deba16fbcb6242efec7a792aadcbc7
4
+ data.tar.gz: edf0c98f29f0510097c7c3d8d90ccccffdbb97f3
5
+ SHA512:
6
+ metadata.gz: 1a52b0efc447a52b0ccf0d5e25b92000a0865de05c940fb897d49db429135e62109813580ec56e330b2496f5203636cbbb787709e32e21ae0189603f295e6415
7
+ data.tar.gz: d2aaa41e45e4650a00bf72d86e1a45f10f508ccc6f83fc8b8514318ef6265a6c7ca400ee659a3f3c96ef02ddfe654f07d5dbe377ca24edda0209452887753158
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.1.0
5
+ before_install: gem install bundler -v 1.14.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at bibro.pcg@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in tamebou.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Nozomi Yoshida
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Tamebou
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tamebou`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'tamebou'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install tamebou
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Nozomi Yoshida/tamebou. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "tamebou"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,16 @@
1
+ module Tamebou
2
+ module Helpers
3
+ class Base
4
+ def initialize(params)
5
+ end
6
+
7
+ def expected_values
8
+ ["YOU SHOULD ADD EXPECTED VALUES BY YOUR OWN"]
9
+ end
10
+
11
+ def unexpected_values
12
+ ["YOU SHOULD ADD UNEXPECTED VALUES BY YOUR OWN"]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ module Tamebou
2
+ module Helpers
3
+ class Exclusion < Base
4
+ def initialize(params)
5
+ @in = params[:in].to_a
6
+ end
7
+
8
+ def expected_values
9
+ super
10
+ end
11
+
12
+ def unexpected_values
13
+ @in
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module Tamebou
2
+ module Helpers
3
+ class Inclusion < Base
4
+ def initialize(params)
5
+ @in = params[:in].to_a
6
+ end
7
+
8
+ def expected_values
9
+ @in
10
+ end
11
+
12
+ def unexpected_values
13
+ super
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,29 @@
1
+ module Tamebou
2
+ module Helpers
3
+ class Length < Base
4
+ def initialize(params)
5
+ @allowed_maximum = params[:maximum].to_i - 1 if params.has_key? :maximum
6
+ @allowed_minimum = params[:minimum].to_i + 1 if params.has_key? :minimum
7
+
8
+ if params.has_key? :in
9
+ @allowed_maximum = params[:in].max
10
+ @allowed_minimum = params[:in].min
11
+ end
12
+ end
13
+
14
+ def expected_values
15
+ expected_value_array = []
16
+ expected_value_array.push "a" * @allowed_minimum if @allowed_minimum
17
+ expected_value_array.push "a" * @allowed_maximum if @allowed_maximum
18
+ expected_value_array
19
+ end
20
+
21
+ def unexpected_values
22
+ unexpected_value_array = []
23
+ unexpected_value_array.push "a" * (@allowed_minimum - 1) if @allowed_minimum
24
+ unexpected_value_array.push "a" * (@allowed_maximum + 1) if @allowed_maximum
25
+ unexpected_value_array
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,69 @@
1
+ module Tamebou
2
+ module Helpers
3
+ class Numericality < Base
4
+ def initialize(params)
5
+ if params.is_a?(TrueClass) || params.is_a?(FalseClass)
6
+ @numericality = params
7
+ end
8
+
9
+ if params.is_a? Hash
10
+ @numericality = true
11
+ @only_integer = params[:only_integer]
12
+
13
+ @allowed_maximum = params[:less_than].to_i - 1 if params.has_key? :less_than
14
+ @allowed_maximum = params[:less_than_or_equal_to].to_i if params.has_key? :less_than_or_equal_to
15
+ @allowed_maximum = params[:equal_to].to_i if params.has_key? :equal_to
16
+
17
+ @allowed_minimum = params[:greater_than].to_i + 1 if params.has_key? :greater_than
18
+ @allowed_minimum = params[:greater_than_or_equal_to].to_i if params.has_key? :greater_than_or_equal_to
19
+ @allowed_minimum = params[:equal_to].to_i if params.has_key? :equal_to
20
+
21
+ @is_odd = params[:odd] if params.has_key? :odd
22
+ @is_even = params[:even] if params.has_key? :even
23
+ end
24
+ end
25
+
26
+ def expected_values
27
+ expected_value_array = []
28
+
29
+ if @numericality
30
+ expected_value_array.push 1.1
31
+ else
32
+ return expected_value_array
33
+ end
34
+
35
+ if @only_integer
36
+ expected_value_array.pop
37
+ expected_value_array.push 2
38
+ else
39
+ expected_value_array.push 2.0
40
+ expected_value_array.push 2
41
+ end
42
+
43
+ expected_value_array.push 157 if @is_odd
44
+ expected_value_array.push 156 if @is_even
45
+
46
+ expected_value_array.push @allowed_minimum if @allowed_minimum
47
+ expected_value_array.push @allowed_maximum if @allowed_maximum
48
+
49
+ expected_value_array
50
+ end
51
+
52
+ def unexpected_values
53
+ unexpected_value_array = []
54
+
55
+ unexpected_value_array.push "1.1" if @numericality
56
+
57
+ unexpected_value_array.push 2.0 if @only_integer
58
+
59
+ unexpected_value_array.push 156 if @is_odd
60
+ unexpected_value_array.push 157 if @is_even
61
+
62
+ unexpected_value_array.push @allowed_minimum - 1 if @allowed_minimum
63
+ unexpected_value_array.push @allowed_maximum + 1 if @allowed_maximum
64
+
65
+ unexpected_value_array
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,19 @@
1
+ module Tamebou
2
+ module Helpers
3
+ class Presence < Base
4
+ def initialize(params)
5
+ if params.is_a?(TrueClass) || params.is_a?(FalseClass)
6
+ @presence = params
7
+ end
8
+ end
9
+
10
+ def expected_values
11
+ @presence ? ["presence"] : [nil, "presence"]
12
+ end
13
+
14
+ def unexpected_values
15
+ @presence ? [nil] : []
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,40 @@
1
+ module Tamebou
2
+ class Parser
3
+ VALID_PATTERN = /\A\s*validates(\s+|\():([\w\d_]+)?/.freeze
4
+ SINGLE_LINE_VALIDATION_PATTERN = /\A\s*validates(\s+|\():([\w\d_]+)?\s*,(.+)/.freeze
5
+ FIELD_NAME_INDEX = 2
6
+ OPTIONS_INDEX = 3
7
+
8
+ def self.parse(line)
9
+ valid_result = line.match(VALID_PATTERN)
10
+ return nil if valid_result.nil?
11
+
12
+ if supported_result = line.match(SINGLE_LINE_VALIDATION_PATTERN)
13
+ options_in_str = supported_result[OPTIONS_INDEX]
14
+
15
+ options = begin
16
+ to_hash(options_in_str)
17
+ rescue SyntaxError => e
18
+ options_in_str
19
+ end
20
+
21
+ { field_name: supported_result[FIELD_NAME_INDEX], options: options }
22
+ else
23
+ { field_name: valid_result[FIELD_NAME_INDEX] }
24
+ end
25
+ end
26
+
27
+ # refs. http://qiita.com/uplus_e10/items/65a50935250639bf8308
28
+ # you should not use production code!
29
+ private
30
+ def self.to_hash(str)
31
+ str.chop! if str.match(/\A[^\(].+\)\Z/)
32
+ if str.match(/\A[^\(].+,\Z/)
33
+ str.chop!
34
+ str = str + "}"
35
+ end
36
+ str = "{#{str}}" unless str.match(/\A\s*\{.*?\}\s*\Z/)
37
+ eval(str)
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,3 @@
1
+ module Tamebou
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,74 @@
1
+ module Tamebou
2
+ class Writer
3
+ def initialize(path, template='./templates/minitest.txt.erb', is_warning_parse_failure=false)
4
+ @path = path
5
+ @is_warning_parse_failure = is_warning_parse_failure
6
+ @template = template
7
+ set_model_name
8
+ end
9
+
10
+ def write
11
+ begin
12
+ File.open(@path) do |file|
13
+ file.each_line do |line|
14
+ parse_result = Parser.parse(line)
15
+
16
+ if parse_result.nil?
17
+ warning_parse_failure line if @is_warning_parse_failure
18
+ next
19
+ end
20
+
21
+ @field_name = parse_result[:field_name]
22
+
23
+ unless parse_result[:options].is_a? Hash
24
+ warning_parse_options_failure parse_result if @is_warning_parse_failure
25
+ @option_name = "unknown"
26
+ @helper = Module.const_get("Base").send(:new, {})
27
+ print_test_code
28
+ next
29
+ end
30
+
31
+ parse_result[:options].each do |option_name, option_value|
32
+ @option_name = option_name
33
+ helper_class_name = option_name.capitalize
34
+ @helper = begin
35
+ Module.const_get(helper_class_name).send(:new, option_value)
36
+ rescue NoMethodError, NameError => e
37
+ warning_not_found_helper if @is_warning_parse_failure
38
+ Module.const_get("Base").send(:new, option_value)
39
+ end
40
+ print_test_code
41
+ end
42
+ end
43
+ end
44
+ rescue Exception => e
45
+ puts e
46
+ end
47
+ end
48
+
49
+ def set_model_name
50
+ @model_name_in_snake_case = @path.match(/\/([^\/]+).rb$/)[1]
51
+ @model_name = @model_name_in_snake_case.split("_").map{|w| w[0] = w[0].upcase; w}.join
52
+ end
53
+
54
+ def print_test_code
55
+ puts "============================================="
56
+ erb = ::ERB.new(File.read(@template))
57
+ puts erb.result(binding)
58
+ puts "============================================="
59
+ end
60
+
61
+ private
62
+ def warning_parse_failure(line)
63
+ puts "sorry, I cannot find validation in the next line : #{line}"
64
+ end
65
+
66
+ def warning_parse_options_failure(parse_result)
67
+ puts "#{parse_result} cannot parse options. please validate options in single line. tamebou use base helper."
68
+ end
69
+
70
+ def warning_not_found_helper
71
+ puts "its own helper not found. so tamebou use base helper."
72
+ end
73
+ end
74
+ end
data/lib/tamebou.rb ADDED
@@ -0,0 +1,10 @@
1
+ require "tamebou/version"
2
+ require "tamebou/parser"
3
+ require "tamebou/writer"
4
+ require "helpers/base"
5
+ require "helpers/exclusion"
6
+ require "helpers/inclusion"
7
+ require "helpers/length"
8
+ require "helpers/numericality"
9
+ require "helpers/presence"
10
+ require "erb"
@@ -0,0 +1,25 @@
1
+ class Test<%= @model_name %> < MiniTest::Unit::TestCase
2
+ def setup
3
+ @<%= @model_name_in_snake_case %> = build(:<%= @model_name_in_snake_case %>)
4
+ end
5
+
6
+ def teardown
7
+ # you can some clean up code in this method
8
+ end
9
+
10
+ def test_valid_<%= @field_name %>_values_in_terms_of_<%= @option_name %>
11
+ expected_values = <%= @helper.expected_values %>
12
+ expected_values.each do |expected_value|
13
+ @<%= @model_name_in_snake_case %>.<%= @field_name %> = expected_value
14
+ assert @<%= @model_name_in_snake_case %>.valid?
15
+ end
16
+ end
17
+
18
+ def test_invalid_<%= @field_name %>_values_in_terms_of_<%= @option_name %>
19
+ invalid_values = <%= @helper.unexpected_values %>
20
+ invalid_values.each do |invalid_value|
21
+ @<%= @model_name_in_snake_case %>.<%= @field_name %> = invalid_value
22
+ assert_not @<%= @model_name_in_snake_case %>.valid?
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,19 @@
1
+ context "validate <%= @model_name %>" do
2
+ # you have to write some setup
3
+
4
+ describe "The <%= @field_name %> values <%= @model_name %> expects in terms of <%= @option_name %>" do
5
+ expected_values = <%= @helper.expected_values %>
6
+ expected_values.each do |expected_value|
7
+ let(:<%= @field_name %>, expected_value)
8
+ it { is_expected.to be_valid }
9
+ end
10
+ end
11
+
12
+ describe "The <%= @field_name %> values <%= @model_name %> doesn't expect in terms of <%= @option_name %>" do
13
+ unexpected_values = <%= @helper.unexpected_values %>
14
+ unexpected_values.each do |unexpected_value|
15
+ let(:<%= @field_name %>, unexpected_value)
16
+ it { is_expected.not_to be_valid }
17
+ end
18
+ end
19
+ end
data/tamebou-0.1.0.gem ADDED
Binary file
data/tamebou.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'tamebou/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "tamebou"
8
+ spec.version = Tamebou::VERSION
9
+ spec.authors = ["woshidan"]
10
+ spec.email = ["bibro.pcg@gmail.com"]
11
+
12
+ spec.summary = %q{simple validation test generator for rails}
13
+ spec.description = %q{tamebou generates a simple test for validation of rails. it read single-line validates methods and write test code regarding to format. the fomart is prepared for minitest and rspec.}
14
+ spec.homepage = "https://github.com/woshidan/tamebou"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.14"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "minitest", "~> 5.0"
27
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tamebou
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - woshidan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-01-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ description: tamebou generates a simple test for validation of rails. it read single-line
56
+ validates methods and write test code regarding to format. the fomart is prepared
57
+ for minitest and rspec.
58
+ email:
59
+ - bibro.pcg@gmail.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - ".gitignore"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - lib/helpers/base.rb
74
+ - lib/helpers/exclusion.rb
75
+ - lib/helpers/inclusion.rb
76
+ - lib/helpers/length.rb
77
+ - lib/helpers/numericality.rb
78
+ - lib/helpers/presence.rb
79
+ - lib/tamebou.rb
80
+ - lib/tamebou/parser.rb
81
+ - lib/tamebou/version.rb
82
+ - lib/tamebou/writer.rb
83
+ - lib/templates/minitest.txt.erb
84
+ - lib/templates/rspec.txt.erb
85
+ - tamebou-0.1.0.gem
86
+ - tamebou.gemspec
87
+ homepage: https://github.com/woshidan/tamebou
88
+ licenses:
89
+ - MIT
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.6.6
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: simple validation test generator for rails
111
+ test_files: []
112
+ has_rdoc: