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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea05cb41657896054fae4fbc7980c10b0045855a
4
- data.tar.gz: ab907ac801f09f2e50947ee6d8c94f03dbb65840
3
+ metadata.gz: c0e044a9f82e0dd59d2699347ea29802b8fd1fd3
4
+ data.tar.gz: 58356395836c617650c1e88f113df6078d979a0c
5
5
  SHA512:
6
- metadata.gz: 07a6667e4fa8d98b4776a79040cbcc99d004b91b03ece2568163e0e114fd10373b9e32fb5bf45d8a423b719f7c53980af9f6caa86c2972d0272d112aad1cbe8b
7
- data.tar.gz: 9671cbdc3f4d4e90b178722aac7cab94ba72eee5c4003dd1d672ee29f698c3b1a9fb0943057575c8007e4c89e6ab2a0c2d9d45ca6ce5992d8ce6a7b154ba3fef
6
+ metadata.gz: 79d68450a2b644c075472193f5901805bb5e0684234afc7ea82fbc5ade0f922107eec2d5e975ea25dfed402ead92e250b049157b7dbc2ecfb796d21652f85822
7
+ data.tar.gz: 6c4ed7f968d980178d7ba93ef32d9400bf39ce67879fb6b56ef475cf513ebcca812810a3049e79260c1813d4915037d637c1876fea2cd69edb8dccff37f82bdb
@@ -8,5 +8,5 @@ Metrics/BlockLength:
8
8
  - 'spec/**/*.rb'
9
9
  - '**/*.gemspec'
10
10
 
11
- Naming/UncommunicativeMethodParamName:
11
+ Naming/MethodParameterName:
12
12
  MinNameLength: 1
@@ -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
@@ -2,8 +2,11 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
- ## 0.2.0 (2020-01-05)
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.
@@ -1,25 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- at_coder_friends-generator-python_ref (0.2.0)
5
- at_coder_friends (~> 0.6.3)
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.3)
12
+ at_coder_friends (0.6.6)
13
13
  colorize (~> 0.8.1)
14
- launchy (~> 2.4.3)
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.2019.1009)
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 (3.1.0)
41
+ net-http-persistent (4.0.0)
40
42
  connection_pool (~> 2.2)
41
- nokogiri (1.10.5)
43
+ nokogiri (1.10.9)
42
44
  mini_portile2 (~> 2.4.0)
43
45
  ntlm-http (0.1.1)
44
- public_suffix (4.0.1)
45
- rake (10.5.0)
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.0)
51
- rspec-support (~> 3.9.0)
52
- rspec-expectations (3.9.0)
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.0)
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.0)
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.6)
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 (~> 10.0)
78
+ rake (~> 13.0)
72
79
  rspec (~> 3.0)
80
+ simplecov (~> 0.10)
73
81
 
74
82
  BUNDLED WITH
75
- 2.0.2
83
+ 2.1.4
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
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 works as a plugin for AtCoderFriends
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' => 'https://github.com/nejiko96/at_coder_friends-generator-python_ref/blob/master/CHANGELOG.md'
36
+ 'changelog_uri' => spec.homepage + '/blob/master/CHANGELOG.md'
39
37
  }
40
38
 
41
- spec.add_dependency 'at_coder_friends', '~> 0.6.3'
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', '~> 10.0'
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
@@ -3,7 +3,7 @@
3
3
  module AtCoderFriends
4
4
  module Generator
5
5
  module PythonRefConstants
6
- VERSION = '0.2.0'
6
+ VERSION = '0.3.0'
7
7
  end
8
8
  end
9
9
  end
@@ -1,13 +1,15 @@
1
1
  # <%= pbm.url %>
2
2
 
3
- ### CONSTS ###
3
+ <% gen_consts.each do |line| -%>
4
+ <%= line %>
5
+ <% end -%>
4
6
 
5
- ### DCLS ###
7
+ <% gen_decls.each do |line| -%>
8
+ <%= line %>
9
+ <% end -%>
6
10
 
7
- <%
8
- if (vs = pbm.options.binary_values)
9
- %>print('<%= vs[0] %>' if cond else '<%= vs[1] %>')<%
10
- else
11
- %>print(ans)<%
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.2.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-01-04 00:00:00.000000000 Z
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.3
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.3
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: '10.0'
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: '10.0'
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 works as a plugin for AtCoderFriends
84
+ Python source generator plugin for AtCoderFriends
71
85
  (reference implementation)
72
86
  email:
73
87
  - nejiko2006@gmail.com