dragonfly 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of dragonfly might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/dragonfly.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dragonfly}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Evans"]
12
- s.date = %q{2010-03-04}
12
+ s.date = %q{2010-03-27}
13
13
  s.email = %q{mark@new-bamboo.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -143,7 +143,7 @@ Gem::Specification.new do |s|
143
143
  s.homepage = %q{http://github.com/markevans/dragonfly}
144
144
  s.rdoc_options = ["--charset=UTF-8"]
145
145
  s.require_paths = ["lib"]
146
- s.rubygems_version = %q{1.3.5}
146
+ s.rubygems_version = %q{1.3.6}
147
147
  s.summary = %q{Dragonfly is an on-the-fly Rack processing/encoding framework. It includes an extension for Ruby on Rails for easy image handling}
148
148
  s.test_files = [
149
149
  "spec/argument_matchers.rb",
@@ -17,6 +17,7 @@ module Dragonfly
17
17
 
18
18
  def assign(value)
19
19
  if value.nil?
20
+ self.temp_object = nil
20
21
  self.uid = nil
21
22
  reset_magic_attributes
22
23
  else
@@ -40,7 +41,7 @@ module Dragonfly
40
41
  def save!
41
42
  if changed?
42
43
  destroy!
43
- self.uid = app.datastore.store(temp_object)
44
+ self.uid = app.datastore.store(temp_object) if temp_object
44
45
  end
45
46
  end
46
47
 
@@ -105,7 +105,7 @@ describe Item do
105
105
  before(:each) do
106
106
  @item.preview_image = "DATASTRING"
107
107
  @app.datastore.should_receive(:store).with(a_temp_object_with_data("DATASTRING")).once.and_return('some_uid')
108
- @app.datastore.stub!(:store)
108
+ @app.datastore.stub!(:store).and_return('some_uid')
109
109
  @app.datastore.stub!(:destroy)
110
110
  @item.save!
111
111
  end
@@ -190,6 +190,7 @@ describe Item do
190
190
  it "should destroy the data on save" do
191
191
  @app.datastore.should_receive(:destroy).with('some_uid')
192
192
  @item.save!
193
+ @item.preview_image.should be_nil
193
194
  end
194
195
  it "should destroy the old data on destroy" do
195
196
  @app.datastore.should_receive(:destroy).with('some_uid')
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 3
9
+ version: 0.5.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Mark Evans
@@ -9,119 +14,141 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-04 00:00:00 +00:00
17
+ date: 2010-03-27 00:00:00 +00:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rack
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :runtime
31
+ version_requirements: *id001
25
32
  - !ruby/object:Gem::Dependency
26
33
  name: jeweler
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
33
41
  version: "0"
34
- version:
42
+ type: :development
43
+ version_requirements: *id002
35
44
  - !ruby/object:Gem::Dependency
36
45
  name: yard
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
40
48
  requirements:
41
49
  - - ">="
42
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
43
53
  version: "0"
44
- version:
54
+ type: :development
55
+ version_requirements: *id003
45
56
  - !ruby/object:Gem::Dependency
46
57
  name: rmagick
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
58
+ prerelease: false
59
+ requirement: &id004 !ruby/object:Gem::Requirement
50
60
  requirements:
51
61
  - - ">="
52
62
  - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
53
65
  version: "0"
54
- version:
66
+ type: :development
67
+ version_requirements: *id004
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: aws-s3
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
70
+ prerelease: false
71
+ requirement: &id005 !ruby/object:Gem::Requirement
60
72
  requirements:
61
73
  - - ">="
62
74
  - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
63
77
  version: "0"
64
- version:
78
+ type: :development
79
+ version_requirements: *id005
65
80
  - !ruby/object:Gem::Dependency
66
81
  name: rspec
67
- type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
82
+ prerelease: false
83
+ requirement: &id006 !ruby/object:Gem::Requirement
70
84
  requirements:
71
85
  - - ">="
72
86
  - !ruby/object:Gem::Version
87
+ segments:
88
+ - 0
73
89
  version: "0"
74
- version:
90
+ type: :development
91
+ version_requirements: *id006
75
92
  - !ruby/object:Gem::Dependency
76
93
  name: cucumber
77
- type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
94
+ prerelease: false
95
+ requirement: &id007 !ruby/object:Gem::Requirement
80
96
  requirements:
81
97
  - - ">="
82
98
  - !ruby/object:Gem::Version
99
+ segments:
100
+ - 0
83
101
  version: "0"
84
- version:
102
+ type: :development
103
+ version_requirements: *id007
85
104
  - !ruby/object:Gem::Dependency
86
105
  name: cucumber-rails
87
- type: :development
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
106
+ prerelease: false
107
+ requirement: &id008 !ruby/object:Gem::Requirement
90
108
  requirements:
91
109
  - - ">="
92
110
  - !ruby/object:Gem::Version
111
+ segments:
112
+ - 0
93
113
  version: "0"
94
- version:
114
+ type: :development
115
+ version_requirements: *id008
95
116
  - !ruby/object:Gem::Dependency
96
117
  name: activerecord
97
- type: :development
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
118
+ prerelease: false
119
+ requirement: &id009 !ruby/object:Gem::Requirement
100
120
  requirements:
101
121
  - - ">="
102
122
  - !ruby/object:Gem::Version
123
+ segments:
124
+ - 0
103
125
  version: "0"
104
- version:
126
+ type: :development
127
+ version_requirements: *id009
105
128
  - !ruby/object:Gem::Dependency
106
129
  name: sqlite3-ruby
107
- type: :development
108
- version_requirement:
109
- version_requirements: !ruby/object:Gem::Requirement
130
+ prerelease: false
131
+ requirement: &id010 !ruby/object:Gem::Requirement
110
132
  requirements:
111
133
  - - ">="
112
134
  - !ruby/object:Gem::Version
135
+ segments:
136
+ - 0
113
137
  version: "0"
114
- version:
138
+ type: :development
139
+ version_requirements: *id010
115
140
  - !ruby/object:Gem::Dependency
116
141
  name: ginger
117
- type: :development
118
- version_requirement:
119
- version_requirements: !ruby/object:Gem::Requirement
142
+ prerelease: false
143
+ requirement: &id011 !ruby/object:Gem::Requirement
120
144
  requirements:
121
145
  - - ">="
122
146
  - !ruby/object:Gem::Version
147
+ segments:
148
+ - 0
123
149
  version: "0"
124
- version:
150
+ type: :development
151
+ version_requirements: *id011
125
152
  description:
126
153
  email: mark@new-bamboo.co.uk
127
154
  executables: []
@@ -268,18 +295,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
295
  requirements:
269
296
  - - ">="
270
297
  - !ruby/object:Gem::Version
298
+ segments:
299
+ - 0
271
300
  version: "0"
272
- version:
273
301
  required_rubygems_version: !ruby/object:Gem::Requirement
274
302
  requirements:
275
303
  - - ">="
276
304
  - !ruby/object:Gem::Version
305
+ segments:
306
+ - 0
277
307
  version: "0"
278
- version:
279
308
  requirements: []
280
309
 
281
310
  rubyforge_project:
282
- rubygems_version: 1.3.5
311
+ rubygems_version: 1.3.6
283
312
  signing_key:
284
313
  specification_version: 3
285
314
  summary: Dragonfly is an on-the-fly Rack processing/encoding framework. It includes an extension for Ruby on Rails for easy image handling