Commit graph

92 commits

Author SHA1 Message Date
Dominik Sander
dad2875da9 Improved the migration experience 2014-08-21 21:58:10 +02:00
Dominik Sander
34775f902a Index services by the users uid, disconnect agents if the service is
made private
2014-08-11 23:13:57 +02:00
Andrew Cantino
1e0664838d Drop extra index 2014-08-09 14:19:36 -07:00
Andrew Cantino
556c45e000 Minor refactors 2014-08-09 14:06:56 -07:00
Dominik Sander
d0e98cede1 Fixes the specs and removed deprecation notices 2014-08-09 17:21:25 +02:00
Andrew Cantino
78f6150b26 Merge branch 'omniauth' of https://github.com/dsander/huginn into dsander-omniauth
Conflicts:
	Gemfile.lock
2014-08-06 21:04:35 -07:00
Andrew Curioso
24e03a5b45 Fixed seeds and fictures for rain notifier
The seed rain notifier wasn't using liquid templates so the
conditions and location showed up as literal strings.
2014-08-06 21:45:14 -04:00
Dominik Sander
a846154c7d Import scenarios with agents which need a service 2014-08-03 18:31:35 +02:00
Andrew Cantino
cf3238dff5 Merge pull request #417 from knu/add_created_at_to_event_drop
Add EventDrop#created_at and drop (skip_)created_at from EventFormattingAgent.
2014-07-31 19:51:37 -07:00
Dominik Sander
b71ea25418 Merge branch 'master' into omniauth
Conflicts:
	Gemfile.lock
	app/controllers/agents_controller.rb
2014-07-31 22:14:44 +02:00
Andrew Cantino
ebe302492d fix some more XPaths 2014-07-30 14:05:40 -07:00
Akinori MUSHA
ceea91fe2a Add EventDrop#created_at and drop (skip_)created_at from EventFormattingAgent. 2014-07-30 16:07:28 +09:00
Akinori MUSHA
70157dc687 Look into options['extract'] for checking the extraction type.
WebsiteAgent#extraction_type was private and uncallable, and may not
remain existent in future.
2014-07-30 06:48:20 +09:00
Akinori MUSHA
7b6119f1f2 "text": true should have meant ".//text()", not "text()". 2014-07-30 06:48:20 +09:00
Akinori MUSHA
4d623c5893 WebsiteAgent: Introduce per-node XPath evaluation in extraction.
The new extraction sub-hash key `value` holds an XPath expression which
should be applied to each node to get the result value.

The previous directives `"text": true` and `"attr": "src"` are now
written as `"value": "text()"` and `"value": "@src"`, respectively.

With this enhancement, it is now possible for this agent to perform some
basic text processing on its own by making use of XPath functions like
`normalize-space`, `substring-after` and `translate`.
2014-07-30 06:48:19 +09:00
Andrew Cantino
e746bee3dc Merge pull request #410 from knu/provide_access_to_agent
EventFormattingAgent: Provide access to upstream agent
2014-07-29 13:08:43 -07:00
Akinori MUSHA
f79e26d63a Remove the "skip_agent" option from EventFormattingAgent.
It is now possible to include an agent name without the special flag
just by putting `"agent" => "{{agent.type}}"` in "instructions".

This commit includes automatic migration.
2014-07-22 23:06:42 +09:00
Andrew Cantino
99532f5613 Merge remote-tracking branch 'origin/master' into heroku 2014-07-16 23:50:12 -07:00
Andrew Cantino
732d353517 add params to db/seed.rb; provide better heroku login detection 2014-07-16 23:09:39 -07:00
Albert Sun
4a433806ee inline models into migration 2014-07-16 15:25:08 -04:00
Dominik Sander
f07db9c97c Merge remote-tracking branch 'huginn/master' into omniauth
Conflicts:
	app/models/agents/basecamp_agent.rb
	app/models/user.rb
	db/schema.rb
	spec/fixtures/agents.yml
