draper 0.15.0rc1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -1,5 +1,19 @@
1
1
  = Draper Changelog
2
2
 
3
+ = 0.15.0
4
+
5
+ * Proper minitest integration
6
+
7
+ * We can properly decorate scoped associations, see #223
8
+
9
+ * Fixed awkward eager loading, see 7dc3510b
10
+
11
+ = 0.14.0
12
+
13
+ * Properly prime the view context in Rails Console 738074f
14
+
15
+ * Make more gems development requirements only
16
+
3
17
  = 0.13.0
4
18
 
5
19
  * Upgraded all dependencies
data/draper.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_dependency 'activesupport', '~> 3.2'
20
20
  s.add_dependency 'actionpack', '~> 3.2'
21
21
 
22
- s.add_development_dependency 'ammeter', '~> 0.2.2'
22
+ s.add_development_dependency 'ammeter', '0.2.2'
23
23
  s.add_development_dependency 'rake', '~> 0.9.2'
24
24
  s.add_development_dependency 'rspec', '~> 2.10'
25
25
  s.add_development_dependency 'yard'
@@ -15,10 +15,7 @@ RSpec.configure do |config|
15
15
 
16
16
  # Specs tagged type: :decorator set the Draper view context
17
17
  config.before :type => :decorator do
18
- ApplicationController.new.set_current_view_context
19
- Draper::ViewContext.current.controller.request ||= ActionController::TestRequest.new
20
- Draper::ViewContext.current.request ||= Draper::ViewContext.current.controller.request
21
- Draper::ViewContext.current.params ||= {}
18
+ Draper::ViewContext.infect!(self)
22
19
  end
23
20
 
24
21
  config.before :type => :view do
@@ -1,3 +1,3 @@
1
1
  module Draper
2
- VERSION = "0.15.0rc1"
2
+ VERSION = "0.15.0"
3
3
  end
@@ -27,7 +27,7 @@ class <%= class_name %>Decorator < <%= parent_class_name %>
27
27
  # generated by ActiveRecord:
28
28
  #
29
29
  # def created_at
30
- # h.content_tag :span, time.strftime("%a %m/%d/%y"),
30
+ # h.content_tag :span, attributes["created_at"].strftime("%a %m/%d/%y"),
31
31
  # :class => 'timestamp'
32
32
  # end
33
33
  end
metadata CHANGED
@@ -1,121 +1,125 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: draper
3
- version: !ruby/object:Gem::Version
4
- version: 0.15.0rc1
5
- prerelease: 6
3
+ version: !ruby/object:Gem::Version
4
+ hash: 35
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 15
9
+ - 0
10
+ version: 0.15.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Jeff Casimir
9
14
  - Steve Klabnik
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
- date: 2012-06-20 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2012-07-14 00:00:00 Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: activesupport
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: '3.2'
23
- type: :runtime
24
23
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
26
25
  none: false
27
- requirements:
26
+ requirements:
28
27
  - - ~>
29
- - !ruby/object:Gem::Version
30
- version: '3.2'
31
- - !ruby/object:Gem::Dependency
32
- name: actionpack
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: '3.2'
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 3
32
+ - 2
33
+ version: "3.2"
39
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: actionpack
40
38
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
42
40
  none: false
43
- requirements:
41
+ requirements:
44
42
  - - ~>
45
- - !ruby/object:Gem::Version
46
- version: '3.2'
47
- - !ruby/object:Gem::Dependency
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 3
47
+ - 2
48
+ version: "3.2"
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
48
52
  name: ammeter
49
- requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 0.2.2
55
- type: :development
56
53
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
54
+ requirement: &id003 !ruby/object:Gem::Requirement
58
55
  none: false
59
- requirements:
60
- - - ~>
61
- - !ruby/object:Gem::Version
56
+ requirements:
57
+ - - "="
58
+ - !ruby/object:Gem::Version
59
+ hash: 19
60
+ segments:
61
+ - 0
62
+ - 2
63
+ - 2
62
64
  version: 0.2.2
63
- - !ruby/object:Gem::Dependency
64
- name: rake
65
- requirement: !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ~>
69
- - !ruby/object:Gem::Version
70
- version: 0.9.2
71
65
  type: :development
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: rake
72
69
  prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
70
+ requirement: &id004 !ruby/object:Gem::Requirement
74
71
  none: false
75
- requirements:
72
+ requirements:
76
73
  - - ~>
77
- - !ruby/object:Gem::Version
74
+ - !ruby/object:Gem::Version
75
+ hash: 63
76
+ segments:
77
+ - 0
78
+ - 9
79
+ - 2
78
80
  version: 0.9.2
79
- - !ruby/object:Gem::Dependency
80
- name: rspec
81
- requirement: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ~>
85
- - !ruby/object:Gem::Version
86
- version: '2.10'
87
81
  type: :development
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
88
85
  prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
86
+ requirement: &id005 !ruby/object:Gem::Requirement
90
87
  none: false
91
- requirements:
88
+ requirements:
92
89
  - - ~>
93
- - !ruby/object:Gem::Version
94
- version: '2.10'
95
- - !ruby/object:Gem::Dependency
96
- name: yard
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
90
+ - !ruby/object:Gem::Version
91
+ hash: 23
92
+ segments:
93
+ - 2
94
+ - 10
95
+ version: "2.10"
103
96
  type: :development
97
+ version_requirements: *id005
98
+ - !ruby/object:Gem::Dependency
99
+ name: yard
104
100
  prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
101
+ requirement: &id006 !ruby/object:Gem::Requirement
106
102
  none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ hash: 3
107
+ segments:
108
+ - 0
109
+ version: "0"
110
+ type: :development
111
+ version_requirements: *id006
111
112
  description: Draper implements a decorator or presenter pattern for Rails applications.
112
- email:
113
+ email:
113
114
  - jeff@casimircreative.com
114
115
  - steve@steveklabnik.com
115
116
  executables: []
117
+
116
118
  extensions: []
119
+
117
120
  extra_rdoc_files: []
118
- files:
121
+
122
+ files:
119
123
  - .gitignore
120
124
  - .rspec
121
125
  - .travis.yml
@@ -201,29 +205,38 @@ files:
201
205
  - spec/support/samples/widget_decorator.rb
202
206
  homepage: http://github.com/jcasimir/draper
203
207
  licenses: []
208
+
204
209
  post_install_message:
205
210
  rdoc_options: []
206
- require_paths:
211
+
212
+ require_paths:
207
213
  - lib
208
- required_ruby_version: !ruby/object:Gem::Requirement
214
+ required_ruby_version: !ruby/object:Gem::Requirement
209
215
  none: false
210
- requirements:
211
- - - ! '>='
212
- - !ruby/object:Gem::Version
213
- version: '0'
214
- required_rubygems_version: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ hash: 3
220
+ segments:
221
+ - 0
222
+ version: "0"
223
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
224
  none: false
216
- requirements:
217
- - - ! '>'
218
- - !ruby/object:Gem::Version
219
- version: 1.3.1
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ hash: 3
229
+ segments:
230
+ - 0
231
+ version: "0"
220
232
  requirements: []
233
+
221
234
  rubyforge_project: draper
222
- rubygems_version: 1.8.24
235
+ rubygems_version: 1.8.15
223
236
  signing_key:
224
237
  specification_version: 3
225
238
  summary: Decorator pattern implementation for Rails.
226
- test_files:
239
+ test_files:
227
240
  - spec/draper/base_spec.rb
228
241
  - spec/draper/helper_support_spec.rb
229
242
  - spec/draper/model_support_spec.rb