From 56cdec539fcce02e0c868c62ff97a64a57fa88f0 Mon Sep 17 00:00:00 2001 From: Marius Kleidl Date: Wed, 10 Jan 2024 08:51:53 +0100 Subject: [PATCH] Fix links pointing to main branch --- README.md | 8 ++++---- examples/README.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5a03bb3..465e785 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ Check the YARD documentation for more information on using ### 4. Creating an Assembly with Templates -Transloadit allows you to use custom [templates](https://github.com/transloadit/ruby-sdk/blob/master/README.md#8-templates) +Transloadit allows you to use custom [templates](https://github.com/transloadit/ruby-sdk/blob/main/README.md#8-templates) for recurring encoding tasks. In order to use these do the following: ```ruby @@ -408,17 +408,17 @@ transloadit.assembly(:tries => 0).create! open('/PATH/TO/FILE.mpg') ## Example A small sample tutorial of using the Transloadit ruby-sdk to optimize an image, encode MP3 audio, add ID3 tags, -and more can be found [here](https://github.com/transloadit/ruby-sdk/tree/master/examples). +and more can be found [here](https://github.com/transloadit/ruby-sdk/tree/main/examples). ## Documentation Up-to-date YARD documentation is automatically generated. You can view the docs for the released gem or -for the latest [git master](https://rubydoc.info/github/transloadit/ruby-sdk/master/frames). +for the latest [git main](https://rubydoc.info/github/transloadit/ruby-sdk/main/frames). ## Compatibility -Please see [ci.yml](https://github.com/transloadit/ruby-sdk/tree/master/.github/workflows/ci.yml) for a list of supported ruby versions. It may also work on older Rubies, but support for those is not guaranteed. If it doesn't work on one of the officially supported Rubies, please file a +Please see [ci.yml](https://github.com/transloadit/ruby-sdk/tree/main/.github/workflows/ci.yml) for a list of supported ruby versions. It may also work on older Rubies, but support for those is not guaranteed. If it doesn't work on one of the officially supported Rubies, please file a [bug report](https://github.com/transloadit/ruby-sdk/issues). Compatibility patches for other Rubies are welcome. ### Ruby 2.x diff --git a/examples/README.md b/examples/README.md index 63c7f22..aaf4fda 100644 --- a/examples/README.md +++ b/examples/README.md @@ -39,7 +39,7 @@ utilizing our credentials that we set in environment variables. ### First example -In the [first example](https://github.com/transloadit/ruby-sdk/blob/master/examples/basic/image-transcoder.rb) +In the [first example](https://github.com/transloadit/ruby-sdk/blob/main/examples/basic/image-transcoder.rb) that gets played, we fetch an image from the cat api, optimize it using the Transloadit `/image/optimize` robot, and then optionally stores it in s3 if the s3 credentials are set. @@ -85,7 +85,7 @@ assumes the file object passed in responds to `open`. ### Second example -In the [second example](https://github.com/transloadit/ruby-sdk/blob/master/examples/basic/audio-transcoder.rb), +In the [second example](https://github.com/transloadit/ruby-sdk/blob/main/examples/basic/audio-transcoder.rb), we take a non-mp3 audio file, encode it as an mp3, add ID3 tags to it, and then optionally store it in s3. There are many use cases for audio uploads, and adding ID3 tags provides the necessary metadata to display artist and track information in audio players such as iTunes. @@ -153,7 +153,7 @@ assembly.create! open(file) ### Third example -In the [third example](https://github.com/transloadit/ruby-sdk/blob/master/examples/basic/audio-concat-transcoder.rb), +In the [third example](https://github.com/transloadit/ruby-sdk/blob/main/examples/basic/audio-concat-transcoder.rb), we take a series of mp3 files and concatenate them together. We then optionally upload the result to s3. This example is provided to showcase advanced usage of the `use` parameter in the `audio/concat` assembly.