pirsch_api 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 922968a144011f70f78f0e8220f5de11dd2c2abd4ed710a1d82ac9ebfe8b581d
4
- data.tar.gz: b296b02a35e78d2997903099c22fab51154775c2930f37875e838909cd52b37f
3
+ metadata.gz: e82d43aa436f9f1d2947ecf55d73e236bcaf002cc6a1b706d5e3cea589d6b69b
4
+ data.tar.gz: a5e777c6d97f42df2b332f28cd72530470b4a192ae8c3c70655deaa41bfd70d8
5
5
  SHA512:
6
- metadata.gz: c13b95de3a1dfe8737e7676b91f0762a88975aed761fdb7540f89d349822eb069e7f4b6859bb45b770abd18701b601c7ee2a4b3ac96b80305a796085e3f04312
7
- data.tar.gz: f0ee7dcc857538c1fb7023660e9dd55587e27ba4c1238559586184cece0a525598adaca8ce77deb760fdb8a42a85ca87c4ca94afcdab4a9f6ae7a352cc68a406
6
+ metadata.gz: 9ba33c184b234b4724f41dc1e3739bfe380ecb087e356fae99ca405ec1592dc2b0e1cfec607ffe8dc1631ddbb7c5a8f0ff312ff64f6262541302611034038bce
7
+ data.tar.gz: 2f10015e504aad54aa4abba5719147fc7946870bc533b9dc97f0c1e1dc3342f8e6a469ef317f35dd7a2a016f8e2cc70d98c3c954a6268a67de5f06f40ddfe2f7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pirsch_api (0.0.4)
4
+ pirsch_api (0.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -58,13 +58,6 @@ client.utm_medium(domain: domain, filters: filters)
58
58
 
59
59
  # Get /statistics/utm/campaign
60
60
  client.utm_campaign(domain: domain, filters: filters)
61
-
62
- # Get /statistics/duration/session
63
- client.duration_session(domain: domain, filters: filters)
64
-
65
- # Get /statistics/duration/page
66
- client.duration_page(domain: domain, filters: filters)
67
-
68
61
  ```
69
62
 
70
63
  ## Examples
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| DurationPage.new o }
8
+ JSON.parse(body)&.map{ |o| DurationPage.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| DurationSession.new o }
8
+ JSON.parse(body)&.map{ |o| DurationSession.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -4,7 +4,7 @@ module PirschApi
4
4
  "statistics/events"
5
5
  end
6
6
  def parse_response(body)
7
- JSON.parse(body).map{ |o| Event.new o }
7
+ JSON.parse(body)&.map{ |o| Event.new o }
8
8
  end
9
9
  end
10
10
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| Page.new o }
8
+ JSON.parse(body)&.map{ |o| Page.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| Referrer.new o }
8
+ JSON.parse(body)&.map{ |o| Referrer.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| UtmCampaign.new o }
8
+ JSON.parse(body)&.map{ |o| UtmCampaign.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| UtmMedium.new o }
8
+ JSON.parse(body)&.map{ |o| UtmMedium.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| UtmSource.new o }
8
+ JSON.parse(body)&.map{ |o| UtmSource.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module PirschApi
5
5
  end
6
6
 
7
7
  def parse_response(body)
8
- JSON.parse(body).map{ |o| Visitor.new o }
8
+ JSON.parse(body)&.map{ |o| Visitor.new o }
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module PirschApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pirsch_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Garcia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2021-09-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A very humble wrapper for the API by Pirsch.io
14
14
  email: