supergood 0.0.11 → 0.0.12

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: 5a76e58f3c3f1cd011fb8bd7e5995064522aace81f01795ba515936bbec02546
4
- data.tar.gz: c38777c0f1ca61895e7e7def215896026c441b5f67c38bd40a34856c0f0f1faa
3
+ metadata.gz: 35228f443f64b75eaf2363860dfe987d1387afcc377fbe0d54a13bdfaae703dd
4
+ data.tar.gz: 8f12fe289e2111a4103472dbc66820379af13a104b5be576413ec54a5a9a0eeb
5
5
  SHA512:
6
- metadata.gz: f3c98e444f48f36ccd795517d3e67faedca7f99be85473be493d43cbd2e2b0704e0a9fbe051c7979de38059da09ed32f4b9642ec76b2d285a60b4b81e26b2ba2
7
- data.tar.gz: 3659690cb71ebccc841049333f2d3240f3129a3de2e15d3f04e9f22cd50871703ad9223161f606f32e0413363c42114e1244301991f2765a34cb15664e7d23c4
6
+ metadata.gz: e32f34694ce32570e87b15352d2d5dc348a63d833c91b43b6049a7eca0ca2785e9663150166b0e8be76ff212dc24bf78e02f88d7fac1cced66b18288bbc9494e
7
+ data.tar.gz: 40caa3b11eff42f562f5f697d7ddd5bd04e1eefe0839993757eb2e1b9c470c6e80742ba58abd90f600076e9936125cd95fed531ab516cf55d247b2261cf3f985
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .env
2
+ .bundle/
3
+ .vscode/
4
+ supergood-*.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 3.2.1
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,6 @@
1
+ {
2
+ "editor.codeActionsOnSave": {
3
+ "source.fixAll.eslint": true
4
+ },
5
+ "editor.tabSize": 2,
6
+ }
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'dotenv'
6
+ gem 'json'
7
+ gem 'securerandom'
8
+ gem 'base64'
9
+ gem 'uri'
10
+ gem 'logger'
11
+ gem 'digest'
12
+ gem 'stringio'
13
+ gem 'zlib'
data/Gemfile.lock ADDED
@@ -0,0 +1,109 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ supergood (0.0.12)
5
+ faraday (~> 2.7, >= 2.7.4)
6
+ rudash (~> 4.0, >= 4.0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.8.1)
12
+ public_suffix (>= 2.0.2, < 6.0)
13
+ base64 (0.1.1)
14
+ crack (0.4.5)
15
+ rexml
16
+ diff-lcs (1.5.0)
17
+ digest (3.1.1)
18
+ domain_name (0.5.20190701)
19
+ unf (>= 0.0.5, < 1.0.0)
20
+ dotenv (2.8.1)
21
+ faraday (2.7.4)
22
+ faraday-net_http (>= 2.0, < 3.1)
23
+ ruby2_keywords (>= 0.0.4)
24
+ faraday-net_http (3.0.2)
25
+ ffi (1.15.5)
26
+ ffi-compiler (1.0.1)
27
+ ffi (>= 1.0.0)
28
+ rake
29
+ hashdiff (1.0.1)
30
+ http (5.1.1)
31
+ addressable (~> 2.8)
32
+ http-cookie (~> 1.0)
33
+ http-form_data (~> 2.2)
34
+ llhttp-ffi (~> 0.4.0)
35
+ http-accept (1.7.0)
36
+ http-cookie (1.0.5)
37
+ domain_name (~> 0.5)
38
+ http-form_data (2.3.0)
39
+ httparty (0.21.0)
40
+ mini_mime (>= 1.0.0)
41
+ multi_xml (>= 0.5.2)
42
+ json (2.6.3)
43
+ llhttp-ffi (0.4.0)
44
+ ffi-compiler (~> 1.0)
45
+ rake (~> 13.0)
46
+ logger (1.5.3)
47
+ mime-types (3.4.1)
48
+ mime-types-data (~> 3.2015)
49
+ mime-types-data (3.2023.0218.1)
50
+ mini_mime (1.1.2)
51
+ multi_xml (0.6.0)
52
+ netrc (0.11.0)
53
+ public_suffix (5.0.1)
54
+ rake (13.0.6)
55
+ rest-client (2.1.0)
56
+ http-accept (>= 1.7.0, < 2.0)
57
+ http-cookie (>= 1.0.2, < 2.0)
58
+ mime-types (>= 1.16, < 4.0)
59
+ netrc (~> 0.8)
60
+ rexml (3.2.5)
61
+ rspec (3.12.0)
62
+ rspec-core (~> 3.12.0)
63
+ rspec-expectations (~> 3.12.0)
64
+ rspec-mocks (~> 3.12.0)
65
+ rspec-core (3.12.1)
66
+ rspec-support (~> 3.12.0)
67
+ rspec-expectations (3.12.2)
68
+ diff-lcs (>= 1.2.0, < 2.0)
69
+ rspec-support (~> 3.12.0)
70
+ rspec-mocks (3.12.4)
71
+ diff-lcs (>= 1.2.0, < 2.0)
72
+ rspec-support (~> 3.12.0)
73
+ rspec-support (3.12.0)
74
+ ruby2_keywords (0.0.5)
75
+ rudash (4.1.2)
76
+ securerandom (0.2.2)
77
+ stringio (3.0.5)
78
+ unf (0.1.4)
79
+ unf_ext
80
+ unf_ext (0.0.8.2)
81
+ uri (0.12.0)
82
+ webmock (3.18.1)
83
+ addressable (>= 2.8.0)
84
+ crack (>= 0.3.2)
85
+ hashdiff (>= 0.4.0, < 2.0.0)
86
+ zlib (3.0.0)
87
+
88
+ PLATFORMS
89
+ ruby
90
+
91
+ DEPENDENCIES
92
+ base64
93
+ digest
94
+ dotenv
95
+ http (~> 5.1, >= 5.1.1)
96
+ httparty (~> 0.21.0)
97
+ json
98
+ logger
99
+ rest-client (~> 2.1)
100
+ rspec (~> 3.12)
101
+ securerandom
102
+ stringio
103
+ supergood!
104
+ uri
105
+ webmock (~> 3.18, >= 3.18.1)
106
+ zlib
107
+
108
+ BUNDLED WITH
109
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,104 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: Supergood Systems, Inc.
6
+ Licensed Work: Supergood
7
+ The Licensed Work is (c) 2023 Supergood Systems, Inc.
8
+ Additional Use Grant: You may make use of the Licensed Work, provided that you do
9
+ not use the Licensed Work for an Application Monitoring
10
+ Service.
11
+
12
+ An "Application Monitoring Service" is a commercial offering
13
+ that allows third parties (other than your employees and
14
+ contractors) to access the functionality of the Licensed
15
+ Work so that such third parties directly benefit from the
16
+ API or application monitoring features of the
17
+ Licensed Work.
18
+
19
+ Change Date: 2026-02-15
20
+
21
+ Change License: Apache License, Version 2.0
22
+
23
+ For information about alternative licensing arrangements for the Software,
24
+ please visit: https://supergood.ai
25
+
26
+ Notice
27
+
28
+ The Business Source License (this document, or the "License") is not an Open
29
+ Source license. However, the Licensed Work will eventually be made available
30
+ under an Open Source License, as stated in this License.
31
+
32
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
33
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
34
+
35
+ -----------------------------------------------------------------------------
36
+
37
+ Business Source License 1.1
38
+
39
+ Terms
40
+
41
+ The Licensor hereby grants you the right to copy, modify, create derivative
42
+ works, redistribute, and make non-production use of the Licensed Work. The
43
+ Licensor may make an Additional Use Grant, above, permitting limited
44
+ production use.
45
+
46
+ Effective on the Change Date, or the fourth anniversary of the first publicly
47
+ available distribution of a specific version of the Licensed Work under this
48
+ License, whichever comes first, the Licensor hereby grants you rights under
49
+ the terms of the Change License, and the rights granted in the paragraph
50
+ above terminate.
51
+
52
+ If your use of the Licensed Work does not comply with the requirements
53
+ currently in effect as described in this License, you must purchase a
54
+ commercial license from the Licensor, its affiliated entities, or authorized
55
+ resellers, or you must refrain from using the Licensed Work.
56
+
57
+ All copies of the original and modified Licensed Work, and derivative works
58
+ of the Licensed Work, are subject to this License. This License applies
59
+ separately for each version of the Licensed Work and the Change Date may vary
60
+ for each version of the Licensed Work released by Licensor.
61
+
62
+ You must conspicuously display this License on each original or modified copy
63
+ of the Licensed Work. If you receive the Licensed Work in original or
64
+ modified form from a third party, the terms and conditions set forth in this
65
+ License apply to your use of that work.
66
+
67
+ Any use of the Licensed Work in violation of this License will automatically
68
+ terminate your rights under this License for the current and all other
69
+ versions of the Licensed Work.
70
+
71
+ This License does not grant you any right in any trademark or logo of
72
+ Licensor or its affiliates (provided that you may use a trademark or logo of
73
+ Licensor as expressly required by this License).
74
+
75
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
76
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
77
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
78
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
79
+ TITLE.
80
+
81
+ MariaDB hereby grants you permission to use this License’s text to license
82
+ your works, and to refer to it using the trademark "Business Source License",
83
+ as long as you comply with the Covenants of Licensor below.
84
+
85
+ Covenants of Licensor
86
+
87
+ In consideration of the right to use this License’s text and the "Business
88
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
89
+ other recipients of the licensed work to be provided by Licensor:
90
+
91
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
92
+ or a license that is compatible with GPL Version 2.0 or a later version,
93
+ where "compatible" means that software provided under the Change License can
94
+ be included in a program with software provided under GPL Version 2.0 or a
95
+ later version. Licensor may specify additional Change Licenses without
96
+ limitation.
97
+
98
+ 2. To either: (a) specify an additional grant of rights to use that does not
99
+ impose any additional restriction on the right granted in this License, as
100
+ the Additional Use Grant; or (b) insert the text "None".
101
+
102
+ 3. To specify a Change Date.
103
+
104
+ 4. Not to modify this License in any other way.
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Supergood
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/supergood`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'supergood'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install supergood
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/supergood.
36
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "supergood"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -1,3 +1,3 @@
1
1
  module Supergood
2
- VERSION = '0.0.11'.freeze
2
+ VERSION = '0.0.12'.freeze
3
3
  end
data/supergood.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ require_relative './lib/supergood/version.rb'
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'supergood'
5
+ s.version = Supergood::VERSION
6
+ s.date = '2023-03-13'
7
+ s.authors = ['Alex Klarfeld']
8
+ s.email = 'alex@supergood.ai'
9
+ s.license = 'Nonstandard'
10
+ s.summary = 'Supergood - API monitoring'
11
+ s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
12
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
13
+ end
14
+ s.bindir = 'exe'
15
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
16
+ s.require_paths = ['lib']
17
+ s.homepage = 'https://supergood.ai'
18
+ s.metadata = { 'source_code_uri' => 'https://github.com/supergoodsystems/supergood-rb', 'license' => 'BUSL-1.1' }
19
+ s.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
20
+
21
+ s.add_dependency 'rudash', '~> 4.0', '>= 4.0.2'
22
+ s.add_dependency 'faraday', '~> 2.7', '>= 2.7.4'
23
+
24
+ s.add_development_dependency 'rest-client', '~> 2.1'
25
+ s.add_development_dependency 'httparty', '~> 0.21.0'
26
+ s.add_development_dependency 'http', '~> 5.1', '>= 5.1.1'
27
+ s.add_development_dependency 'rspec', '~> 3.12'
28
+ s.add_development_dependency 'webmock', '~> 3.18', '>= 3.18.1'
29
+
30
+ end
31
+
metadata CHANGED
@@ -1,21 +1,154 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: supergood
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Klarfeld
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2023-03-13 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rudash
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 4.0.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '4.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 4.0.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.7'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.7.4
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '2.7'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.7.4
53
+ - !ruby/object:Gem::Dependency
54
+ name: rest-client
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '2.1'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '2.1'
67
+ - !ruby/object:Gem::Dependency
68
+ name: httparty
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 0.21.0
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 0.21.0
81
+ - !ruby/object:Gem::Dependency
82
+ name: http
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '5.1'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 5.1.1
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '5.1'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 5.1.1
101
+ - !ruby/object:Gem::Dependency
102
+ name: rspec
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '3.12'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '3.12'
115
+ - !ruby/object:Gem::Dependency
116
+ name: webmock
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '3.18'
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 3.18.1
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.18'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 3.18.1
13
135
  description:
14
136
  email: alex@supergood.ai
15
137
  executables: []
16
138
  extensions: []
17
139
  extra_rdoc_files: []
18
140
  files:
141
+ - ".gitignore"
142
+ - ".rspec"
143
+ - ".travis.yml"
144
+ - ".vscode/settings.json"
145
+ - Gemfile
146
+ - Gemfile.lock
147
+ - LICENSE
148
+ - README.md
149
+ - Rakefile
150
+ - bin/console
151
+ - bin/setup
19
152
  - lib/supergood.rb
20
153
  - lib/supergood/api.rb
21
154
  - lib/supergood/client.rb
@@ -25,6 +158,7 @@ files:
25
158
  - lib/supergood/vendors/http.rb
26
159
  - lib/supergood/vendors/net-http.rb
27
160
  - lib/supergood/version.rb
161
+ - supergood.gemspec
28
162
  homepage: https://supergood.ai
29
163
  licenses:
30
164
  - Nonstandard
@@ -39,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
173
  requirements:
40
174
  - - ">="
41
175
  - !ruby/object:Gem::Version
42
- version: 2.1.0
176
+ version: 2.3.0
43
177
  required_rubygems_version: !ruby/object:Gem::Requirement
44
178
  requirements:
45
179
  - - ">="