mini_phone 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +2 -10
- data/ext/mini_phone/extconf.rb +3 -42
- data/lib/mini_phone/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d580b7173d240a4922cdee2385d61330427a60de326d3438b8746aa2656b4946
|
4
|
+
data.tar.gz: ed18b90ce3412d534e80703b9f95574a629fd9a214ec38476424a23a38cebeb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0b758fce7c61229b6dd32c24f62cec09d972c16a1db73531e4ed504fe6275a35aaa7dae0c9d1d38c918bdbfd741189b85f1f4b6b589460be69404cc0662787b
|
7
|
+
data.tar.gz: 9d9fb2335ff906834231c7dd23669a6faf9550ec9419d8473933d92d4c12d4f2d751b8f12358be77e204889126f9962236f6c0c60cf7c1c7b5cbe4cc6bc9fe84
|
@@ -12,9 +12,7 @@ jobs:
|
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
ruby: ["2.7"]
|
15
|
-
|
16
|
-
name: ${{ matrix.os }}
|
17
|
-
runs-on: ${{ matrix.os }}
|
15
|
+
runs-on: ubuntu-latest
|
18
16
|
steps:
|
19
17
|
- uses: actions/checkout@v2
|
20
18
|
|
@@ -23,13 +21,8 @@ jobs:
|
|
23
21
|
ruby-version: ${{ matrix.ruby }}
|
24
22
|
|
25
23
|
- name: Install dependencies (system)
|
26
|
-
if: ${{ matrix.os == 'ubuntu-latest' }}
|
27
24
|
run: sudo apt-get -yqq install libphonenumber-dev
|
28
25
|
|
29
|
-
- name: Install dependencies (system)
|
30
|
-
if: ${{ matrix.os == 'macos-latest' }}
|
31
|
-
run: brew install --build-from-source libphonenumber && brew link libphonenumber
|
32
|
-
|
33
26
|
- name: Install dependencies (ruby)
|
34
27
|
run: gem install bundler && bundle install --jobs 4 --retry 3
|
35
28
|
|
@@ -51,5 +44,4 @@ jobs:
|
|
51
44
|
|
52
45
|
- name: 🛳 Ship it
|
53
46
|
run: |
|
54
|
-
bundle exec rake publish:
|
55
|
-
bundle exec rake publish:non_native || true
|
47
|
+
bundle exec rake publish:non_native
|
data/ext/mini_phone/extconf.rb
CHANGED
@@ -4,47 +4,6 @@
|
|
4
4
|
|
5
5
|
require 'mkmf'
|
6
6
|
|
7
|
-
LIBDIR = RbConfig::CONFIG['libdir']
|
8
|
-
|
9
|
-
INCLUDEDIR = RbConfig::CONFIG['includedir']
|
10
|
-
|
11
|
-
header_dirs = [
|
12
|
-
# First search /opt/local for macports
|
13
|
-
'/opt/local/include',
|
14
|
-
|
15
|
-
# Then search /usr/local for people that installed from source
|
16
|
-
'/usr/local/include',
|
17
|
-
|
18
|
-
# Check the ruby install locations
|
19
|
-
INCLUDEDIR,
|
20
|
-
|
21
|
-
# Finally fall back to /usr
|
22
|
-
'/usr/include'
|
23
|
-
]
|
24
|
-
|
25
|
-
lib_dirs = [
|
26
|
-
# First search /opt/local for macports
|
27
|
-
'/opt/local/lib',
|
28
|
-
|
29
|
-
# Then search /usr/local for people that installed from source
|
30
|
-
'/usr/local/lib',
|
31
|
-
|
32
|
-
# Check the ruby install locations
|
33
|
-
LIBDIR,
|
34
|
-
|
35
|
-
# Finally fall back to /usr
|
36
|
-
'/usr/lib'
|
37
|
-
]
|
38
|
-
|
39
|
-
# Detect homebrew installs
|
40
|
-
if find_executable('brew')
|
41
|
-
brew_prefix = `brew --prefix`.strip
|
42
|
-
header_dirs.unshift "#{brew_prefix}/include"
|
43
|
-
lib_dirs.unshift "#{brew_prefix}/lib"
|
44
|
-
end
|
45
|
-
|
46
|
-
dir_config('mini_phone', header_dirs, lib_dirs)
|
47
|
-
|
48
7
|
unless have_library('phonenumber')
|
49
8
|
abort <<~MSG
|
50
9
|
|
@@ -70,7 +29,9 @@ unless have_library('phonenumber')
|
|
70
29
|
MSG
|
71
30
|
end
|
72
31
|
|
73
|
-
|
32
|
+
dir_config('mini_phone')
|
33
|
+
|
34
|
+
$CXXFLAGS += ' -std=c++11 -ofast '
|
74
35
|
|
75
36
|
create_makefile('mini_phone/mini_phone')
|
76
37
|
|
data/lib/mini_phone/version.rb
CHANGED