at_coder_friends-generator-python_ref 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +16 -0
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +26 -18
- data/at_coder_friends-generator-python_ref.gemspec +6 -7
- data/lib/at_coder_friends/generator/python_ref/version.rb +1 -1
- data/templates/python_ref.py.erb +11 -9
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e044a9f82e0dd59d2699347ea29802b8fd1fd3
|
4
|
+
data.tar.gz: 58356395836c617650c1e88f113df6078d979a0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d68450a2b644c075472193f5901805bb5e0684234afc7ea82fbc5ade0f922107eec2d5e975ea25dfed402ead92e250b049157b7dbc2ecfb796d21652f85822
|
7
|
+
data.tar.gz: 6c4ed7f968d980178d7ba93ef32d9400bf39ce67879fb6b56ef475cf513ebcca812810a3049e79260c1813d4915037d637c1876fea2cd69edb8dccff37f82bdb
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -3,3 +3,19 @@ Metrics/MethodLength:
|
|
3
3
|
|
4
4
|
Metrics/ClassLength:
|
5
5
|
Max: 125
|
6
|
+
|
7
|
+
# enable new cops to avoid warnings
|
8
|
+
Lint/RaiseException:
|
9
|
+
Enabled: true
|
10
|
+
|
11
|
+
Lint/StructNewOverride:
|
12
|
+
Enabled: true
|
13
|
+
|
14
|
+
Style/HashEachMethods:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
Style/HashTransformKeys:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
Style/HashTransformValues:
|
21
|
+
Enabled: true
|
data/CHANGELOG.md
CHANGED
@@ -2,8 +2,11 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
-
## 0.
|
5
|
+
## 0.3.0 (2020-05-29)
|
6
|
+
### Changed
|
7
|
+
- use -%> in ERB. (available in next release of AtCoderFriends.)
|
6
8
|
|
9
|
+
## 0.2.0 (2020-01-05)
|
7
10
|
### Added
|
8
11
|
- at_coder_friends 0.6.3 support
|
9
12
|
- 'vertical array + matrix' input format support.
|
data/Gemfile.lock
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
at_coder_friends-generator-python_ref (0.
|
5
|
-
at_coder_friends (~> 0.6.
|
4
|
+
at_coder_friends-generator-python_ref (0.3.0)
|
5
|
+
at_coder_friends (~> 0.6.6)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
addressable (2.7.0)
|
11
11
|
public_suffix (>= 2.0.2, < 5.0)
|
12
|
-
at_coder_friends (0.6.
|
12
|
+
at_coder_friends (0.6.6)
|
13
13
|
colorize (~> 0.8.1)
|
14
|
-
launchy (
|
14
|
+
launchy (>= 2.4.3, < 2.6.0)
|
15
15
|
mechanize (~> 2.0)
|
16
16
|
colorize (0.8.1)
|
17
17
|
connection_pool (2.2.2)
|
18
18
|
diff-lcs (1.3)
|
19
|
+
docile (1.3.2)
|
19
20
|
domain_name (0.5.20190701)
|
20
21
|
unf (>= 0.0.5, < 1.0.0)
|
21
22
|
http-cookie (1.0.3)
|
22
23
|
domain_name (~> 0.5)
|
24
|
+
json (2.3.0)
|
23
25
|
launchy (2.4.3)
|
24
26
|
addressable (~> 2.3)
|
25
27
|
mechanize (2.7.6)
|
@@ -31,34 +33,39 @@ GEM
|
|
31
33
|
nokogiri (~> 1.6)
|
32
34
|
ntlm-http (~> 0.1, >= 0.1.1)
|
33
35
|
webrobots (>= 0.0.9, < 0.2)
|
34
|
-
mime-types (3.3)
|
36
|
+
mime-types (3.3.1)
|
35
37
|
mime-types-data (~> 3.2015)
|
36
|
-
mime-types-data (3.
|
38
|
+
mime-types-data (3.2020.0512)
|
37
39
|
mini_portile2 (2.4.0)
|
38
40
|
net-http-digest_auth (1.4.1)
|
39
|
-
net-http-persistent (
|
41
|
+
net-http-persistent (4.0.0)
|
40
42
|
connection_pool (~> 2.2)
|
41
|
-
nokogiri (1.10.
|
43
|
+
nokogiri (1.10.9)
|
42
44
|
mini_portile2 (~> 2.4.0)
|
43
45
|
ntlm-http (0.1.1)
|
44
|
-
public_suffix (4.0.
|
45
|
-
rake (
|
46
|
+
public_suffix (4.0.5)
|
47
|
+
rake (13.0.1)
|
46
48
|
rspec (3.9.0)
|
47
49
|
rspec-core (~> 3.9.0)
|
48
50
|
rspec-expectations (~> 3.9.0)
|
49
51
|
rspec-mocks (~> 3.9.0)
|
50
|
-
rspec-core (3.9.
|
51
|
-
rspec-support (~> 3.9.
|
52
|
-
rspec-expectations (3.9.
|
52
|
+
rspec-core (3.9.2)
|
53
|
+
rspec-support (~> 3.9.3)
|
54
|
+
rspec-expectations (3.9.2)
|
53
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
56
|
rspec-support (~> 3.9.0)
|
55
|
-
rspec-mocks (3.9.
|
57
|
+
rspec-mocks (3.9.1)
|
56
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
57
59
|
rspec-support (~> 3.9.0)
|
58
|
-
rspec-support (3.9.
|
60
|
+
rspec-support (3.9.3)
|
61
|
+
simplecov (0.17.1)
|
62
|
+
docile (~> 1.1)
|
63
|
+
json (>= 1.8, < 3)
|
64
|
+
simplecov-html (~> 0.10.0)
|
65
|
+
simplecov-html (0.10.2)
|
59
66
|
unf (0.1.4)
|
60
67
|
unf_ext
|
61
|
-
unf_ext (0.0.7.
|
68
|
+
unf_ext (0.0.7.7)
|
62
69
|
webrobots (0.1.2)
|
63
70
|
|
64
71
|
PLATFORMS
|
@@ -68,8 +75,9 @@ PLATFORMS
|
|
68
75
|
DEPENDENCIES
|
69
76
|
at_coder_friends-generator-python_ref!
|
70
77
|
bundler (~> 2.0)
|
71
|
-
rake (~>
|
78
|
+
rake (~> 13.0)
|
72
79
|
rspec (~> 3.0)
|
80
|
+
simplecov (~> 0.10)
|
73
81
|
|
74
82
|
BUNDLED WITH
|
75
|
-
2.
|
83
|
+
2.1.4
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'at_coder_friends/generator/python_ref/version'
|
3
|
+
require_relative 'lib/at_coder_friends/generator/python_ref/version'
|
6
4
|
|
7
5
|
Gem::Specification.new do |spec|
|
8
6
|
spec.name = 'at_coder_friends-generator-python_ref'
|
@@ -12,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
12
10
|
|
13
11
|
spec.summary = 'Python generator for AtCoderFriends'
|
14
12
|
spec.description = <<-DESCRIPTION
|
15
|
-
Python source generator
|
13
|
+
Python source generator plugin for AtCoderFriends
|
16
14
|
(reference implementation)
|
17
15
|
DESCRIPTION
|
18
16
|
spec.homepage = 'https://github.com/nejiko96/at_coder_friends-generator-python_ref'
|
@@ -35,12 +33,13 @@ Gem::Specification.new do |spec|
|
|
35
33
|
spec.metadata = {
|
36
34
|
'homepage_uri' => spec.homepage,
|
37
35
|
'source_code_uri' => spec.homepage,
|
38
|
-
'changelog_uri' => '
|
36
|
+
'changelog_uri' => spec.homepage + '/blob/master/CHANGELOG.md'
|
39
37
|
}
|
40
38
|
|
41
|
-
spec.add_dependency 'at_coder_friends', '~> 0.6.
|
39
|
+
spec.add_dependency 'at_coder_friends', '~> 0.6.6'
|
42
40
|
|
43
41
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
44
|
-
spec.add_development_dependency 'rake', '~>
|
42
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
45
43
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
44
|
+
spec.add_development_dependency 'simplecov', '~> 0.10'
|
46
45
|
end
|
data/templates/python_ref.py.erb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# <%= pbm.url %>
|
2
2
|
|
3
|
-
|
3
|
+
<% gen_consts.each do |line| -%>
|
4
|
+
<%= line %>
|
5
|
+
<% end -%>
|
4
6
|
|
5
|
-
|
7
|
+
<% gen_decls.each do |line| -%>
|
8
|
+
<%= line %>
|
9
|
+
<% end -%>
|
6
10
|
|
7
|
-
<%
|
8
|
-
if
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
13
|
-
%>
|
11
|
+
<% if (vs = pbm.options.binary_values) -%>
|
12
|
+
print('<%= vs[0] %>' if cond else '<%= vs[1] %>')
|
13
|
+
<% else -%>
|
14
|
+
print(ans)
|
15
|
+
<% end -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: at_coder_friends-generator-python_ref
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nejiko96
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: at_coder_friends
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6.
|
19
|
+
version: 0.6.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.6.
|
26
|
+
version: 0.6.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,8 +66,22 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.10'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.10'
|
69
83
|
description: |2
|
70
|
-
Python source generator
|
84
|
+
Python source generator plugin for AtCoderFriends
|
71
85
|
(reference implementation)
|
72
86
|
email:
|
73
87
|
- nejiko2006@gmail.com
|