itax_code 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 902aaf958bf3e07384e9bb4cb59d060e1fb3a423d9c58929dad97f22d53f3305
4
- data.tar.gz: 3fb7d7f218364c447cce5dd5cb3b557abc743e487484a40025358d6e29b7d53d
3
+ metadata.gz: e97e7183d8c6311ab15d58adef992c883882edb76045018da2497c10fb8c5bc5
4
+ data.tar.gz: 845c4e2e027f06335b3aff1e2f03f7af44a60590de9b065a4c0edca444825c13
5
5
  SHA512:
6
- metadata.gz: 9b3ec757113b83dd49b70314f8b8fc4a1518bead2c8a6c304b6a4c5d642439a81348f367e9b71914cf3f2f109d017d3b1e10b2576ecb967f5f201c5d2968cb80
7
- data.tar.gz: 2ed3dc5aeec37b4ccd42882352fb3f1cde6b15c9a7727f3e76cb3687c38d67f44993ae928665ded670f6cc22feb5b047d150112a80ad505989fb56c8506c4255
6
+ metadata.gz: e00f7799aebc8babd76844fda3e3f02dff0b4fd06eacb073243466d93356be682d0563f7c874b9b506958793bf8661b2a3135a2c06644cf84fdac0c6a25eb309
7
+ data.tar.gz: b78c6f9b881232b182a051d863246193df4353f77f78fcffa6acb7131a0df13cca3587b54d3351d95a32b5064d2163253c4100cd07483492af7aa4036ca35e40
@@ -0,0 +1 @@
1
+ * @matteoredz
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Build and Push
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+ - uses: fregante/setup-git-user@v1
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ bundler-cache: true
20
+ ruby-version: 2.7.0
21
+ - run: bundle install
22
+ - name: Build and Push to RubyGems
23
+ run: ./bin/release
24
+ env:
25
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
26
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
27
+ ...
@@ -0,0 +1,18 @@
1
+ name: Lint
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ lint:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: Checkout
10
+ uses: actions/checkout@v2
11
+ - name: Set up Ruby
12
+ uses: ruby/setup-ruby@v1
13
+ with:
14
+ bundler-cache: true
15
+ ruby-version: 2.7.0
16
+ - run: bundle install
17
+ - name: Rubocop
18
+ run: bundle exec rubocop
@@ -0,0 +1,22 @@
1
+ name: Test
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [2.5, 2.6, 2.7, head]
12
+ continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v2
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ bundler-cache: true
20
+ ruby-version: ${{ matrix.ruby }}
21
+ - run: bundle install
22
+ - run: bundle exec rake
data/.rubocop.yml CHANGED
@@ -6,6 +6,10 @@ require:
6
6
  Bundler/OrderedGems:
7
7
  Enabled: false
8
8
 
9
+ Layout/EmptyLineBetweenDefs:
10
+ Enabled: true
11
+ AllowAdjacentOneLineDefs: true
12
+
9
13
  Layout/IndentationConsistency:
10
14
  Enabled: true
11
15
  EnforcedStyle: indented_internal_methods
@@ -14,6 +18,14 @@ Layout/LineLength:
14
18
  Enabled: true
15
19
  Max: 80
16
20
 
21
+ Metrics/AbcSize:
22
+ Enabled: false
23
+
24
+ Metrics/ClassLength:
25
+ Enabled: true
26
+ Exclude:
27
+ - 'test/**/*'
28
+
17
29
  Metrics/MethodLength:
18
30
  Enabled: true
19
31
  CountAsOne: ['array', 'hash']
data/Gemfile.lock CHANGED
@@ -1,60 +1,60 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- itax_code (0.1.3)
4
+ itax_code (0.1.4)
5
5
  activesupport
6
- rake
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
10
9
  specs:
11
- activesupport (6.0.3.4)
10
+ activesupport (6.1.4.1)
12
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.2)
17
- ast (2.4.1)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ ast (2.4.2)
18
17
  byebug (11.1.3)
19
- concurrent-ruby (1.1.7)
20
- docile (1.3.2)
21
- i18n (1.8.5)
18
+ concurrent-ruby (1.1.9)
19
+ docile (1.4.0)
20
+ i18n (1.8.11)
22
21
  concurrent-ruby (~> 1.0)
23
- minitest (5.14.2)
24
- mocha (1.11.2)
25
- parallel (1.20.1)
26
- parser (2.7.2.0)
22
+ minitest (5.14.4)
23
+ mocha (1.13.0)
24
+ parallel (1.21.0)
25
+ parser (3.0.2.0)
27
26
  ast (~> 2.4.1)
28
27
  rainbow (3.0.0)
