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 +4 -4
- data/Gemfile.lock +3 -1
- data/Rakefile +1 -0
- data/lib/metabase/endpoint/activity.rb +1 -0
- data/lib/metabase/endpoint/alert.rb +1 -0
- data/lib/metabase/endpoint/async.rb +1 -0
- data/lib/metabase/endpoint/card.rb +4 -0
- data/lib/metabase/endpoint/collection.rb +1 -0
- data/lib/metabase/endpoint/dashboard.rb +1 -0
- data/lib/metabase/endpoint/database.rb +1 -0
- data/lib/metabase/endpoint/metric.rb +1 -0
- data/lib/metabase/endpoint/permissions.rb +1 -0
- data/lib/metabase/endpoint/public.rb +3 -0
- data/lib/metabase/endpoint/pulse.rb +1 -0
- data/lib/metabase/endpoint/revision.rb +1 -0
- data/lib/metabase/endpoint/segment.rb +1 -0
- data/lib/metabase/endpoint/session.rb +1 -0
- data/lib/metabase/endpoint/setting.rb +1 -0
- data/lib/metabase/endpoint/setup.rb +1 -0
- data/lib/metabase/endpoint/table.rb +1 -0
- data/lib/metabase/endpoint/user.rb +2 -0
- data/lib/metabase/endpoint/util.rb +1 -0
- data/lib/metabase/endpoint/x_ray.rb +1 -0
- data/lib/metabase/version.rb +1 -1
- data/metabase.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6f8d748749abe8603172d7ed0a2380f81c9df61cc8389a11aa821c68e97109
|
4
|
+
data.tar.gz: 845adef4776a28caf3bb90b9eb5668c19599361ef429945d627dee2b2eb8b3d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d164ecf4947626f07468f1e1e0433a29682719be9c27056d96fd265a2a79dc1ebc2d7a47686ce0827daeb3ad0ee6c542ef769863f6745a5111e2a42a09ef5210
|
7
|
+
data.tar.gz: 57c338c8f05ca02bdf9069b987bd54038119bf6c3d9b761b1a175162a8b26a789efe1f28c5121e3c9be3460c2c0f4c2893d7b8ff10cea9dae4a15ace9b12cc9e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
metabase (0.2.
|
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
@@ -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 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 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
|
data/lib/metabase/version.rb
CHANGED
data/metabase.gemspec
CHANGED
@@ -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.
|
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-
|
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
|