mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
initial effort on pulling Agents into gems
This commit is contained in:
parent
3c8d6655a3
commit
0bd46b524f
9 changed files with 72 additions and 3 deletions
4
Gemfile
4
Gemfile
|
@ -23,6 +23,8 @@ def if_true(condition)
|
|||
end
|
||||
end
|
||||
|
||||
gem 'rss_agent', path: 'agents/rss_agent'
|
||||
|
||||
# Optional libraries. To conserve RAM, comment out any that you don't need,
|
||||
# then run `bundle` and commit the updated Gemfile and Gemfile.lock.
|
||||
gem 'twilio-ruby', '~> 3.11.5' # TwilioAgent
|
||||
|
@ -92,7 +94,6 @@ gem 'devise', '~> 3.5.4'
|
|||
gem 'em-http-request', '~> 1.1.2'
|
||||
gem 'faraday', '~> 0.9.0'
|
||||
gem 'faraday_middleware', github: 'lostisland/faraday_middleware', branch: 'master' # '>= 0.10.1'
|
||||
gem 'feed-normalizer'
|
||||
gem 'font-awesome-sass', '~> 4.3.2'
|
||||
gem 'foreman', '~> 0.63.0'
|
||||
# geokit-rails doesn't work with geokit 1.8.X but it specifies ~> 1.5
|
||||
|
@ -102,6 +103,7 @@ gem 'geokit-rails', '~> 2.0.1'
|
|||
gem 'httparty', '~> 0.13'
|
||||
gem 'httmultiparty', '~> 0.3.16'
|
||||
gem 'jquery-rails', '~> 3.1.3'
|
||||
gem 'huginn_agent'
|
||||
gem 'json', '~> 1.8.1'
|
||||
gem 'jsonpath', '~> 0.5.6'
|
||||
gem 'kaminari', '~> 0.16.1'
|
||||
|
|
11
Gemfile.lock
11
Gemfile.lock
|
@ -58,6 +58,13 @@ GIT
|
|||
omniauth (~> 1.0)
|
||||
omniauth-oauth2 (~> 1.1)
|
||||
|
||||
PATH
|
||||
remote: agents/rss_agent
|
||||
specs:
|
||||
rss_agent (0.1)
|
||||
feed-normalizer (~> 1.5.2)
|
||||
huginn_agent
|
||||
|
||||
PATH
|
||||
remote: vendor/gems/dotenv-2.0.1
|
||||
specs:
|
||||
|
@ -281,6 +288,7 @@ GEM
|
|||
httparty (0.13.7)
|
||||
json (~> 1.8)
|
||||
multi_xml (>= 0.5.2)
|
||||
huginn_agent (0.1)
|
||||
hypdf (1.0.10)
|
||||
httmultiparty (~> 0.3)
|
||||
httparty (~> 0.13)
|
||||
|
@ -614,7 +622,6 @@ DEPENDENCIES
|
|||
evernote_oauth
|
||||
faraday (~> 0.9.0)
|
||||
faraday_middleware!
|
||||
feed-normalizer
|
||||
ffi (>= 1.9.4)
|
||||
font-awesome-sass (~> 4.3.2)
|
||||
forecast_io (~> 2.0.0)
|
||||
|
@ -629,6 +636,7 @@ DEPENDENCIES
|
|||
hipchat (~> 1.2.0)
|
||||
httmultiparty (~> 0.3.16)
|
||||
httparty (~> 0.13)
|
||||
huginn_agent
|
||||
hypdf (~> 1.0.10)
|
||||
jquery-rails (~> 3.1.3)
|
||||
json (~> 1.8.1)
|
||||
|
@ -666,6 +674,7 @@ DEPENDENCIES
|
|||
rspec-collection_matchers (~> 1.1.0)
|
||||
rspec-html-matchers (~> 0.7)
|
||||
rspec-rails (~> 3.1)
|
||||
rss_agent!
|
||||
rturk (~> 2.12.1)
|
||||
ruby-growl (~> 4.1.0)
|
||||
rufus-scheduler (~> 3.0.8)
|
||||
|
|
7
Rakefile
7
Rakefile
|
@ -5,3 +5,10 @@
|
|||
require File.expand_path('../config/application', __FILE__)
|
||||
|
||||
Huginn::Application.load_tasks
|
||||
|
||||
task("spec").clear
|
||||
RSpec::Core::RakeTask.new(:spec) do |t|
|
||||
t.pattern = ['spec/**/*_spec.rb', 'agents/**/spec/**/*_spec.rb']
|
||||
end
|
||||
|
||||
task :default => :spec
|
||||
|
|
22
agents/rss_agent/LICENSE.txt
Normal file
22
agents/rss_agent/LICENSE.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
Copyright (c) 2014 Andrew Cantino
|
||||
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
agents/rss_agent/lib/rss_agent.rb
Normal file
3
agents/rss_agent/lib/rss_agent.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
require 'huginn_agent'
|
||||
|
||||
HuginnAgent.register 'huginn_agent/rss_agent'
|
25
agents/rss_agent/rss_agent.gemspec
Normal file
25
agents/rss_agent/rss_agent.gemspec
Normal file
|
@ -0,0 +1,25 @@
|
|||
# coding: utf-8
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "rss_agent"
|
||||
spec.version = '0.1'
|
||||
spec.authors = ["Andrew Cantino"]
|
||||
spec.email = ["https://github.com/cantino/huginn"]
|
||||
spec.summary = %q{The default Huginn RSSAgent for consuming RSS and Atom feeds.}
|
||||
spec.homepage = "https://github.com/cantino/huginn"
|
||||
spec.license = "MIT"
|
||||
|
||||
spec.files = `git ls-files -z`.split("\x0")
|
||||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
||||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
||||
spec.require_paths = ["lib"]
|
||||
|
||||
spec.add_development_dependency "bundler", "~> 1.7"
|
||||
spec.add_development_dependency "rake", "~> 10.0"
|
||||
spec.add_development_dependency "rspec"
|
||||
|
||||
spec.add_runtime_dependency "huginn_agent"
|
||||
spec.add_runtime_dependency "feed-normalizer", "~> 1.5.2"
|
||||
end
|
|
@ -1 +1,2 @@
|
|||
require 'pp'
|
||||
require 'pp'
|
||||
HuginnAgent.require!
|
Loading…
Add table
Reference in a new issue