metabase 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: 9cd5497b17c4b5f26ff1ca073954a7eceaeb791dc2c78e946ae00be1911004ad
4
- data.tar.gz: 4c0f63527ff65f63c2a51ebec23b99d2b7ce2cdf42eb8023f7c1503efdf51b31
3
+ metadata.gz: 7b6f8d748749abe8603172d7ed0a2380f81c9df61cc8389a11aa821c68e97109
4
+ data.tar.gz: 845adef4776a28caf3bb90b9eb5668c19599361ef429945d627dee2b2eb8b3d5
5
5
  SHA512:
6
- metadata.gz: 28d3439dd61deb965936693503df407ec3e7c80232cfd881b29862323bb4442daecc32a201c7bea1dc3572b1916737c294a01a359e7adb678db50ea6adbbb45a
7
- data.tar.gz: 539344d952ff67c4c2bcc7be1f7cbede918f4cb245c56e7e2ee978d49b9c6dd74f0cff828edc241b981e5213ef8792ab28da6089f5a4406f2d16a758728719f4
6
+ metadata.gz: d164ecf4947626f07468f1e1e0433a29682719be9c27056d96fd265a2a79dc1ebc2d7a47686ce0827daeb3ad0ee6c542ef769863f6745a5111e2a42a09ef5210
7
+ data.tar.gz: 57c338c8f05ca02bdf9069b987bd54038119bf6c3d9b761b1a175162a8b26a789efe1f28c5121e3c9be3460c2c0f4c2893d7b8ff10cea9dae4a15ace9b12cc9e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metabase (0.2.0)
4
+ metabase (0.2.1)
5
5
  faraday (~> 0.8)
6
6
  faraday_middleware
7
7
 
@@ -12,6 +12,7 @@ GEM
12
12
  public_suffix (>= 2.0.2, < 4.0)
13
13
  ast (2.4.0)
14
14
  awesome_print (1.8.0)
15
+ bump (0.6.0)
15
16
  coderay (1.1.2)
16
17
  crack (0.4.3)
17
18
  safe_yaml (~> 1.0.0)
@@ -75,6 +76,7 @@ PLATFORMS
75
76
 
76
77
  DEPENDENCIES
77
78
  awesome_print
79
+ bump
78
80
  bundler
79
81
  metabase!
80
82
  pry
data/Rakefile CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rspec/core/rake_task'
5
+ require 'bump/tasks'
5
6
 
6
7
  RSpec::Core::RakeTask.new(:spec)
7
8
 
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Activity
6
+ # Fetch recent activities.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Alert
6
+ # Fetch all alerts.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Async
6
+ # Fetch all running jobs.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Integer>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Card
6
+ # Fetch all cards.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -11,6 +12,7 @@ module Metabase
11
12
  get('/api/card', params)
12
13
  end
13
14
 
15
+ # Fetch the card.
14
16
  #
15
17
  # @param card_id [Integer, String] Card ID
16
18
  # @param params [Hash] Query string
@@ -20,6 +22,7 @@ module Metabase
20
22
  get("/api/card/#{card_id}", params)
21
23
  end
22
24
 
25
+ # Fetch query results of the card with metadata.
23
26
  #
24
27
  # @param card_id [Integer, String] Card ID
25
28
  # @param params [Hash] Request body
@@ -29,6 +32,7 @@ module Metabase
29
32
  post("/api/card/#{card_id}/query", params)
30
33
  end
31
34
 
35
+ # Fetch query results of the card.
32
36
  #
33
37
  # @param card_id [Integer, String] Card ID
34
38
  # @param format [Symbol, String] Export format (csv, json, xlsx)
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Collection
6
+ # Fetch all collections.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Dashboard
6
+ # Fetch all dashboards.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Database
6
+ # Fetch all databases.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Metric
6
+ # Fetch all metrics.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Permissions
6
+ # Fetch all permissions groups.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Public
6
+ # Fetch the public card.
6
7
  #
7
8
  # @param card_uuid [String] Card UUID
8
9
  # @param params [Hash] Query string
@@ -12,6 +13,7 @@ module Metabase
12
13
  get("/api/public/card/#{card_uuid}", params)
13
14
  end
14
15
 
16
+ # Fetch query results of the public card with metadata.
15
17
  #
16
18
  # @param card_uuid [String] Card UUID
17
19
  # @param params [Hash] Query string
@@ -21,6 +23,7 @@ module Metabase
21
23
  get("/api/public/card/#{card_uuid}/query", params)
22
24
  end
23
25
 
26
+ # Fetch query results of the public card.
24
27
  #
25
28
  # @param card_uuid [String] Card UUID
26
29
  # @param format [Symbol, String] Export format (csv, json, xlsx)
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Pulse
6
+ # Fetch all pulses.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Revision
6
+ # Fetch revisions of the object.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Segment
6
+ # Fetch all segments.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -14,6 +14,7 @@ module Metabase
14
14
  @token = response['id']
15
15
  end
16
16
 
17
+ # Logout from Metabase.
17
18
  #
18
19
  # @param params [Hash] Request body
19
20
  # @return [true] Always returns true
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Setting
6
+ # Fetch all settings.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Setup
6
+ # Fetch admin checklists.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Table
6
+ # Fetch all tables.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module User
6
+ # Fetch all users.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<Hash>] Parsed response JSON
@@ -11,6 +12,7 @@ module Metabase
11
12
  get('/api/user', params)
12
13
  end
13
14
 
15
+ # Fetch the current user.
14
16
  #
15
17
  # @param params [Hash] Query string
16
18
  # @return [Hash] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module Util
6
+ # Fetch application logs.
6
7
  #
7
8
  # @param params [Hash] Query string
8
9
  # @return [Array<String>] Parsed response JSON
@@ -3,6 +3,7 @@
3
3
  module Metabase
4
4
  module Endpoint
5
5
  module XRay
6
+ # X-Ray the card.
6
7
  #
7
8
  # @param card_id [Integer, String] Card ID
8
9
  # @param params [Hash] Query string
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Metabase
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_runtime_dependency 'faraday_middleware'
30
30
 
31
31
  spec.add_development_dependency 'awesome_print'
32
+ spec.add_development_dependency 'bump'
32
33
  spec.add_development_dependency 'bundler'
33
34
  spec.add_development_dependency 'pry'
34
35
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metabase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Shimoju
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-26 00:00:00.000000000 Z
11
+ date: 2018-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bump
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement