Commit graph

102 commits

Author SHA1 Message Date
Akinori MUSHA
5ab17bab3d Introduce gem groups for group-based opt-out 2015-06-04 02:07:43 +09:00
Andrew Cantino
ea1fb447ca Merge remote-tracking branch 'origin/master' into js_agent_can_be_dryrun 2015-05-23 15:22:12 -07:00
Dominik Sander
2e36f395f5 Merge pull request #821 from dsander/dj-env-config
Make delayed_job sleep_delay and max_run_time .env configurable
2015-05-14 10:19:20 +02:00
Dominik Sander
3e085512ff Make delayed_job sleep_delay and max_run_time .env configurable 2015-05-13 22:20:23 +02:00
Akinori MUSHA
cf5f96cb59 Call Dotenv.overload after Dotenv::Railtie.load is called
`dotenv-rails` calls `Dotenv::Railtie.load` when `Huginn::Application`
is defined, so the `Dotenv.overload` call should be moved here.
2015-05-14 02:47:33 +09:00
Andrew Cantino
9a7ebc09b7 Merge remote-tracking branch 'origin/master' into js_agent_can_be_dryrun 2015-05-09 21:10:10 -07:00
Dominik Sander
8e361f8d59 Merge pull request #778 from dsander/active-job
Use ActiveJobs interface
2015-05-03 11:29:53 +02:00
Dominik Sander
126cb19741 Merge pull request #649 from dsander/wunderlist
Adds Wunderlist agent
2015-04-27 21:50:24 +02:00
Dominik Sander
b863232429 Use ActiveJobs interface 2015-04-25 11:16:31 +02:00
Akinori MUSHA
a080a78eeb Allow user to clear memory of an agent
This closes #802.
2015-04-24 23:16:52 +09:00
Akinori MUSHA
da1b4675d7 Merge pull request #716 from cantino/enhance-ar_mysql_column_charset
Enhance ar_mysql_column_charset
2015-04-15 23:38:07 +09:00
Andrew Cantino
d3564c18fd allow FormConfigurable text areas to be syntax highlighted; allow JavaScriptAgent to be dry run 2015-04-11 21:17:56 -07:00
Andrew Cantino
aafc1e799e allow a larger connection pool by default 2015-04-10 16:01:55 -07:00
Andrew Cantino
1f8ecc29d1 add SEND_EMAIL_IN_DEVELOPMENT option to .env.example 2015-03-23 11:36:03 -07:00
Dominik Sander
2ece339c42 Upgrade to rails 4.2 2015-03-19 22:21:50 +01:00
Albert Sun
57b6b0ec0a have devise pick up email from ENV 2015-03-19 15:56:36 -04:00
Akinori MUSHA
979f803759 Add a "Dry Run" feature to the Agent form.
User can test if an agent being saved will work as expected simply by
clicking the "Dry Run" button, which opens up a modal window that shows
dry-run results including log, events and memory.  Resolves #593.

The current implementation only allows dry-run of Agents that do not
require an incoming event to be run.

Also, each Agent class must opt in for this feature by declaring
themselves as `can_dry_run!`.  To begin with, only WebsiteAgent is
marked as dry-runnable for now.
2015-03-14 04:52:44 +09:00
Akinori MUSHA
a621a19f2f Apply monkey patching only after loading a MySQL adapter. 2015-02-25 19:07:03 +09:00
Dominik Sander
292f455b56 Adds wunderlist agent 2014-12-27 16:17:01 +01:00
Dominik Sander
8c9fb4b678 Do not try to monkey patch the mysql adapter on heroku 2014-12-27 00:10:26 +01:00
Pas
4d87e9f315 MySQL utf8mb4 encoding quirk fix 2014-12-15 06:58:19 +01:00
Andrew Cantino
225d73aca3 Merge branch 'master' into openshift2
Conflicts:
	bin/setup_heroku
