Commit graph

764 commits

Author SHA1 Message Date
Chris Eidhof
d659152db1 Added changes by @knu 2014-12-02 18:26:44 -05:00
Chris Eidhof
37104e4a6b Added a note about merge mode 2014-11-30 14:57:45 -05:00
Chris Eidhof
b2218df623 Added merge mode 2014-11-29 10:45:35 -05:00
Chris Eidhof
4f5ace5612 First checkpoint in refactoring the website agent to accept merge mode 2014-11-22 21:15:51 -05:00
Paul Symons
8fe4e7a452 Fix typo referring for xpath function normalize-space (was: normalize-text) 2014-11-18 22:14:53 +08:00
Paul Symons
717521ac0d heroku tools requires --app to precede application identifiers 2014-11-17 22:46:19 +08:00
Dominik Sander
fc555758a0 Merge pull request #627 from dsander/deduplication-agent
Added DeDuplicationAgent
2014-11-16 14:19:31 +01:00
Chris Eidhof
5def3cfcd8 Cleanup the Gemfile, added a potential warning 2014-11-15 17:15:29 -05:00
Chris Eidhof
9cb0670922 mock instead of stub the open call 2014-11-15 17:15:07 -05:00
Chris Eidhof
0465835da8 Added a PDF info agent 2014-11-15 17:15:07 -05:00
Dominik Sander
e15bca448a Added DeDuplicationAgent 2014-11-08 23:15:14 +01:00
Andrew Cantino
2ea63f7acb Merge pull request #612 from cantino/commander_agent_can_configure
Commander agent can configure
2014-11-07 15:05:28 -06:00
Akinori MUSHA
96162482a3 Upgrade slack-notifier to 1.0.0; use webhook URLs instead of tokens.
Slack's service integration instructions now only show Webhook URL, so
this should be reasonable for new users.

For compatibility, allow an existing pair of `team_name` and
`auth_token` to still work.
2014-11-06 08:55:59 +09:00
Akinori MUSHA
57abf7d6ac Fix markdown markups. Text styles do not work in .... 2014-11-05 16:05:05 +09:00
Akinori MUSHA
a1ccd58f17 Enable AgentLog to handle a message with invalid byte sequences.
Use `String#scrub` which is new in Ruby 2.1 and add the `string-scrub`
gem for older rubies.

Addresses #286 and #613.
2014-11-04 21:46:02 +09:00
Andrew Cantino
225d73aca3 Merge branch 'master' into openshift2
Conflicts:
	bin/setup_heroku
2014-11-02 14:31:36 -08:00
Andrew Cantino
f6a9957cad log configuration changes 2014-11-02 14:14:32 -08:00
Andrew Cantino
5bbb13a406 Allow CommanderAgents to configure targets. 2014-11-02 13:33:10 -08:00
Dominik Sander
423fefe268 Merge pull request #499 from dsander/form-configurable
Configure agents via HTML forms rather then JSON
2014-11-02 20:29:50 +01:00
Dominik Sander
990a68c9b2 Merge pull request #609 from dsander/fix-worker-status
Fixes WorkerStatusController for postgresql
2014-11-02 20:27:04 +01:00
Dominik Sander
7bd4c7b39e Fixes WorkerStattusController for postgresql
postgres needs every column used in a group by query to be aggregated
2014-11-02 20:07:38 +01:00
Dominik Sander
96a67a6e4d Added format to the HipchatAgent default options 2014-11-02 19:47:53 +01:00
Andrew Cantino
3501d0b805 clarify TwitterConcern gem_dependency_check 2014-11-01 20:39:56 -07:00
Dominik Sander
d41439e3be Allow manual input for boolean and array form-configurable types 2014-11-02 01:23:42 +01:00
Dominik Sander
53edbfda48 FormCompletable: Show error message if the completable ajax call failed 2014-11-02 01:23:42 +01:00
Dominik Sander
4eabcca235 Added spec for the FormConfigurableAgentPresenter 2014-11-02 01:23:42 +01:00
Dominik Sander
c1f336d04e FormConfigurable improvements
Made the BasecampAgent form configurable
Added specs
Added guard-livereload and guard-rspec
Custom values can be entered for `completable` attributes
2014-11-02 01:23:42 +01: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
89a7848c80 Get IMAP#fetch and #uid_fetch to always return an array.
I wasn't aware enough that Net::IMAP#fetch_internal may return nil.  We
have a dedicated subclass of Net::IMAP, so override the behavior there.

