hcl 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37356337b2821522c84bd05569cbc5e6b00e8316
4
- data.tar.gz: 506250a1481bce9b61c60c85170d838fc35afcd2
3
+ metadata.gz: 2ffeab4df3c125edae4368f304a145fa7d76bb0f
4
+ data.tar.gz: 8f362f3aa3e7010d9a871212818fa247165cea49
5
5
  SHA512:
6
- metadata.gz: 088e3d191f620b7a5443fa3c6cfe74c18148b83fa592811a16b9e1019df5ea48879e03425638c43c7f2720c7168d2e2463dcb72734c49c98eae1f66f75414104
7
- data.tar.gz: eac562669a54212360f07c93f3c31e8a84d8a1c64ddecd401186879a740c0c73e368c1ca0e36501ad2d51c27a444c287a699fe786cedaf27b099dbf4e45fe3e5
6
+ metadata.gz: 75031b9762f7ecc905d2b11fbe8c16b8708b459677a58de1750bca4cb9185699f25dd006626ea85841624e0b0130324ae43eef03922ffe8459b2411cf5b95817
7
+ data.tar.gz: 3a3b1bfce1f9f88da3a8bebb206c5bab6c6d6b71c81d6a8914a50ee4f74ecf216e904f03386bd95ed60b97cfb5b6eb37f706327bf22dd482d5db183f810fbf9c
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Recent Changes in HCl
2
2
 
3
+ == v0.4.8 2013-11-30
4
+
5
+ * more fixes for 1.9.3
6
+
3
7
  == v0.4.7 2013-11-30
4
8
 
5
9
  * added --reauth option to refresh credentials
@@ -129,7 +129,7 @@ module HCl
129
129
  DayEntry.all(date).each do |day|
130
130
  running = day.running? ? '(running) ' : ''
131
131
  columns = HighLine::SystemExtensions.terminal_size[0]
132
- result << "\t#{day.formatted_hours}\t#{running}#{day.project}: #{day.notes.lines.last}\n"[0..columns-1]
132
+ result << "\t#{day.formatted_hours}\t#{running}#{day.project}: #{day.notes.lines.to_a.last}\n"[0..columns-1]
133
133
  total_hours = total_hours + day.hours.to_f
134
134
  end
135
135
  result << ("\t" + '-' * 13) << "\n"
@@ -15,6 +15,10 @@ module HCl
15
15
  "#{client} - #{project} - #{task} (#{formatted_hours})"
16
16
  end
17
17
 
18
+ def task
19
+ @data[:task]
20
+ end
21
+
18
22
  def self.from_xml xml
19
23
  doc = REXML::Document.new xml
20
24
  raise Failure, "No root node in XML document: #{xml}" if doc.root.nil?
@@ -1,3 +1,3 @@
1
1
  module HCl
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
@@ -13,7 +13,7 @@ require 'fileutils'
13
13
  require 'fakeweb'
14
14
 
15
15
  # override the default hcl dir
16
- ENV['HCL_DIR'] = __dir__+"/dot_hcl"
16
+ ENV['HCL_DIR'] = File.dirname(__FILE__)+"/dot_hcl"
17
17
 
18
18
  require 'hcl'
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hcl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zack Hobson