beggar 0.0.4.alpha → 0.0.5.alpha

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beggar (0.0.3.alpha)
4
+ beggar (0.0.4.alpha)
5
5
  basecamp
6
6
 
7
7
  GEM
data/lib/beggar/base.rb CHANGED
@@ -9,12 +9,12 @@ module Beggar
9
9
  Salary.rate = config['project']['rate']
10
10
  end
11
11
 
12
- def me
12
+ def self.me
13
13
  @@me ||= Basecamp::Person.me
14
14
  end
15
15
 
16
16
  def summary
17
- [CurrentMonth, Hours, Salary].join(' || ') + "\n"
17
+ [CurrentMonth, Hours, Salary].join(' || ')
18
18
  end
19
19
  end
20
20
  end
data/lib/beggar/cli.rb CHANGED
@@ -5,11 +5,11 @@ module Beggar
5
5
  end
6
6
 
7
7
  def start
8
- $stdout << Beggar::Base.new(@config).summary
8
+ $stdout.puts Beggar::Base.new(@config).summary
9
9
  end
10
-
10
+
11
11
  private
12
-
12
+
13
13
  def load_config
14
14
  YAML.load_file(File.join(ENV['HOME'], '.beggar'))
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module Beggar
2
- VERSION = "0.0.4.alpha"
2
+ VERSION = "0.0.5.alpha"
3
3
  end
data/spec/base_spec.rb CHANGED
@@ -14,6 +14,6 @@ describe Beggar::Base do
14
14
  Beggar::Base.new(config)
15
15
  end
16
16
 
17
- its(:summary) { should == %(a || b || c\n) }
17
+ its(:summary) { should == %(a || b || c) }
18
18
  its(:me) { should == 'x' }
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beggar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.alpha
4
+ version: 0.0.5.alpha
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-16 00:00:00.000000000 Z
12
+ date: 2011-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70123487624900 !ruby/object:Gem::Requirement
16
+ requirement: &70156177413840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70123487624900
24
+ version_requirements: *70156177413840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: basecamp
27
- requirement: &70123487624380 !ruby/object:Gem::Requirement
27
+ requirement: &70156177413280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70123487624380
35
+ version_requirements: *70156177413280
36
36
  description: Tool for generating time reports from Basecamp. You can specify rate
37
37
  for each project and get value of your month salary.
38
38
  email:
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: 1.3.1
85
85
  requirements: []
86
86
  rubyforge_project: beggar
87
- rubygems_version: 1.8.10
87
+ rubygems_version: 1.8.11
88
88
  signing_key:
89
89
  specification_version: 3
90
90
  summary: Tool for generating time reports from Basecamp