2014-06-20 19:07:06 +02:00
Dominik Sander
b089919490 Skip validations in the oauth migration
Also enforced the presence of needed attributes of the services table on
the database level
2014-06-14 20:00:31 +02:00
Dominik Sander
db968e6f4f Fixed services migration, disabled agents after deletion of a service 2014-06-14 11:21:40 +02:00
Dominik Sander
4930e1ed59 User#available_services make sure to escape the parameters, added
missing link to the wiki
2014-06-11 21:36:45 +02:00
Dominik Sander
12c2af26bb Add omniauth to let huginn consume oauth endpoints
Created a service model which stores external account information.
Created a service controller which kicks off the oauth process and lets
the user manage their external accounts.
Oauthable concern connects a agent to a service and adds a drop down to the
agents edit page.
Added a migration which converts the existing twitter agents to use the
new service model.
2014-06-11 21:34:09 +02:00
Andrew Cantino
a43d6eae97 Merge remote-tracking branch 'origin/master' into scenarios 2014-06-09 19:32:04 -07:00
Dominik Sander
b072350746 Fixes rename_digest_email_to_email_digest migration for PostgreSQL
PostgreSQL uses double quotes to quote columns and expects strings to be
quoted with single quotes. Single quoted strings work both for MySQL and
PostgreSQL.
2014-06-08 01:29:16 +02:00
Andrew Cantino
f3ffb33a7d Merge remote-tracking branch 'origin/master' into scenarios 2014-06-07 12:26:18 -07:00
Andrew Cantino
64564eb120 Importing of Scenarios now works, creating any needed Agents by global guid 2014-06-04 22:26:56 -07:00
Glenn 'devalias' Grant
b2fbf70723 Fix migration to actually do the right thing 2014-06-05 15:26:32 +10:00
Glenn 'devalias' Grant
7209b2ad8c Add db migration 2014-06-03 20:46:06 +10:00
Glenn 'devalias' Grant
bb407f50c1 Solves #354 2014-06-02 20:33:46 +10:00
Andrew Cantino
5c1fbdb997 upload and fetch by url, data object manages import; next step is actual import 2014-06-01 23:57:21 -07:00
Andrew Cantino
663250227d allow exporting of a set of Agents with their links from a Scenario; Scenario guid is now generated and copied to export, as well as a source link when public 2014-05-31 23:36:33 -07:00
Andrew Cantino
fc878f4fdc Merge remote-tracking branch 'origin/master' into scenarios 2014-05-31 12:34:07 -07:00
Andrew Cantino
aaa4b7a155 add basic scaffold of scenarios, including the ability to add agents to scenarios, edit scenarios, and view scenarios. next step: import and export 2014-05-14 22:53:32 -07:00
Andrew Cantino
08b2f6c8f8 Merge pull request #285 from dsander/liquid-templating
Added liquid templating and migrated first agents
2014-05-12 13:38:58 -07:00
Dominik Sander
da8a2e9682 Merge remote-tracking branch 'huginn/master' into liquid-templating 2014-05-06 10:56:43 +02:00
Dominik Sander
56324c87e2 Migrated HumanTask, Trigger and PeakDetectorAgent to Liquid
Made LiquidInterpolatable#interpolate_options recursive
Really interpolate the `message` options attribute of the PeakDetectorAgent
Merged all previous liquid migrations into one new migration
Added support for the `Agent#make_message` format to the liquid migrator
2014-05-06 10:50:20 +02:00
Dominik Sander
da137aaeb8 Made migration irreversable, support '$variable' syntax 2014-05-05 22:00:55 +02:00
Andrew Cantino
dea618cfe8 Merge branch '196-disable-agents' of https://github.com/alias1/huginn into alias1-196-disable-agents 2014-05-03 00:17:36 -07:00
Albert Sun
2ea5ad24c4 add Link, Event classes to migration and use find_each 2014-05-02 10:42:11 -04:00
Albert Sun
52275b60bd actually save the link 2014-05-01 18:19:49 -04:00
Dominik Sander
4a7560c7a5 Migrated TwitterPublishAgent to use liquid 2014-05-01 23:07:24 +02:00
Dominik Sander
39360929df Migrated TranslationAgent to liquid 2014-05-01 22:33:39 +02:00
Albert Sun
15b55ac371 in the AddEventIdAtCreationToLinks migration, handle the case of links that don't yet have any events 2014-05-01 15:32:10 -04:00
Dominik Sander
28931f2126 Migrated DataOutputAgent to use liquid 2014-05-01 21:25:56 +02:00
Dominik Sander
0980458449 Migrated JabberAgent to use liquid, added link to documentation 2014-05-01 20:35:56 +02:00
Dominik Sander
addb4dbdbf Migrated the PushbulletAgent to use LiquidInterpolatable 2014-05-01 17:32:45 +02:00
Dominik Sander
d9bd6a991b Added liquid templating and migrated first agents 2014-05-01 17:32:45 +02:00