29
- rake (13.0.1)
30
- regexp_parser (1.8.2)
31
- rexml (3.2.4)
32
- rubocop (1.4.1)
28
+ rake (13.0.6)
29
+ regexp_parser (2.1.1)
30
+ rexml (3.2.5)
31
+ rubocop (1.22.3)
33
32
  parallel (~> 1.10)
34
- parser (>= 2.7.1.5)
33
+ parser (>= 3.0.0.0)
35
34
  rainbow (>= 2.2.2, < 4.0)
36
- regexp_parser (>= 1.8)
35
+ regexp_parser (>= 1.8, < 3.0)
37
36
  rexml
38
- rubocop-ast (>= 1.1.1)
37
+ rubocop-ast (>= 1.12.0, < 2.0)
39
38
  ruby-progressbar (~> 1.7)
40
- unicode-display_width (>= 1.4.0, < 2.0)
41
- rubocop-ast (1.1.1)
42
- parser (>= 2.7.1.5)
43
- rubocop-minitest (0.10.1)
44
- rubocop (>= 0.87)
45
- rubocop-performance (1.9.0)
46
- rubocop (>= 0.90.0, < 2.0)
39
+ unicode-display_width (>= 1.4.0, < 3.0)
40
+ rubocop-ast (1.12.0)
41
+ parser (>= 3.0.1.1)
42
+ rubocop-minitest (0.15.2)
43
+ rubocop (>= 0.90, < 2.0)
44
+ rubocop-performance (1.12.0)
45
+ rubocop (>= 1.7.0, < 2.0)
47
46
  rubocop-ast (>= 0.4.0)
48
- ruby-progressbar (1.10.1)
49
- simplecov (0.19.1)
47
+ ruby-progressbar (1.11.0)
48
+ simplecov (0.21.2)
50
49
  docile (~> 1.1)
51
50
  simplecov-html (~> 0.11)
51
+ simplecov_json_formatter (~> 0.1)
52
52
  simplecov-html (0.12.3)
53
- thread_safe (0.3.6)
54
- tzinfo (1.2.8)
55
- thread_safe (~> 0.1)
56
- unicode-display_width (1.7.0)
57
- zeitwerk (2.4.1)
53
+ simplecov_json_formatter (0.1.3)
54
+ tzinfo (2.0.4)
55
+ concurrent-ruby (~> 1.0)
56
+ unicode-display_width (2.1.0)
57
+ zeitwerk (2.5.1)
58
58
 
59
59
  PLATFORMS
60
60
  ruby
@@ -64,6 +64,7 @@ DEPENDENCIES
64
64
  itax_code!
65
65
  minitest
66
66
  mocha
67
+ rake
67
68
  rubocop
68
69
  rubocop-minitest
69
70
  rubocop-performance
data/README.md CHANGED
@@ -29,7 +29,7 @@ Or install it yourself as:
29
29
  ItaxCode.encode(
30
30
  surname: "Rossi",
31
31
  name: "Mario",
32
- gender: "M", # "M" or "F"
32
+ gender: "M", # "M" or "F"
33
33
  birthdate: "1980-1-1", # String, Time, Date or DateTime
34
34
  birthplace: "Milano"
35
35
  )
data/bin/release ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Setup gem credentials
4
+ mkdir -p ~/.gem
5
+ touch ~/.gem/credentials
6
+ chmod 0600 ~/.gem/credentials
7
+
8
+ cat << EOF > ~/.gem/credentials
9
+ ---
10
+ :github: Bearer ${GITHUB_TOKEN}
11
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
12
+ EOF
13
+
14
+ # Build and Release
15
+ bundle exec rake release
data/itax_code.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
6
6
  spec.licenses = ["MIT"]
7
7
  spec.authors = ["Matteo Rossi"]
8
8
  spec.email = ["mttrss5@gmail.com"]
9
- spec.summary = "Encode and decode Italian tax code (Codice Fiscale)."
9
+ spec.summary = "Encode and decode Italian tax code (Codice Fiscale)"
10
10
  spec.homepage = "https://github.com/matteoredz/itax-code"
11
11
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
12
12
  spec.metadata["homepage_uri"] = spec.homepage
@@ -24,11 +24,11 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  spec.add_dependency "activesupport"
27
- spec.add_dependency "rake"
28
27
 
29
28
  spec.add_development_dependency "byebug"
30
29
  spec.add_development_dependency "minitest"
31
30
  spec.add_development_dependency "mocha"
31
+ spec.add_development_dependency "rake"
32
32
  spec.add_development_dependency "rubocop"
33
33
  spec.add_development_dependency "rubocop-minitest"
34
34
  spec.add_development_dependency "rubocop-performance"