TODO: make gem for this
This was tested using Rails 3.2 and Rails 4.0 on Ruby 2.0.0.
-
Set the install directory for Bower components:
// .bowerrc
| @tornado.gen.engine | |
| def async_request(self, callback, server_url, method=u'GET', body=None, **kwargs): | |
| """ | |
| Make async request to server | |
| :param callback: callback to pass results | |
| :type callback: func | |
| :param server_url: path to required API | |
| :type server_url: unicode | |
| :param method: HTTP method to use, default - GET | |
| :type method: unicode |
| # -- coding: utf-8 -- | |
| import os | |
| import pdb | |
| #import random | |
| from scrapy import log, signals | |
| from scrapy.stats import stats | |
| from scrapy.xlib.pydispatch import dispatcher | |
| from scrapy.exceptions import IgnoreRequest | |
| from scrapy.conf import settings | |
| from scrapy.utils.job import job_dir |