Fixes #602.
2014-10-31 16:22:59 +09:00
Andrew Cantino
c0df2352a6 Merge pull request #575 from cantino/longer_agent_logs
Add a button to view full error logs; allow longer than 2000 characters
2014-10-27 22:43:58 -07:00
Andrew Cantino
85862fdc56 pre-wrap 2014-10-27 21:48:47 -07:00
Akinori MUSHA
002436fcb0 Change deprecated File.exists? to File.exist?.
Pointed out in #595.
2014-10-28 10:45:27 +09:00
Andrew Cantino
815c6d6b86 larger model; fix bootstrap error errors 2014-10-27 14:06:42 -07:00
Akinori MUSHA
96b183bf09 RSSAgent: Include url in addition to urls in each event.
An Atom/RSS entry usually has just one URL, and even if it has many only
the first of those is likely to be of interest.

Emitting an event with `url` also helps downstream agents like
WebsiteAgent that uses the key name to get a URL to crawl.
2014-10-27 21:17:25 +09:00
Akinori MUSHA
3c339d1b56 Use Glyphicon's cloud-upload/download icons. 2014-10-27 18:35:44 +09:00
Akinori MUSHA
f29c3844f9 Use the fa-copy icon for Clone Agent. 2014-10-27 18:34:45 +09:00
Akinori MUSHA
d655cc6cb1 Add a new helper: icon_tag(). 2014-10-27 18:33:06 +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
Chris Eidhof
b3e7a62b2e Added a note about the iOS apps you can use to POST your GPS location 2014-10-25 16:10:33 +02:00
Akinori MUSHA
30d252f831 Merge pull request #587 from knu/scenario_import_force_utf8
Assume an uploaded scenario file (JSON) is encoded in UTF-8.
2014-10-25 18:13:12 +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
5ee20f22da Assume an uploaded scenario file (JSON) is encoded in UTF-8.
When uploading a file, web browsers do not specify a charset in
Content-Type because it is usually unknown and you cannot assume it
matches the form encoding.  Here's a fragment of multipart headers
Firefox will send:

```
Content-Disposition: form-data; name="scenario_import[file]"; filename="example.json"
Content-Type: application/json
```

This causes the scenario import to fail with the following error because
of an uploaded blob being treated as ASCII-8BIT:

```
ActionView::Template::Error (incompatible character encodings: ASCII-8BIT and UTF-8):
    18:     <% if @scenario_import.step_one? %>
    19:       <%= render 'step_one', :f => f %>
    20:     <% elsif @scenario_import.step_two? %>
    21:       <%= render 'step_two', :f => f %>
    22:     <% end %>
    23:   <% end %>
    24:
  app/views/scenario_imports/new.html.erb:21:in `block in _app_views_scenario_imports_new_html_erb___4262128004129331542_17292895160'
  app/views/scenario_imports/new.html.erb:15:in `_app_views_scenario_imports_new_html_erb___4262128004129331542_17292895160'
  app/controllers/scenario_imports_controller.rb:17:in `create'
  config/initializers/silence_worker_status_logger.rb:5:in `call_with_silence_worker_status'
```
2014-10-23 22:00:48 +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
63f64f1597 Refactor highlighted? to avoid lambdas. 2014-10-21 18:51:38 +09:00
Akinori MUSHA
9294a2207d Use Float::INFINITY; We don't support Ruby 1.8. 2014-10-21 18:47:12 +09:00
Akinori MUSHA
38907aea9b Make event-indicator a link to the events page, with new events highlighted.
Currently it works as a reload button, but it gives you nothing but
dismissing the indicator unless you are on the events page, and in any
case you have no idea which events are newly created.

With this change, clicking the indicator takes you to the events page on
which newly created events are highlighted.
2014-10-21 18:41:33 +09:00
Guilherme J. Tramontina
5f9d45b68a Improve wording and add usage example on the DropboxFileUrlAgent description. 2014-10-18 16:39:33 -03:00
Akinori MUSHA
5462c62585 Move OmniAuth authentication/callback endpoints to OmniauthCallbacksController. 2014-10-17 13:57:25 +09:00
Guilherme J. Tramontina
81bb122c0e Merge branch 'master' into dropbox-file-url 2014-10-16 03:17:27 -03:00
Andrew Cantino
13bfdc3c03 Merge pull request #572 from PetroFeed/dropbox-watch-agent
Dropbox watch agent
2014-10-15 23:12:20 -07:00