hiya 0.2.2 → 0.2.3

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: 1c7150741025cac9f749783c3d17e164d124aa6a4ceb0663adaae16227c1f399
4
- data.tar.gz: 9d3395a271694ba7f781b545599625bb8dc38218302cfaafe98baca81df6823e
3
+ metadata.gz: b10bcdf84ab2c09f6cd7ad9a0fe102a9274aacacb12eec21f308d87102a00787
4
+ data.tar.gz: 574943026ff4f1e581b4001ed176813e9338ddcb511a9930fe4eb4798d61b1b2
5
5
  SHA512:
6
- metadata.gz: b4ba172893dd357f07c0b0e6c579a96241fe38c5fc8005a1856babf783b89a43d550da835a0b3452948ae7c3c15989d23fa8e0a4c11894edc5efcf59373f0198
7
- data.tar.gz: 6551e86750b03d6c0cf0e187b643a5f54e82304042901b6d0569be8fee7c83e48b4775f6fcd56b8564f1ec583ad13a6172511da3e1a5ddf2ba74254d2345d1a0
6
+ metadata.gz: b1b5436e3e6ca3fc45fab9ec728884c29575b15c2b1a62e175261c84dbed8eff79bbf0da1bade7d90336538c121b22f0b4ae424b3c68abe199986610f66052f4
7
+ data.tar.gz: d64143c02f0dfcc00795594121205f7114ddf1d0dc3cc4af7f51f936baec425533f15dd8e88414d48617fbd92122792a04039fd272a4d189ac59b18ce7e95323
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hiya (0.2.2)
4
+ hiya (0.2.3)
5
5
  faraday (~> 2.0)
6
6
  faraday-multipart (~> 1.0)
7
7
 
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Hiya
4
+ module Analytics
5
+ class Popular < Base
6
+ def all
7
+ @response = conn.get('/v1/analytics/popular')
8
+ Oj.load(response.body, symbol_keys: true)
9
+ rescue StandardError => _e
10
+ {}
11
+ end
12
+ end
13
+ end
14
+ end
data/lib/hiya/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hiya
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
data/lib/hiya.rb CHANGED
@@ -10,6 +10,7 @@ require_relative 'hiya/video'
10
10
  require_relative 'hiya/audio'
11
11
  require_relative 'hiya/oauth'
12
12
  require_relative 'hiya/users/links'
13
+ require_relative 'hiya/analytics/popular'
13
14
 
14
15
  module Hiya
15
16
  class Error < StandardError; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-09 00:00:00.000000000 Z
11
+ date: 2023-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -54,6 +54,7 @@ files:
54
54
  - README.md
55
55
  - Rakefile
56
56
  - lib/hiya.rb
57
+ - lib/hiya/analytics/popular.rb
57
58
  - lib/hiya/attach_base.rb
58
59
  - lib/hiya/audio.rb
59
60
  - lib/hiya/base.rb