firebase_dynamic_link 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
  SHA1:
3
- metadata.gz: 8b8833e89c026a88c4375d66c0b9eec4e0e62b3f
4
- data.tar.gz: 32431d2b24ed100688667c1b934a17fdfa3d2b82
3
+ metadata.gz: 5d63e95b652d20a351bd1c567691cad2cfdcbb9b
4
+ data.tar.gz: 800ad1cf39180ae8a98b8acd85792e429d99990c
5
5
  SHA512:
6
- metadata.gz: e6b997cb918cbd0a3efcf22f253576ccf626afaf7e93728c8431c42b0e1f289557d8b0e8c503a1566b5de96dcce206f1f4d7c9e2a39cf26af61f24a8898d5868
7
- data.tar.gz: aade124ecd68188957b5b0ecae65e013f5141037ef1546f5e3b73192e36e077dd823bbf2b8489a9e93da5e44743398b17ea7e084d1372efefbf86edd225e0522
6
+ metadata.gz: 2bb29943010794f900ae870c59ea83ee70e0ebde93ffec0646f9197c93c02ffd1e4ca823ca9a4b5773766b68c16e8f9f087fac5faa7a1a749cf19cb54bed0213
7
+ data.tar.gz: 44caf3bd1302aa063fbc57bfc6f9513de7df9a17c0cb3c3b066dbf83e3a259988ddc6ab196e23ed2c9a197f4577222243c9849ac84aac4b9edbe994d304bd1cc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firebase_dynamic_link (1.0.0)
4
+ firebase_dynamic_link (1.0.1)
5
5
  dry-configurable (~> 0.6, >= 0.6.0)
6
6
  faraday (~> 0.9, >= 0.9.2)
7
7
 
data/README.md CHANGED
@@ -40,8 +40,8 @@ Or install it yourself as:
40
40
  # default 'UNGUESSABLE'
41
41
  config.suffix_option = 'SHORT' or 'UNGUESSABLE'
42
42
 
43
- # required, Don't put http://
44
- config.dynamic_link_domain = 'xyz.app.goo.gl'
43
+ # required
44
+ config.dynamic_link_domain = 'https://xyz.app.goo.gl'
45
45
 
46
46
  # default 3 seconds
47
47
  config.timeout = 3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- firebase_dynamic_link (1.0.0)
4
+ firebase_dynamic_link (1.0.1)
5
5
  dry-configurable (~> 0.6, >= 0.6.0)
6
6
  faraday (~> 0.9, >= 0.9.2)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- firebase_dynamic_link (1.0.0)
4
+ firebase_dynamic_link (1.0.1)
5
5
  dry-configurable (~> 0.6, >= 0.6.0)
6
6
  faraday (~> 0.9, >= 0.9.2)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- firebase_dynamic_link (1.0.0)
4
+ firebase_dynamic_link (1.0.1)
5
5
  dry-configurable (~> 0.6, >= 0.6.0)
6
6
  faraday (~> 0.9, >= 0.9.2)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- firebase_dynamic_link (1.0.0)
4
+ firebase_dynamic_link (1.0.1)
5
5
  dry-configurable (~> 0.6, >= 0.6.0)
6
6
  faraday (~> 0.9, >= 0.9.2)
7
7
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "uri"
3
4
  require "firebase_dynamic_link/connection"
4
5
  require "firebase_dynamic_link/link_renderer"
5
6
 
@@ -130,6 +131,8 @@ module FirebaseDynamicLink
130
131
  dynamic_link_domain = options.delete(:dynamic_link_domain)
131
132
  dynamic_link_domain ||= config.dynamic_link_domain || raise(FirebaseDynamicLink::InvalidConfig, "Dynamic link domain is empty")
132
133
 
134
+ dynamic_link_domain = URI.parse(dynamic_link_domain).host
135
+
133
136
  response = connection.post(nil, {
134
137
  dynamicLinkInfo: params.merge(dynamicLinkDomain: dynamic_link_domain),
135
138
  suffix: {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FirebaseDynamicLink
4
- VERSION = "1.0.0".freeze
4
+ VERSION = "1.0.1".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebase_dynamic_link
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
  - M Saiqul Haq