orbit_activities 0.2.1 → 0.2.2

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: 75d065fd65e72f1e6d2fc29c46903e9693981327bfc359347805ca2fdb2bebf2
4
- data.tar.gz: 9b75b38c95667d9772859a0da431cf0769333f253bdba196065344962e875904
3
+ metadata.gz: f6d4b2a947aca843ad8d235f4aa45ec085ce630da23038b61158d814330c1eed
4
+ data.tar.gz: c55ab525549e1434fc11d655ba97bb9dbbcadca871233bb37fa6553d0a48b079
5
5
  SHA512:
6
- metadata.gz: 504e3b2675aa6c7dda55f3fe0b6ccfda6e489f522852361f381941aff43e96868838ccb1ba773ba7a1210ecb45ab973950babd2760e76d3039c825d127ab66c3
7
- data.tar.gz: df2c7e10d49b5b71a4370c724d55c7a50e3b6ec4ee98c3ea16f86ed3c4090bffd48e55a47286c39c361e3a64cd00aaf4af8d8faf434e64c850404ae57faa23ee
6
+ metadata.gz: c393d3604e519836588ddfdde415e3cf8663bf0b16c39de0fd703a634404d9acd06e7d5658e09e6bb454805feb63668916d364ebf0fd3bed86312b562c7087ab
7
+ data.tar.gz: 9f568b3ebc2b794a516066f78d1edda8501df96b2760cc109d1853f991b17e9500188418d4c0ba6e69c58b337bec54c9ce14c894c640d9eb70278713e8b84f30
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orbit_activities (0.1.0)
4
+ orbit_activities (0.2.2)
5
5
  http (~> 4.4)
6
6
  json (~> 2.5)
7
7
  rake (~> 13.0)
@@ -56,23 +56,23 @@ GEM
56
56
  diff-lcs (>= 1.2.0, < 2.0)
57
57
  rspec-support (~> 3.10.0)
58
58
  rspec-support (3.10.2)
59
- rubocop (1.14.0)
59
+ rubocop (1.17.0)
60
60
  parallel (~> 1.10)
61
61
  parser (>= 3.0.0.0)
62
62
  rainbow (>= 2.2.2, < 4.0)
63
63
  regexp_parser (>= 1.8, < 3.0)
64
64
  rexml
65
- rubocop-ast (>= 1.5.0, < 2.0)
65
+ rubocop-ast (>= 1.7.0, < 2.0)
66
66
  ruby-progressbar (~> 1.7)
67
67
  unicode-display_width (>= 1.4.0, < 3.0)
68
- rubocop-ast (1.5.0)
68
+ rubocop-ast (1.7.0)
69
69
  parser (>= 3.0.1.1)
70
70
  ruby-progressbar (1.11.0)
71
71
  unf (0.1.4)
72
72
  unf_ext
73
73
  unf_ext (0.0.7.7)
74
74
  unicode-display_width (2.0.0)
75
- webmock (3.12.2)
75
+ webmock (3.13.0)
76
76
  addressable (>= 2.3.6)
77
77
  crack (>= 0.3.2)
78
78
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -77,7 +77,9 @@ module OrbitActivities
77
77
  filters: filters
78
78
  )
79
79
 
80
- @response = response["data"][0]["attributes"]["created_at"] || nil
80
+ return nil if response["data"].nil? || response["data"].empty?
81
+
82
+ @response = response["data"][0]["attributes"]["created_at"]
81
83
  end
82
84
 
83
85
  def get_activity
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OrbitActivities
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orbit_activities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orbit DevRel