uw_catalog 0.0.4 → 0.0.5

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.
@@ -98,24 +98,17 @@ module UwCatalog
98
98
  status_guide = VoyagerItemStatus.status_guide(item.item_status.to_i)
99
99
  status_available = status_guide[:available]
100
100
  status_text = status_guide[:forward_status]
101
+
101
102
  ret = status_text
102
103
  status_date = nil
103
104
  if status_guide[:display_date]
104
105
  case item.item_status.to_i
105
106
  when 2, 3
106
107
  status_date = item.current_due_date.strftime(@@date_format) unless item.current_due_date.nil?
107
- if (!item.item_enum.nil?)
108
- status_text = "#{item.item_enum} #{status_text}, Due on #{status_date}"
109
- else
110
- status_text = " #{status_text}, Due on #{status_date}."
111
- end
108
+ status_text = "#{status_text}, Due on #{status_date}"
112
109
  else
113
110
  status_date = item.item_status_date.strftime(@@date_format) unless item.item_status_date.nil?
114
- if (!item.item_enum.nil?)
115
- status_text = "#{item.item_enum} #{status_text} #{status_date}"
116
- else
117
- status_text = "#{status_text} #{status_date}."
118
- end
111
+ status_text = "#{status_text} #{status_date}"
119
112
  end
120
113
  end
121
114
  return [status_available, status_text]
@@ -1,3 +1,3 @@
1
1
  module UwCatalog
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uw_catalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-09 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake