mite-rb 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES.txt +5 -1
- data/VERSION.yml +1 -1
- data/lib/mite/project.rb +5 -1
- data/mite-rb.gemspec +1 -1
- metadata +1 -1
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
|
|
24
|
+
* Fixed wrong domain name (old one for testing removed)
|
|
21
25
|
|
|
22
26
|
== Version 0.0.2
|
|
23
27
|
|
data/VERSION.yml
CHANGED
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