puffer 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/.rvmrc +1 -0
  2. data/Gemfile +11 -8
  3. data/Gemfile.lock +117 -103
  4. data/Guardfile +20 -0
  5. data/VERSION +1 -1
  6. data/app/assets/javascripts/puffer/application.js +5 -0
  7. data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/puffer.js +0 -0
  8. data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/rails.js +0 -0
  9. data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right-autocompleter.js +0 -0
  10. data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right-calendar.js +0 -0
  11. data/{lib/generators/puffer/install/templates/puffer/javascripts → app/assets/javascripts/puffer}/right.js +0 -0
  12. data/app/assets/stylesheets/puffer/application.css +4 -0
  13. data/{lib/generators/puffer/install/templates/puffer/stylesheets → app/assets/stylesheets/puffer}/puffer.css +2 -1
  14. data/{lib/generators/puffer/install/templates/puffer/stylesheets → app/assets/stylesheets/puffer}/reset.css +0 -0
  15. data/app/controllers/puffer/dashboard.rb +12 -0
  16. data/app/controllers/puffer/{sessions_base.rb → sessions.rb} +1 -2
  17. data/app/helpers/puffer_helper.rb +2 -10
  18. data/app/views/layouts/puffer.html.erb +24 -5
  19. data/app/views/layouts/puffer_dashboard.html.erb +3 -3
  20. data/app/views/layouts/puffer_sessions.html.erb +3 -3
  21. data/app/views/puffer/{_form.html.erb → base/_form.html.erb} +2 -2
  22. data/app/views/puffer/{associated → base/associated}/_many.html.erb +1 -1
  23. data/app/views/puffer/{associated → base/associated}/many.rjs +0 -0
  24. data/app/views/puffer/{associated → base/associated}/one.js.erb +1 -1
  25. data/app/views/puffer/{association → base/association}/_many.html.erb +0 -0
  26. data/app/views/puffer/{edit.html.erb → base/edit.html.erb} +1 -1
  27. data/app/views/puffer/{index.html.erb → base/index.html.erb} +2 -2
  28. data/app/views/puffer/{new.html.erb → base/new.html.erb} +1 -1
  29. data/app/views/puffer/{show.html.erb → base/show.html.erb} +1 -1
  30. data/app/views/{puffer_dashboard → puffer/dashboard}/index.html.erb +0 -0
  31. data/app/views/{puffer_sessions → puffer/sessions}/new.html.erb +0 -0
  32. data/config/locales/puffer.yml +5 -0
  33. data/lib/generators/puffer/install/install_generator.rb +0 -8
  34. data/lib/generators/puffer/install/templates/dashboard_controller.rb +1 -1
  35. data/lib/generators/puffer/install/templates/sessions_controller.rb +1 -1
  36. data/lib/puffer.rb +0 -16
  37. data/lib/puffer/base.rb +8 -3
  38. data/lib/puffer/controller/config.rb +2 -0
  39. data/lib/puffer/controller/dsl.rb +2 -2
  40. data/lib/puffer/controller/generated.rb +4 -4
  41. data/lib/puffer/controller/helpers.rb +1 -1
  42. data/lib/puffer/controller/mutate.rb +0 -14
  43. data/lib/puffer/customs.rb +1 -0
  44. data/lib/puffer/engine.rb +0 -4
  45. data/lib/puffer/extensions/mapper.rb +5 -1
  46. data/lib/puffer/fields.rb +2 -2
  47. data/lib/puffer/fields/field.rb +16 -17
  48. data/lib/puffer/inputs/association.rb +3 -2
  49. data/lib/puffer/resource.rb +13 -12
  50. data/lib/puffer/resource/routing.rb +1 -1
  51. data/lib/puffer/resource/scoping.rb +2 -2
  52. data/puffer.gemspec +63 -126
  53. data/spec/dummy/.rvmrc +1 -0
  54. data/spec/dummy/Rakefile +1 -1
  55. data/spec/dummy/app/assets/images/rails.png +0 -0
  56. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  57. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  58. data/spec/dummy/app/controllers/admin/posts_controller.rb +3 -1
  59. data/spec/dummy/app/controllers/admin/profiles_controller.rb +4 -1
  60. data/spec/dummy/app/controllers/puffer/dashboard_controller.rb +1 -1
  61. data/spec/dummy/app/controllers/puffer/sessions_controller.rb +1 -1
  62. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  63. data/spec/dummy/config/application.rb +5 -9
  64. data/spec/dummy/config/boot.rb +5 -7
  65. data/spec/dummy/config/database.yml +4 -1
  66. data/spec/dummy/config/environments/development.rb +4 -3
  67. data/spec/dummy/config/environments/production.rb +17 -12
  68. data/spec/dummy/config/environments/test.rb +5 -1
  69. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  70. data/spec/dummy/config/initializers/session_store.rb +1 -1
  71. data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
  72. data/spec/dummy/config/locales/en.yml +1 -1
  73. data/spec/dummy/db/seeds.rb +7 -0
  74. data/spec/dummy/public/robots.txt +5 -0
  75. data/spec/fabricators/posts_fabricator.rb +1 -1
  76. data/spec/fabricators/profiles_fabricator.rb +1 -1
  77. data/spec/fabricators/users_fabricator.rb +1 -1
  78. data/spec/lib/resource/routing_spec.rb +5 -5
  79. data/spec/lib/resource_spec.rb +37 -88
  80. data/spec/spec_helper.rb +15 -0
  81. metadata +171 -272
  82. data/app/cells/puffer/base/additional.html.erb +0 -25
  83. data/app/cells/puffer/base_cell.rb +0 -25
  84. data/app/controllers/puffer/dashboard_base.rb +0 -13
  85. data/autotest/discover.rb +0 -2
  86. data/lib/generators/puffer/install/templates/puffer.rb +0 -12
  87. data/lib/puffer/path_set.rb +0 -24
  88. data/spec/dummy/app/views/admin/users/index.html.erb +0 -3
  89. data/spec/dummy/config/initializers/puffer.rb +0 -12
  90. data/spec/dummy/db/schema.rb +0 -83
  91. data/spec/dummy/public/javascripts/application.js +0 -2
  92. data/spec/dummy/public/javascripts/controls.js +0 -965
  93. data/spec/dummy/public/javascripts/dragdrop.js +0 -974
  94. data/spec/dummy/public/javascripts/effects.js +0 -1123
  95. data/spec/dummy/public/javascripts/prototype.js +0 -6001
  96. data/spec/dummy/public/javascripts/rails.js +0 -175
  97. data/spec/dummy/public/puffer/javascripts/puffer.js +0 -10
  98. data/spec/dummy/public/puffer/javascripts/rails.js +0 -57
  99. data/spec/dummy/public/puffer/javascripts/right-autocompleter.js +0 -621
  100. data/spec/dummy/public/puffer/javascripts/right-calendar.js +0 -1461
  101. data/spec/dummy/public/puffer/javascripts/right.js +0 -5892
  102. data/spec/dummy/public/puffer/stylesheets/puffer.css +0 -469
  103. data/spec/dummy/public/puffer/stylesheets/reset.css +0 -60
  104. data/spec/dummy/public/stylesheets/.gitkeep +0 -0
  105. data/spec/lib/render_fallback_spec.rb +0 -17
