soapbox 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -22,6 +22,10 @@ class Admin::AdminController < ApplicationController
22
22
  end
23
23
 
24
24
  def tree
25
+ if collection.empty?
26
+ flash[:notice] = "create your first #{params[:controller].gsub('admin/', '').singularize.titleize}"
27
+ return redirect_to url_for(:controller => params[:controller], :action => "new")
28
+ end
25
29
  render "admin/shared/tree"
26
30
  end
27
31
 
@@ -1,8 +1,7 @@
1
1
  class Member < ActiveRecord::Base
2
2
  # Include default devise modules. Others available are:
3
3
  # :token_authenticatable, :confirmable, :lockable and :timeoutable
4
- devise :database_authenticatable, :registerable,
5
- :recoverable, :rememberable, :trackable, :validatable
4
+ devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable
6
5
 
7
6
  # Setup accessible (or protected) attributes for your model
8
7
  attr_accessible :email, :password, :password_confirmation, :remember_me
@@ -59,7 +59,8 @@ class SoapboxScaffoldGenerator < Rails::Generators::NamedBase
59
59
  look_for = "# Admin Resources"
60
60
  gsub_file('config/routes.rb', /(#{Regexp.escape(look_for)})/mi){|match| "#{match}\n resources :#{plural_name}"}
61
61
 
62
- Plugin.create({ :title => plural_name.titleize, :route => "admin_#{plural_name}_path", :active => true})
62
+ # this moved to the migration
63
+ # Plugin.create({ :title => plural_name.titleize, :route => "admin_#{plural_name}_path", :active => true})
63
64
 
64
65
  puts "IMPORTANT"
65
66
  puts "---------------------------------------"
@@ -11,6 +11,8 @@ class <%= "Create#{class_name.pluralize}" %> < ActiveRecord::Migration
11
11
 
12
12
  add_index :<%= table_name %>, :id
13
13
 
14
+ Plugin.create({ :title => "<%= plural_name.titleize %>", :route => "admin_<%= plural_name %>_path", :active => true})
15
+
14
16
  end
15
17
 
16
18
  def self.down
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{soapbox}
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Gabe Coyne}, %q{Killit Creative}]
12
- s.date = %q{2011-10-11}
12
+ s.date = %q{2011-10-19}
13
13
  s.description = %q{manage pages, users, permissions, settings, analytics, files, users, and extend}
