isstempl 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +134 -0
- data/Rakefile +2 -0
- data/bin/isstempl +31 -0
- data/images/sample.png +0 -0
- data/isstempl.gemspec +26 -0
- data/lib/isstempl/version.rb +3 -0
- data/lib/isstempl_core.rb +78 -0
- data/lib/isstempl_dsl.rb +32 -0
- data/lib/isstempl_dsl_model.rb +31 -0
- data/spec/isstempl_core_spec.rb +65 -0
- data/spec/spec_helper.rb +91 -0
- metadata +119 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 76ab43803d0041c1df2679981bc6bd70835f7393
|
4
|
+
data.tar.gz: 875c708ddf311ab16eca43e8d43b8f1f141a62bd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 64ca221a77048e8a6f4603424af1db9ced0650d03488e16efd0c595ab236b083b583171c10d3bf1b0836d0b122a390830b98bf8ccf18b8c5eeb1d59ac577df4a
|
7
|
+
data.tar.gz: 6bfb63976ea7ad732a7e6e346f00399ab3f353a745705ad3343d73de3f02e57cd3bd2cee40ea1fb0552ead709087bcba73a1288ffbdb5c48d3cb935fe3ad4272
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 tbpgr
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
# Isstempl
|
2
|
+
|
3
|
+
Generate GitHub Issue template.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'isstempl'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install isstempl
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
### DSL
|
23
|
+
|name|value|example|memo|
|
24
|
+
|:--|:--|:--|:--|
|
25
|
+
|account|GitHub account|tbpgr|--|
|
26
|
+
|repository|GitHub Repository|issue_test|--|
|
27
|
+
|title|Issue title|some title|
|
28
|
+
|body|Issue body|some body|
|
29
|
+
|labels|IssueのLabels|bug|bug<br>duplicate<br>enhancement<br>help wanted<br>invalid<br>question<br>wontfix<br>or user defined Label|
|
30
|
+
|
31
|
+
### Commands
|
32
|
+
|command|description|
|
33
|
+
|:--|:--|
|
34
|
+
|init|generate DSL(Issuetmpl) tempalte.|
|
35
|
+
|generate|generate GitHub Issue template from Issuetmpl.|
|
36
|
+
|
37
|
+
## Sample
|
38
|
+
### Generate DSL(Issuetmpl) template
|
39
|
+
~~~bash
|
40
|
+
$ isstempl init
|
41
|
+
$ cat Isstempl
|
42
|
+
# encoding: utf-8
|
43
|
+
|
44
|
+
# GitHub Account
|
45
|
+
# account is required
|
46
|
+
# account allow only String
|
47
|
+
# account's default value => ""
|
48
|
+
account ""
|
49
|
+
|
50
|
+
# GitHub Repository
|
51
|
+
# repository is required
|
52
|
+
# repository allow only String
|
53
|
+
# repository's default value => ""
|
54
|
+
repository ""
|
55
|
+
|
56
|
+
# Issue Title
|
57
|
+
# title is required
|
58
|
+
# title allow only String
|
59
|
+
# title's default value => ""
|
60
|
+
title ""
|
61
|
+
|
62
|
+
# Issue Body
|
63
|
+
# body is required
|
64
|
+
# body allow only String
|
65
|
+
# body's default value => ""
|
66
|
+
body ""
|
67
|
+
|
68
|
+
# Issue Labels
|
69
|
+
# labels is required
|
70
|
+
# labels allow only String
|
71
|
+
# labels => bug / duplicate / enhancement / help wanted / invalid / question / wontfix / or user defined Label
|
72
|
+
# labels's default value => ""
|
73
|
+
labels ""
|
74
|
+
~~~
|
75
|
+
|
76
|
+
### Edit DSL(Issuetmpl)
|
77
|
+
~~~ruby
|
78
|
+
# encoding: utf-8
|
79
|
+
|
80
|
+
# GitHub Account
|
81
|
+
# account is required
|
82
|
+
# account allow only String
|
83
|
+
# account's default value => ""
|
84
|
+
account "tbpgr"
|
85
|
+
|
86
|
+
# GitHub Repository
|
87
|
+
# repository is required
|
88
|
+
# repository allow only String
|
89
|
+
# repository's default value => ""
|
90
|
+
repository "waffle_io_test"
|
91
|
+
|
92
|
+
# Issue Title
|
93
|
+
# title is required
|
94
|
+
# title allow only String
|
95
|
+
# title's default value => ""
|
96
|
+
title "Issue title"
|
97
|
+
|
98
|
+
# Issue Body
|
99
|
+
# body is required
|
100
|
+
# body allow only String
|
101
|
+
# body's default value => ""
|
102
|
+
body <<-EOS
|
103
|
+
## list1
|
104
|
+
test1
|
105
|
+
## list2
|
106
|
+
test2
|
107
|
+
## list3
|
108
|
+
test3
|
109
|
+
EOS
|
110
|
+
|
111
|
+
# Issue Labels
|
112
|
+
# labels is required
|
113
|
+
# labels allow only String
|
114
|
+
# labels => bug / duplicate / enhancement / help wanted / invalid / question / wontfix / or user defined Label
|
115
|
+
# labels's default value => ""
|
116
|
+
labels "bug"
|
117
|
+
~~~
|
118
|
+
|
119
|
+
### Generate GitHub Issue template
|
120
|
+
~~~bash
|
121
|
+
$ isstempl generate
|
122
|
+
https://github.com/tbpgr/waffle_io_test/issues/new?title=Issue%20title&body=%23%23%20list1%0Atest1%0A%23%23%20list2%0Atest2%0A%23%23%20list3%0Atest3%0A&labels=bug
|
123
|
+
~~~
|
124
|
+
|
125
|
+
### Confirm URL
|
126
|
+
![alt](./images/sample.png)
|
127
|
+
|
128
|
+
## Contributing
|
129
|
+
|
130
|
+
1. Fork it ( https://github.com/tbpgr/isstempl/fork )
|
131
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
132
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
133
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
134
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/isstempl
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: utf-8
|
3
|
+
|
4
|
+
require "isstempl_core"
|
5
|
+
require "isstempl/version"
|
6
|
+
require "thor"
|
7
|
+
|
8
|
+
module Isstempl
|
9
|
+
#= Isstempl CLI
|
10
|
+
class CLI < Thor
|
11
|
+
class_option :help, :type => :boolean, :aliases => '-h', :desc => 'help message.'
|
12
|
+
class_option :version, :type => :boolean, :desc => 'version'
|
13
|
+
|
14
|
+
desc "generate", "Generate GitHub Issue template."
|
15
|
+
def generate
|
16
|
+
puts Isstempl::Core.new.generate
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "init", "generate Isstempl"
|
20
|
+
def init
|
21
|
+
Isstempl::Core.new.init
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "version", "version"
|
25
|
+
def version
|
26
|
+
p Isstempl::VERSION
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Isstempl::CLI.start(ARGV)
|
data/images/sample.png
ADDED
Binary file
|
data/isstempl.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'isstempl/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "isstempl"
|
8
|
+
spec.version = Isstempl::VERSION
|
9
|
+
spec.authors = ["tbpgr"]
|
10
|
+
spec.email = ["tbpgr@tbpgr.jp"]
|
11
|
+
spec.summary = %q{Generate GitHub Issue template.}
|
12
|
+
spec.description = %q{Generate GitHub Issue template from Issuetempl}
|
13
|
+
spec.homepage = "https://github.com/tbpgr/isstempl"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_runtime_dependency 'thor', '~> 0.18.1'
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "rspec", '~> 2.14.1'
|
26
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'isstempl_dsl'
|
3
|
+
require 'erb'
|
4
|
+
require 'uri'
|
5
|
+
|
6
|
+
module Isstempl
|
7
|
+
# Isstempl Core
|
8
|
+
class Core
|
9
|
+
# rubocop:disable LineLength
|
10
|
+
ISSTEMPL_FILE = 'Isstempl'
|
11
|
+
ISSTEMPL_TEMPLATE = <<-EOS
|
12
|
+
# encoding: utf-8
|
13
|
+
|
14
|
+
# GitHub Account
|
15
|
+
# account is required
|
16
|
+
# account allow only String
|
17
|
+
# account's default value => ""
|
18
|
+
account ""
|
19
|
+
|
20
|
+
# GitHub Repository
|
21
|
+
# repository is required
|
22
|
+
# repository allow only String
|
23
|
+
# repository's default value => ""
|
24
|
+
repository ""
|
25
|
+
|
26
|
+
# Issue Title
|
27
|
+
# title is required
|
28
|
+
# title allow only String
|
29
|
+
# title's default value => ""
|
30
|
+
title ""
|
31
|
+
|
32
|
+
# Issue Body
|
33
|
+
# body is required
|
34
|
+
# body allow only String
|
35
|
+
# body's default value => ""
|
36
|
+
body ""
|
37
|
+
|
38
|
+
# Issue Labels
|
39
|
+
# labels is required
|
40
|
+
# labels allow only String
|
41
|
+
# labels => bug / duplicate / enhancement / help wanted / invalid / question / wontfix / or user defined Label
|
42
|
+
# labels's default value => ""
|
43
|
+
labels ""
|
44
|
+
EOS
|
45
|
+
URL_TEMPLATE = "https://github.com/<%= account%>/<%= repository%>/issues/new?title=<%= title%>&body=<%= body%>&labels=<%= label%>"
|
46
|
+
# rubocop:enable LineLength
|
47
|
+
|
48
|
+
# generate Isstemplfile to current directory.
|
49
|
+
def init
|
50
|
+
File.open(ISSTEMPL_FILE, 'w') do |f|
|
51
|
+
f.puts ISSTEMPL_TEMPLATE
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# generate GitHub Issue template from Issuetempl.
|
56
|
+
def generate
|
57
|
+
src = read_dsl
|
58
|
+
dsl = Isstempl::Dsl.new
|
59
|
+
dsl.instance_eval(src)
|
60
|
+
url = apply_erb(dsl.isstempl)
|
61
|
+
URI.escape(url)
|
62
|
+
end
|
63
|
+
|
64
|
+
private
|
65
|
+
def apply_erb(isstempl)
|
66
|
+
account = isstempl.account
|
67
|
+
repository = isstempl.repository
|
68
|
+
title = isstempl.title
|
69
|
+
body = isstempl.body
|
70
|
+
label = isstempl.labels
|
71
|
+
ERB.new(URL_TEMPLATE).result(binding)
|
72
|
+
end
|
73
|
+
|
74
|
+
def read_dsl
|
75
|
+
File.open(ISSTEMPL_FILE) { |f|f.read }
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
data/lib/isstempl_dsl.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'isstempl_dsl_model'
|
3
|
+
|
4
|
+
module Isstempl
|
5
|
+
# Dsl
|
6
|
+
class Dsl
|
7
|
+
attr_accessor :isstempl
|
8
|
+
|
9
|
+
# String Define
|
10
|
+
[:account, :repository, :title, :body, :labels].each do |f|
|
11
|
+
define_method f do |value|
|
12
|
+
@isstempl.send("#{f}=", value)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# Array/Hash/Boolean Define
|
17
|
+
[].each do |f|
|
18
|
+
define_method f do |value|
|
19
|
+
@isstempl.send("#{f}=", value)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize
|
24
|
+
@isstempl = Isstempl::DslModel.new
|
25
|
+
@isstempl.account = ''
|
26
|
+
@isstempl.repository = ''
|
27
|
+
@isstempl.title = ''
|
28
|
+
@isstempl.body = ''
|
29
|
+
@isstempl.labels = ''
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'active_model'
|
3
|
+
|
4
|
+
# rubocop:disable LineLength
|
5
|
+
module Isstempl
|
6
|
+
# DslModel
|
7
|
+
class DslModel
|
8
|
+
include ActiveModel::Model
|
9
|
+
|
10
|
+
# GitHub Account
|
11
|
+
attr_accessor :account
|
12
|
+
validates :account, presence: true
|
13
|
+
|
14
|
+
# GitHub Repository
|
15
|
+
attr_accessor :repository
|
16
|
+
validates :repository, presence: true
|
17
|
+
|
18
|
+
# Issue Title
|
19
|
+
attr_accessor :title
|
20
|
+
validates :title, presence: true
|
21
|
+
|
22
|
+
# Issue Body
|
23
|
+
attr_accessor :body
|
24
|
+
validates :body, presence: true
|
25
|
+
|
26
|
+
# Issue Labels
|
27
|
+
attr_accessor :labels
|
28
|
+
validates :labels, presence: true
|
29
|
+
end
|
30
|
+
end
|
31
|
+
# rubocop:enable LineLength
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "spec_helper"
|
3
|
+
require "isstempl_core"
|
4
|
+
|
5
|
+
describe Isstempl::Core do
|
6
|
+
context :generate do
|
7
|
+
ISSUETEMPL_TMP_DIR = 'tmp'
|
8
|
+
ISSUETEMPL_CASE = <<-EOS
|
9
|
+
# encoding: utf-8
|
10
|
+
account "tbpgr"
|
11
|
+
repository "waffle_io_test"
|
12
|
+
title "test title"
|
13
|
+
body <<-EOT
|
14
|
+
## test body1
|
15
|
+
test
|
16
|
+
|
17
|
+
## test body2
|
18
|
+
test
|
19
|
+
|
20
|
+
## test body3
|
21
|
+
test
|
22
|
+
|
23
|
+
EOT
|
24
|
+
labels "bug"
|
25
|
+
EOS
|
26
|
+
|
27
|
+
cases = [
|
28
|
+
{
|
29
|
+
case_no: 1,
|
30
|
+
case_title: "case_title",
|
31
|
+
expected: "https://github.com/tbpgr/waffle_io_test/issues/new?title=test%20title&body=%23%23%20test%20body1%0Atest%0A%0A%23%23%20test%20body2%0Atest%0A%0A%23%23%20test%20body3%0Atest%0A%0A&labels=bug",
|
32
|
+
}
|
33
|
+
]
|
34
|
+
|
35
|
+
cases.each do |c|
|
36
|
+
it "|case_no=#{c[:case_no]}|case_title=#{c[:case_title]}" do
|
37
|
+
begin
|
38
|
+
case_before c
|
39
|
+
|
40
|
+
# -- given --
|
41
|
+
isstempl_core = Isstempl::Core.new
|
42
|
+
|
43
|
+
# -- when --
|
44
|
+
actual = isstempl_core.generate
|
45
|
+
print actual
|
46
|
+
# -- then --
|
47
|
+
expect(actual).to eq(c[:expected])
|
48
|
+
ensure
|
49
|
+
case_after c
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def case_before(c) # rubocop:disable UnusedMethodArgument
|
54
|
+
Dir.mkdir(ISSUETEMPL_TMP_DIR) unless Dir.exist? ISSUETEMPL_TMP_DIR
|
55
|
+
Dir.chdir(ISSUETEMPL_TMP_DIR)
|
56
|
+
File.open(Isstempl::Core::ISSTEMPL_FILE, 'w') { |f|f.print ISSUETEMPL_CASE }
|
57
|
+
end
|
58
|
+
|
59
|
+
def case_after(c) # rubocop:disable UnusedMethodArgument
|
60
|
+
Dir.chdir('../')
|
61
|
+
FileUtils.rm_rf(ISSUETEMPL_TMP_DIR) if Dir.exist? ISSUETEMPL_TMP_DIR
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
RSpec.configure do |config|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
22
|
+
# assertions if you prefer.
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
26
|
+
# defined using `chain`, e.g.:
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
29
|
+
# ...rather than:
|
30
|
+
# # => "be bigger than 2"
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
end
|
33
|
+
|
34
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
35
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
38
|
+
# a real object. This is generally recommended, and will default to
|
39
|
+
# `true` in RSpec 4.
|
40
|
+
mocks.verify_partial_doubles = true
|
41
|
+
end
|
42
|
+
|
43
|
+
# The settings below are suggested to provide a good initial experience
|
44
|
+
# with RSpec, but feel free to customize to your heart's content.
|
45
|
+
=begin
|
46
|
+
# These two settings work together to allow you to limit a spec run
|
47
|
+
# to individual examples or groups you care about by tagging them with
|
48
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
49
|
+
# get run.
|
50
|
+
config.filter_run :focus
|
51
|
+
config.run_all_when_everything_filtered = true
|
52
|
+
|
53
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
54
|
+
# recommended. For more details, see:
|
55
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
56
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
57
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
58
|
+
config.disable_monkey_patching!
|
59
|
+
|
60
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
61
|
+
# be too noisy due to issues in dependencies.
|
62
|
+
config.warnings = true
|
63
|
+
|
64
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
65
|
+
# file, and it's useful to allow more verbose output when running an
|
66
|
+
# individual spec file.
|
67
|
+
if config.files_to_run.one?
|
68
|
+
# Use the documentation formatter for detailed output,
|
69
|
+
# unless a formatter has already been configured
|
70
|
+
# (e.g. via a command-line flag).
|
71
|
+
config.default_formatter = 'doc'
|
72
|
+
end
|
73
|
+
|
74
|
+
# Print the 10 slowest examples and example groups at the
|
75
|
+
# end of the spec run, to help surface which specs are running
|
76
|
+
# particularly slow.
|
77
|
+
config.profile_examples = 10
|
78
|
+
|
79
|
+
# Run specs in random order to surface order dependencies. If you find an
|
80
|
+
# order dependency and want to debug it, you can fix the order by providing
|
81
|
+
# the seed, which is printed after each run.
|
82
|
+
# --seed 1234
|
83
|
+
config.order = :random
|
84
|
+
|
85
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
86
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
87
|
+
# test failures related to randomization by passing the same `--seed` value
|
88
|
+
# as the one that triggered the failure.
|
89
|
+
Kernel.srand config.seed
|
90
|
+
=end
|
91
|
+
end
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: isstempl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- tbpgr
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.18.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.18.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.14.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.14.1
|
69
|
+
description: Generate GitHub Issue template from Issuetempl
|
70
|
+
email:
|
71
|
+
- tbpgr@tbpgr.jp
|
72
|
+
executables:
|
73
|
+
- isstempl
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- .gitignore
|
78
|
+
- .rspec
|
79
|
+
- Gemfile
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- bin/isstempl
|
84
|
+
- images/sample.png
|
85
|
+
- isstempl.gemspec
|
86
|
+
- lib/isstempl/version.rb
|
87
|
+
- lib/isstempl_core.rb
|
88
|
+
- lib/isstempl_dsl.rb
|
89
|
+
- lib/isstempl_dsl_model.rb
|
90
|
+
- spec/isstempl_core_spec.rb
|
91
|
+
- spec/spec_helper.rb
|
92
|
+
homepage: https://github.com/tbpgr/isstempl
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
metadata: {}
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.3.0
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: Generate GitHub Issue template.
|
116
|
+
test_files:
|
117
|
+
- spec/isstempl_core_spec.rb
|
118
|
+
- spec/spec_helper.rb
|
119
|
+
has_rdoc:
|