@@ -11,18 +11,19 @@ module Puffer
11
11
  include Routing
12
12
  include Scoping
13
13
 
14
- attr_reader :request, :params, :namespace, :action, :controller_name, :model_name, :controller, :model
14
+ attr_reader :controller, :params, :namespace, :action, :controller_name, :model_name, :controller_class, :model
15
+ delegate :env, :request, :to => :controller, :allow_nil => true
15
16
 
16
- def initialize params, request = nil
17
- params = Marshal.load Marshal.dump(params)
17
+ def initialize params, controller = nil
18
+ params = ActiveSupport::HashWithIndifferentAccess.new.deep_merge params
18
19
  @action = params.delete :action
19
- @controller = "#{params.delete :controller}_controller".camelize.constantize
20
- @controller_name = controller.controller_name
21
- @namespace = controller.namespace
22
- @model_name = controller.model_name if controller.puffer?
23
- @model = controller.model if controller.puffer?
20
+ @controller_class = "#{params.delete :controller}_controller".camelize.constantize
21
+ @controller_name = controller_class.controller_name
22
+ @namespace = controller_class.namespace
23
+ @model_name = controller_class.model_name if controller_class.puffer?
24
+ @model = controller_class.model if controller_class.puffer?
24
25
  @params = params
25
- @request = request
26
+ @controller = controller
26
27
  end
