syamei 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +101 -0
- data/.gitignore +5 -2
- data/.rubocop.yml +100 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +68 -0
- data/README.md +37 -2
- data/Rakefile +3 -3
- data/lib/syamei.rb +17 -12
- data/lib/syamei/version.rb +1 -1
- data/syamei.gemspec +24 -21
- metadata +62 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 647a67c428fa7c6a6050b7dfffa08c82c42186853d2285e0d23f9f04e7597065
|
4
|
+
data.tar.gz: 2f3cbf5d8d819cc4c647d7b29dbecb23ec470434677318b657b4229c61a09fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff1b2481d5817a5fae8a772f32ef4fec32ff12afc16fb9155d85eb5eef6a7ca84a57d1f53b3089f49a0859ede94d37f667adb0d4705d8e88ba1bb1c008eb87d
|
7
|
+
data.tar.gz: 88ad59621593753adcb13bea8f224a8e06b1f626361111777d96e4a0fef6a5cb6d3751e53e6e37f3e9a24037ac38acb9578c56fed7b82cb1688f3bc29cd21eaa
|
@@ -0,0 +1,101 @@
|
|
1
|
+
version: 2
|
2
|
+
jobs:
|
3
|
+
build:
|
4
|
+
parallelism: 3
|
5
|
+
docker:
|
6
|
+
- image: circleci/ruby:2.6.6
|
7
|
+
environment:
|
8
|
+
BUNDLE_JOBS: 3
|
9
|
+
BUNDLE_RETRY: 3
|
10
|
+
BUNDLE_PATH: vendor/bundle
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- checkout
|
14
|
+
|
15
|
+
- run:
|
16
|
+
name: install Bundler
|
17
|
+
command: |
|
18
|
+
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
|
19
|
+
source $BASH_ENV
|
20
|
+
gem install bundler
|
21
|
+
|
22
|
+
- run:
|
23
|
+
name: Which bundler?
|
24
|
+
command: bundle -v
|
25
|
+
|
26
|
+
- restore_cache:
|
27
|
+
keys:
|
28
|
+
- gem-sample-{{ checksum "Gemfile.lock" }}
|
29
|
+
- gem-sample-
|
30
|
+
|
31
|
+
- run:
|
32
|
+
name: Bundle Install
|
33
|
+
command: bundle check --path vendor/bundle || bundle install --deployment
|
34
|
+
|
35
|
+
- save_cache:
|
36
|
+
key: gem-sample-{{ checksum "Gemfile.lock" }}
|
37
|
+
paths:
|
38
|
+
- vendor/bundle
|
39
|
+
|
40
|
+
- run:
|
41
|
+
name: run rubocop
|
42
|
+
command: |
|
43
|
+
bundle exec rubocop
|
44
|
+
- run:
|
45
|
+
name: Run rspec in parallel
|
46
|
+
command: |
|
47
|
+
bundle exec rspec --profile 10 \
|
48
|
+
--format RspecJunitFormatter \
|
49
|
+
--out test_results/rspec.xml \
|
50
|
+
--format progress \
|
51
|
+
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
|
52
|
+
- store_test_results:
|
53
|
+
path: test_results
|
54
|
+
- store_artifacts:
|
55
|
+
path: test_results
|
56
|
+
destination: test-results
|
57
|
+
- store_artifacts:
|
58
|
+
path: coverage
|
59
|
+
destination: coverage-results
|
60
|
+
deploy:
|
61
|
+
docker:
|
62
|
+
- image: circleci/ruby:2.6.6
|
63
|
+
|
64
|
+
steps:
|
65
|
+
- checkout
|
66
|
+
|
67
|
+
- run:
|
68
|
+
name: install Bundler
|
69
|
+
command: |
|
70
|
+
echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
|
71
|
+
source $BASH_ENV
|
72
|
+
gem install bundler
|
73
|
+
- run:
|
74
|
+
name: Which bundler?
|
75
|
+
command: bundle -v
|
76
|
+
|
77
|
+
- restore_cache:
|
78
|
+
keys:
|
79
|
+
- gem-deploy-{{ checksum "Gemfile.lock" }}
|
80
|
+
- gem-deploy-
|
81
|
+
|
82
|
+
- run:
|
83
|
+
name: Bundle Install
|
84
|
+
command: bundle check --path vendor/bundle || bundle install
|
85
|
+
|
86
|
+
- save_cache:
|
87
|
+
key: gem-deploy-{{ checksum "Gemfile.lock" }}
|
88
|
+
paths:
|
89
|
+
- vendor/bundle
|
90
|
+
|
91
|
+
workflows:
|
92
|
+
version: 2
|
93
|
+
build-and-deploy:
|
94
|
+
jobs:
|
95
|
+
- build
|
96
|
+
- deploy:
|
97
|
+
requires:
|
98
|
+
- build
|
99
|
+
filters:
|
100
|
+
branches:
|
101
|
+
only: master
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- "tmp/**/*"
|
4
|
+
- "config/initializers/*"
|
5
|
+
- "vendor/**/*"
|
6
|
+
- "bin/*"
|
7
|
+
DisplayCopNames: true
|
8
|
+
TargetRubyVersion: 2.6.6
|
9
|
+
|
10
|
+
Style/AsciiComments:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Style/Documentation:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Style/NumericLiterals:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Bundler/OrderedGems:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Metrics/BlockLength:
|
23
|
+
Exclude:
|
24
|
+
- 'syamei.gemspec'
|
25
|
+
- 'spec/**/*'
|
26
|
+
|
27
|
+
Style/FrozenStringLiteralComment:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Layout/SpaceAroundMethodCallOperator:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Lint/DeprecatedOpenSSLConstant:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Lint/RaiseException:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Lint/StructNewOverride:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Layout/LineLength:
|
46
|
+
Max: 120
|
47
|
+
|
48
|
+
Lint/DuplicateElsifCondition:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
Lint/MixedRegexpCaptureTypes:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
Style/AccessorGrouping:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
Style/ArrayCoercion:
|
58
|
+
Enabled: true
|
59
|
+
|
60
|
+
Style/BisectedAttrAccessor:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Style/CaseLikeIf:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Style/ExponentialNotation:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Style/HashAsLastArrayItem:
|
70
|
+
Enabled: false
|
71
|
+
|
72
|
+
Style/HashEachMethods:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Style/HashLikeCase:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
Style/HashTransformKeys:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Style/HashTransformValues:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Style/RedundantAssignment:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Style/RedundantFetchBlock:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Style/RedundantFileExtensionInRequire:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
Style/RedundantRegexpCharacterClass:
|
94
|
+
Enabled: true
|
95
|
+
|
96
|
+
Style/RedundantRegexpEscape:
|
97
|
+
Enabled: true
|
98
|
+
|
99
|
+
Style/SlicingWithRange:
|
100
|
+
Enabled: true
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in syamei.gemspec
|
6
6
|
gemspec
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
syamei (0.1.3)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.1)
|
10
|
+
diff-lcs (1.4.4)
|
11
|
+
docile (1.3.2)
|
12
|
+
parallel (1.19.2)
|
13
|
+
parser (2.7.1.4)
|
14
|
+
ast (~> 2.4.1)
|
15
|
+
rainbow (3.0.0)
|
16
|
+
rake (13.0.1)
|
17
|
+
regexp_parser (1.7.1)
|
18
|
+
rexml (3.2.4)
|
19
|
+
rspec (3.9.0)
|
20
|
+
rspec-core (~> 3.9.0)
|
21
|
+
rspec-expectations (~> 3.9.0)
|
22
|
+
rspec-mocks (~> 3.9.0)
|
23
|
+
rspec-core (3.9.2)
|
24
|
+
rspec-support (~> 3.9.3)
|
25
|
+
rspec-expectations (3.9.2)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.9.0)
|
28
|
+
rspec-mocks (3.9.1)
|
29
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
+
rspec-support (~> 3.9.0)
|
31
|
+
rspec-support (3.9.3)
|
32
|
+
rspec_junit_formatter (0.4.1)
|
33
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
34
|
+
rubocop (0.88.0)
|
35
|
+
parallel (~> 1.10)
|
36
|
+
parser (>= 2.7.1.1)
|
37
|
+
rainbow (>= 2.2.2, < 4.0)
|
38
|
+
regexp_parser (>= 1.7)
|
39
|
+
rexml
|
40
|
+
rubocop-ast (>= 0.1.0, < 1.0)
|
41
|
+
ruby-progressbar (~> 1.7)
|
42
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
43
|
+
rubocop-ast (0.2.0)
|
44
|
+
parser (>= 2.7.0.1)
|
45
|
+
rubocop-rspec (1.42.0)
|
46
|
+
rubocop (>= 0.87.0)
|
47
|
+
ruby-progressbar (1.10.1)
|
48
|
+
simplecov (0.18.5)
|
49
|
+
docile (~> 1.1)
|
50
|
+
simplecov-html (~> 0.11)
|
51
|
+
simplecov-html (0.12.2)
|
52
|
+
unicode-display_width (1.7.0)
|
53
|
+
|
54
|
+
PLATFORMS
|
55
|
+
ruby
|
56
|
+
|
57
|
+
DEPENDENCIES
|
58
|
+
bundler (~> 1.17)
|
59
|
+
rake (>= 12.3.3)
|
60
|
+
rspec (~> 3.0)
|
61
|
+
rspec_junit_formatter
|
62
|
+
rubocop (~> 0.62)
|
63
|
+
rubocop-rspec
|
64
|
+
simplecov
|
65
|
+
syamei!
|
66
|
+
|
67
|
+
BUNDLED WITH
|
68
|
+
1.17.2
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# Syamei
|
2
|
+
[](https://badge.fury.io/rb/syamei)
|
3
|
+
[](LICENSE)
|
2
4
|
|
3
5
|
syameiは、法人格の存在チェック、削除に使用するライブラリです。
|
4
6
|
会社名の名寄せなどで利用されることを目的としています。
|
@@ -23,7 +25,40 @@ Or install it yourself as:
|
|
23
25
|
|
24
26
|
社名のみを返す(法人格を削除)
|
25
27
|
```
|
26
|
-
Syamei.only('株式会社xxx')
|
28
|
+
Syamei.only('株式会社xxx') => "xxx" # 引数1つはすべて
|
29
|
+
Syamei.only('株式会社xxx', 0) => "xxx" # type=0はすべて
|
30
|
+
Syamei.only('株式会社xxx', 1) => "xxx" # type=1は法人格フル
|
31
|
+
Syamei.only('株式会社xxx', 2) => "株式会社xxx" # type=2は特殊文字
|
32
|
+
Syamei.only('株式会社xxx', 3) => "株式会社xxx" # type=3は省略文字
|
33
|
+
Syamei.only('株式会社xxx', 4) => "株式会社xxx" # type=4はカナ
|
34
|
+
|
35
|
+
Syamei.only('㈱xxx') => "xxx" # 引数1つはすべて
|
36
|
+
Syamei.only('㈱xxx', 0) => "xxx" # type=0はすべて
|
37
|
+
Syamei.only('㈱xxx', 1) => "㈱xxx" # type=1は法人格フル
|
38
|
+
Syamei.only('㈱xxx', 2) => "xxx" # type=2は特殊文字
|
39
|
+
Syamei.only('㈱xxx', 3) => "㈱xxx" # type=3は省略文字
|
40
|
+
Syamei.only('㈱xxx', 4) => "㈱xxx" # type=4はカナ
|
41
|
+
|
42
|
+
Syamei.only('(株)xxx') => "xxx" # 引数1つはすべて
|
43
|
+
Syamei.only('(株)xxx', 0) => "xxx" # type=0はすべて
|
44
|
+
Syamei.only('(株)xxx', 1) => "(株)xxx" # type=1は法人格フル
|
45
|
+
Syamei.only('(株)xxx', 2) => "(株)xxx" # type=2は特殊文字
|
46
|
+
Syamei.only('(株)xxx', 3) => "xxx" # type=3は省略文字
|
47
|
+
Syamei.only('(株)xxx', 4) => "(株)xxx" # type=4はカナ
|
48
|
+
|
49
|
+
Syamei.only('カ)xxx') => "xxx" # 引数1つはすべて
|
50
|
+
Syamei.only('カ)xxx', 0) => "xxx" # type=0はすべて
|
51
|
+
Syamei.only('カ)xxx', 1) => "カ)xxx" # type=1は法人格フル
|
52
|
+
Syamei.only('カ)xxx', 2) => "カ)xxx" # type=2は特殊文字
|
53
|
+
Syamei.only('カ)xxx', 3) => "カ)xxx" # type=3は省略文字
|
54
|
+
Syamei.only('カ)xxx', 4) => "xxx" # type=4はカナ
|
55
|
+
|
56
|
+
Syamei.only('xxx(カ') => "xxx" # 引数1つはすべて
|
57
|
+
Syamei.only('xxx(カ', 0) => "xxx" # type=0はすべて
|
58
|
+
Syamei.only('xxx(カ', 1) => "xxx(カ" # type=1は法人格フル
|
59
|
+
Syamei.only('xxx(カ', 2) => "xxx(カ" # type=2は特殊文字
|
60
|
+
Syamei.only('xxx(カ', 3) => "xxx(カ" # type=3は省略文字
|
61
|
+
Syamei.only('xxx(カ', 4) => "xxx" # type=4はカナ
|
27
62
|
```
|
28
63
|
|
29
64
|
末尾の法人格を削除
|
@@ -54,4 +89,4 @@ Syamei.list
|
|
54
89
|
1. Create your feature branch (git checkout -b my-new-feature)
|
55
90
|
1. Commit your changes (git commit -am 'Add some feature')
|
56
91
|
1. Push to the branch (git push origin my-new-feature)
|
57
|
-
1. Create new Pull Request
|
92
|
+
1. Create new Pull Request
|
data/Rakefile
CHANGED
data/lib/syamei.rb
CHANGED
@@ -14,14 +14,15 @@ module Syamei
|
|
14
14
|
|
15
15
|
COMPLEX_TYPE = {
|
16
16
|
0 => {
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
all: [NOTATION, SPECIAL, ABBREVIATION, KANA_HEAD, KANA_TAIL].join('|'),
|
18
|
+
head: [NOTATION, SPECIAL, ABBREVIATION, KANA_HEAD].join('|'),
|
19
|
+
tail: [NOTATION, SPECIAL, ABBREVIATION, KANA_TAIL].join('|')
|
20
20
|
},
|
21
21
|
1 => NOTATION.join('|'),
|
22
22
|
2 => SPECIAL.join('|'),
|
23
|
-
3 =>
|
24
|
-
|
23
|
+
3 => ABBREVIATION.join('|'),
|
24
|
+
4 => {
|
25
|
+
all: [KANA_HEAD, KANA_TAIL].join('|'),
|
25
26
|
head: KANA_HEAD.join('|'),
|
26
27
|
tail: KANA_TAIL.join('|')
|
27
28
|
}
|
@@ -31,7 +32,8 @@ module Syamei
|
|
31
32
|
def self.with_beginning?(name, type = 0)
|
32
33
|
return false if name.nil? || name.empty?
|
33
34
|
|
34
|
-
return name.match?(/^(#{COMPLEX_TYPE[type][:head]}).*$/) if type.zero? || type ==
|
35
|
+
return name.match?(/^(#{COMPLEX_TYPE[type][:head]}).*$/) if type.zero? || type == 4
|
36
|
+
|
35
37
|
name.match?(/^(#{COMPLEX_TYPE[type]}).*$/)
|
36
38
|
end
|
37
39
|
|
@@ -39,7 +41,8 @@ module Syamei
|
|
39
41
|
def self.with_end?(name, type = 0)
|
40
42
|
return false if name.nil? || name.empty?
|
41
43
|
|
42
|
-
return name.match?(/.*(#{COMPLEX_TYPE[type][:tail]})$/) if type.zero? || type ==
|
44
|
+
return name.match?(/.*(#{COMPLEX_TYPE[type][:tail]})$/) if type.zero? || type == 4
|
45
|
+
|
43
46
|
name.match?(/.*(#{COMPLEX_TYPE[type]})$/)
|
44
47
|
end
|
45
48
|
|
@@ -54,7 +57,8 @@ module Syamei
|
|
54
57
|
def self.with_beginning(name, type = 0)
|
55
58
|
return nil if name.nil? || name.empty?
|
56
59
|
|
57
|
-
return name.gsub(/(#{COMPLEX_TYPE[type][:tail]})$/, '').strip if type.zero? || type ==
|
60
|
+
return name.gsub(/(#{COMPLEX_TYPE[type][:tail]})$/, '').strip if type.zero? || type == 4
|
61
|
+
|
58
62
|
name.gsub(/(#{COMPLEX_TYPE[type]})$/, '').strip
|
59
63
|
end
|
60
64
|
|
@@ -62,7 +66,8 @@ module Syamei
|
|
62
66
|
def self.with_end(name, type = 0)
|
63
67
|
return nil if name.nil? || name.empty?
|
64
68
|
|
65
|
-
return name.gsub(/^(#{COMPLEX_TYPE[type][:head]})/, '').strip if type.zero? || type ==
|
69
|
+
return name.gsub(/^(#{COMPLEX_TYPE[type][:head]})/, '').strip if type.zero? || type == 4
|
70
|
+
|
66
71
|
name.gsub(/^(#{COMPLEX_TYPE[type]})/, '').strip
|
67
72
|
end
|
68
73
|
|
@@ -71,14 +76,14 @@ module Syamei
|
|
71
76
|
return nil if name.nil? || name.empty?
|
72
77
|
|
73
78
|
name = with_beginning(name, type)
|
74
|
-
|
75
|
-
name
|
79
|
+
with_end(name, type)
|
76
80
|
end
|
77
81
|
|
78
82
|
def self.notation(name, type = 0)
|
79
83
|
return nil if name.nil? || name.empty?
|
80
84
|
|
81
|
-
return name[/(#{COMPLEX_TYPE[type][:all]})/, 1] if type.zero? || type ==
|
85
|
+
return name[/(#{COMPLEX_TYPE[type][:all]})/, 1] if type.zero? || type == 4
|
86
|
+
|
82
87
|
name[/(#{COMPLEX_TYPE[type]})/, 1]
|
83
88
|
end
|
84
89
|
|
data/lib/syamei/version.rb
CHANGED
data/syamei.gemspec
CHANGED
@@ -1,40 +1,43 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
3
|
+
require 'syamei/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
6
|
+
spec.name = 'syamei'
|
8
7
|
spec.version = Syamei::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
8
|
+
spec.authors = ['Shuhei Yamashita']
|
9
|
+
spec.email = ['y.shuhei0501@gmail.com']
|
11
10
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
11
|
+
spec.summary = 'Cut company name notation.'
|
12
|
+
spec.description = 'Cut company name notation.'
|
13
|
+
spec.homepage = 'https://github.com/yposi/syamei'
|
14
|
+
spec.license = 'MIT'
|
16
15
|
|
17
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
17
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
18
|
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata[
|
21
|
-
spec.metadata[
|
22
|
-
spec.metadata[
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
+
spec.metadata['source_code_uri'] = 'https://github.com/yposi/syamei'
|
21
|
+
spec.metadata['changelog_uri'] = 'https://github.com/yposi/syamei'
|
23
22
|
else
|
24
|
-
raise
|
25
|
-
|
23
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
24
|
+
'public gem pushes.'
|
26
25
|
end
|
27
26
|
|
28
27
|
# Specify which files should be added to the gem when it is released.
|
29
28
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
30
|
-
spec.files
|
29
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
31
30
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
32
31
|
end
|
33
|
-
spec.bindir =
|
32
|
+
spec.bindir = 'exe'
|
34
33
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
|
-
spec.require_paths = [
|
34
|
+
spec.require_paths = ['lib']
|
36
35
|
|
37
|
-
spec.add_development_dependency
|
38
|
-
spec.add_development_dependency
|
39
|
-
spec.add_development_dependency
|
36
|
+
spec.add_development_dependency 'bundler', '~> 1.17'
|
37
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
38
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
39
|
+
spec.add_development_dependency 'rspec_junit_formatter'
|
40
|
+
spec.add_development_dependency 'rubocop', '~> 0.62'
|
41
|
+
spec.add_development_dependency 'rubocop-rspec'
|
42
|
+
spec.add_development_dependency 'simplecov'
|
40
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syamei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shuhei Yamashita
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,62 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec_junit_formatter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
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: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.62'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.62'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
55
111
|
description: Cut company name notation.
|
56
112
|
email:
|
57
113
|
- y.shuhei0501@gmail.com
|
@@ -59,14 +115,17 @@ executables: []
|
|
59
115
|
extensions: []
|
60
116
|
extra_rdoc_files: []
|
61
117
|
files:
|
118
|
+
- ".circleci/config.yml"
|
62
119
|
- ".gitignore"
|
63
120
|
- ".idea/.gitignore"
|
64
121
|
- ".rakeTasks"
|
65
122
|
- ".rspec"
|
123
|
+
- ".rubocop.yml"
|
66
124
|
- ".ruby-version"
|
67
125
|
- ".travis.yml"
|
68
126
|
- CODE_OF_CONDUCT.md
|
69
127
|
- Gemfile
|
128
|
+
- Gemfile.lock
|
70
129
|
- LICENSE.txt
|
71
130
|
- README.md
|
72
131
|
- Rakefile
|
@@ -98,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
157
|
- !ruby/object:Gem::Version
|
99
158
|
version: '0'
|
100
159
|
requirements: []
|
101
|
-
rubygems_version: 3.
|
160
|
+
rubygems_version: 3.1.4
|
102
161
|
signing_key:
|
103
162
|
specification_version: 4
|
104
163
|
summary: Cut company name notation.
|