Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hihouhou/huginn_mastodon_publish_agent
Huginn agent for publishing message via the Mastodon API
https://github.com/hihouhou/huginn_mastodon_publish_agent
huginn huginn-agent
Last synced: about 1 month ago
JSON representation
Huginn agent for publishing message via the Mastodon API
- Host: GitHub
- URL: https://github.com/hihouhou/huginn_mastodon_publish_agent
- Owner: hihouhou
- License: mit
- Created: 2022-04-29T22:46:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T11:04:07.000Z (about 2 years ago)
- Last Synced: 2024-10-31T14:47:15.985Z (about 2 months ago)
- Topics: huginn, huginn-agent
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MastodonPublishAgent
Welcome to your new agent 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/huginn_mastodon_publish_agent`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
## Installation
This gem is run as part of the [Huginn](https://github.com/huginn/huginn) project. If you haven't already, follow the [Getting Started](https://github.com/huginn/huginn#getting-started) instructions there.
Add this string to your Huginn's .env `ADDITIONAL_GEMS` configuration:
```ruby
huginn_mastodon_publish_agent
# when only using this agent gem it should look like this:
ADDITIONAL_GEMS=huginn_mastodon_publish_agent
```And then execute:
$ bundle
## Usage
TODO: Write usage instructions here
## Development
Running `rake` will clone and set up Huginn in `spec/huginn` to run the specs of the Gem in Huginn as if they would be build-in Agents. The desired Huginn repository and branch can be modified in the `Rakefile`:
```ruby
HuginnAgent.load_tasks(branch: '', remote: 'https://github.com//huginn.git')
```Make sure to delete the `spec/huginn` directory and re-run `rake` after changing the `remote` to update the Huginn source code.
After the setup is done `rake spec` will only run the tests, without cloning the Huginn source again.
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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
1. Fork it ( https://github.com/[my-github-username]/huginn_mastodon_publish_agent/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request