flareshow 0.3.3 → 0.3.4

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.
Files changed (4) hide show
  1. data/Flareshow.gemspec +2 -2
  2. data/VERSION +1 -1
  3. data/lib/post.rb +3 -2
  4. metadata +2 -2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{flareshow}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Will Bailey"]
12
- s.date = %q{2010-01-12}
12
+ s.date = %q{2010-03-12}
13
13
  s.description = %q{a ruby gem for interacting with the shareflow collaboration service by Zenbe}
14
14
  s.email = %q{will.bailey@gmail.com}
15
15
  s.extra_rdoc_files = [
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -37,7 +37,7 @@ class Post < Flareshow::Resource
37
37
  self.files = []
38
38
  self.build_file(file_path)
39
39
  self.save
40
- self.files = nil
40
+ self.files = []
41
41
  end
42
42
 
43
43
  # persisted files for this post
@@ -53,7 +53,8 @@ class Post < Flareshow::Resource
53
53
  # user for this post
54
54
  def user
55
55
  return User.current unless user_id
56
- User.first({:id => user_id})
56
+ user = User.get_from_cache(user_id)
57
+ user || User.first({:id => user_id})
57
58
  end
58
59
 
59
60
  # get the flow for this post
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flareshow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Bailey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-12 00:00:00 -05:00
12
+ date: 2010-03-12 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency