puffer 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.22
1
+ 0.0.23
@@ -0,0 +1,4 @@
1
+ class Admin::DashboardController < Puffer::DashboardBase
2
+ unloadable
3
+
4
+ end
@@ -1,4 +1,4 @@
1
- class Puffer::SessionsController < Puffer::SessionsBase
1
+ class Admin::SessionsController < Puffer::SessionsBase
2
2
  unloadable
3
3
  # This is example session controller for puffer authentication.
4
4
  # You can define your own actions.
@@ -13,12 +13,12 @@
13
13
  <div class="body">
14
14
  <div class="header">
15
15
  <div class="logo">
16
- <%= link_to t('puffer.logo'), puffer_root_path %>
16
+ <%= link_to t('puffer.logo'), admin_root_path %>
17
17
  </div>
18
18
  <%= yield :header %>
19
19
  <% if respond_to?(:current_user) && !current_user %>
20
20
  <div class="logout">
21
- <%= link_to t('puffer.logout'), puffer_session_url, :method => :delete %>
21
+ <%= link_to t('puffer.logout'), admin_session_url, :method => :delete %>
22
22
  </div>
23
23
  <% end %>
24
24
  </div>
@@ -1,7 +1,7 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
- namespace :puffer do
4
- root :to => 'dashboard#index'
3
+ namespace :admin do
4
+ root :to => 'dashboard#index'
5
5
  resource :session
6
6
  end
7
7
 
data/lib/puffer/engine.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  module Puffer
2
2
  class Engine < Rails::Engine
3
3
  config.autoload_paths << File.join(root, 'lib')
4
-
5
- initializer 'puffer.add_puffer_namespace_routes', :after => :add_builtin_route do |app|
6
- app.routes_reloader.paths.unshift File.join(root, 'config/puffer_routes.rb')
7
- end
8
4
  end
9
5
  end
@@ -26,7 +26,7 @@ module Puffer
26
26
  namespace = @scope[:module]
27
27
 
28
28
  unless puffer[namespace]
29
- @scope[:module] = 'puffer'
29
+ @scope[:module] = 'admin'
30
30
  root :to => 'dashboard#index'
31
31
  @scope[:module] = namespace
32
32
  end
data/puffer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{puffer}
8
- s.version = "0.0.22"
8
+ s.version = "0.0.23"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["pyromaniac"]
@@ -35,11 +35,11 @@ Gem::Specification.new do |s|
35
35
  "app/assets/stylesheets/puffer/puffer.css",
36
36
  "app/assets/stylesheets/puffer/puffer_tree.css",
37
37
  "app/assets/stylesheets/puffer/reset.css",
38
+ "app/controllers/admin/dashboard_controller.rb",
39
+ "app/controllers/admin/sessions_controller.rb",
38
40
  "app/controllers/puffer/base.rb",
39
41
  "app/controllers/puffer/dashboard_base.rb",
40
- "app/controllers/puffer/dashboard_controller.rb",
41
42
  "app/controllers/puffer/sessions_base.rb",
42
- "app/controllers/puffer/sessions_controller.rb",
43
43
  "app/controllers/puffer/tree_base.rb",
44
44
  "app/helpers/puffer_helper.rb",
45
45
  "app/helpers/puffer_tree_helper.rb",
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
62
62
  "app/views/puffer/tree_base/toggle.js.erb",
63
63
  "app/views/puffer/tree_base/tree.html.erb",
64
64
  "config/locales/puffer.yml",
65
- "config/puffer_routes.rb",
65
+ "config/routes.rb",
66
66
  "lib/generators/puffer/controller/USAGE",
67
67
  "lib/generators/puffer/controller/controller_generator.rb",
68
68
  "lib/generators/puffer/controller/templates/controller.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puffer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &18654320 !ruby/object:Gem::Requirement