27
28
 
28
29
  def plural?
@@ -52,7 +53,7 @@ module Puffer
52
53
  end
53
54
  parent_params.merge! :id => params[parent_name.to_s.singularize.foreign_key]
54
55
 
55
- Resource.new parent_params, request
56
+ self.class.new parent_params, controller
56
57
  else
57
58
  nil
58
59
  end
@@ -90,7 +91,7 @@ module Puffer
90
91
  end
91
92
  child_params.merge! controller_name.singularize.foreign_key => params[:id] if params[:id]
92
93
 
93
- Resource.new child_params, request
94
+ self.class.new child_params, controller
94
95
  end
95
96
  end
96
97
 
@@ -99,7 +100,7 @@ module Puffer
99
100
  end
100
101
 
101
102
  def collection
102
- collection_scope.includes(includes).where(searches(params[:search])).order(order).paginate :page => params[:page]
103
+ collection_scope.includes(includes).where(searches(params[:search])).order(order).page(params[:page])
103
104
  end
104
105
 
105
106
  def member
@@ -34,7 +34,7 @@ module Puffer
34
34
  end
35
35
 
36
36
  def default_url_options *args
37
- Puffer::Base.default_url_options *args
37
+ Puffer::Base.default_url_options(*args)
38
38
  end
39
39
 
40
40
  end
@@ -3,7 +3,7 @@ module Puffer
3
3
  module Scoping
4
4
 
5
5
  def includes
6
- controller.index_fields.includes
6
+ controller_class.index_fields.includes
7
7
  end
8
8
 
9
9
  def order
@@ -11,7 +11,7 @@ module Puffer
11
11
  end
12
12
 
13
13
  def searches query
14
- controller.index_fields.searches query
14
+ controller_class.index_fields.searches query
15
15
  end
16
16
 
17
17
  end
data/puffer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{puffer}
8
- s.version = "0.0.19"
8
+ s.version = "0.0.20"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["pyromaniac"]
12
- s.date = %q{2011-03-01}
12
+ s.date = %q{2011-07-27}
13
13
  s.description = %q{In Soviet Russia puffer admins you}
14
14
  s.email = %q{kinwizard@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -17,32 +17,41 @@ Gem::Specification.new do |s|
17
17
  ]
