tinybird 0.1.0
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 +7 -0
- data/.dockerignore +9 -0
- data/.gitignore +10 -0
- data/.standard.yml +4 -0
- data/Dockerfile-3.3 +30 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +21 -0
- data/README.md +15 -0
- data/Rakefile +20 -0
- data/bin/console +7 -0
- data/bin/dev-lint +3 -0
- data/bin/dev-test +3 -0
- data/bin/setup +6 -0
- data/bin/standardrb +27 -0
- data/docker-compose.yml +20 -0
- data/lib/tinybird/version.rb +5 -0
- data/lib/tinybird.rb +7 -0
- data/tinybird.gemspec +28 -0
- metadata +63 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 20843d4d73262c83e29f389e11e530c6c26128f93c1e41b12822147497714217
|
4
|
+
data.tar.gz: 6e9fa9bec789401fde7704554ace18a3a69304118e315e563e2bc56a1e40cba7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 77b30d000e0c7cba474b0e33e8f315eb7941749e6c23ed836ff8466a697db2b389e60e2213ce49232ea2d453f3df7a196ec6a203bd2bb052fed074d825364ef2
|
7
|
+
data.tar.gz: 1366183deb36160c210af308570df410813b81b602aaa7dc92e7ac28a56c896fe645f4b7a096631854b27dc1aeb1d06f0d65fa6b27c22ea49531f7ffefd43b2e
|
data/.dockerignore
ADDED
data/.gitignore
ADDED
data/.standard.yml
ADDED
data/Dockerfile-3.3
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
FROM ruby:3.3-alpine as base
|
2
|
+
|
3
|
+
RUN apk add --update --no-cache \
|
4
|
+
build-base \
|
5
|
+
cmake \
|
6
|
+
tzdata \
|
7
|
+
bash \
|
8
|
+
git
|
9
|
+
|
10
|
+
ENV APP_PATH /var/www/tinybird-ruby
|
11
|
+
RUN mkdir -p $APP_PATH
|
12
|
+
|
13
|
+
# Build intermediate
|
14
|
+
FROM base as intermediate
|
15
|
+
|
16
|
+
WORKDIR $APP_PATH
|
17
|
+
|
18
|
+
RUN rm -rf /var/cache/apk/*
|
19
|
+
|
20
|
+
FROM base as development
|
21
|
+
|
22
|
+
COPY --from=intermediate $APP_PATH $APP_PATH
|
23
|
+
|
24
|
+
WORKDIR $APP_PATH
|
25
|
+
|
26
|
+
ENV GEM_HOME $APP_PATH/vendor/bundle
|
27
|
+
ENV BUNDLE_PATH vendor/bundle
|
28
|
+
|
29
|
+
COPY . ./
|
30
|
+
RUN bundle check || bundle install
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 dvmonroe
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Tinybird
|
2
|
+
|
3
|
+
> [!CAUTION]
|
4
|
+
> This library is still in active development and should be used at your own risk. There may be breaking changes without correct semver applied.
|
5
|
+
|
6
|
+
## Development
|
7
|
+
|
8
|
+
|
9
|
+
## Contributing
|
10
|
+
|
11
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[dvmonroe]/tinybird-ruby.
|
12
|
+
|
13
|
+
## License
|
14
|
+
|
15
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rake/testtask"
|
5
|
+
|
6
|
+
Rake::TestTask.new(:test) do |t|
|
7
|
+
t.libs << "test"
|
8
|
+
t.libs << "lib"
|
9
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
10
|
+
end
|
11
|
+
|
12
|
+
task default: :test
|
13
|
+
|
14
|
+
task :lint do
|
15
|
+
if ENV["CI"]
|
16
|
+
sh "bin/standardrb"
|
17
|
+
else
|
18
|
+
sh "bin/standardrb --fix"
|
19
|
+
end
|
20
|
+
end
|
data/bin/console
ADDED
data/bin/dev-lint
ADDED
data/bin/dev-test
ADDED
data/bin/setup
ADDED
data/bin/standardrb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'standardrb' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
17
|
+
load(bundle_binstub)
|
18
|
+
else
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
require "rubygems"
|
25
|
+
require "bundler/setup"
|
26
|
+
|
27
|
+
load Gem.bin_path("standard", "standardrb")
|
data/docker-compose.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
version: '3.9'
|
2
|
+
|
3
|
+
services:
|
4
|
+
'3.3':
|
5
|
+
build:
|
6
|
+
context: .
|
7
|
+
dockerfile: Dockerfile-3.3
|
8
|
+
tty: true
|
9
|
+
stdin_open: true
|
10
|
+
volumes:
|
11
|
+
- ./bin:/var/www/tinybird-ruby/bin/
|
12
|
+
- ./lib:/var/www/tinybird-ruby/lib/
|
13
|
+
- ./test:/var/www/tinybird-ruby/test/
|
14
|
+
container_name: tinybird-ruby-3.3
|
15
|
+
command: bash
|
16
|
+
|
17
|
+
volumes:
|
18
|
+
bin:
|
19
|
+
lib:
|
20
|
+
test:
|
data/lib/tinybird.rb
ADDED
data/tinybird.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "tinybird/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "tinybird"
|
7
|
+
spec.version = Tinybird::VERSION
|
8
|
+
spec.authors = ["Drew Monroe"]
|
9
|
+
spec.email = ["drew@pinecreeklabs.com"]
|
10
|
+
|
11
|
+
spec.summary = "A Ruby client for the Tinybird API"
|
12
|
+
spec.description = "A Ruby client for the Tinybird API"
|
13
|
+
spec.homepage = "https://github.com/dvmonroe/tinybird-ruby"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
18
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
end
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tinybird
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Drew Monroe
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-08-03 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A Ruby client for the Tinybird API
|
14
|
+
email:
|
15
|
+
- drew@pinecreeklabs.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- ".dockerignore"
|
21
|
+
- ".gitignore"
|
22
|
+
- ".standard.yml"
|
23
|
+
- Dockerfile-3.3
|
24
|
+
- Gemfile
|
25
|
+
- LICENSE.txt
|
26
|
+
- README.md
|
27
|
+
- Rakefile
|
28
|
+
- bin/console
|
29
|
+
- bin/dev-lint
|
30
|
+
- bin/dev-test
|
31
|
+
- bin/setup
|
32
|
+
- bin/standardrb
|
33
|
+
- docker-compose.yml
|
34
|
+
- lib/tinybird.rb
|
35
|
+
- lib/tinybird/version.rb
|
36
|
+
- tinybird.gemspec
|
37
|
+
homepage: https://github.com/dvmonroe/tinybird-ruby
|
38
|
+
licenses:
|
39
|
+
- MIT
|
40
|
+
metadata:
|
41
|
+
homepage_uri: https://github.com/dvmonroe/tinybird-ruby
|
42
|
+
source_code_uri: https://github.com/dvmonroe/tinybird-ruby
|
43
|
+
changelog_uri: https://github.com/dvmonroe/tinybird-ruby
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubygems_version: 3.4.17
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: A Ruby client for the Tinybird API
|
63
|
+
test_files: []
|