atcoder_greedy 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +85 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +89 -0
- data/Rakefile +10 -0
- data/atcoder_greedy.gemspec +36 -0
- data/bin/atcoder_greedy +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/atcoder_greedy/command/create.rb +96 -0
- data/lib/atcoder_greedy/command.rb +8 -0
- data/lib/atcoder_greedy/templates/ruby/solve.rb +22 -0
- data/lib/atcoder_greedy/templates/ruby/test.rb +61 -0
- data/lib/atcoder_greedy/version.rb +3 -0
- data/lib/atcoder_greedy.rb +9 -0
- metadata +135 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 170239c92d97944ed6ee70a140fc8fa76a42d427
|
4
|
+
data.tar.gz: 069fbf73c2233df025180708adf6adbcf2ccedef
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b3fcdf4e44d82fdb188691a3fea65cbb2165cc6305f01eea1acb481852ce46ac23bf199da7bb85db6cc37aad893349787f08e7b52ac3de697aac25b837183aef
|
7
|
+
data.tar.gz: 60008f1baa425d01ea4159dac28e0f0604506598a1df22f7237062df5cbcef5778b7c9602cbbb967a6bf4f2d74a0b4a034dd436a426f419c34763fe37ac2f476
|
data/.gitignore
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
|
11
|
+
# Created by .ignore support plugin (hsz.mobi)
|
12
|
+
### Ruby template
|
13
|
+
*.gem
|
14
|
+
*.rbc
|
15
|
+
/.config
|
16
|
+
/InstalledFiles
|
17
|
+
/spec/examples.txt
|
18
|
+
/test/tmp/
|
19
|
+
/test/version_tmp/
|
20
|
+
|
21
|
+
## Specific to RubyMotion:
|
22
|
+
.dat*
|
23
|
+
.repl_history
|
24
|
+
build/
|
25
|
+
|
26
|
+
## Documentation cache and generated files:
|
27
|
+
/.yardoc/
|
28
|
+
/rdoc/
|
29
|
+
|
30
|
+
## Environment normalisation:
|
31
|
+
/vendor/bundle
|
32
|
+
/lib/bundler/man/
|
33
|
+
|
34
|
+
# for a library or gem, you might want to ignore these files since the code is
|
35
|
+
# intended to run in multiple environments; otherwise, check them in:
|
36
|
+
# Gemfile.lock
|
37
|
+
# .ruby-version
|
38
|
+
# .ruby-gemset
|
39
|
+
|
40
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
41
|
+
.rvmrc
|
42
|
+
|
43
|
+
## Directory-based project format:
|
44
|
+
.idea/
|
45
|
+
# if you remove the above rule, at least ignore the following:
|
46
|
+
|
47
|
+
# User-specific stuff:
|
48
|
+
# .idea/workspace.xml
|
49
|
+
# .idea/tasks.xml
|
50
|
+
# .idea/dictionaries
|
51
|
+
|
52
|
+
# Sensitive or high-churn files:
|
53
|
+
# .idea/dataSources.ids
|
54
|
+
# .idea/dataSources.xml
|
55
|
+
# .idea/sqlDataSources.xml
|
56
|
+
# .idea/dynamic.xml
|
57
|
+
# .idea/uiDesigner.xml
|
58
|
+
|
59
|
+
# Gradle:
|
60
|
+
# .idea/gradle.xml
|
61
|
+
# .idea/libraries
|
62
|
+
|
63
|
+
# Mongo Explorer plugin:
|
64
|
+
# .idea/mongoSettings.xml
|
65
|
+
|
66
|
+
## File-based project format:
|
67
|
+
*.ipr
|
68
|
+
*.iws
|
69
|
+
|
70
|
+
## Plugin-specific files:
|
71
|
+
|
72
|
+
# IntelliJ
|
73
|
+
/out/
|
74
|
+
|
75
|
+
# mpeltonen/sbt-idea plugin
|
76
|
+
.idea_modules/
|
77
|
+
|
78
|
+
# JIRA plugin
|
79
|
+
atlassian-ide-plugin.xml
|
80
|
+
|
81
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
82
|
+
com_crashlytics_export_strings.xml
|
83
|
+
crashlytics.properties
|
84
|
+
crashlytics-build.properties
|
85
|
+
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at goog@brookbach.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 keigo-brook
|
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,89 @@
|
|
1
|
+
# AtcoderGreedy
|
2
|
+
楽にatcoderを使いたい
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
```ruby
|
7
|
+
gem 'atcoder_greedy'
|
8
|
+
```
|
9
|
+
|
10
|
+
And then execute:
|
11
|
+
|
12
|
+
$ bundle
|
13
|
+
|
14
|
+
Or install it yourself as:
|
15
|
+
|
16
|
+
$ gem install atcoder_greedy
|
17
|
+
|
18
|
+
## Usage
|
19
|
+
|
20
|
+
```
|
21
|
+
atcoder_greedy create CONTESTNAME
|
22
|
+
```
|
23
|
+
|
24
|
+
example: ABC008の場合,下のようにファイルが生成される
|
25
|
+
|
26
|
+
```
|
27
|
+
.
|
28
|
+
├── abc008_1
|
29
|
+
│ ├── abc008_1.rb
|
30
|
+
│ ├── input.txt
|
31
|
+
│ ├── output.txt
|
32
|
+
│ └── test_abc008_1.rb
|
33
|
+
├── abc008_2
|
34
|
+
│ ├── abc008_2.rb
|
35
|
+
│ ├── input.txt
|
36
|
+
│ ├── output.txt
|
37
|
+
│ └── test_abc008_2.rb
|
38
|
+
├── abc008_3
|
39
|
+
│ ├── abc008_3.rb
|
40
|
+
│ ├── input.txt
|
41
|
+
│ ├── output.txt
|
42
|
+
│ └── test_abc008_3.rb
|
43
|
+
└── abc008_4
|
44
|
+
├── abc008_4.rb
|
45
|
+
├── input.txt
|
46
|
+
├── output.txt
|
47
|
+
└── test_abc008_4.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
各問題について,in.txtがインプット,out.txtがアウトプット,abc_00X_Y.rbが解答ファイル,test_abc_00X_Y.rbがテストファイルとなる。
|
51
|
+
|
52
|
+
abc00X_Y.rbのsolveメソッドに問題の解答を書く。
|
53
|
+
|
54
|
+
テストを実行するには、
|
55
|
+
|
56
|
+
```
|
57
|
+
cd abc00X_Y/
|
58
|
+
ruby test_abc00X_Y.rb
|
59
|
+
```
|
60
|
+
|
61
|
+
とすれば良い。
|
62
|
+
|
63
|
+
## 実装した機能
|
64
|
+
- サンプルインプット、アウトプットを用いたテストファイルの生成
|
65
|
+
- 解答のテンプレート生成
|
66
|
+
|
67
|
+
|
68
|
+
## TODO,実装したい機能
|
69
|
+
- リファクタリング
|
70
|
+
- テスト結果を見やすく
|
71
|
+
- 問題を指定してその問題のみ生成
|
72
|
+
- 提出機能
|
73
|
+
- 多言語もテンプレートから生成したい
|
74
|
+
|
75
|
+
## Development
|
76
|
+
|
77
|
+
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.
|
78
|
+
|
79
|
+
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).
|
80
|
+
|
81
|
+
## Contributing
|
82
|
+
|
83
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/atcoder_greedy. 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.
|
84
|
+
|
85
|
+
|
86
|
+
## License
|
87
|
+
|
88
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
89
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'atcoder_greedy/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "atcoder_greedy"
|
8
|
+
spec.version = AtcoderGreedy::VERSION
|
9
|
+
spec.authors = ["keigo-brook"]
|
10
|
+
spec.email = ["goog@brookbach.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{This gem is very useful atcoder plugin.}
|
13
|
+
spec.description = %q{By using this plugin, You can create contest templates.}
|
14
|
+
spec.homepage = "https://github.com/keigo-brook/atcoder_greedy"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "bin"
|
27
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
33
|
+
|
34
|
+
spec.add_dependency 'nokogiri'
|
35
|
+
spec.add_dependency 'thor'
|
36
|
+
end
|
data/bin/atcoder_greedy
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "atcoder_greedy"
|
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
|
data/bin/setup
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
require 'atcoder_greedy'
|
2
|
+
require 'atcoder_greedy/command'
|
3
|
+
|
4
|
+
module AtcoderGreedy
|
5
|
+
class Command < Thor
|
6
|
+
desc 'create CONTESTNAME', 'create contest templates for CONTESTNAME'
|
7
|
+
def create(contest_name)
|
8
|
+
Contest.new(contest_name)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
TEMPLATE_PATH = File.join(File.dirname(__dir__), '/templates')
|
13
|
+
TEST_TEMPLATE = open(TEMPLATE_PATH + '/ruby/test.rb', &:read)
|
14
|
+
SOLVE_TEMPLATE = open(TEMPLATE_PATH + '/ruby/solve.rb', &:read)
|
15
|
+
|
16
|
+
class Contest
|
17
|
+
attr_accessor :name, :url
|
18
|
+
def initialize(name)
|
19
|
+
@name = name
|
20
|
+
puts "Create #{name} contest files"
|
21
|
+
@base_url = create_contest_url(name)
|
22
|
+
puts "Contest url is #{@base_url}"
|
23
|
+
@problem_urls = create_contest_problem_urls(name)
|
24
|
+
puts 'Create directories'
|
25
|
+
create_directories
|
26
|
+
puts 'Set up done.'
|
27
|
+
end
|
28
|
+
|
29
|
+
def create_contest_url(contest_name)
|
30
|
+
'http://' + contest_name + '.contest.atcoder.jp'
|
31
|
+
end
|
32
|
+
|
33
|
+
def create_contest_problem_urls(contest_name)
|
34
|
+
urls = []
|
35
|
+
if (contest_name.include?('abc') && contest_name[3..5].to_i > 19) ||
|
36
|
+
(contest_name.include?('arc') && contest_name[3..5].to_i > 34)
|
37
|
+
task_num = %w(a b c d)
|
38
|
+
else
|
39
|
+
task_num = %w(1 2 3 4)
|
40
|
+
end
|
41
|
+
|
42
|
+
4.times do |i|
|
43
|
+
urls.push(name: "#{contest_name}_#{task_num[i]}", path: @base_url + "/tasks/#{contest_name}_#{task_num[i]}")
|
44
|
+
end
|
45
|
+
urls
|
46
|
+
end
|
47
|
+
|
48
|
+
def create_directories
|
49
|
+
# コンテストディレクトリ作成
|
50
|
+
FileUtils.mkdir(@name)
|
51
|
+
|
52
|
+
@problem_urls.each do |url|
|
53
|
+
# urlからインプット、アウトプットパラメータをとってきてファイルにしまう
|
54
|
+
charset = nil
|
55
|
+
html = open(url[:path]) do |f|
|
56
|
+
charset = f.charset
|
57
|
+
f.read
|
58
|
+
end
|
59
|
+
doc = Nokogiri::HTML.parse(html, nil, charset)
|
60
|
+
|
61
|
+
problem_dir = "./#{@name}/#{url[:name]}"
|
62
|
+
FileUtils.mkdir(problem_dir)
|
63
|
+
|
64
|
+
in_file = File.new(problem_dir + '/input.txt', 'w')
|
65
|
+
out_file = File.new(problem_dir + '/output.txt', 'w')
|
66
|
+
|
67
|
+
params = doc.xpath('//pre')
|
68
|
+
params.shift
|
69
|
+
params.each_with_index do |p, i|
|
70
|
+
if i % 2 == 0
|
71
|
+
in_file.print "#{p.text}"
|
72
|
+
else
|
73
|
+
out_file.print "#{p.text}"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
in_file.close
|
78
|
+
out_file.close
|
79
|
+
|
80
|
+
# テストファイル,解答ファイルの生成
|
81
|
+
test_file_content = TEST_TEMPLATE.clone
|
82
|
+
test_file_content.gsub!(/NAME/, url[:name].capitalize)
|
83
|
+
test_file_content.gsub!(/PROBLEM/, url[:name])
|
84
|
+
test_file = File.new(problem_dir + "/test_#{url[:name]}.rb", 'w')
|
85
|
+
test_file.print test_file_content
|
86
|
+
test_file.close
|
87
|
+
|
88
|
+
solve_file_content = SOLVE_TEMPLATE.clone
|
89
|
+
solve_file_content.gsub!(/NAME/, url[:name].capitalize)
|
90
|
+
solve_file = File.new(problem_dir + "/#{url[:name]}.rb", 'w')
|
91
|
+
solve_file.print solve_file_content
|
92
|
+
solve_file.close
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'stringio'
|
3
|
+
|
4
|
+
class NAME
|
5
|
+
alias :puts_original :puts
|
6
|
+
def initialize(input)
|
7
|
+
@f = StringIO.new(input)
|
8
|
+
end
|
9
|
+
|
10
|
+
def gets
|
11
|
+
@f.gets
|
12
|
+
end
|
13
|
+
|
14
|
+
def puts(a)
|
15
|
+
puts_original a
|
16
|
+
a
|
17
|
+
end
|
18
|
+
|
19
|
+
def solve
|
20
|
+
# write your program here
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'test/unit'
|
3
|
+
require_relative 'PROBLEM.rb'
|
4
|
+
|
5
|
+
class Test_NAME < Test::Unit::TestCase
|
6
|
+
def setup
|
7
|
+
@test_cases = create_test_cases
|
8
|
+
@sample_outputs = get_outputs
|
9
|
+
end
|
10
|
+
|
11
|
+
def create_test_cases
|
12
|
+
test_cases = []
|
13
|
+
in_file = File.open('./input.txt', 'r+:utf-8')
|
14
|
+
loop do
|
15
|
+
s = ''
|
16
|
+
loop do
|
17
|
+
t = in_file.gets
|
18
|
+
if t != nil && t.chomp.length > 0
|
19
|
+
s += t
|
20
|
+
else
|
21
|
+
break
|
22
|
+
end
|
23
|
+
end
|
24
|
+
if s.length == 0 && test_cases.size > 0
|
25
|
+
break
|
26
|
+
elsif s.length > 0
|
27
|
+
test_case = NAME.new(s)
|
28
|
+
test_cases.push(test_case)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
test_cases
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_outputs
|
35
|
+
outputs = []
|
36
|
+
out_file = File.open('./output.txt', 'r+:utf-8')
|
37
|
+
loop do
|
38
|
+
s = ''
|
39
|
+
loop do
|
40
|
+
t = out_file.gets
|
41
|
+
if t != nil && t.chomp.length > 0
|
42
|
+
s += t
|
43
|
+
else
|
44
|
+
break
|
45
|
+
end
|
46
|
+
end
|
47
|
+
if s.length == 0 && outputs.size > 0
|
48
|
+
break
|
49
|
+
elsif s.length > 0
|
50
|
+
outputs.push(s.chomp)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
outputs
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_PROBLEM
|
57
|
+
@test_cases.each_with_index do |obj, i|
|
58
|
+
assert_equal(@sample_outputs[i], obj.solve.to_s)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
metadata
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: atcoder_greedy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- keigo-brook
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-08 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.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: thor
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: By using this plugin, You can create contest templates.
|
84
|
+
email:
|
85
|
+
- goog@brookbach.com
|
86
|
+
executables:
|
87
|
+
- atcoder_greedy
|
88
|
+
- console
|
89
|
+
- setup
|
90
|
+
extensions: []
|
91
|
+
extra_rdoc_files: []
|
92
|
+
files:
|
93
|
+
- ".gitignore"
|
94
|
+
- ".travis.yml"
|
95
|
+
- CODE_OF_CONDUCT.md
|
96
|
+
- Gemfile
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- atcoder_greedy.gemspec
|
101
|
+
- bin/atcoder_greedy
|
102
|
+
- bin/console
|
103
|
+
- bin/setup
|
104
|
+
- lib/atcoder_greedy.rb
|
105
|
+
- lib/atcoder_greedy/command.rb
|
106
|
+
- lib/atcoder_greedy/command/create.rb
|
107
|
+
- lib/atcoder_greedy/templates/ruby/solve.rb
|
108
|
+
- lib/atcoder_greedy/templates/ruby/test.rb
|
109
|
+
- lib/atcoder_greedy/version.rb
|
110
|
+
homepage: https://github.com/keigo-brook/atcoder_greedy
|
111
|
+
licenses:
|
112
|
+
- MIT
|
113
|
+
metadata:
|
114
|
+
allowed_push_host: https://rubygems.org
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
requirements: []
|
130
|
+
rubyforge_project:
|
131
|
+
rubygems_version: 2.4.5
|
132
|
+
signing_key:
|
133
|
+
specification_version: 4
|
134
|
+
summary: This gem is very useful atcoder plugin.
|
135
|
+
test_files: []
|