Commit graph

133 commits

Author SHA1 Message Date
Irfan Charania
50aff67a8a Make itunes compatible optional (#1411)
* Make itunes compatible optional

in generated xml

* Add tests + migration

* Description change

as per comment
2016-04-30 13:44:09 -07:00
Akinori MUSHA
4280bdc5e0 Merge pull request #1340 from cantino/post_agent_downcase_response_headers
Downcase header names in Events that PostAgent emits
2016-04-12 16:31:04 +09:00
Akinori MUSHA
b095317e4c Add an option event_headers_style to PostAgent
It is defaulted to `capitalized`, normalizing emitted headers by
capitalizing the names so downstream agents don't need to bother with
the letter cases.

Previously, the style of header names in an emitted event would vary
depending on the server and the backend HTTP library.  Most notably, the
`net_http` backend downcases header names whereas other backends do not.

For backward compatibility, preexisting PostAgents are automatically
configured to have `event_headers_style` set to `raw` via migration.
2016-04-12 16:08:19 +09:00
Will Read
98f50de06b Sets the new user up with an example set of agents
- gives them a place to start from
- leverages existing code to import scenarios
- adds test coverage to seeds to ensure sees can run multiple times against the same db as is the case for Docker
- adds env variable to set if importing is turned on for new user
- adds env variable to point to a custom scenario for new users
2016-04-10 16:03:21 -07:00
Dominik Sander
9d1bfeb778 Make FtpsiteAgent FileHandling aware
It emits file_pointers for changed files and writes received events to the FTP server.
2016-03-18 20:43:35 +01:00
Dominik Sander
8508928943 Admins can deactivate user accounts 2016-03-17 20:47:51 +01:00
Dominik Sander
ee1ebea830 Allow to configure various devise settings in .env 2016-03-17 20:47:45 +01:00
Dominik Sander
4722ebfe4e Add admin user management interface 2016-03-17 20:36:07 +01:00
Dominik Sander
e32067862f Do not seed the database when the configured seed user already exists
#1315
2016-02-22 22:19:22 +01:00
Andrew Cantino
3469ed2a5e Add a migration to set url_from_event and remove direct usage of Event url payload value 2016-01-08 15:05:35 -08:00
Will Read
4fdc600788 Remove schema.rb from git
- Huginn supports MySQL and Postgres which generates conflicts in the schema
- Remvoing it shows that schema.rb is not a source of truth

Closes TildeWill/huginn#13
Related Issue cantino/huginn#1195
2016-01-03 05:36:00 +00:00
Will Read
f36b39b85c Provide a default value in the case that the ENV variable isn't set 2015-08-08 13:05:40 -07:00
Will Read
5b6d7c7e85 Adds the ability to allow public signup without invite code
- Introduces new ENV variable SKIP_INVITATION_CODE, intentionally
  phrased in the negative so that the absence of the variable
  will not change the behavior of existing deployments.
2015-08-08 12:33:45 -07:00
Andrew Cantino
b3e6275e4a grammer 2015-07-17 13:41:16 -04:00
Andrew Cantino
b31a0ec3e7 fix specs and add support for translation in Scenario exports 2015-05-25 11:38:51 -07:00
stvnrlly
38a5dbfd87 db migration for new cleanup time 2015-05-11 08:24:59 -04:00
Dominik Sander
da77a8a333 Merge pull request #711 from dsander/pushbullet-unification
Pushbullet pull request unification
2015-02-25 22:52:56 +01:00
Akinori MUSHA
7c6224d7eb Do not refer to AbstractMysqlAdapter for checking the connection adapter type. 2015-02-25 19:06:43 +09:00
Dominik Sander
0b979dd1c0 PushbulletAgent moved device creation to a before_validation callback 2015-02-24 20:26:31 +01:00
Dominik Sander
9902c2313c Added migration for existing PushbulletAgents and fixed the specs 2015-02-19 23:47:39 +01:00
Dean Putney
b263b1c9f6 Creating TumblrPublishAgent 2014-09-25 19:09:21 -07:00
Akinori MUSHA
10ce9d598b Merge remote-tracking branch 'knu/scheduler_agent'
Conflicts:
	db/schema.rb
	spec/lib/huginn_scheduler_spec.rb
2014-09-08 17:03:14 +09:00
Andrew Cantino
142bb35d4e Only update Agent's last_event_at on Event creation, not when Events are updated. 2014-09-05 20:19:39 -07:00
Akinori MUSHA
12f18398f1 Squash migrations during the development of the scheduler_agent branch. 2014-09-03 17:07:29 +09:00
Akinori MUSHA
99c3fc0309 Update db/schema.rb. 2014-09-03 17:03:39 +09:00
Akinori MUSHA
8dc5244e6e Merge remote-tracking branch 'origin/master' into scheduler_agent
Conflicts:
	db/schema.rb
2014-09-03 16:59:57 +09:00
Akinori MUSHA
9a7f7fe6b6 Add NOT NULL contraints. 2014-09-03 13:19:14 +09:00
Akinori MUSHA
8065721b77 Rename "chain" to "control link" for clarity. 2014-09-01 23:47:04 +09:00
Akinori MUSHA
30041706ff Rename "target" to "control target". 2014-08-29 17:17:57 +09:00
Akinori MUSHA
d0d9c8ecf1 Fix specs for the new stuff in DOT output. 2014-08-29 17:17:35 +09:00
Akinori MUSHA
806e41dd4c Merge branch 'master' into scheduler_agent
Conflicts:
	app/helpers/agent_helper.rb
	db/schema.rb
2014-08-27 23:57:45 +09:00
Akinori MUSHA
857b8ea969 Merge remote-tracking branch 'origin/master' into set_charset_for_mysql
Conflicts:
	db/schema.rb
2014-08-27 13:06:21 +09:00
Dominik Sander
a144c2dae7 Also show the upgrade warning in the services page 2014-08-26 22:28:25 +02:00
Akinori MUSHA
393e3c4ddc Follow the default collation of Rails rather than MySQL.
`utf8*_unicode_ci` is known to be problematic in some languages like
Japanese, but hopefully it wouldn't do harm in practice in our case.
2014-08-25 15:18:24 +09:00
Akinori MUSHA
db792cdd82 Set charset/collation properly for each text column if using MySQL.
With this change, Huginn is able to store up to 4-byte UTF-8 characters
in its database.  This should fix #286.
2014-08-25 15:18:24 +09:00
Dominik Sander
858dcdca8f Merge branch 'master' into omniauth
Conflicts:
	db/schema.rb
2014-08-22 20:35:24 +02:00
Akinori MUSHA
de5619fb64 Rename "runner" to "controller".
This is done in preparation for adding an ability for an agent to
enable or disable other agents other than running.
2014-08-22 22:39:30 +09:00
Akinori MUSHA
56fa4cb751 Fix the schema version. 2014-08-22 17:54:16 +09:00
Dominik Sander
dad2875da9 Improved the migration experience 2014-08-21 21:58:10 +02:00
Akinori MUSHA
c7e67a36e6 Add "chains" to represent runner-target relationships between Agents. 2014-08-21 22:57:37 +09:00
Guilherme J. Tramontina
96196edb06 Allow nullable tag colors for the scenario 2014-08-21 03:26:33 -03:00
Guilherme J. Tramontina
d92c6cdc26 Add ability to set color for the scenario tags. 2014-08-20 00:04:23 -03: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