2014-11-02 14:31:36 -08:00
Dominik Sander
60956c49b9 Added a concern to configure Agents via HTML forms
Validate input forms based on a callback
Offer valid options for parameters
2014-11-02 01:23:42 +01:00
Akinori MUSHA
002436fcb0 Change deprecated File.exists? to File.exist?.
Pointed out in #595.
2014-10-28 10:45:27 +09:00
Akinori MUSHA
9b5510131a Merge pull request #583 from knu/highlight_new_events
Make event-indicator a link to the events page, with new events highlighted
2014-10-27 12:29:47 +09:00
Akinori MUSHA
1a42cf08fc Merge branch 'knu/upgrade_devise'
Conflicts:
	config/initializers/devise.rb
	config/locales/devise.en.yml
2014-10-25 13:19:39 +09:00
Akinori MUSHA
89cc666212 Define some helper scopes in Delayed::Job for worker status API. 2014-10-21 19:29:43 +09:00
Akinori MUSHA
5462c62585 Move OmniAuth authentication/callback endpoints to OmniauthCallbacksController. 2014-10-17 13:57:25 +09:00
Akinori MUSHA
cd2b335cc5 Upgrade Devise to 3.4.0.
Rebase view files onto the latest template files.
2014-10-14 16:57:47 +09:00
Guilherme J. Tramontina
04a244661d Use omniauth-dropbox instead of requiring an api key per agent; And dropbox-api instead of rolling our own. 2014-10-13 21:58:44 -03:00
Andrew Cantino
cffd6dc48a Merge remote-tracking branch 'origin/master' into openshift2
Conflicts:
	bin/setup_heroku
2014-10-05 01:26:04 -07:00
Andrew Cantino
b071f6170d openshift setup is working 2014-10-05 01:13:47 -07:00
Dean Putney
7e7bdc6eca Fixing messed up merge with upstream master, repairing broken Tumblr auth from messed up merge 2014-10-01 13:11:55 -07:00
Akinori MUSHA
f0086f0466 Load spec/env.test on application boot. 2014-09-30 14:25:12 +09:00
Akinori MUSHA
2f1ff3192c Remove the constraints on services callback, since there is a spec against it. 2014-09-30 09:06:46 +09:00
Akinori MUSHA
87ad26301b Refactor OmniAuth integration.
- Make use of Devise's OmniAuth integration.
- Merge config/initializers/omniauth.rb into config/initializers/devise.rb.
- Define button labels in config/locales/devise.en.yml.
- Fix devise's routes so we can use user_omniauth_authorize_path().
2014-09-29 23:29:11 +09:00
Dean Putney
d85ca73857 Merging to latest 2014-09-26 22:32:31 -07:00
Dean Putney
b263b1c9f6 Creating TumblrPublishAgent 2014-09-25 19:09:21 -07:00
Akinori MUSHA
9defc7afb8 Refactor OmniAuth configuration and fix it with 37Signals. 2014-09-24 10:18:04 +09:00
Andrew Cantino
eb52eeeeea experimental branch to support using fewer gems for saving RAM 2014-09-21 17:53:04 -07:00
Akinori MUSHA
951648c94e Refactor the map_marker partial. 2014-09-19 10:48:33 +09:00
Akinori MUSHA
89754a1cb3 Integrate UserLocationUpdatesController into WebRequestsController. 2014-09-17 10:39:30 +09:00
Akinori MUSHA
f720291b49 UserLocationAgent: Receive events and accept POST via WebRequestsController.
Show the POST URL on the details page while at it.

The old user_location_updates URLs still work.

This addresses #490.
2014-09-16 20:56:08 +09:00
Dominik Sander
830cf1bf3d Simple job management page
Also added a seperate `job-indicator` for every job state
(pending/awaiting retry and failed)
The jobs page is automatically reloading when jobs are
enqueued, retried or failed.
2014-08-30 17:48:29 +02: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
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
Dominik Sander
1daf1ddd2a Renamed 37signals environmental variable to not start with numbers 2014-08-04 20:46:21 +02:00
Akinori MUSHA
0c9c862c53 Turn the JavaScript code into a separate CoffeeScript file. 2014-08-01 15:56:27 +09:00
Alex Coomans
15e3f0a33d Break Diagram into it's own controller, nest resources
Conflicts:
	app/views/scenarios/show.html.erb
2014-07-31 16:42:58 -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