at_coder_friends-generator-python_ref 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +32 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +41 -31
- data/README.md +6 -0
- data/at_coder_friends-generator-python_ref.gemspec +4 -3
- data/lib/at_coder_friends/generator/python_ref/version.rb +1 -1
- data/lib/at_coder_friends/generator/python_ref.rb +2 -3
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 45f6fd099c746e4e5e4912c4cac72e839cd49985aff42f560d833f13aa8daf96
|
4
|
+
data.tar.gz: 5b3fb579bfc0ac86800cc20b99b75e2505015ce4d98cc0c8908ff6fe2dbcd1f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f142ec1d52f7ceacf31096cd4535f85b1b780f9ef4d4752f742e907344743219277e1f8082488f9a806ab731f34a82d7c2e2c8655a9c1df5fb40b1dd7ddbc82
|
7
|
+
data.tar.gz: d38828116e05577842dffbd5e28648106f1af62649b91e447d977966fda2ea09db6bb5db3114fb7383b7a3374a3629e1409e9fe13be72ba059a58b9ec6674a5e
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
matrix:
|
22
|
+
ruby-version: ['2.5', '2.7']
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby
|
27
|
+
uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: ${{ matrix.ruby-version }}
|
30
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
31
|
+
- name: Run tests
|
32
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,69 +1,79 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
at_coder_friends-generator-python_ref (0.3.
|
5
|
-
at_coder_friends (~> 0.6.
|
4
|
+
at_coder_friends-generator-python_ref (0.3.2)
|
5
|
+
at_coder_friends (~> 0.6.8)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
10
|
+
addressable (2.8.0)
|
11
11
|
public_suffix (>= 2.0.2, < 5.0)
|
12
|
-
at_coder_friends (0.6.
|
12
|
+
at_coder_friends (0.6.8)
|
13
13
|
colorize (~> 0.8.1)
|
14
14
|
launchy (>= 2.4.3)
|
15
15
|
mechanize (~> 2.0)
|
16
16
|
colorize (0.8.1)
|
17
|
-
connection_pool (2.2.
|
18
|
-
diff-lcs (1.
|
19
|
-
docile (1.
|
17
|
+
connection_pool (2.2.5)
|
18
|
+
diff-lcs (1.5.0)
|
19
|
+
docile (1.4.0)
|
20
20
|
domain_name (0.5.20190701)
|
21
21
|
unf (>= 0.0.5, < 1.0.0)
|
22
|
-
http-cookie (1.0.
|
22
|
+
http-cookie (1.0.4)
|
23
23
|
domain_name (~> 0.5)
|
24
24
|
launchy (2.5.0)
|
25
25
|
addressable (~> 2.7)
|
26
|
-
mechanize (2.
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
net-http-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
26
|
+
mechanize (2.8.3)
|
27
|
+
addressable (~> 2.8)
|
28
|
+
domain_name (~> 0.5, >= 0.5.20190701)
|
29
|
+
http-cookie (~> 1.0, >= 1.0.3)
|
30
|
+
mime-types (~> 3.0)
|
31
|
+
net-http-digest_auth (~> 1.4, >= 1.4.1)
|
32
|
+
net-http-persistent (>= 2.5.2, < 5.0.dev)
|
33
|
+
nokogiri (~> 1.11, >= 1.11.2)
|
34
|
+
rubyntlm (~> 0.6, >= 0.6.3)
|
35
|
+
webrick (~> 1.7)
|
36
|
+
webrobots (~> 0.1.2)
|
37
|
+
mime-types (3.4.1)
|
36
38
|
mime-types-data (~> 3.2015)
|
37
|
-
mime-types-data (3.
|
38
|
-
mini_portile2 (2.
|
39
|
+
mime-types-data (3.2021.1115)
|
40
|
+
mini_portile2 (2.6.1)
|
39
41
|
net-http-digest_auth (1.4.1)
|
40
|
-
net-http-persistent (4.0.
|
42
|
+
net-http-persistent (4.0.1)
|
41
43
|
connection_pool (~> 2.2)
|
42
|
-
nokogiri (1.
|
43
|
-
mini_portile2 (~> 2.
|
44
|
-
|
44
|
+
nokogiri (1.12.5)
|
45
|
+
mini_portile2 (~> 2.6.1)
|
46
|
+
racc (~> 1.4)
|
47
|
+
nokogiri (1.12.5-x64-mingw32)
|
48
|
+
racc (~> 1.4)
|
45
49
|
public_suffix (4.0.6)
|
46
|
-
|
50
|
+
racc (1.6.0)
|
51
|
+
rake (13.0.6)
|
47
52
|
rspec (3.10.0)
|
48
53
|
rspec-core (~> 3.10.0)
|
49
54
|
rspec-expectations (~> 3.10.0)
|
50
55
|
rspec-mocks (~> 3.10.0)
|
51
|
-
rspec-core (3.10.
|
56
|
+
rspec-core (3.10.1)
|
52
57
|
rspec-support (~> 3.10.0)
|
53
|
-
rspec-expectations (3.10.
|
58
|
+
rspec-expectations (3.10.1)
|
54
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
60
|
rspec-support (~> 3.10.0)
|
56
|
-
rspec-mocks (3.10.
|
61
|
+
rspec-mocks (3.10.2)
|
57
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
63
|
rspec-support (~> 3.10.0)
|
59
|
-
rspec-support (3.10.
|
60
|
-
|
64
|
+
rspec-support (3.10.3)
|
65
|
+
rubyntlm (0.6.3)
|
66
|
+
simplecov (0.21.2)
|
61
67
|
docile (~> 1.1)
|
62
68
|
simplecov-html (~> 0.11)
|
69
|
+
simplecov_json_formatter (~> 0.1)
|
63
70
|
simplecov-html (0.12.3)
|
71
|
+
simplecov_json_formatter (0.1.3)
|
64
72
|
unf (0.1.4)
|
65
73
|
unf_ext
|
66
|
-
unf_ext (0.0.
|
74
|
+
unf_ext (0.0.8)
|
75
|
+
unf_ext (0.0.8-x64-mingw32)
|
76
|
+
webrick (1.7.0)
|
67
77
|
webrobots (0.1.2)
|
68
78
|
|
69
79
|
PLATFORMS
|
data/README.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/at_coder_friends-generator-python_ref.svg)](https://badge.fury.io/rb/at_coder_friends-generator-python_ref)
|
2
|
+
![Gem](https://img.shields.io/gem/dt/at_coder_friends-generator-python_ref)
|
3
|
+
[![Ruby](https://github.com/nejiko96/at_coder_friends-generator-python_ref/actions/workflows/ruby.yml/badge.svg)](https://github.com/nejiko96/at_coder_friends-generator-python_ref/actions/workflows/ruby.yml)
|
4
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/0775ef9da0798b73beb4/maintainability)](https://codeclimate.com/github/nejiko96/at_coder_friends-generator-python_ref/maintainability)
|
5
|
+
![GitHub](https://img.shields.io/github/license/nejiko96/at_coder_friends-generator-python_ref)
|
6
|
+
|
1
7
|
# AtCoderFriends::Generator::PythonRef
|
2
8
|
|
3
9
|
Python source generator for [AtCoderFriends](https://github.com/nejiko96/at_coder_friends).
|
@@ -28,15 +28,16 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ['lib']
|
30
30
|
|
31
|
-
spec.required_ruby_version = '>= 2.
|
31
|
+
spec.required_ruby_version = '>= 2.5.0'
|
32
32
|
|
33
33
|
spec.metadata = {
|
34
34
|
'homepage_uri' => spec.homepage,
|
35
35
|
'source_code_uri' => spec.homepage,
|
36
|
-
'changelog_uri' => spec.homepage
|
36
|
+
'changelog_uri' => "#{spec.homepage}/blob/master/CHANGELOG.md",
|
37
|
+
'rubygems_mfa_required' => 'true'
|
37
38
|
}
|
38
39
|
|
39
|
-
spec.add_dependency 'at_coder_friends', '~> 0.6.
|
40
|
+
spec.add_dependency 'at_coder_friends', '~> 0.6.8'
|
40
41
|
|
41
42
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
42
43
|
spec.add_development_dependency 'rake', '~> 13.0'
|
@@ -20,8 +20,7 @@ module AtCoderFriends
|
|
20
20
|
|
21
21
|
def render(src)
|
22
22
|
src = embed_lines(src, '### CONSTS ###', gen_consts)
|
23
|
-
|
24
|
-
src
|
23
|
+
embed_lines(src, '### DCLS ###', gen_decls)
|
25
24
|
end
|
26
25
|
|
27
26
|
def gen_consts(constants = pbm.constants)
|
@@ -114,7 +113,7 @@ module AtCoderFriends
|
|
114
113
|
vs[mx] += 's'
|
115
114
|
sz = inpdef.size[0]
|
116
115
|
dcls = vs.map { |v| "#{v}[i]" }
|
117
|
-
dcls[mx] =
|
116
|
+
dcls[mx] = "*#{dcls[mx]}" unless inpdef.item == :char
|
118
117
|
dcl = dcls.join(', ')
|
119
118
|
expr = gen_cmb_expr(inpdef)
|
120
119
|
ret = []
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nejiko96
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-24 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.8
|
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.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,6 +89,7 @@ executables: []
|
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
+
- ".github/workflows/ruby.yml"
|
92
93
|
- ".gitignore"
|
93
94
|
- ".rspec"
|
94
95
|
- ".rubocop.yml"
|
@@ -114,6 +115,7 @@ metadata:
|
|
114
115
|
homepage_uri: https://github.com/nejiko96/at_coder_friends-generator-python_ref
|
115
116
|
source_code_uri: https://github.com/nejiko96/at_coder_friends-generator-python_ref
|
116
117
|
changelog_uri: https://github.com/nejiko96/at_coder_friends-generator-python_ref/blob/master/CHANGELOG.md
|
118
|
+
rubygems_mfa_required: 'true'
|
117
119
|
post_install_message:
|
118
120
|
rdoc_options: []
|
119
121
|
require_paths:
|
@@ -122,15 +124,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
124
|
requirements:
|
123
125
|
- - ">="
|
124
126
|
- !ruby/object:Gem::Version
|
125
|
-
version: 2.
|
127
|
+
version: 2.5.0
|
126
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
129
|
requirements:
|
128
130
|
- - ">="
|
129
131
|
- !ruby/object:Gem::Version
|
130
132
|
version: '0'
|
131
133
|
requirements: []
|
132
|
-
|
133
|
-
rubygems_version: 2.6.14.4
|
134
|
+
rubygems_version: 3.1.6
|
134
135
|
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Python generator for AtCoderFriends
|