medea 0.6.1 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -101,6 +101,7 @@ module Medea
101
101
  resp = RestClient.post to_url, contents, post_headers
102
102
 
103
103
  if resp.code == 201
104
+ @__jason_state = :stale
104
105
  true
105
106
  else
106
107
  false
data/lib/medea/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Medea
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.3"
3
3
 
4
4
  #When the templates are changed, this version should be incremented
5
5
  #This version is used when uploading/updating the templates
@@ -18,14 +18,14 @@ describe "Jason Blob" do
18
18
  @update.avatar = "Here's some text!"
19
19
  @update.save!
20
20
  u2 = Update.get_by_key(@update.jason_key)
21
- u2.avatar.should eq("Here's some text!")
22
- u2.avatar.size.should eq("Here's some text!".size)
21
+ u2.avatar.contents.should eq("Here's some text!")
22
+ u2.avatar.contents.size.should eq("Here's some text!".size)
23
23
  end
24
24
 
25
25
  it "should work for larger images" do
26
26
  f = File.new("./spec/test.jpg", "r")
27
27
  @update.avatar = f
28
28
  @update.save!
29
- Update.get_by_key(@update.jason_key).avatar.size.should eq(f.size)
29
+ Update.get_by_key(@update.jason_key).avatar.contents.size.should eq(f.size)
30
30
  end
31
31
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 1
9
- version: 0.6.1
8
+ - 3
9
+ version: 0.6.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Jensen