looker-sdk 0.1.7 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/lib/looker-sdk/client.rb +3 -3
  4. data/lib/looker-sdk/error.rb +1 -1
  5. data/lib/looker-sdk/version.rb +1 -1
  6. data/test/helper.rb +10 -4
  7. data/test/looker/swagger.json +42011 -1117
  8. data/test/looker/test_client.rb +19 -15
  9. data/test/looker/test_dynamic_client.rb +36 -34
  10. data/test/looker/test_dynamic_client_agent.rb +45 -12
  11. metadata +9 -42
  12. data/.github/CODEOWNERS +0 -1
  13. data/.github/scripts/wait_for_looker.sh +0 -35
  14. data/.github/workflows/release-metrics.yml +0 -44
  15. data/.github/workflows/release.yml +0 -47
  16. data/.github/workflows/ruby-ci.yml +0 -140
  17. data/.gitignore +0 -60
  18. data/.ruby-gemset +0 -1
  19. data/Gemfile +0 -22
  20. data/Gemfile.lock +0 -73
  21. data/Makefile +0 -81
  22. data/Rakefile +0 -38
  23. data/examples/.netrc +0 -1
  24. data/examples/add_delete_users.rb +0 -118
  25. data/examples/change_credentials_email_address_for_users.rb +0 -47
  26. data/examples/convert_look_to_lookless_tile.rb +0 -71
  27. data/examples/create_credentials_email_for_users.rb +0 -43
  28. data/examples/delete_all_user_sessions.rb +0 -39
  29. data/examples/delete_credentials_google_for_users.rb +0 -43
  30. data/examples/errors.rb +0 -47
  31. data/examples/generate_password_reset_tokens_for_users.rb +0 -43
  32. data/examples/ldap_roles_test.rb +0 -74
  33. data/examples/me.rb +0 -27
  34. data/examples/refresh_user_notification_addresses.rb +0 -34
  35. data/examples/roles_and_users_with_permission.rb +0 -46
  36. data/examples/sdk_setup.rb +0 -45
  37. data/examples/streaming_downloads.rb +0 -44
  38. data/examples/users_with_credentials_email.rb +0 -30
  39. data/examples/users_with_credentials_embed.rb +0 -33
  40. data/examples/users_with_credentials_google.rb +0 -30
  41. data/examples/users_with_credentials_google_without_credentials_email.rb +0 -30
  42. data/looker-sdk.gemspec +0 -32
  43. data/shell/.gitignore +0 -41
  44. data/shell/.netrc +0 -3
  45. data/shell/Gemfile +0 -6
  46. data/shell/Gemfile.lock +0 -60
  47. data/shell/readme.md +0 -18
  48. data/shell/shell.rb +0 -62
  49. data/shell.nix +0 -38
  50. data/test/fixtures/.netrc.template +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d92e39845c05e99175eeaf366eaa61981e138a8cddfc9046494c9dda29ad0e5
4
- data.tar.gz: 1c33387b2b71d67e9c2a306e062e01d28f7d16a04882a546bb802b74a83484f7
3
+ metadata.gz: 962fdcc584f53a5888bda532f4c35d10f7e1e9afb36132c8f5b3befa6e658e40
4
+ data.tar.gz: 2aa006572f93e9da8f9c0a12a0bcdd41799561b99ccda67f22d2b791a47141ef
5
5
  SHA512:
