garsh 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/garsh.rb +2 -1
  3. data/lib/garsh/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e97842d628e43c5e5ed94af11d9723547252b895
4
- data.tar.gz: 3ab5f7109e8cf4c47948c8da5e15bcdff1c462f7
3
+ metadata.gz: 724fc9c4150c48729db344d80108f8b95c66738b
4
+ data.tar.gz: 772d586d2a66866eb320ee52c12cdd264211e24c
5
5
  SHA512:
6
- metadata.gz: ae564217724612fa4f62192876d6eb872482c7b4c6d37a7d9a42699541e42eb7108fb4f25d69fcc1d75bec1988dd575c070327b477cffbc539898236f53d0cc2
7
- data.tar.gz: b3e6a25d9efc014a6947742ee954b2008890c271c228d944d93cdb00f628887ecfb0fdb0b8fd60359033111ec5c9b9354b68d1db75bb6e97d15ed8a2203ce5a9
6
+ metadata.gz: bb91d315fdca204a72014636a73f1e58479bc8ee7f0ef431b1a95ddc5e4a211a200fcb5dd34244a0277a57eb0ade5d28c2a186af59be77c7a58d3e6b8bbab2f4
7
+ data.tar.gz: 4c375aed8fdd364f81000e10e8babe4fd961273b92146f6285e2a89c4685f07425f7fecac0a97226cd9914bba4e76b5d35d45c3d39211b17c1b9f0a1d3d19fd3
data/lib/garsh.rb CHANGED
@@ -14,6 +14,7 @@ class Garsh
14
14
 
15
15
  def initialize(code)
16
16
  @code = code
17
+ @adapter = defined?(Typhoeus) ? :typhoeus : Faraday.default_adapter
17
18
  end
18
19
 
19
20
  def create_event(action:, category: "", client_id: "555")
@@ -23,7 +24,7 @@ class Garsh
23
24
 
24
25
  def send_payload(endpoint, params)
25
26
  @http_client ||= Faraday.new(url: GA_ENDPOINT) { |cli|
26
- cli.adapter :typhoeus
27
+ cli.adapter @adapter
27
28
  cli.response :logger
28
29
  }
29
30
  @http_client.get(endpoint, params)
data/lib/garsh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Garsh
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garsh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Cruz