mini_phone 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -6
- data/lib/mini_phone/version.rb +1 -1
- data/mini_phone.gemspec +4 -1
- metadata +1 -8
- data/.clang-format +0 -3
- data/.github/workflows/ci.yml +0 -51
- data/.github/workflows/release.yml +0 -47
- data/.gitignore +0 -19
- data/.rspec +0 -3
- data/.rubocop.yml +0 -23
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54303715ea62a3242c279007d693c6e50727f63a584bd180ec64b385fd5c5368
|
4
|
+
data.tar.gz: 9fee829e59cdbc304eea3a2e88a86c8e53264e38ab6cde0aaf31261a6dd5d03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43829b6078b48ac2a5ed3e69662a9c0cd8b3bc42d2b744d9836b080eaa604a8a33486f445ead9506c3663714853b914203811af781ca71a3804c0ca0a358b9b1
|
7
|
+
data.tar.gz: 759f0d9dd79035372a50bc19b049f05d897df905cce531eaf5b71b738cf611d3179e8256c9b072b4c59a05573496d3c721946b7b4d266fe7dab7991169a33719
|
data/Rakefile
CHANGED
@@ -63,11 +63,7 @@ namespace :publish do
|
|
63
63
|
task non_native: [:gem] do
|
64
64
|
g = "./pkg/mini_phone-#{MiniPhone::VERSION}.gem"
|
65
65
|
|
66
|
-
|
67
|
-
|
68
|
-
results << push_to_rubygems(g)
|
69
|
-
results << push_to_github_registry(g)
|
70
|
-
|
71
|
-
abort if results.all? { |r| r == true }
|
66
|
+
push_to_rubygems(g)
|
67
|
+
push_to_github_registry(g)
|
72
68
|
end
|
73
69
|
end
|
data/lib/mini_phone/version.rb
CHANGED
data/mini_phone.gemspec
CHANGED
@@ -27,7 +27,10 @@ Gem::Specification.new do |spec|
|
|
27
27
|
# Specify which files should be added to the gem when it is released.
|
28
28
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
29
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
30
|
-
`git ls-files -z
|
30
|
+
`git ls-files -z`
|
31
|
+
.split("\x0")
|
32
|
+
.reject { |f| f.match(%r{^(bin|spec|bench)/}) }
|
33
|
+
.reject { |f| f.start_with?('.') }
|
31
34
|
end
|
32
35
|
spec.bindir = 'exe'
|
33
36
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_phone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
@@ -20,13 +20,6 @@ extensions:
|
|
20
20
|
- ext/mini_phone/extconf.rb
|
21
21
|
extra_rdoc_files: []
|
22
22
|
files:
|
23
|
-
- ".clang-format"
|
24
|
-
- ".github/workflows/ci.yml"
|
25
|
-
- ".github/workflows/release.yml"
|
26
|
-
- ".gitignore"
|
27
|
-
- ".rspec"
|
28
|
-
- ".rubocop.yml"
|
29
|
-
- ".travis.yml"
|
30
23
|
- CHANGELOG.md
|
31
24
|
- CODE_OF_CONDUCT.md
|
32
25
|
- Gemfile
|
data/.clang-format
DELETED
data/.github/workflows/ci.yml
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: CI
|
3
|
-
|
4
|
-
on: push
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
build:
|
8
|
-
strategy:
|
9
|
-
fail-fast: false
|
10
|
-
matrix:
|
11
|
-
ruby: ["2.5", "2.6", "2.7", "3.0"]
|
12
|
-
os: [ubuntu-latest, macos-latest]
|
13
|
-
experimental: [false]
|
14
|
-
# include:
|
15
|
-
# - ruby: "truffleruby"
|
16
|
-
# os: ubuntu-latest
|
17
|
-
# experimental: true
|
18
|
-
# - ruby: "truffleruby"
|
19
|
-
# os: macos-latest
|
20
|
-
# experimental: true
|
21
|
-
name: ${{ matrix.ruby }} on ${{ matrix.os }}
|
22
|
-
runs-on: ${{ matrix.os }}
|
23
|
-
continue-on-error: ${{ matrix.experimental }}
|
24
|
-
env:
|
25
|
-
CI_EXPERIMENTAL: ${{ matrix.experimental }}
|
26
|
-
steps:
|
27
|
-
- uses: actions/checkout@v2
|
28
|
-
|
29
|
-
- uses: ruby/setup-ruby@v1
|
30
|
-
with:
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
32
|
-
|
33
|
-
- name: Install dependencies (system)
|
34
|
-
if: ${{ matrix.os == 'ubuntu-latest' }}
|
35
|
-
run: sudo apt-get -yqq install libphonenumber-dev
|
36
|
-
|
37
|
-
- name: Install dependencies (system)
|
38
|
-
if: ${{ matrix.os == 'macos-latest' }}
|
39
|
-
run: brew install --build-from-source libphonenumber && brew link libphonenumber
|
40
|
-
|
41
|
-
- name: Install dependencies (ruby)
|
42
|
-
run: gem install bundler && bundle install --jobs 4 --retry 3
|
43
|
-
|
44
|
-
- name: Compile
|
45
|
-
run: bundle exec rake compile
|
46
|
-
|
47
|
-
- name: RSpec
|
48
|
-
run: bundle exec rspec --format RSpec::Github::Formatter --format documentation
|
49
|
-
|
50
|
-
- name: Rubocop
|
51
|
-
run: bundle exec rubocop --format github
|
@@ -1,47 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Release
|
3
|
-
|
4
|
-
on:
|
5
|
-
push:
|
6
|
-
tags:
|
7
|
-
- "v*"
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
build:
|
11
|
-
strategy:
|
12
|
-
fail-fast: false
|
13
|
-
matrix:
|
14
|
-
ruby: ["2.7"]
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
steps:
|
17
|
-
- uses: actions/checkout@v2
|
18
|
-
|
19
|
-
- uses: ruby/setup-ruby@v1
|
20
|
-
with:
|
21
|
-
ruby-version: ${{ matrix.ruby }}
|
22
|
-
|
23
|
-
- name: Install dependencies (system)
|
24
|
-
run: sudo apt-get -yqq install libphonenumber-dev
|
25
|
-
|
26
|
-
- name: Install dependencies (ruby)
|
27
|
-
run: gem install bundler && bundle install --jobs 4 --retry 3
|
28
|
-
|
29
|
-
- name: Login
|
30
|
-
run: |
|
31
|
-
mkdir -p ~/.gem
|
32
|
-
|
33
|
-
cat << EOF > ~/.gem/credentials
|
34
|
-
---
|
35
|
-
:github: ${GITHUB_AUTH_TOKEN}
|
36
|
-
:rubygems_api_key: ${RUBYGEMS_AUTH_TOKEN}
|
37
|
-
EOF
|
38
|
-
|
39
|
-
chmod 0600 ~/.gem/credentials
|
40
|
-
env:
|
41
|
-
GITHUB_AUTH_TOKEN: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
42
|
-
RUBYGEMS_AUTH_TOKEN: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
43
|
-
OWNER: ${{ github.repository_owner }}
|
44
|
-
|
45
|
-
- name: 🛳 Ship it
|
46
|
-
run: |
|
47
|
-
bundle exec rake publish:non_native
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
|
-
# configuration file. It makes it possible to enable/disable
|
3
|
-
# certain cops (checks) and to alter their behavior if they accept
|
4
|
-
# any parameters. The file can be placed either in your home
|
5
|
-
# directory or in some project directory.
|
6
|
-
#
|
7
|
-
# RuboCop will start looking for the configuration file in the directory
|
8
|
-
# where the inspected file is and continue its way up to the root directory.
|
9
|
-
#
|
10
|
-
# See https://docs.rubocop.org/rubocop/configuration
|
11
|
-
AllCops:
|
12
|
-
TargetRubyVersion: 2.5
|
13
|
-
NewCops: enable
|
14
|
-
SuggestExtensions: false
|
15
|
-
Exclude:
|
16
|
-
- pkg/**/*
|
17
|
-
- tmp/**/*
|
18
|
-
|
19
|
-
Metrics/BlockLength:
|
20
|
-
Exclude:
|
21
|
-
- spec/**/*
|
22
|
-
- Rakefile
|
23
|
-
- Gemfile
|