mite-rb 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  = mite-rb Changelog
2
2
 
3
+ == In progress
4
+
5
+ * Added Project#name_with_customer for best practice/convenience
6
+
3
7
  == Version 0.2.1
4
8
 
5
9
  * Added archived and active collection-methods to Customer, Project, Service and User
@@ -17,7 +21,7 @@
17
21
 
18
22
  == Version 0.0.3
19
23
 
20
- * Fixed wrong domain_name (old one for testung removed)
24
+ * Fixed wrong domain name (old one for testing removed)
21
25
 
22
26
  == Version 0.0.2
23
27
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 1
4
+ :patch: 2
data/lib/mite/project.rb CHANGED
@@ -5,7 +5,11 @@ class Mite::Project < Mite::Base
5
5
  def time_entries(options = {})
6
6
  Mite::TimeEntry.find(:all, :params => options.update(:project_id => id))
7
7
  end
8
-
8
+
9
+ def name_with_customer
10
+ customer_name.blank? ? name : "#{name} (#{customer_name})"
11
+ end
12
+
9
13
  def customer
10
14
  @customer ||= Mite::Customer.find(customer_id) unless customer_id.blank?
11
15
  end
data/mite-rb.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mite-rb}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sebastian Munz"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mite-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz