fresnel 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/fresnel.gemspec +1 -1
- data/lib/fresnel.rb +5 -1
- metadata +1 -1
data/fresnel.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.name = 'fresnel'
|
4
4
|
s.summary = "Fresnel is a console manager to LighthouseApp.com using the official lighthouse api."
|
5
5
|
s.description = s.summary
|
6
|
-
s.version = '0.6.
|
6
|
+
s.version = '0.6.4'
|
7
7
|
s.date = '2010-01-10'
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Gerard de Brieder", "Wes Oldenbeuving"]
|
data/lib/fresnel.rb
CHANGED
@@ -26,7 +26,7 @@ LICENSES={
|
|
26
26
|
|
27
27
|
class Fresnel
|
28
28
|
attr_reader :global_config_file, :project_config_file, :app_description
|
29
|
-
attr_accessor :lighthouse, :current_project_id, :cache, :cache_timeout, :current_user_id
|
29
|
+
attr_accessor :lighthouse, :current_project_id, :cache, :cache_timeout, :current_user_id, :bin
|
30
30
|
|
31
31
|
def initialize(options=Hash.new)
|
32
32
|
@global_config_file="#{ENV['HOME']}/.fresnel"
|
@@ -209,6 +209,8 @@ class Fresnel
|
|
209
209
|
|
210
210
|
def tickets(options=Hash.new)
|
211
211
|
system("clear")
|
212
|
+
get_tickets_in_bin(self.bin) unless self.bin.blank? || options[:tickets].present?
|
213
|
+
|
212
214
|
options[:all] ? print("Fetching all tickets#{" in bin #{options[:bin_name]}" if options[:bin_name].present?}...") : print("Fetching unresolved tickets#{" in bin #{options[:bin_name]}" if options[:bin_name].present?}...")
|
213
215
|
STDOUT.flush
|
214
216
|
@current_project_id=options[:project_id]||self.current_project_id
|
@@ -296,6 +298,8 @@ class Fresnel
|
|
296
298
|
exit(0)
|
297
299
|
else
|
298
300
|
puts "Fetching tickets in bin : #{bins[bin_id.to_i].name}"
|
301
|
+
self.bin=bin_id.to_i
|
302
|
+
|
299
303
|
data=bins[bin_id.to_i].tickets
|
300
304
|
|
301
305
|
def data.age=(seconds)
|