Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

final release, should works every well now

  • Loading branch information...
commit 126de46df46cd9bfd97a266a777ffc9f37626805 1 parent 483c492
@gutenye authored
View
14 Gemfile
@@ -1,18 +1,12 @@
source :rubygems
+gem "tagen", "~>1.1.6"
+gem "pa", "~>1.2.3"
+gem "optimism", "~>3.1.2"
gem "thor"
-#gem "tagen", "~>1.1.4", :require => "tagen/core"
-gem "tagen", :path => "/home/guten/dev/one/tagen" , :require => "tagen/core"
-
-gem "pa", "~>1.2.0"
-#gem "optimism", "~>3.1.0"
-gem "optimism", :path => "/home/guten/dev/one/optimism"
-
-gem "pd"
-
group :development do
gem "rspec"
gem "watchr"
- gem "rag", :path => "/home/guten/dev/one/rag"
+ gem "rag"
end
View
50 Gemfile.lock
@@ -1,36 +1,23 @@
-PATH
- remote: /home/guten/dev/one/optimism
- specs:
- optimism (3.1.2)
- hike (~> 1.2.0)
-
-PATH
- remote: /home/guten/dev/one/rag
- specs:
- rag (1.2.1)
- optimism (~> 3.1.0)
- pa (~> 1.2.0)
- tagen (~> 1.1.0)
- thor
-
-PATH
- remote: /home/guten/dev/one/tagen
- specs:
- tagen (1.1.5)
- activesupport (~> 3.1.0)
- i18n
-
GEM
remote: http://rubygems.org/
specs:
activesupport (3.1.3)
multi_json (~> 1.0)
+ awesome_print (1.0.2)
diff-lcs (1.1.3)
hike (1.2.1)
i18n (0.6.0)
- multi_json (1.0.4)
- pa (1.2.1)
- pd (1.0.3)
+ multi_json (1.1.0)
+ optimism (3.1.2)
+ hike (~> 1.2.0)
+ pa (1.2.3)
+ pd (1.0.5)
+ awesome_print
+ rag (1.2.1)
+ optimism (~> 3.1.0)
+ pa (~> 1.2.0)
+ tagen (~> 1.1.0)
+ thor
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
@@ -39,6 +26,10 @@ GEM
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
+ tagen (1.1.6)
+ activesupport (~> 3.1.0)
+ i18n
+ pd
thor (0.14.6)
watchr (0.7)
@@ -46,11 +37,10 @@ PLATFORMS
ruby
DEPENDENCIES
- optimism!
- pa (~> 1.2.0)
- pd
- rag!
+ optimism (~> 3.1.2)
+ pa (~> 1.2.3)
+ rag
rspec
- tagen!
+ tagen (~> 1.1.6)
thor
watchr
View
6 bin/1oldtime
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+
+ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
+require "bundler/setup"
+
+load File.expand_path("../oldtime", __FILE__)
View
4 bin/oldtime
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+
require_relative "../lib/oldtime"
begin
@@ -11,4 +12,7 @@ rescue Interrupt => e
Oldtime.ui.error "\nQuitting..."
Oldtime.ui.debug e.backtrace.join("\n")
exit 1
+rescue Exception => e
+ raise e
+ exit 1
end
View
9 lib/oldtime.rb
@@ -1,9 +1,8 @@
-libdir = File.dirname(__FILE__)
-$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
+libdir = File.dirname(__FILE__); $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
-ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
-require "bundler/setup"
-Bundler.require
+require "tagen/core"
+require "optimism"
+require "pa"
module Oldtime
autoload :VERSION, "oldtime/version"
View
12 lib/oldtime/archlinux.rb
@@ -1,12 +0,0 @@
-module Oldtime
- module ArchLinux_Kernel
- def backup_archlinux_packages
- system %~pacman -Qqe | grep -vx "$(pacman -Qqm)" > #{Rc.p.oldtime}/packages.lst~, :verbose => true
- system %~pacman -Qqm > #{Rc.p.oldtime}/aur.lst~, :verbose => true
- end
- end
-end
-
-include Oldtime::ArchLinux_Kernel
-
-Optimism.undef_method :backup_archlinux_packages
View
2  lib/oldtime/cli.rb
@@ -1,3 +1,5 @@
+require "thor"
+
module Oldtime
class CLI < Thor
include Thor::Actions
Please sign in to comment.
Something went wrong with that request. Please try again.