mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-22 03:21:28 +00:00
Merge pull request #59 from toptal/no-jira-update-hastebin-urls
Update hastebin urls
This commit is contained in:
3
.bundle/config
Normal file
3
.bundle/config
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
BUNDLE_RETRY: "3"
|
||||||
|
BUNDLE_JOBS: "4"
|
||||||
23
.github/workflows/unit.yml
vendored
23
.github/workflows/unit.yml
vendored
@@ -4,8 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
|
||||||
- UTI-2583--adapt-haste-client-to-new-api
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit_tests:
|
unit_tests:
|
||||||
@@ -14,15 +12,16 @@ jobs:
|
|||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 3.0.0
|
ruby-version: '3.0'
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
- name: Run bundle install
|
- name: Run bundle install
|
||||||
run: |
|
run: |
|
||||||
gem install bundler
|
gem install bundler
|
||||||
bundle install --jobs 4 --retry 3
|
bundle install --jobs 4 --retry 3
|
||||||
|
|
||||||
- name: Build and test with rspec
|
- name: Build and test with rspec
|
||||||
run: bundle exec rspec spec
|
run: bundle exec rspec spec
|
||||||
|
|||||||
@@ -131,4 +131,4 @@ uploader.upload_path '/tmp/whaaaa' # key
|
|||||||
|
|
||||||
## Contributor License Agreement
|
## Contributor License Agreement
|
||||||
|
|
||||||
Licensed under the [MIT](https://github.com/toptal/haste-client/blob/main/LICENSE.txt 'https://github.com/toptal/haste-client/blob/main/LICENSE.txt') license.
|
Licensed under the [MIT](https://github.com/toptal/haste-client/blob/master/LICENSE.txt 'https://github.com/toptal/haste-client/blob/main/LICENSE.txt') license.
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ require File.dirname(__FILE__) + '/lib/haste/version'
|
|||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'haste'
|
s.name = 'haste'
|
||||||
s.author = 'John Crepezzi'
|
s.author = '@toptal/marketing-tools-2-eng'
|
||||||
s.add_development_dependency('rspec')
|
s.add_development_dependency('rspec')
|
||||||
s.add_dependency('json')
|
s.add_dependency('json')
|
||||||
s.add_dependency('faraday', '~> 0.9')
|
s.add_dependency('faraday', '~> 0.9')
|
||||||
s.description = 'CLI Haste Client'
|
s.description = 'CLI Haste Client'
|
||||||
s.license = 'MIT License'
|
s.license = 'MIT License'
|
||||||
s.homepage = 'https://github.com/seejohnrun/haste-client'
|
s.homepage = 'https://github.com/toptal/haste-client'
|
||||||
s.email = 'john.crepezzi@gmail.com'
|
s.email = 'support@toptal.com'
|
||||||
s.executables = 'haste'
|
s.executables = 'haste'
|
||||||
s.files = Dir['lib/**/*.rb', 'haste']
|
s.files = Dir['lib/**/*.rb', 'haste']
|
||||||
s.platform = Gem::Platform::RUBY
|
s.platform = Gem::Platform::RUBY
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ require 'uri'
|
|||||||
|
|
||||||
module Haste
|
module Haste
|
||||||
|
|
||||||
DEFAULT_SERVER_URL = 'https://new.hastebin.com'
|
DEFAULT_SERVER_URL = 'https://hastebin.com'
|
||||||
DEFAULT_SHARE_SERVER_URL = 'https://new.hastebin.com'
|
DEFAULT_SHARE_SERVER_URL = 'https://hastebin.com'
|
||||||
|
|
||||||
class Uploader
|
class Uploader
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user