repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/email_agent.rb
app/models/agents/email_agent.rb
require 'net/smtp' module Agents class EmailAgent < Agent include EmailConcern can_dry_run! default_schedule "never" cannot_create_events! no_bulk_receive! description <<~MD The Email Agent sends any events it receives via email immediately. You can specify the email's subject ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/user_location_agent.rb
app/models/agents/user_location_agent.rb
require 'securerandom' module Agents class UserLocationAgent < Agent cannot_be_scheduled! gem_dependency_check { defined?(Haversine) } description do <<~MD The User Location Agent creates events based on WebHook POSTS that contain a `latitude` and `longitude`. You can use the [POSTLocati...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/data_output_agent.rb
app/models/agents/data_output_agent.rb
module Agents class DataOutputAgent < Agent include WebRequestConcern cannot_be_scheduled! cannot_create_events! description do <<~MD The Data Output Agent outputs received events as either RSS or JSON. Use it to output a public or private stream of Huginn data. This Agent wi...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twitter_user_agent.rb
app/models/agents/twitter_user_agent.rb
module Agents class TwitterUserAgent < Agent include TwitterConcern can_dry_run! cannot_receive_events! description <<~MD The Twitter User Agent either follows the timeline of a specific Twitter user or follows your own home timeline including both your tweets and tweets from people whom you a...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/json_parse_agent.rb
app/models/agents/json_parse_agent.rb
module Agents class JsonParseAgent < Agent include FormConfigurable cannot_be_scheduled! can_dry_run! description <<~MD The JSON Parse Agent parses a JSON string and emits the data in a new event or merge with with the original event. `data` is the JSON to parse. Use [Liquid](https://gi...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/weather_agent.rb
app/models/agents/weather_agent.rb
require 'date' require 'cgi' module Agents class WeatherAgent < Agent cannot_receive_events! gem_dependency_check { defined?(ForecastIO) } description <<~MD The Weather Agent creates an event for the day's weather at a given `location`. #{'## Include `forecast_io` in your Gemfile to use th...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/gap_detector_agent.rb
app/models/agents/gap_detector_agent.rb
module Agents class GapDetectorAgent < Agent default_schedule "every_10m" description <<~MD The Gap Detector Agent will watch for holes or gaps in a stream of incoming Events and generate "no data alerts". The `value_path` value is a [JSONPath](http://goessner.net/articles/JsonPath/) to a value ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/shell_command_agent.rb
app/models/agents/shell_command_agent.rb
module Agents class ShellCommandAgent < Agent default_schedule "never" can_dry_run! no_bulk_receive! def self.should_run? ENV['ENABLE_INSECURE_AGENTS'] == "true" end description <<~MD The Shell Command Agent will execute commands on your local system, returning the output. ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/mqtt_agent.rb
app/models/agents/mqtt_agent.rb
require "json" module Agents class MqttAgent < Agent gem_dependency_check { defined?(MQTT) } description <<~MD The MQTT Agent allows both publication and subscription to an MQTT topic. #{'## Include `mqtt` in your Gemfile to use this Agent!' if dependencies_missing?} MQTT is a generic tr...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/rss_agent.rb
app/models/agents/rss_agent.rb
module Agents class RssAgent < Agent include WebRequestConcern cannot_receive_events! can_dry_run! default_schedule "every_1d" gem_dependency_check { defined?(Feedjira) } DEFAULT_EVENTS_ORDER = [['{{date_published}}', 'time'], ['{{last_updated}}', 'time']] description do <<~MD ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/weibo_publish_agent.rb
app/models/agents/weibo_publish_agent.rb
module Agents class WeiboPublishAgent < Agent include WeiboConcern cannot_be_scheduled! description <<~MD The Weibo Publish Agent publishes tweets from the events it receives. #{'## Include `weibo_2` in your Gemfile to use this Agent!' if dependencies_missing?} You must first set up ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/scheduler_agent.rb
app/models/agents/scheduler_agent.rb
require 'fugit' module Agents class SchedulerAgent < Agent include AgentControllerConcern cannot_be_scheduled! cannot_receive_events! cannot_create_events! @@second_precision_enabled = ENV['ENABLE_SECOND_PRECISION_SCHEDULE'] == 'true' cattr_reader :second_precision_enabled description...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/jq_agent.rb
app/models/agents/jq_agent.rb
require 'open3' module Agents class JqAgent < Agent cannot_be_scheduled! can_dry_run! def self.should_run? !!jq_version end def self.jq_command ENV['USE_JQ'].presence end def self.jq_version if command = jq_command Open3.capture2(command, '--version', 2 => IO:...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/google_translation_agent.rb
app/models/agents/google_translation_agent.rb
module Agents class GoogleTranslationAgent < Agent cannot_be_scheduled! can_dry_run! gem_dependency_check do require 'google/cloud/translate/v2' rescue LoadError false else true end description <<~MD The Translation Agent will attempt to translate text between nat...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/manual_event_agent.rb
app/models/agents/manual_event_agent.rb
module Agents class ManualEventAgent < Agent cannot_be_scheduled! cannot_receive_events! description <<~MD The Manual Event Agent is used to manually create Events for testing or other purposes. Connect this Agent to other Agents and create Events using the UI provided on this Agent's Summar...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/imap_folder_agent.rb
app/models/agents/imap_folder_agent.rb
require 'base64' require 'delegate' require 'net/imap' require 'mail' module Agents class ImapFolderAgent < Agent include GoogleOauth2Concern include EventHeadersConcern cannot_receive_events! can_dry_run! default_schedule "every_30m" description <<~MD The Imap Folder Agent checks a...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twitter_search_agent.rb
app/models/agents/twitter_search_agent.rb
module Agents class TwitterSearchAgent < Agent include TwitterConcern can_dry_run! cannot_receive_events! description <<~MD The Twitter Search Agent performs and emits the results of a specified Twitter search. #{twitter_dependencies_missing if dependencies_missing?} If you want ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/jabber_agent.rb
app/models/agents/jabber_agent.rb
module Agents class JabberAgent < Agent include LongRunnable include FormConfigurable cannot_be_scheduled! gem_dependency_check { defined?(Jabber) } description <<~MD The Jabber Agent will send any events it receives to your Jabber/XMPP IM account. #{'## Include `xmpp4r` in your Ge...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/trigger_agent.rb
app/models/agents/trigger_agent.rb
module Agents class TriggerAgent < Agent cannot_be_scheduled! can_dry_run! VALID_COMPARISON_TYPES = %w[ regex !regex field<value field<=value field==value field!=value field>=value field>value not\ in ] description <<~MD The Trigger Age...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/sentiment_agent.rb
app/models/agents/sentiment_agent.rb
require 'csv' module Agents class SentimentAgent < Agent class_attribute :anew cannot_be_scheduled! description <<~MD The Sentiment Agent generates `good-bad` (psychological valence or happiness index), `active-passive` (arousal), and `strong-weak` (dominance) score. It will output a value betwe...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/event_formatting_agent.rb
app/models/agents/event_formatting_agent.rb
module Agents class EventFormattingAgent < Agent cannot_be_scheduled! can_dry_run! description <<~MD The Event Formatting Agent allows you to format incoming Events, adding new fields as needed. For example, here is a possible Event: { "high": { "celsius"...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/liquid_output_agent.rb
app/models/agents/liquid_output_agent.rb
module Agents class LiquidOutputAgent < Agent include FormConfigurable cannot_be_scheduled! cannot_create_events! DATE_UNITS = %w[second seconds minute minutes hour hours day days week weeks month months year years] description do <<~MD The Liquid Output Agent outputs events thro...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twitter_publish_agent.rb
app/models/agents/twitter_publish_agent.rb
module Agents class TwitterPublishAgent < Agent include TwitterConcern cannot_be_scheduled! description <<~MD The Twitter Publish Agent publishes tweets from the events it receives. #{twitter_dependencies_missing if dependencies_missing?} To be able to use this Agent you need to auth...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/tumblr_publish_agent.rb
app/models/agents/tumblr_publish_agent.rb
module Agents class TumblrPublishAgent < Agent include TumblrConcern cannot_be_scheduled! gem_dependency_check { defined?(Tumblr::Client) } description <<~MD The Tumblr Publish Agent publishes Tumblr posts from the events it receives. #{'## Include `tumblr_client` and `omniauth-tumblr`...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/jira_agent.rb
app/models/agents/jira_agent.rb
#!/usr/bin/env ruby require 'cgi' require 'httparty' require 'date' module Agents class JiraAgent < Agent include WebRequestConcern cannot_receive_events! description <<~MD The Jira Agent subscribes to Jira issue updates. - `jira_url` specifies the full URL of the jira installation, inclu...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twitter_action_agent.rb
app/models/agents/twitter_action_agent.rb
module Agents class TwitterActionAgent < Agent include TwitterConcern cannot_be_scheduled! description <<~MD The Twitter Action Agent is able to retweet or favorite tweets from the events it receives. #{twitter_dependencies_missing if dependencies_missing?} It expects to consume even...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twitter_favorites.rb
app/models/agents/twitter_favorites.rb
module Agents class TwitterFavorites < Agent include TwitterConcern can_dry_run! cannot_receive_events! description <<~MD The Twitter Favorites List Agent follows the favorites list of a specified Twitter user. #{twitter_dependencies_missing if dependencies_missing?} To be able t...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/website_agent.rb
app/models/agents/website_agent.rb
require 'nokogiri' require 'date' module Agents class WebsiteAgent < Agent include WebRequestConcern can_dry_run! can_order_created_events! no_bulk_receive! default_schedule "every_12h" UNIQUENESS_LOOK_BACK = 200 UNIQUENESS_FACTOR = 3 description <<~MD The Website Agent scra...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/evernote_agent.rb
app/models/agents/evernote_agent.rb
module Agents class EvernoteAgent < Agent include EvernoteConcern description <<~MD The Evernote Agent connects with a user's Evernote note store. Visit [Evernote](https://dev.evernote.com/doc/) to set up an Evernote app and receive an api key and secret. Store these in the Evernote enviro...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/de_duplication_agent.rb
app/models/agents/de_duplication_agent.rb
module Agents class DeDuplicationAgent < Agent include FormConfigurable cannot_be_scheduled! description <<~MD The De-duplication Agent receives a stream of events and remits the event if it is not a duplicate. `property` the value that should be used to determine the uniqueness of the event...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/dropbox_file_url_agent.rb
app/models/agents/dropbox_file_url_agent.rb
module Agents class DropboxFileUrlAgent < Agent include DropboxConcern cannot_be_scheduled! no_bulk_receive! can_dry_run! description <<~MD The _DropboxFileUrlAgent_ is used to work with Dropbox. It takes a file path (or multiple files paths) and emits events with either [temporary links](...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/pdf_info_agent.rb
app/models/agents/pdf_info_agent.rb
require 'open-uri' require 'hypdf' module Agents class PdfInfoAgent < Agent gem_dependency_check { defined?(HyPDF) } cannot_be_scheduled! no_bulk_receive! description <<~MD The PDF Info Agent returns the metadata contained within a given PDF file, using HyPDF. #{'## Include the `hypdf`...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twitter_stream_agent.rb
app/models/agents/twitter_stream_agent.rb
module Agents class TwitterStreamAgent < Agent include TwitterConcern include LongRunnable cannot_receive_events! description <<~MD The Twitter Stream Agent follows the Twitter stream in real time, watching for certain keywords, or filters, that you provide. #{twitter_dependencies_missi...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/aftership_agent.rb
app/models/agents/aftership_agent.rb
require 'uri' module Agents class AftershipAgent < Agent cannot_receive_events! default_schedule "every_10m" description <<~MD The Aftership agent allows you to track your shipment from aftership and emit them into events. To be able to use the Aftership API, you need to generate an `API K...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/change_detector_agent.rb
app/models/agents/change_detector_agent.rb
module Agents class ChangeDetectorAgent < Agent cannot_be_scheduled! description <<~MD The Change Detector Agent receives a stream of events and emits a new event when a property of the received event changes. `property` specifies a [Liquid](https://github.com/huginn/huginn/wiki/Formatting-Event...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/twilio_agent.rb
app/models/agents/twilio_agent.rb
require 'securerandom' module Agents class TwilioAgent < Agent cannot_be_scheduled! cannot_create_events! no_bulk_receive! gem_dependency_check { defined?(Twilio) } description <<~MD The Twilio Agent receives and collects events and sends them via text message (up to 160 characters) or gi...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/dropbox_watch_agent.rb
app/models/agents/dropbox_watch_agent.rb
module Agents class DropboxWatchAgent < Agent include DropboxConcern cannot_receive_events! default_schedule "every_1m" description <<~MD The Dropbox Watch Agent watches the given `dir_to_watch` and emits events with the detected changes. #{'## Include the `dropbox-api` and `omniauth-dr...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/adioso_agent.rb
app/models/agents/adioso_agent.rb
module Agents class AdiosoAgent < Agent cannot_receive_events! default_schedule "every_1d" description <<~MD The Adioso Agent will tell you the minimum airline prices between a pair of cities, and within a certain period of time. The currency is USD. Please make sure that the difference bet...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/read_file_agent.rb
app/models/agents/read_file_agent.rb
module Agents class ReadFileAgent < Agent include FormConfigurable include FileHandling cannot_be_scheduled! consumes_file_pointer! def default_options { 'data_key' => 'data' } end description do <<~MD The ReadFileAgent takes events from `FileHandling` ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/tumblr_likes_agent.rb
app/models/agents/tumblr_likes_agent.rb
module Agents class TumblrLikesAgent < Agent include TumblrConcern gem_dependency_check { defined?(Tumblr::Client) } description <<~MD The Tumblr Likes Agent checks for liked Tumblr posts from a specific blog. #{'## Include `tumblr_client` and `omniauth-tumblr` in your Gemfile to use this A...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/public_transport_agent.rb
app/models/agents/public_transport_agent.rb
require 'date' require 'cgi' module Agents class PublicTransportAgent < Agent cannot_receive_events! default_schedule "every_2m" description <<~MD The Public Transport Request Agent generates Events based on NextBus GPS transit predictions. Specify the following user settings: * agen...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/hipchat_agent.rb
app/models/agents/hipchat_agent.rb
module Agents class HipchatAgent < Agent include FormConfigurable cannot_be_scheduled! cannot_create_events! no_bulk_receive! gem_dependency_check { defined?(HipChat) } description <<~MD The Hipchat Agent sends messages to a Hipchat Room #{'## Include `hipchat` in your Gemfile ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/digest_agent.rb
app/models/agents/digest_agent.rb
module Agents class DigestAgent < Agent include FormConfigurable default_schedule "6am" description <<~MD The Digest Agent collects any Events sent to it and emits them as a single event. The resulting Event will have a payload message of `message`. You can use liquid templating in the `mes...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/attribute_difference_agent.rb
app/models/agents/attribute_difference_agent.rb
module Agents class AttributeDifferenceAgent < Agent cannot_be_scheduled! description <<~MD The Attribute Difference Agent receives events and emits a new event with the difference or change of a specific attribute in comparison to the previous event received. `path` specifies the JS...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/s3_agent.rb
app/models/agents/s3_agent.rb
module Agents class S3Agent < Agent include FormConfigurable include FileHandling emits_file_pointer! no_bulk_receive! default_schedule 'every_1h' gem_dependency_check { defined?(Aws::S3) } description do <<~MD The S3Agent can watch a bucket for changes or emit an event f...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/email_digest_agent.rb
app/models/agents/email_digest_agent.rb
require 'net/smtp' module Agents class EmailDigestAgent < Agent include EmailConcern default_schedule "5am" cannot_create_events! description <<~MD The Email Digest Agent collects any Events sent to it and sends them all via email when scheduled. The number of used events also relies o...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/phantom_js_cloud_agent.rb
app/models/agents/phantom_js_cloud_agent.rb
require 'json' require 'uri' module Agents class PhantomJsCloudAgent < Agent include ERB::Util include FormConfigurable include WebRequestConcern can_dry_run! default_schedule 'every_12h' description <<~MD This Agent generates [PhantomJs Cloud](https://phantomjscloud.com/) URLs that ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/models/agents/stubhub_agent.rb
app/models/agents/stubhub_agent.rb
module Agents class StubhubAgent < Agent cannot_receive_events! description <<~MD The StubHub Agent creates an event for a given StubHub Event. It can be used to track how many tickets are available for the event and the minimum and maximum price. All that is required is that you paste in the ur...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/app/mailers/system_mailer.rb
app/mailers/system_mailer.rb
class SystemMailer < ActionMailer::Base default :from => ENV['EMAIL_FROM_ADDRESS'].presence || 'you@example.com' def send_message(options) @groups = options[:groups] @headline = options[:headline] @body = options[:body] mail_options = { to: options[:to], subject: options[:subject] } mail_optio...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv.rb
vendor/gems/dotenv-3.1.0/lib/dotenv.rb
require "dotenv/parser" require "dotenv/environment" require "dotenv/missing_keys" require "dotenv/diff" # Shim to load environment variables from `.env files into `ENV`. module Dotenv extend self # An internal monitor to synchronize access to ENV in multi-threaded environments. SEMAPHORE = Monitor.new privat...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/version.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/version.rb
module Dotenv VERSION = "3.1.0".freeze end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/rails.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/rails.rb
# Since rubygems doesn't support optional dependencies, we have to manually check unless Gem::Requirement.new(">= 6.1").satisfied_by?(Gem::Version.new(Rails.version)) warn "dotenv 3.0 only supports Rails 6.1 or later. Use dotenv ~> 2.0." return end require "dotenv/replay_logger" require "dotenv/log_subscriber" Do...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/rails-now.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/rails-now.rb
# If you use gems that require environment variables to be set before they are # loaded, then list `dotenv` in the `Gemfile` before those other gems and # require `dotenv/load`. # # gem "dotenv", require: "dotenv/load" # gem "gem-that-requires-env-variables" # require "dotenv/load" warn '[DEPRECATION] `require...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/diff.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/diff.rb
module Dotenv # A diff between multiple states of ENV. class Diff # The initial state attr_reader :a # The final or current state attr_reader :b # Create a new diff. If given a block, the state of ENV after the block will be preserved as # the final state for comparison. Otherwise, the cur...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/environment.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/environment.rb
module Dotenv # A `.env` file that will be read and parsed into a Hash class Environment < Hash attr_reader :filename, :overwrite # Create a new Environment # # @param filename [String] the path to the file to read # @param overwrite [Boolean] whether the parser should assume existing values wi...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/log_subscriber.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/log_subscriber.rb
require "active_support/log_subscriber" module Dotenv # Logs instrumented events # # Usage: # require "active_support/notifications" # require "dotenv/log_subscriber" # Dotenv.instrumenter = ActiveSupport::Notifications # class LogSubscriber < ActiveSupport::LogSubscriber attach_to :dotenv ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/load.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/load.rb
require "dotenv" defined?(Dotenv::Rails) ? Dotenv::Rails.load : Dotenv.load
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/parser.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/parser.rb
require "dotenv/substitutions/variable" require "dotenv/substitutions/command" if RUBY_VERSION > "1.8.7" module Dotenv # Error raised when encountering a syntax error while parsing a .env file. class FormatError < SyntaxError; end # Parses the `.env` file format into key/value pairs. # It allows for variable ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/missing_keys.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/missing_keys.rb
module Dotenv class Error < StandardError; end class MissingKeys < Error # :nodoc: def initialize(keys) key_word = "key#{(keys.size > 1) ? "s" : ""}" super("Missing required configuration #{key_word}: #{keys.inspect}") end end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/template.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/template.rb
module Dotenv EXPORT_COMMAND = "export ".freeze # Class for creating a template from a env file class EnvTemplate def initialize(env_file) @env_file = env_file end def create_template File.open(@env_file, "r") do |env_file| File.open("#{@env_file}.template", "w") do |env_template|...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/cli.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/cli.rb
require "dotenv" require "dotenv/version" require "dotenv/template" require "optparse" module Dotenv # The `dotenv` command line interface. Run `$ dotenv --help` to see usage. class CLI < OptionParser attr_reader :argv, :filenames, :overwrite def initialize(argv = []) @argv = argv.dup @filenam...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/autorestore.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/autorestore.rb
# Automatically restore `ENV` to its original state after if defined?(RSpec.configure) RSpec.configure do |config| # Save ENV before the suite starts config.before(:suite) { Dotenv.save } # Restore ENV after each example config.after { Dotenv.restore } end end if defined?(ActiveSupport) ActiveS...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/tasks.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/tasks.rb
desc "Load environment settings from .env" task :dotenv do require "dotenv" Dotenv.load end task environment: :dotenv
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/replay_logger.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/replay_logger.rb
module Dotenv # A logger that can be used before the apps real logger is initialized. class ReplayLogger < Logger def initialize super(nil) # Doesn't matter what this is, it won't be used. @logs = [] end # Override the add method to store logs so we can replay them to a real logger later. ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/substitutions/command.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/substitutions/command.rb
require "English" module Dotenv module Substitutions # Substitute shell commands in a value. # # SHA=$(git rev-parse HEAD) # module Command class << self INTERPOLATED_SHELL_COMMAND = / (?<backslash>\\)? # is it escaped with a backslash? \$ # ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/vendor/gems/dotenv-3.1.0/lib/dotenv/substitutions/variable.rb
vendor/gems/dotenv-3.1.0/lib/dotenv/substitutions/variable.rb
require "English" module Dotenv module Substitutions # Substitute variables in a value. # # HOST=example.com # URL="https://$HOST" # module Variable class << self VARIABLE = / (\\)? # is it escaped with a backslash? (\$) # literal $ ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/seeds.rb
db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). require_relative 'seeds/seeder' Seeder.seed
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/seeds/seeder.rb
db/seeds/seeder.rb
class Seeder def self.seed if User.any? puts "At least one User already exists, not seeding." exit end user = User.find_or_initialize_by(:email => ENV['SEED_EMAIL'].presence || "admin@example.com") user.username = ENV['SEED_USERNAME'].presence || "admin" user.password = ENV['SEED_PASS...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20161007030910_reset_data_output_agents.rb
db/migrate/20161007030910_reset_data_output_agents.rb
class ResetDataOutputAgents < ActiveRecord::Migration[4.2] def up Agents::DataOutputAgent.find_each do |agent| agent.memory = {} agent.save(validate: false) agent.latest_events(true) end end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20160307085545_warn_about_duplicate_usernames.rb
db/migrate/20160307085545_warn_about_duplicate_usernames.rb
class WarnAboutDuplicateUsernames < ActiveRecord::Migration[4.2] def up names = User.group('LOWER(username)').having('count(*) > 1').pluck('LOWER(username)') if names.length > 0 puts "-----------------------------------------------------" puts "--------------------- WARNiNG -----------------------...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20131222211558_add_keep_events_for_to_agents.rb
db/migrate/20131222211558_add_keep_events_for_to_agents.rb
class AddKeepEventsForToAgents < ActiveRecord::Migration[4.2] def change add_column :agents, :keep_events_for, :integer, :null => false, :default => 0 end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140216201250_add_propagate_immediately_to_agent.rb
db/migrate/20140216201250_add_propagate_immediately_to_agent.rb
class AddPropagateImmediatelyToAgent < ActiveRecord::Migration[4.2] def up add_column :agents, :propagate_immediately, :boolean, :default => false, :null => false end def down remove_column :agents, :propagate_immediately end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20121231170705_add_memory_to_agents.rb
db/migrate/20121231170705_add_memory_to_agents.rb
class AddMemoryToAgents < ActiveRecord::Migration[4.2] def change add_column :agents, :memory, :text end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20170731191002_migrate_growl_agent_to_liquid.rb
db/migrate/20170731191002_migrate_growl_agent_to_liquid.rb
class MigrateGrowlAgentToLiquid < ActiveRecord::Migration[5.1] def change # Agents::GrowlAgent is no more end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140906030139_set_events_count_default.rb
db/migrate/20140906030139_set_events_count_default.rb
class SetEventsCountDefault < ActiveRecord::Migration[4.2] def up change_column_default(:agents, :events_count, 0) change_column_null(:agents, :events_count, false, 0) end def down change_column_null(:agents, :events_count, true) change_column_default(:agents, :events_count, nil) end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20160307084729_add_deactivated_to_agents.rb
db/migrate/20160307084729_add_deactivated_to_agents.rb
class AddDeactivatedToAgents < ActiveRecord::Migration[4.2] def change add_column :agents, :deactivated, :boolean, default: false add_index :agents, [:disabled, :deactivated] end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140127164931_change_handler_to_medium_text.rb
db/migrate/20140127164931_change_handler_to_medium_text.rb
# Increase handler size to 16MB (consistent with events.payload) class ChangeHandlerToMediumText < ActiveRecord::Migration[4.2] def up if mysql? change_column :delayed_jobs, :handler, :text, :limit => 16777215 end end def down if mysql? change_column :delayed_jobs, :handler, :text, :limi...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20121223203701_create_delayed_jobs.rb
db/migrate/20121223203701_create_delayed_jobs.rb
class CreateDelayedJobs < ActiveRecord::Migration[4.2] def self.up create_table :delayed_jobs, :force => true do |table| table.integer :priority, :default => 0 # Allows some jobs to jump to the front of the queue table.integer :attempts, :default => 0 # Provides for retries, but still fail...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20150808115436_remove_requirement_from_users_invitation_code.rb
db/migrate/20150808115436_remove_requirement_from_users_invitation_code.rb
class RemoveRequirementFromUsersInvitationCode < ActiveRecord::Migration[4.2] def change change_column_null :users, :invitation_code, true, ENV['INVITATION_CODE'].presence || 'try-huginn' end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20161004120214_update_pushover_agent_options.rb
db/migrate/20161004120214_update_pushover_agent_options.rb
class UpdatePushoverAgentOptions < ActiveRecord::Migration[4.2] DEFAULT_OPTIONS = { 'message' => '{{ message | default: text }}', 'device' => '{{ device }}', 'title' => '{{ title | default: subject }}', 'url' => '{{ url }}', 'url_title' => '{{ url_title }}', 'priority' => '{{ priority }}', ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140605032822_add_guid_to_agents.rb
db/migrate/20140605032822_add_guid_to_agents.rb
class AddGuidToAgents < ActiveRecord::Migration[4.2] class Agent < ActiveRecord::Base; end def change add_column :agents, :guid, :string Agent.find_each do |agent| agent.update_attribute :guid, SecureRandom.hex end change_column_null :agents, :guid, false add_index :agents, :guid end...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20120919061122_enable_lockable_strategy_for_devise.rb
db/migrate/20120919061122_enable_lockable_strategy_for_devise.rb
class EnableLockableStrategyForDevise < ActiveRecord::Migration[4.2] def up add_column :users, :failed_attempts, :integer, :default => 0 add_column :users, :unlock_token, :string add_column :users, :locked_at, :datetime add_index :users, :unlock_token, :unique => true end def down remove_col...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140813110107_set_charset_for_mysql.rb
db/migrate/20140813110107_set_charset_for_mysql.rb
class SetCharsetForMysql < ActiveRecord::Migration[4.2] def all_models @all_models ||= [ Agent, AgentLog, Event, Link, Scenario, ScenarioMembership, User, UserCredential, Delayed::Job, ] end def change # This is migration is for MySQL only. re...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20161124061256_convert_website_agent_template_for_merge.rb
db/migrate/20161124061256_convert_website_agent_template_for_merge.rb
class ConvertWebsiteAgentTemplateForMerge < ActiveRecord::Migration[5.0] def up Agents::WebsiteAgent.find_each do |agent| extract = agent.options['extract'].presence template = agent.options['template'].presence next unless extract.is_a?(Hash) && template.is_a?(Hash) (extract.keys - templ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140505201716_migrate_agents_to_liquid_templating.rb
db/migrate/20140505201716_migrate_agents_to_liquid_templating.rb
require 'liquid_migrator' class MigrateAgentsToLiquidTemplating < ActiveRecord::Migration[4.2] def up Agent.where(:type => 'Agents::HipchatAgent').each do |agent| LiquidMigrator.convert_all_agent_options(agent) end Agent.where(:type => 'Agents::EventFormattingAgent').each do |agent| agent.opt...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20130107050049_add_invitation_code_to_users.rb
db/migrate/20130107050049_add_invitation_code_to_users.rb
class AddInvitationCodeToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :invitation_code, :string change_column :users, :invitation_code, :string, :null => false end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140602014917_add_indices_to_scenarios.rb
db/migrate/20140602014917_add_indices_to_scenarios.rb
class AddIndicesToScenarios < ActiveRecord::Migration[4.2] def change add_index :scenarios, [:user_id, :guid], :unique => true add_index :scenario_memberships, :agent_id add_index :scenario_memberships, :scenario_id end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140210062747_add_mode_to_user_credentials.rb
db/migrate/20140210062747_add_mode_to_user_credentials.rb
class AddModeToUserCredentials < ActiveRecord::Migration[4.2] def change add_column :user_credentials, :mode, :string, :default => 'text', :null => false end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20160823151303_set_emit_error_event_for_twitter_action_agents.rb
db/migrate/20160823151303_set_emit_error_event_for_twitter_action_agents.rb
class SetEmitErrorEventForTwitterActionAgents < ActiveRecord::Migration[4.2] def up Agents::TwitterActionAgent.find_each do |agent| agent.options['emit_error_events'] = 'true' agent.save!(validate: false) end end def down Agents::TwitterActionAgent.find_each do |agent| agent.options...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20131105063248_add_expires_at_to_events.rb
db/migrate/20131105063248_add_expires_at_to_events.rb
class AddExpiresAtToEvents < ActiveRecord::Migration[4.2] def change add_column :events, :expires_at, :datetime add_index :events, :expires_at end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20160423163416_add_xml_namespace_option_to_data_output_agents.rb
db/migrate/20160423163416_add_xml_namespace_option_to_data_output_agents.rb
class AddXmlNamespaceOptionToDataOutputAgents < ActiveRecord::Migration[4.2] def up Agents::DataOutputAgent.find_each do |agent| agent.options['ns_media'] = 'true' agent.options['ns_itunes'] = 'true' agent.save!(validate: false) end end def down Agents::DataOutputAgent.find_each do ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20130509053743_add_last_webhook_at_to_agents.rb
db/migrate/20130509053743_add_last_webhook_at_to_agents.rb
class AddLastWebhookAtToAgents < ActiveRecord::Migration[4.2] def change add_column :agents, :last_webhook_at, :datetime end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140723110551_adopt_xpath_in_website_agent.rb
db/migrate/20140723110551_adopt_xpath_in_website_agent.rb
class AdoptXpathInWebsiteAgent < ActiveRecord::Migration[4.2] class Agent < ActiveRecord::Base include JsonSerializedField json_serialize :options end def up Agent.where(type: 'Agents::WebsiteAgent').each do |agent| extract = agent.options['extract'] next unless extract.is_a?(Hash) && ext...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20121220053905_create_agents.rb
db/migrate/20121220053905_create_agents.rb
class CreateAgents < ActiveRecord::Migration[4.2] def change create_table :agents do |t| t.integer :user_id t.text :options t.string :type t.string :name t.string :schedule t.integer :events_count t.datetime :last_check_at t.datetime :last_receive_at t.integer...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140901143732_add_control_links.rb
db/migrate/20140901143732_add_control_links.rb
class AddControlLinks < ActiveRecord::Migration[4.2] def change create_table :control_links do |t| t.integer :controller_id, null: false t.integer :control_target_id, null: false t.timestamps end add_index :control_links, [:controller_id, :control_target_id], unique: true add_index...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20140408150825_rename_webhook_to_web_request.rb
db/migrate/20140408150825_rename_webhook_to_web_request.rb
class RenameWebhookToWebRequest < ActiveRecord::Migration[4.2] def up rename_column :agents, :last_webhook_at, :last_web_request_at end def down rename_column :agents, :last_web_request_at, :last_webhook_at end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20160419150930_add_icon_to_scenarios.rb
db/migrate/20160419150930_add_icon_to_scenarios.rb
class AddIconToScenarios < ActiveRecord::Migration[4.2] def change add_column :scenarios, :icon, :string end end
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20120728210244_devise_create_users.rb
db/migrate/20120728210244_devise_create_users.rb
class DeviseCreateUsers < ActiveRecord::Migration[4.2] def change create_table(:users) do |t| ## Database authenticatable t.string :email, :null => false, :default => "" t.string :encrypted_password, :null => false, :default => "" ## Recoverable t.string :reset_passwo...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20121216025930_create_events.rb
db/migrate/20121216025930_create_events.rb
class CreateEvents < ActiveRecord::Migration[4.2] def change create_table :events do |t| t.integer :user_id t.integer :agent_id t.decimal :lat, :precision => 15, :scale => 10 t.decimal :lng, :precision => 15, :scale => 10 t.text :payload t.timestamps end add_index :ev...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false
huginn/huginn
https://github.com/huginn/huginn/blob/8edec55aab03d4e3f13b205db02d21dc36e34e4f/db/migrate/20160301113717_add_confirmable_attributes_to_users.rb
db/migrate/20160301113717_add_confirmable_attributes_to_users.rb
class AddConfirmableAttributesToUsers < ActiveRecord::Migration[4.2] def change change_table(:users) do |t| ## Confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at t.string :unconfirmed_email # Only if using reconfirmable end ...
ruby
MIT
8edec55aab03d4e3f13b205db02d21dc36e34e4f
2026-01-04T15:37:27.328445Z
false