6
- metadata.gz: 91b5a312f6b0fc6188fee2ed880aa56c2ae5d385989c639c02a7b082f785c26c0c0cf4760e29d91fdd8430399d00caf6ceeeca30770f2893e205b4622aa7b7ad
7
- data.tar.gz: 6a182f3f7bfd096939f5a2923f3df01f2fe0c843341e9a75100201e6f0a5ef230b0ddd188b4a594200407500d1ce957de0d9c7fc439c9fd57010bbab10b4b419
6
+ metadata.gz: 2e65b9e2fe9c4a262a7240cbcd661ee43df2be13cdefd192a0c8a269bbfd9b07e8bf3fb435e05299e7443297e19a2ec9bd9a9e4a758a3243f9b2c72cbd06da5f
7
+ data.tar.gz: 10c0aed18b69b6f59c919016ad26725506a4cfbc02048b112a19cf6ca99f795f9482900760559abf1a3374b6682c591ebeb0551bcec6b5230fbbf78499425727
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.10](https://github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.7...v0.1.10) (2024-10-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * reduce output of inspect ([#81](https://github.com/looker-open-source/looker-sdk-ruby/issues/81)) ([ffb7d63](https://github.com/looker-open-source/looker-sdk-ruby/commit/ffb7d630842a907e860bc27bfefe8c51f401986a))
9
+
10
+
11
+ ### Miscellaneous Chores
12
+
13
+ * release 0.1.10 ([1cf37b4](https://github.com/looker-open-source/looker-sdk-ruby/commit/1cf37b49586d97b4bbd85f1bf4f16c8836948744))
14
+
3
15
  ## [0.1.7](https://github.com/looker-open-source/looker-sdk-ruby/compare/v0.1.6...v0.1.7) (2024-01-19)
4
16
 
5
17
 
@@ -76,8 +76,8 @@ module LookerSDK
76
76
  #
77
77
  # @return [String]
78
78
  def inspect
79
- inspected = super
80
-
79
+ vars = instance_variables.reject {|v| [:@swagger, :@operations].include? v}
80
+ inspected = "#{self.class.name}: attributes=\n#{vars.map {|v| "\t#{v}=#{instance_variable_get(v)}"}.join("\n")}>"
81
81
  # Only show last 4 of token, secret
82
82
  [@access_token, @client_secret].compact.each do |str|
83
83
  len = [str.size - 4, 0].max
@@ -164,7 +164,7 @@ module LookerSDK
164
164
  #
165
165
  # @param url [String] The path, relative to {#api_endpoint}
166
166
  # @param options [Hash] Query and header params for request
167
- # @param block [Block] Block to perform the data concatination of the
167
+ # @param block [Block] Block to perform the data concatenation of the
168
168
  # multiple requests. The block is called with two parameters, the first
169
169
  # contains the contents of the requests so far and the second parameter
170
170
  # contains the latest response.
@@ -25,7 +25,7 @@
25
25
  module LookerSDK
26
26
  class Error < StandardError
27
27
 
28
- # Returns the appropriate LookerSDK::Error sublcass based
28
+ # Returns the appropriate LookerSDK::Error subclass based
29
29
  # on status and response message
30
30
  #
31
31
  # @param [Hash] response HTTP response
@@ -26,6 +26,6 @@ module LookerSDK
26
26
 
27
27
  # Current version
28
28
  # @return [String]
29
- VERSION = "0.1.7"
29
+ VERSION = "0.1.10"
30
30
 
31
31
  end
data/test/helper.rb CHANGED
@@ -23,9 +23,7 @@
23
23
  ############################################################################################
24
24
 
25
25
  require 'simplecov'
26
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
27
- SimpleCov::Formatter::HTMLFormatter
28
- ]
26
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new SimpleCov::Formatter::HTMLFormatter
29
27
  SimpleCov.start
30
28
 
31
29
  require 'rubygems'
@@ -38,12 +36,20 @@ require 'looker-sdk'
38
36
  require 'minitest/autorun'
39
37
  require 'minitest/spec'
40
38
  require 'minitest/mock'
41
- require 'mocha/mini_test'
39
+ require 'mocha/minitest'
42
40
  require "rack/test"
43
41
  require "rack/request"
44
42
  require "faraday/rack"
45
43
  require "faraday/multipart" if ENV['USE_FARADAY_MULTIPART'] == 'true'
46
44
 
45
+ module Minitest
46
+ class Mock
47
+ def is_a?( _a )
48
+ false
49
+ end
50
+ end
51
+ end
52
+
47
53
  def fixture_path
48
54
  File.expand_path("../fixtures", __FILE__)
49
55
  end