18
18
  s.files = [
19
19
  ".rspec",
20
+ ".rvmrc",
20
21
  "Gemfile",
21
22
  "Gemfile.lock",
23
+ "Guardfile",
22
24
  "MIT-LICENSE",
23
25
  "README.md",
24
26
  "Rakefile",
25
27
  "VERSION",
26
- "app/cells/puffer/base/additional.html.erb",
27
- "app/cells/puffer/base_cell.rb",
28
- "app/controllers/puffer/dashboard_base.rb",
29
- "app/controllers/puffer/sessions_base.rb",
28
+ "app/assets/javascripts/puffer/application.js",
29
+ "app/assets/javascripts/puffer/puffer.js",
30
+ "app/assets/javascripts/puffer/rails.js",
31
+ "app/assets/javascripts/puffer/right-autocompleter.js",
32
+ "app/assets/javascripts/puffer/right-calendar.js",
33
+ "app/assets/javascripts/puffer/right.js",
34
+ "app/assets/stylesheets/puffer/application.css",
35
+ "app/assets/stylesheets/puffer/puffer.css",
36
+ "app/assets/stylesheets/puffer/reset.css",
37
+ "app/controllers/puffer/dashboard.rb",
38
+ "app/controllers/puffer/sessions.rb",
30
39
  "app/helpers/puffer_helper.rb",
31
40
  "app/views/layouts/puffer.html.erb",
32
41
  "app/views/layouts/puffer_dashboard.html.erb",
33
42
  "app/views/layouts/puffer_sessions.html.erb",
34
- "app/views/puffer/_form.html.erb",
35
- "app/views/puffer/associated/_many.html.erb",
36
- "app/views/puffer/associated/many.rjs",
37
- "app/views/puffer/associated/one.js.erb",
38
- "app/views/puffer/association/_many.html.erb",
39
- "app/views/puffer/edit.html.erb",
40
- "app/views/puffer/index.html.erb",
41
- "app/views/puffer/new.html.erb",
42
- "app/views/puffer/show.html.erb",
43
- "app/views/puffer_dashboard/index.html.erb",
44
- "app/views/puffer_sessions/new.html.erb",
45
- "autotest/discover.rb",
43
+ "app/views/puffer/base/_form.html.erb",
44
+ "app/views/puffer/base/associated/_many.html.erb",
45
+ "app/views/puffer/base/associated/many.rjs",
46
+ "app/views/puffer/base/associated/one.js.erb",
47
+ "app/views/puffer/base/association/_many.html.erb",
48
+ "app/views/puffer/base/edit.html.erb",
49
+ "app/views/puffer/base/index.html.erb",
50
+ "app/views/puffer/base/new.html.erb",
51
+ "app/views/puffer/base/show.html.erb",
52
+ "app/views/puffer/dashboard/index.html.erb",
53
+ "app/views/puffer/sessions/new.html.erb",
54
+ "config/locales/puffer.yml",
46
55
  "config/routes.rb",
47
56
  "lib/generators/puffer/controller/USAGE",
48
57
  "lib/generators/puffer/controller/controller_generator.rb",
@@ -50,14 +59,6 @@ Gem::Specification.new do |s|
50
59
  "lib/generators/puffer/install/USAGE",
51
60
  "lib/generators/puffer/install/install_generator.rb",
52
61
  "lib/generators/puffer/install/templates/dashboard_controller.rb",
53
- "lib/generators/puffer/install/templates/puffer.rb",
54
- "lib/generators/puffer/install/templates/puffer/javascripts/puffer.js",
55
- "lib/generators/puffer/install/templates/puffer/javascripts/rails.js",
56
- "lib/generators/puffer/install/templates/puffer/javascripts/right-autocompleter.js",
57
- "lib/generators/puffer/install/templates/puffer/javascripts/right-calendar.js",
58
- "lib/generators/puffer/install/templates/puffer/javascripts/right.js",
59
- "lib/generators/puffer/install/templates/puffer/stylesheets/puffer.css",
60
- "lib/generators/puffer/install/templates/puffer/stylesheets/reset.css",
61
62
  "lib/generators/puffer/install/templates/sessions_controller.rb",
62
63
  "lib/puffer.rb",
63
64
  "lib/puffer/base.rb",
@@ -87,12 +88,15 @@ Gem::Specification.new do |s|
87
88
  "lib/puffer/inputs/password.rb",
88
89
  "lib/puffer/inputs/select.rb",
89
90
  "lib/puffer/inputs/text.rb",
90
- "lib/puffer/path_set.rb",
91
91
  "lib/puffer/resource.rb",
92
92
  "lib/puffer/resource/routing.rb",
93
93
  "lib/puffer/resource/scoping.rb",
94
94
  "puffer.gemspec",
95
+ "spec/dummy/.rvmrc",
95
96
  "spec/dummy/Rakefile",
97
+ "spec/dummy/app/assets/images/rails.png",
98
+ "spec/dummy/app/assets/javascripts/application.js",
99
+ "spec/dummy/app/assets/stylesheets/application.css",
96
100
  "spec/dummy/app/controllers/admin/categories_controller.rb",
97
101
  "spec/dummy/app/controllers/admin/news_controller.rb",
98
102
  "spec/dummy/app/controllers/admin/posts_controller.rb",
@@ -112,7 +116,7 @@ Gem::Specification.new do |s|
112
116
  "spec/dummy/app/models/tag.rb",
113
117
  "spec/dummy/app/models/tagging.rb",
114
118
  "spec/dummy/app/models/user.rb",
115
- "spec/dummy/app/views/admin/users/index.html.erb",
119
+ "spec/dummy/app/views/layouts/application.html.erb",
116
120
  "spec/dummy/config.ru",
117
121
  "spec/dummy/config/application.rb",
118
122
  "spec/dummy/config/boot.rb",
@@ -124,9 +128,9 @@ Gem::Specification.new do |s|
124
128
  "spec/dummy/config/initializers/backtrace_silencers.rb",
125
129
  "spec/dummy/config/initializers/inflections.rb",
126
130
  "spec/dummy/config/initializers/mime_types.rb",
127
- "spec/dummy/config/initializers/puffer.rb",
128
131
  "spec/dummy/config/initializers/secret_token.rb",
129
132
  "spec/dummy/config/initializers/session_store.rb",
133
+ "spec/dummy/config/initializers/wrap_parameters.rb",
130
134
  "spec/dummy/config/locales/en.yml",
131
135
  "spec/dummy/config/routes.rb",
132
136
  "spec/dummy/db/migrate/20100930132559_create_admin_users.rb",
@@ -138,25 +142,12 @@ Gem::Specification.new do |s|
138
142
  "spec/dummy/db/migrate/20101011160326_create_taggings.rb",
139
143
  "spec/dummy/db/migrate/20110107082706_create_friendships.rb",
140
144
  "spec/dummy/db/migrate/20110301072545_create_news.rb",
141
- "spec/dummy/db/schema.rb",
145
+ "spec/dummy/db/seeds.rb",
142
146
  "spec/dummy/public/404.html",
143
147
  "spec/dummy/public/422.html",
144
148
  "spec/dummy/public/500.html",
145
149
  "spec/dummy/public/favicon.ico",
146
- "spec/dummy/public/javascripts/application.js",
147
- "spec/dummy/public/javascripts/controls.js",
148
- "spec/dummy/public/javascripts/dragdrop.js",
149
- "spec/dummy/public/javascripts/effects.js",
150
- "spec/dummy/public/javascripts/prototype.js",
151
- "spec/dummy/public/javascripts/rails.js",
152
- "spec/dummy/public/puffer/javascripts/puffer.js",
153
- "spec/dummy/public/puffer/javascripts/rails.js",
154
- "spec/dummy/public/puffer/javascripts/right-autocompleter.js",
155
- "spec/dummy/public/puffer/javascripts/right-calendar.js",
156
- "spec/dummy/public/puffer/javascripts/right.js",
157
- "spec/dummy/public/puffer/stylesheets/puffer.css",
158
- "spec/dummy/public/puffer/stylesheets/reset.css",
159
- "spec/dummy/public/stylesheets/.gitkeep",
150
+ "spec/dummy/public/robots.txt",
160
151
  "spec/dummy/script/rails",
161
152
  "spec/fabricators/categories_fabricator.rb",
162
153
  "spec/fabricators/news_fabricator.rb",
@@ -168,7 +159,6 @@ Gem::Specification.new do |s|
168
159
  "spec/lib/extensions/core_spec.rb",
169
160
  "spec/lib/fields_spec.rb",
170
161
  "spec/lib/params_spec.rb",
171
- "spec/lib/render_fallback_spec.rb",
172
162
  "spec/lib/resource/routing_spec.rb",
173
163
  "spec/lib/resource_spec.rb",
174
164
  "spec/puffer_spec.rb",
@@ -176,108 +166,55 @@ Gem::Specification.new do |s|
176
166
  ]
