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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7aeb4f877c1a92925416a7642c331cc9229233bdc070b877cb1b8801241dd6f8
4
- data.tar.gz: 7262c82936a62c6d6e32123f23b2189a4eddc870cb708eb06784658785080e68
3
+ metadata.gz: d580b7173d240a4922cdee2385d61330427a60de326d3438b8746aa2656b4946
4
+ data.tar.gz: ed18b90ce3412d534e80703b9f95574a629fd9a214ec38476424a23a38cebeb5
5
5
  SHA512:
6
- metadata.gz: e6bf08052c013aa7bbd6a49ebbe47ab8ee356c32866e7b0a2048751ca16c407e9efc65593a400b5fe2440bbc9c5ea424f1489561d05e0e107064d068b1f02a8a
7
- data.tar.gz: 121ef682de85616bf54075dd70246669b2228234795856fe12cc323a58fe7d89685a660084f3c7c5246e5a83bfdd55a4f17b4be08b44a12ae1ce5de21f3a7e21
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
- os: [ubuntu-latest, macos-latest]
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:native
55
- bundle exec rake publish:non_native || true
47
+ bundle exec rake publish:non_native
@@ -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
- $CXXFLAGS += ' -std=c++11 '
32
+ dir_config('mini_phone')
33
+
34
+ $CXXFLAGS += ' -std=c++11 -ofast '
74
35
 
75
36
  create_makefile('mini_phone/mini_phone')
76
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniPhone
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer