Skip to content

Commit

Permalink
fix required dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
KapustaB committed Jan 24, 2024
1 parent e17c467 commit f1af2df
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/specs.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Run tests
name: Tests

on:
pull_request:
types: [opened, synchronize]
branches: ["**"]

permissions:
contents: read
Expand All @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.6", "2.7", "3.0"]
ruby-version: ["2.6", "3.1"]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

require 'rake/testtask'

Rake::TestTask.new do |t|
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.test_files = ['test/**/*_spec.rb']
Expand Down
3 changes: 3 additions & 0 deletions lib/treblle/interfaces/request.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# frozen_string_literal: true

require 'json'
require 'action_dispatch'

module Treblle
module Interfaces
class Request
Expand Down
5 changes: 5 additions & 0 deletions lib/treblle/interfaces/response.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# frozen_string_literal: true

require 'active_support'
require 'json'

module Treblle
module Interfaces
class Response
Expand Down
1 change: 1 addition & 0 deletions test/lib/interfaces/request_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'minitest/autorun'
require 'minitest/spec'
require 'treblle/interfaces/request'
require 'rack/mock'

describe Treblle::Interfaces::Request do
let(:path) { '/api/some_endpoint' }
Expand Down
36 changes: 19 additions & 17 deletions treblle.gemspec
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path('lib', __dir__)

require 'treblle/version'

Gem::Specification.new do |s|
s.name = 'treblle'
s.version = Treblle::VERSION
s.platform = Gem::Platform::RUBY
s.summary = 'Middleware for monitoring your API endpoints'
s.authors = ['Borna Kapusta']
s.email = '[email protected]'
s.homepage = 'https://rubygems.org/gems/treblle'
s.license = 'MIT'
Gem::Specification.new do |spec|
spec.name = 'treblle'
spec.version = Treblle::VERSION
spec.platform = Gem::Platform::RUBY
spec.summary = 'Middleware for monitoring your API endpoints'
spec.authors = ['Borna Kapusta']
spec.email = '[email protected]'
spec.homepage = 'https://rubygems.org/gems/treblle'
spec.license = 'MIT'

s.files = Dir['lib/**/*'] + %w[MIT-LICENSE SECURITY.md README.md]
spec.files = Dir['lib/**/*'] + %w[MIT-LICENSE SECURITY.md README.md]

s.description = <<~EOF
spec.description = <<~EOF
Treblle is a lightweight SDK that helps Engineering and Product teams
build, ship & maintain REST based APIs faster.
Treblle SDKs can…
Send requests to your Treblle dashboard
Send error to your Treblle dashboard
EOF

s.required_ruby_version = '>= 2.4.0'
s.add_development_dependency 'activesupport', '~> 6.0'
s.add_development_dependency 'bundler'
s.add_development_dependency 'json'
s.add_development_dependency 'minitest', '~> 5.0'
s.add_development_dependency 'rake'
spec.required_ruby_version = '>= 2.4.0'
spec.add_dependency 'actionpack'
spec.add_dependency 'activesupport'
spec.add_dependency 'json'
spec.add_dependency 'minitest'
spec.add_dependency 'rake'
end

0 comments on commit f1af2df

Please sign in to comment.