177
167
  s.homepage = %q{http://github.com/puffer/puffer}
178
168
  s.require_paths = ["lib"]
179
- s.rubygems_version = %q{1.4.2}
169
+ s.rubygems_version = %q{1.6.2}
180
170
  s.summary = %q{Admin interface builder}
181
- s.test_files = [
182
- "spec/dummy/app/controllers/admin/categories_controller.rb",
183
- "spec/dummy/app/controllers/admin/news_controller.rb",
184
- "spec/dummy/app/controllers/admin/posts_controller.rb",
185
- "spec/dummy/app/controllers/admin/profiles_controller.rb",
186
- "spec/dummy/app/controllers/admin/tags_controller.rb",
187
- "spec/dummy/app/controllers/admin/users_controller.rb",
188
- "spec/dummy/app/controllers/application_controller.rb",
189
- "spec/dummy/app/controllers/puffer/dashboard_controller.rb",
190
- "spec/dummy/app/controllers/puffer/sessions_controller.rb",
191
- "spec/dummy/app/helpers/application_helper.rb",
192
- "spec/dummy/app/models/category.rb",
193
- "spec/dummy/app/models/friendship.rb",
194
- "spec/dummy/app/models/news.rb",
195
- "spec/dummy/app/models/post.rb",
196
- "spec/dummy/app/models/post_category.rb",
197
- "spec/dummy/app/models/profile.rb",
198
- "spec/dummy/app/models/tag.rb",
199
- "spec/dummy/app/models/tagging.rb",
200
- "spec/dummy/app/models/user.rb",
201
- "spec/dummy/config/application.rb",
202
- "spec/dummy/config/boot.rb",
203
- "spec/dummy/config/environment.rb",
204
- "spec/dummy/config/environments/development.rb",
205
- "spec/dummy/config/environments/production.rb",
206
- "spec/dummy/config/environments/test.rb",
207
- "spec/dummy/config/initializers/backtrace_silencers.rb",
208
- "spec/dummy/config/initializers/inflections.rb",
209
- "spec/dummy/config/initializers/mime_types.rb",
210
- "spec/dummy/config/initializers/puffer.rb",
211
- "spec/dummy/config/initializers/secret_token.rb",
212
- "spec/dummy/config/initializers/session_store.rb",
213
- "spec/dummy/config/routes.rb",
214
- "spec/dummy/db/migrate/20100930132559_create_admin_users.rb",
215
- "spec/dummy/db/migrate/20100930132656_create_admin_posts.rb",
216
- "spec/dummy/db/migrate/20100930132726_create_admin_categories.rb",
217
- "spec/dummy/db/migrate/20100930132837_create_post_categories.rb",
218
- "spec/dummy/db/migrate/20100930133425_create_admin_profiles.rb",
219
- "spec/dummy/db/migrate/20101011155830_create_tags.rb",
220
- "spec/dummy/db/migrate/20101011160326_create_taggings.rb",
221
- "spec/dummy/db/migrate/20110107082706_create_friendships.rb",
222
- "spec/dummy/db/migrate/20110301072545_create_news.rb",
223
- "spec/dummy/db/schema.rb",
224
- "spec/fabricators/categories_fabricator.rb",
225
- "spec/fabricators/news_fabricator.rb",
226
- "spec/fabricators/posts_fabricator.rb",
227
- "spec/fabricators/profiles_fabricator.rb",
228
- "spec/fabricators/tags_fabricator.rb",
229
- "spec/fabricators/users_fabricator.rb",
230
- "spec/integration/navigation_spec.rb",
231
- "spec/lib/extensions/core_spec.rb",
232
- "spec/lib/fields_spec.rb",
233
- "spec/lib/params_spec.rb",
234
- "spec/lib/render_fallback_spec.rb",
235
- "spec/lib/resource/routing_spec.rb",
236
- "spec/lib/resource_spec.rb",
237
- "spec/puffer_spec.rb",
238
- "spec/spec_helper.rb"
239
- ]
240
171
 
241
172
  if s.respond_to? :specification_version then
242
173
  s.specification_version = 3
243
174
 
244
175
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
245
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.4"])
246
- s.add_runtime_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
247
- s.add_runtime_dependency(%q<cells>, ["~> 3.4.4"])
248
- s.add_development_dependency(%q<capybara>, [">= 0.4.0"])
249
- s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
176
+ s.add_runtime_dependency(%q<rails>, [">= 3.1.0.rc4"])
177
+ s.add_runtime_dependency(%q<kaminari>, [">= 0"])
178
+ s.add_runtime_dependency(%q<apotomo>, [">= 0"])
179
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
250
180
  s.add_development_dependency(%q<rspec-rails>, [">= 0"])
251
- s.add_development_dependency(%q<autotest>, [">= 0"])
181
+ s.add_development_dependency(%q<capybara>, [">= 0"])
182
+ s.add_development_dependency(%q<database_cleaner>, [">= 0"])
183
+ s.add_development_dependency(%q<guard>, [">= 0"])
184
+ s.add_development_dependency(%q<libnotify>, [">= 0"])
185
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
252
186
  s.add_development_dependency(%q<forgery>, [">= 0"])
253
187
  s.add_development_dependency(%q<fabrication>, [">= 0"])
254
188
  s.add_development_dependency(%q<jeweler>, [">= 0"])
255
- s.add_development_dependency(%q<mongrel>, [">= 0"])
256
189
  else
257
- s.add_dependency(%q<rails>, ["~> 3.0.4"])
258
- s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
259
- s.add_dependency(%q<cells>, ["~> 3.4.4"])
260
- s.add_dependency(%q<capybara>, [">= 0.4.0"])
261
- s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
190
+ s.add_dependency(%q<rails>, [">= 3.1.0.rc4"])
191
+ s.add_dependency(%q<kaminari>, [">= 0"])
192
+ s.add_dependency(%q<apotomo>, [">= 0"])
193
+ s.add_dependency(%q<sqlite3>, [">= 0"])
262
194
  s.add_dependency(%q<rspec-rails>, [">= 0"])
263
- s.add_dependency(%q<autotest>, [">= 0"])
195
+ s.add_dependency(%q<capybara>, [">= 0"])
196
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
197
+ s.add_dependency(%q<guard>, [">= 0"])
198
+ s.add_dependency(%q<libnotify>, [">= 0"])
199
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
264
200
  s.add_dependency(%q<forgery>, [">= 0"])
265
201
  s.add_dependency(%q<fabrication>, [">= 0"])
266
202
  s.add_dependency(%q<jeweler>, [">= 0"])
267
- s.add_dependency(%q<mongrel>, [">= 0"])
268
203
  end
269
204
  else
270
- s.add_dependency(%q<rails>, ["~> 3.0.4"])
271
- s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
272
- s.add_dependency(%q<cells>, ["~> 3.4.4"])
273
- s.add_dependency(%q<capybara>, [">= 0.4.0"])
274
- s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
205
+ s.add_dependency(%q<rails>, [">= 3.1.0.rc4"])
206
+ s.add_dependency(%q<kaminari>, [">= 0"])
207
+ s.add_dependency(%q<apotomo>, [">= 0"])
208
+ s.add_dependency(%q<sqlite3>, [">= 0"])
275
209
  s.add_dependency(%q<rspec-rails>, [">= 0"])
276
- s.add_dependency(%q<autotest>, [">= 0"])
210
+ s.add_dependency(%q<capybara>, [">= 0"])
211
+ s.add_dependency(%q<database_cleaner>, [">= 0"])
212
+ s.add_dependency(%q<guard>, [">= 0"])
213
+ s.add_dependency(%q<libnotify>, [">= 0"])
214
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
277
215
  s.add_dependency(%q<forgery>, [">= 0"])
278
216
  s.add_dependency(%q<fabrication>, [">= 0"])
279
217
  s.add_dependency(%q<jeweler>, [">= 0"])
280
- s.add_dependency(%q<mongrel>, [">= 0"])
281
218
  end
282
219
  end
283
220
 
data/spec/dummy/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use --create 1.9.2@puffer
data/spec/dummy/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
+ #!/usr/bin/env rake
1
2
  # Add your own tasks in files placed in lib/tasks ending in .rake,
2
3
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
4
 
4
5
  require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
6
 
7
7
  Dummy::Application.load_tasks
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -13,7 +13,9 @@ class Admin::PostsController < Puffer::Base
13
13
 
14
14
  form do
15
15
  field :id
16
- field :user, :columns => [:email]
16
+ field :user do
17
+ field :email
18
+ end
17
19
  field :title
18
20
  field :body
19
21
  end
@@ -12,7 +12,10 @@ class Admin::ProfilesController < Puffer::Base
12
12
  end
13
13
 
14
14
  form do
15
- field :user, :columns => [:email, :password]
15
+ field :user do
16
+ field :email
17
+ field :password
18
+ end
16
19
  field :name
17
20
  field :surname
18
21
  field :birth_date
@@ -1,3 +1,3 @@
1
- class Puffer::DashboardController < Puffer::DashboardBase
1
+ class Puffer::DashboardController < Puffer::Dashboard
2
2
 
3
3
  end
@@ -1,4 +1,4 @@
1
- class Puffer::SessionsController < Puffer::SessionsBase
1
+ class Puffer::SessionsController < Puffer::Sessions
2
2
 
3
3
  def new
4
4
  @record = User.new