Commit graph

663 commits

Author SHA1 Message Date
Andrew Cantino
ec0e10c50f initial effort on pulling Agents into gems 2014-09-27 22:12:19 -07:00
Andrew Cantino
1a512dafae Merge pull request #536 from cantino/twitter_is_optional_too
twitter agents can be disabled too
2014-09-25 14:51:46 -07:00
Andrew Cantino
d70df24ece Merge pull request #545 from mozz100/master
Improve docs for ForecastIO in WeatherAgent
2014-09-24 20:49:03 -07:00
Akinori MUSHA
c7ec399a44 Merge pull request #541 from knu/download_credentials
Enable download of user credentials.
2014-09-25 10:57:21 +09:00
Akinori MUSHA
7ca5d7db80 Merge remote-tracking branch 'knu/font-awesome' 2014-09-25 10:54:57 +09:00
Akinori MUSHA
75d0d0d6a1 Merge pull request #538 from knu/refactor-omniauth-providers
Refactor OmniAuth configuration and fix it with 37Signals.
2014-09-25 10:47:45 +09:00
Dominik Sander
75f7f1b01a Fixed flickering of the job indicators 2014-09-24 23:29:04 +02:00
Richard Morrison
fd9300584d Improve docs for ForecastIO in WeatherAgent 2014-09-24 21:05:31 +01:00
Akinori MUSHA
b8a4c268ce Enable download of user credentials.
Closes #529.
2014-09-24 22:52:12 +09:00
Andrew Cantino
fdf3565199 twitter agents can be disabled too 2014-09-23 21:22:03 -07:00
Akinori MUSHA
b543c38f25 Use FontAwesome glyphs for asc/desc arrows. 2014-09-24 12:28:13 +09:00
Andrew Cantino
96e74ef02a Merge pull request #512 from cantino/fix_schedule_reset
Fix schedule reset AKA refactor all the JavaScript!
2014-09-23 20:24:02 -07:00
Andrew Cantino
5fdf5197c7 Merge pull request #526 from cantino/many_gems_are_optional
experimental branch to support using fewer gems for saving RAM
2014-09-23 20:22:33 -07:00
Akinori MUSHA
c6c91cd8ab Turn authentication links into pretty buttons. 2014-09-24 12:15:12 +09:00
Akinori MUSHA
9defc7afb8 Refactor OmniAuth configuration and fix it with 37Signals. 2014-09-24 10:18:04 +09:00
Andrew Cantino
8e4f23b621 Merge pull request #530 from cantino/heroku_first_time_makes_admin_user
refactor bin/setup_heroku so button users get admin accounts
2014-09-23 14:01:30 -07:00
Dominik Sander
d10f21bb79 Fixed navigation bar when many events are pending
Fixes #498
2014-09-23 22:03:53 +02:00
Andrew Cantino
ca0234b02d refactor bin/setup_heroku so button users get admin accounts 2014-09-22 22:21:15 -07:00
Andrew Cantino
eb52eeeeea experimental branch to support using fewer gems for saving RAM 2014-09-21 17:53:04 -07:00
Akinori MUSHA
dd507e3cbf Make Event's location accessible from Liquid templates. 2014-09-19 21:57:45 +09:00
Akinori MUSHA
1406f37d48 Add Event#location= and make location an accessible attribute.
Add long aliases for lat and lng to Location.
2014-09-19 21:16:35 +09:00
Akinori MUSHA
b25142e793 Introduce a Location class. 2014-09-19 19:06:55 +09:00
Akinori MUSHA
1784eeb38a TIL: x ? y in CoffeeScript is a shorthand for if x? then x else y. 2014-09-19 15:40:57 +09:00
Akinori MUSHA
d22cad0327 Remove the map_marker partial, which is no longer useful. 2014-09-19 15:20:24 +09:00
Akinori MUSHA
223f3a61e9 Compact map_marker.js and use Utils.jsonify. 2014-09-19 11:29:36 +09:00
Akinori MUSHA
951648c94e Refactor the map_marker partial. 2014-09-19 10:48:33 +09:00
Akinori MUSHA
d4bd3c7c8b Add Event#location. 2014-09-19 10:36:27 +09:00
Akinori MUSHA
aceed9ac83 Add a scope with_location to Event. 2014-09-19 10:16:02 +09:00
Akinori MUSHA
94cec5e4cd Merge pull request #511 from knu/agent-drop_pending_events
Give user an option to drop pending events when enabling an agent.
2014-09-18 17:25:05 +09:00
Andrew Cantino
7dc8296a6f application.js no longer needs to be erb 2014-09-17 23:29:04 -07:00
Andrew Cantino
53b9e47371 refactor JS and fix scheduling clearing bug 2014-09-17 23:23:14 -07:00
Akinori MUSHA
a7f5ee3051 Do not update last_checked_event_id if an agent cannot receive events.
Use `maximum` while at it.
2014-09-18 15:09:18 +09:00
Akinori MUSHA
ea0fb2cf90 Make drop_pending_events a virtual attribute of Agent. 2014-09-18 15:09:17 +09:00
Akinori MUSHA
b933a886ea Add a tooltip for the "Drop pending events" option. 2014-09-18 14:42:15 +09:00
Akinori MUSHA
edb87b5d38 Reduce duplicates. 2014-09-18 14:41:24 +09:00
Akinori MUSHA
c138a49824 Fix debug code. 2014-09-18 14:11:19 +09:00
Andrew Cantino
4bb833fd89 Minor refector to avoid global @agent 2014-09-17 21:39:27 -07:00
Akinori MUSHA
c35d6b99f0 Merge pull request #504 from knu/user_location_agent-issue-490
Update UserLocationAgent
2014-09-18 12:34:43 +09:00
Akinori MUSHA
7edbf92f01 Give user an option to drop pending events when enabling an agent.
This is shown in a confirmation dialog introduced for enable/disable
actions.
2014-09-18 12:32:11 +09:00
Akinori MUSHA
2f01eb017c Include another concern inside of the included block. 2014-09-17 18:07:18 +09:00
Akinori MUSHA
a6c16f07ac Stop requiring files that is to be autoloaded.
cf. https://github.com/rails/rails/issues/15767

Back out the move `load_types_in`, which was innocent because it does
not load anything.

Have to make sure #502 does not recur.
2014-09-17 18:05:32 +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
Akinori MUSHA
0f2af0ac12 Fix the events#show page when an event contains lat/lng information.
The map_marker partial is moved to `views/shared` to be shared globally.

This addresses #490.
2014-09-16 19:40:17 +09:00
Akinori MUSHA
36102dd3f1 Call load_types_in after necessary class methods are defined.
Loaded subclasses need them.

This should fix #502.
2014-09-16 17:07:48 +09:00
Andrew Cantino
85fb86b1cb Merge pull request #495 from cantino/fix_rss_agent_ids
Calculate IDs in RssAgent if none are available
2014-09-14 14:56:31 -07:00
Andrew Cantino
3f81060bf1 add event description, disable spring because it messes with foreman 2014-09-14 13:28:11 -07:00
Andrew Cantino
34e7a52f0c calculate ids if none are available 2014-09-13 11:51:12 -07:00
Akinori MUSHA
b71ad2e99c Merge pull request #488 from knu/data_output_agent-pubDate
DataOutputAgent: Allow the `pubDate` value for each item to be given by user.
2014-09-13 16:11:38 +09:00
Andrew Cantino
933f1eb1f9 integrate knu's suggestions 2014-09-12 22:30:45 -07:00