17
+ requirement: &12307480 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0.rc5
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *18654320
25
+ version_requirements: *12307480
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: kaminari
28
- requirement: &18652960 !ruby/object:Gem::Requirement
28
+ requirement: &12269900 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *18652960
36
+ version_requirements: *12269900
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: apotomo
39
- requirement: &18651140 !ruby/object:Gem::Requirement
39
+ requirement: &12268620 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *18651140
47
+ version_requirements: *12268620
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: sqlite3
50
- requirement: &18650100 !ruby/object:Gem::Requirement
50
+ requirement: &12267260 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *18650100
58
+ version_requirements: *12267260
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rspec-rails
61
- requirement: &18649460 !ruby/object:Gem::Requirement
61
+ requirement: &12266160 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *18649460
69
+ version_requirements: *12266160
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: capybara
72
- requirement: &18648740 !ruby/object:Gem::Requirement
72
+ requirement: &12265480 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *18648740
80
+ version_requirements: *12265480
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: database_cleaner
83
- requirement: &18647940 !ruby/object:Gem::Requirement
83
+ requirement: &12264640 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *18647940
91
+ version_requirements: *12264640
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: guard
94
- requirement: &18608580 !ruby/object:Gem::Requirement
94
+ requirement: &12263980 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *18608580
102
+ version_requirements: *12263980
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: libnotify
105
- requirement: &18607860 !ruby/object:Gem::Requirement
105
+ requirement: &12263360 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *18607860
113
+ version_requirements: *12263360
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: guard-rspec
116
- requirement: &18607220 !ruby/object:Gem::Requirement
116
+ requirement: &12226220 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *18607220
124
+ version_requirements: *12226220
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: forgery
127
- requirement: &18606520 !ruby/object:Gem::Requirement
127
+ requirement: &12225580 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *18606520
135
+ version_requirements: *12225580
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: fabrication
138
- requirement: &18605800 !ruby/object:Gem::Requirement
138
+ requirement: &12224920 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *18605800
146
+ version_requirements: *12224920
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: jeweler
149
- requirement: &18605000 !ruby/object:Gem::Requirement
149
+ requirement: &12224120 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: '0'
155
155
  type: :development
156
156
  prerelease: false
157
- version_requirements: *18605000
157
+ version_requirements: *12224120
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: nested_set
160
- requirement: &18604240 !ruby/object:Gem::Requirement
160
+ requirement: &12223300 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,7 +165,7 @@ dependencies:
165
165
  version: '0'
166
166
  type: :development
167
167
  prerelease: false
168
- version_requirements: *18604240
168
+ version_requirements: *12223300
169
169
  description: In Soviet Russia puffer admins you
170
170
  email: kinwizard@gmail.com
171
171
  executables: []
@@ -192,11 +192,11 @@ files:
192
192
  - app/assets/stylesheets/puffer/puffer.css
193
193
  - app/assets/stylesheets/puffer/puffer_tree.css
194
194
  - app/assets/stylesheets/puffer/reset.css
195
+ - app/controllers/admin/dashboard_controller.rb
196
+ - app/controllers/admin/sessions_controller.rb
195
197
  - app/controllers/puffer/base.rb
196
198
  - app/controllers/puffer/dashboard_base.rb
197
- - app/controllers/puffer/dashboard_controller.rb
198
199
  - app/controllers/puffer/sessions_base.rb
199
- - app/controllers/puffer/sessions_controller.rb
200
200
  - app/controllers/puffer/tree_base.rb
201
201
  - app/helpers/puffer_helper.rb
202
202
  - app/helpers/puffer_tree_helper.rb
@@ -219,7 +219,7 @@ files:
219
219
  - app/views/puffer/tree_base/toggle.js.erb
220
220
  - app/views/puffer/tree_base/tree.html.erb
221
221
  - config/locales/puffer.yml
222
- - config/puffer_routes.rb
222
+ - config/routes.rb
223
223
  - lib/generators/puffer/controller/USAGE
224
224
  - lib/generators/puffer/controller/controller_generator.rb
225
225
  - lib/generators/puffer/controller/templates/controller.rb
@@ -339,7 +339,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  segments:
341
341
  - 0
342
- hash: -1406319441089394970
342
+ hash: -3933592313058062345
343
343
  required_rubygems_version: !ruby/object:Gem::Requirement
344
344
  none: false
345
345
  requirements:
@@ -1,4 +0,0 @@
1
- class Puffer::DashboardController < Puffer::DashboardBase
2
- unloadable
3
-
4
- end