This repository has been archived by the owner on Sep 14, 2021. It is now read-only.
forked from astro/harvester
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omg! it's 4:42 am and I've recognised - again - how dangerous rm -rf …
…can be... I've almost deleted all changes of the last days, but luckily, I just installed the code it as gem, so I had the files. Unfortunately, all commit(message)s are gone, so here are the main changes: * restructure directory/code/project structure & layout * runs with 1.9.2 (except jabberbot), drop 1.8 support * port fetch.rb to eventmachine All changes were tested only basically, hope I didn't break anything ;)
- Loading branch information
Showing
33 changed files
with
674 additions
and
655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*~ | ||
*.swp | ||
*.rbc | ||
html | ||
pkg | ||
harvester.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rvm use 1.9.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require 'fileutils' | ||
GEMSPEC = 'harvester.gemspec' | ||
|
||
def gemspec | ||
@gemspec ||= eval(File.read( GEMSPEC ), binding, GEMSPEC) | ||
end | ||
|
||
desc "Build the gem" | ||
task :gem => :gemspec do | ||
sh "gem build #{GEMSPEC}" | ||
FileUtils.mkdir_p 'pkg' | ||
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg' | ||
end | ||
|
||
desc "Install the gem locally (without docs)" | ||
task :install => :gem do | ||
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-rdoc --no-ri} | ||
end | ||
|
||
desc "Generate the gemspec" | ||
task :generate do | ||
puts gemspec.to_ruby | ||
end | ||
|
||
desc "Validate the gemspec" | ||
task :gemspec do | ||
gemspec.validate | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
if sub_command = ARGV.shift | ||
path = File.expand_path( File.dirname(__FILE__) ) # TODO remove absolute path when packaged as gem + check for options first | ||
exec "#{path}/harvester-#{sub_command}", *ARGV | ||
end | ||
|
||
# default: | ||
require_relative '../lib/harvester/fetch' | ||
require_relative '../lib/harvester/generate' | ||
require_relative '../lib/harvester/chart' | ||
|
||
harve = Harvester.new_from_argv | ||
harve.fetch! | ||
harve.generate! | ||
harve.chart! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
require_relative '../lib/harvester/chart' | ||
Harvester.new_from_argv.chart! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
require_relative '../lib/harvester/fetch' | ||
Harvester.new_from_argv.fetch! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
require_relative '../lib/harvester/generate' | ||
Harvester.new_from_argv.generate! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
# TODO: pass differnet username as ARGV | ||
require_relative '../lib/harvester/jabber' | ||
Harvester.new_from_argv.jabber! |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.