14
14
  s.email = %q{gabe@killitcreative.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapbox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabe Coyne
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-11 00:00:00 Z
19
+ date: 2011-10-19 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -32,8 +32,8 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  requirement: *id001
35
- prerelease: false
36
35
  name: rails
36
+ prerelease: false
37
37
  - !ruby/object:Gem::Dependency
38
38
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
@@ -48,8 +48,8 @@ dependencies:
48
48
  version: 1.1.2
49
49
  type: :runtime
50
50
  requirement: *id002
51
- prerelease: false
52
51
  name: devise
52
+ prerelease: false
53
53
  - !ruby/object:Gem::Dependency
54
54
  version_requirements: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
@@ -64,8 +64,8 @@ dependencies:
64
64
  version: 1.2.3
65
65
  type: :runtime
66
66
  requirement: *id003
67
- prerelease: false
68
67
  name: formtastic
68
+ prerelease: false
69
69
  - !ruby/object:Gem::Dependency
70
70
  version_requirements: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
@@ -80,8 +80,8 @@ dependencies:
80
80
  version: 0.1.13
81
81
  type: :runtime
82
82
  requirement: *id004
83
- prerelease: false
84
83
  name: polypaperclip
84
+ prerelease: false
85
85
  - !ruby/object:Gem::Dependency
86
86
  version_requirements: &id005 !ruby/object:Gem::Requirement
87
87
  none: false
@@ -94,8 +94,8 @@ dependencies:
94
94
  version: "2"
95
95
  type: :runtime
96
96
  requirement: *id005
97
- prerelease: false
98
97
  name: paper_trail
98
+ prerelease: false
99
99
  - !ruby/object:Gem::Dependency
100
100
  version_requirements: &id006 !ruby/object:Gem::Requirement
101
101
  none: false
@@ -110,8 +110,8 @@ dependencies:
110
110
  version: 2.3.15
111
111
  type: :runtime
112
112
  requirement: *id006
113
- prerelease: false
114
113
  name: will_paginate
114
+ prerelease: false
115
115
  - !ruby/object:Gem::Dependency
116
116
  version_requirements: &id007 !ruby/object:Gem::Requirement
117
117
  none: false
@@ -124,8 +124,8 @@ dependencies:
124
124
  version: "0"
125
125
  type: :runtime
126
126
  requirement: *id007
127
- prerelease: false
128
127
  name: acts-as-taggable-on
128
+ prerelease: false
129
129
  - !ruby/object:Gem::Dependency
130
130
  version_requirements: &id008 !ruby/object:Gem::Requirement
131
131
  none: false
@@ -139,8 +139,8 @@ dependencies:
139
139
  version: "3.1"
140
140
  type: :runtime
141
141
  requirement: *id008
142
- prerelease: false
143
142
  name: friendly_id
143
+ prerelease: false
144
144
  - !ruby/object:Gem::Dependency
145
145
  version_requirements: &id009 !ruby/object:Gem::Requirement
146
146
  none: false
@@ -155,8 +155,8 @@ dependencies:
155
155
  version: 1.2.2
156
156
  type: :runtime
157
157
  requirement: *id009
158
- prerelease: false
159
158
  name: inherited_resources
159
+ prerelease: false
160
160
  - !ruby/object:Gem::Dependency
161
161
  version_requirements: &id010 !ruby/object:Gem::Requirement
162
162
  none: false
@@ -169,8 +169,8 @@ dependencies:
169
169
  version: "0"
170
170
  type: :runtime
171
171
  requirement: *id010
172
- prerelease: false
173
172
  name: acts_as_indexed
173
+ prerelease: false
174
174
  - !ruby/object:Gem::Dependency
175
175
  version_requirements: &id011 !ruby/object:Gem::Requirement
176
176
  none: false
@@ -183,8 +183,8 @@ dependencies:
183
183
  version: "0"
184
184
  type: :runtime
185
185
  requirement: *id011
186
- prerelease: false
187
186
  name: aws-s3
187
+ prerelease: false
188
188
  - !ruby/object:Gem::Dependency
189
189
  version_requirements: &id012 !ruby/object:Gem::Requirement
190
190
  none: false
@@ -197,8 +197,8 @@ dependencies:
197
197
  version: "0"
198
198
  type: :runtime
199
199
  requirement: *id012
200
- prerelease: false
201
200
  name: acts_as_tree
201
+ prerelease: false
202
202
  - !ruby/object:Gem::Dependency
203
203
  version_requirements: &id013 !ruby/object:Gem::Requirement
204
204
  none: false
@@ -211,8 +211,8 @@ dependencies:
211
211
  version: "0"
212
212
  type: :runtime
213
213
  requirement: *id013
214
- prerelease: false
215
214
  name: acts_as_list
215
+ prerelease: false
216
216
  - !ruby/object:Gem::Dependency
217
217
  version_requirements: &id014 !ruby/object:Gem::Requirement
218
218
  none: false
@@ -225,8 +225,8 @@ dependencies:
225
225
  version: "0"
226
226
  type: :runtime
227
227
  requirement: *id014
228
- prerelease: false
229
228
  name: garb
229
+ prerelease: false
230
230
  - !ruby/object:Gem::Dependency
231
231
  version_requirements: &id015 !ruby/object:Gem::Requirement
232
232
  none: false
@@ -239,8 +239,8 @@ dependencies:
239
239
  version: "0"
240
240
  type: :runtime
241
241
  requirement: *id015
242
- prerelease: false
243
242
  name: bartt-ssl_requirement
243
+ prerelease: false
244
244
  - !ruby/object:Gem::Dependency
245
245
  version_requirements: &id016 !ruby/object:Gem::Requirement
246
246
  none: false
@@ -253,8 +253,8 @@ dependencies:
253
253
  version: "0"
254
254
  type: :development
255
255
  requirement: *id016
256
- prerelease: false
257
256
  name: shoulda
257
+ prerelease: false
258
258
  - !ruby/object:Gem::Dependency
259
259
  version_requirements: &id017 !ruby/object:Gem::Requirement
260
260
  none: false
@@ -269,8 +269,8 @@ dependencies:
269
269
  version: 1.0.0
270
270
  type: :development
271
271
  requirement: *id017
272
- prerelease: false
273
272
  name: bundler
273
+ prerelease: false
274
274
  - !ruby/object:Gem::Dependency
275
275
  version_requirements: &id018 !ruby/object:Gem::Requirement
276
276
  none: false
@@ -285,8 +285,8 @@ dependencies:
285
285
  version: 1.6.0
286
286
  type: :development
287
287
  requirement: *id018
288
- prerelease: false
289
288
  name: jeweler
289
+ prerelease: false
290
290
  - !ruby/object:Gem::Dependency
291
291
  version_requirements: &id019 !ruby/object:Gem::Requirement
292
292
  none: false
@@ -299,8 +299,8 @@ dependencies:
299
299
  version: "0"
300
300
  type: :development
301
301
  requirement: *id019
302
- prerelease: false
303
302
  name: rcov
303
+ prerelease: false
304
304
  description: manage pages, users, permissions, settings, analytics, files, users, and extend
305
305
  email: gabe@killitcreative.com
306
306
  executables: []