crowdblog 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.autotest +5 -0
  2. data/.gitignore +1 -0
  3. data/app/assets/javascripts/crowdblog/models/post.js.coffee.erb +1 -1
  4. data/app/assets/stylesheets/application.css +3 -0
  5. data/app/controllers/crowdblog/admin/assets_controller.rb +20 -0
  6. data/app/controllers/crowdblog/admin/authors_controller.rb +11 -0
  7. data/app/controllers/crowdblog/admin/base_controller.rb +7 -0
  8. data/app/controllers/crowdblog/admin/posts_controller.rb +71 -0
  9. data/app/controllers/crowdblog/application_controller.rb +8 -7
  10. data/app/controllers/crowdblog/posts_controller.rb +2 -66
  11. data/app/models/crowdblog/post.rb +2 -2
  12. data/app/models/crowdblog/user.rb +18 -26
  13. data/app/views/crowdblog/{authors → admin/authors}/index.html.slim +0 -0
  14. data/app/views/crowdblog/{posts → admin/posts}/_form.html.slim +0 -0
  15. data/app/views/crowdblog/admin/posts/_post.html.slim +13 -0
  16. data/app/views/crowdblog/{posts → admin/posts}/edit.html.slim +2 -2
  17. data/app/views/crowdblog/admin/posts/index.html.slim +24 -0
  18. data/app/views/crowdblog/{posts → admin/posts}/new.html.slim +0 -0
  19. data/app/views/crowdblog/{posts → admin/posts}/update.json.jbuilder +0 -0
  20. data/app/views/crowdblog/application/_navbar.html.slim +4 -6
  21. data/app/views/crowdblog/posts/_post.html.slim +4 -13
  22. data/app/views/crowdblog/posts/index.html.slim +1 -24
  23. data/app/views/layouts/crowdblog/admin/base.html.slim +20 -0
  24. data/app/views/layouts/crowdblog/application.html.slim +2 -3
  25. data/config/routes.rb +9 -8
  26. data/crowdblog.gemspec +2 -1
  27. data/lib/crowdblog.rb +1 -4
  28. data/lib/crowdblog/rspec/crowdblog_shared_examples.rb +70 -73
  29. data/lib/crowdblog/version.rb +1 -1
  30. data/lib/generators/crowdblog/views_generator.rb +11 -0
  31. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  32. data/spec/dummy/config/routes.rb +1 -3
  33. data/spec/dummy/db/schema.rb +1 -42
  34. data/spec/generators/crowdblog/views_generator_spec.rb +16 -0
  35. data/spec/models/post_spec.rb +4 -14
  36. metadata +46 -35
  37. data/app/assets/images/crowdblog/logo.png +0 -0
  38. data/app/controllers/crowdblog/assets_controller.rb +0 -18
  39. data/app/controllers/crowdblog/authors_controller.rb +0 -9
  40. data/app/controllers/crowdblog/devise/sessions_controller.rb +0 -3
  41. data/config/initializers/devise.rb +0 -16
  42. data/db/migrate/20120215232711_create_crowdblog_users.rb +0 -23
  43. data/db/migrate/20120220033923_create_vestal_versions.rb +0 -28
  44. data/spec/dummy/app/controllers/admin_controller.rb +0 -0
  45. data/spec/dummy/app/controllers/home_controller.rb +0 -4
  46. data/spec/dummy/app/controllers/sessions_controller.rb +0 -2
  47. data/spec/dummy/config/initializers/devise.rb +0 -222
  48. data/spec/models/user_spec.rb +0 -81
@@ -2,13 +2,12 @@ doctype html
2
2
  html
3
3
  head
4
4
  title Crowd Blog
5
-
6
- = stylesheet_link_tag "//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css"
5
+ = stylesheet_link_tag "//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-combined.min.css"
7
6
  = stylesheet_link_tag :crowdblog, media: 'all'
8
7
  = javascript_include_tag "//code.jquery.com/jquery.min.js"
9
8
  = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.1/underscore-min.js"
10
9
  = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"
11
- = javascript_include_tag :crowdblog
10
+ meta name="viewport" content="width=device-width, initial-scale=1.0"
12
11
  = csrf_meta_tags
13
12
 
14
13
  = yield :scripts
data/config/routes.rb CHANGED
@@ -1,17 +1,18 @@
1
1
  Crowdblog::Engine.routes.draw do
2
+ root :to => 'posts#index'
2
3
 
3
- resources :authors, only: :index
4
+ namespace :admin do
5
+ resources :authors, only: :index
4
6
 
5
- match 'posts/:state', :to => 'posts#index',
7
+ match 'posts/:state', :to => 'posts#index',
6
8
  :constraints => { :state => /(published|drafted)/ },
7
9
  :as => 'posts_by_state',
8
10
  :via => :get
9
11
 
10
- resources :posts do
11
- resources :assets
12
- end
13
-
14
- root to: 'posts#index'
12
+ resources :posts do
13
+ resources :assets
14
+ end
15
15
 
16
- devise_for :users, :class_name => 'Crowdblog::User', :module => 'crowdblog/devise'
16
+ root :to => 'posts#index'
17
+ end
17
18
  end
data/crowdblog.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  # Added in the Gemfile, so they can be accessed in the dummy app
24
24
  # leave the dependencies here so our engine require those gems when added on base apps
25
25
  s.add_dependency 'carrierwave'
26
- s.add_dependency 'devise'
27
26
  s.add_dependency 'gravtastic'
28
27
  s.add_dependency 'jquery-rails'
29
28
  s.add_dependency 'jbuilder'
@@ -32,6 +31,8 @@ Gem::Specification.new do |s|
32
31
  s.add_dependency 'state_machine'
33
32
  s.add_dependency 'strong_parameters'
34
33
 
34
+ s.add_development_dependency 'autotest'
35
+ s.add_development_dependency 'autotest-growl'
35
36
  s.add_development_dependency 'capybara-webkit'
36
37
  s.add_development_dependency 'database_cleaner'
37
38
  s.add_development_dependency 'fuubar'
data/lib/crowdblog.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require "crowdblog/engine"
2
2
 
3
3
  require "carrierwave"
4
- require "devise"
5
4
  require "gravtastic"
6
5
  require "jbuilder"
7
6
  require "redcarpet"
@@ -9,6 +8,4 @@ require "slim"
9
8
  require "state_machine"
10
9
  require "strong_parameters"
11
10
 
12
- module Crowdblog
13
- autoload :Devise, 'crowdblog/devise/failure_app'
14
- end
11
+ require "generators/crowdblog/views_generator"
@@ -1,106 +1,103 @@
1
1
  shared_examples_for "a crowdblog", :type => :integration do
2
2
 
3
- let(:user) do
4
- user = Crowdblog::User.new :email => 'test@example.com'
5
- user.password = '123456'
6
- user.password_confirmation = '123456'
7
- user.save!
8
- user
9
- end
10
-
11
3
  let(:post) do
12
4
  Crowdblog::Post.create :title => 'A post title', :body => 'A post body'
13
5
  end
14
6
 
15
- describe "manage posts" do
16
- before do
17
- Crowdblog::PostsController.any_instance.stub(:authenticate_user!)
18
- Crowdblog::PostsController.any_instance.stub(:current_user).and_return user
19
- end
7
+ describe "Home" do
8
+ it "shows published posts" do
9
+ post.save!
10
+ post.publish
20
11
 
21
- it "creates a post", :js => true do
22
- visit crowdblog.posts_path
23
- click_link 'New Post'
12
+ visit crowdblog.root_path
24
13
 
25
- fill_in 'Title', :with => 'A post title'
26
- fill_in 'Body' , :with => 'A post body'
27
- click_button 'Update'
28
-
29
- page.current_path.should == crowdblog.posts_path
30
- page.should have_content 'A post title'
31
- end
32
-
33
- context "a post exists" do
34
- before do
35
- post
36
- post.author = user
37
- post.save!
14
+ within "#post_#{post.id}" do
15
+ page.should have_content post.title
16
+ page.should have_content post.body
38
17
  end
18
+ end
19
+ end
39
20
 
40
- it "edits a post" do
41
- visit crowdblog.posts_path
42
- within "#post_#{post.id}" do
43
- click_link 'Edit'
44
- end
21
+ describe "Admin" do
22
+ describe "manage posts" do
23
+ it "creates a post", :js => true do
24
+ visit crowdblog.admin_posts_path
25
+ click_link 'New Post'
45
26
 
46
- fill_in 'Title', :with => 'A NEW post title'
47
- fill_in 'Body' , :with => 'A NEW post body'
27
+ fill_in 'Title', :with => 'A post title'
28
+ fill_in 'Body' , :with => 'A post body'
48
29
  click_button 'Update'
49
30
 
50
- page.current_path.should == crowdblog.posts_path
51
- page.should have_content 'A NEW post title'
31
+ page.current_path.should == crowdblog.admin_posts_path
32
+ page.should have_content 'A post title'
52
33
  end
53
34
 
54
- it "deletes a post" do
55
- visit crowdblog.posts_path
35
+ context "a post exists" do
36
+ before do
37
+ post
38
+ post.save!
39
+ end
40
+
41
+ it "edits a post" do
42
+ visit crowdblog.admin_posts_path
43
+ within "#post_#{post.id}" do
44
+ click_link 'Edit'
45
+ end
46
+
47
+ fill_in 'Title', :with => 'A NEW post title'
48
+ fill_in 'Body' , :with => 'A NEW post body'
49
+ click_button 'Update'
56
50
 
57
- within "#post_#{post.id}" do
58
- click_link 'Delete'
51
+ page.current_path.should == crowdblog.admin_posts_path
52
+ page.should have_content 'A NEW post title'
59
53
  end
60
- page.current_path.should == crowdblog.posts_path
61
- page.should_not have_content 'A post title'
62
- end
63
54
 
64
- it "publishes a post", :js => true do
65
- user.publisher!
55
+ it "deletes a post" do
56
+ visit crowdblog.admin_posts_path
66
57
 
67
- visit crowdblog.posts_path
58
+ within "#post_#{post.id}" do
59
+ click_link 'Delete'
60
+ end
61
+ page.current_path.should == crowdblog.admin_posts_path
62
+ page.should_not have_content 'A post title'
63
+ end
68
64
 
69
- within "#post_#{post.id}" do
70
- button = find_link 'Publish'
71
- button.click
65
+ it "publishes a post", :js => true do
66
+ visit crowdblog.admin_posts_path
72
67
 
73
- page.should have_css 'a.btn-success'
74
- post.reload.state.should eq 'published'
68
+ within "#post_#{post.id}" do
69
+ button = find_link 'Publish'
70
+ button.click
71
+
72
+ page.should have_css 'a.btn-success'
73
+ post.reload.state.should eq 'published'
74
+ end
75
75
  end
76
- end
77
76
 
78
- it "draftes a post", :js => true do
79
- user.publisher!
80
- post.publish!
77
+ it "draftes a post", :js => true do
78
+ post.publish!
81
79
 
82
- visit crowdblog.posts_path
80
+ visit crowdblog.admin_posts_path
83
81
 
84
- within "#post_#{post.id}" do
85
- button = find_link 'Publish'
86
- button.click
82
+ within "#post_#{post.id}" do
83
+ button = find_link 'Publish'
84
+ button.click
87
85
 
88
- page.should have_css 'a.btn-danger'
89
- post.reload.state.should eq 'drafted'
86
+ page.should have_css 'a.btn-danger'
87
+ post.reload.state.should eq 'drafted'
88
+ end
90
89
  end
91
- end
92
-
93
- it "marks the post for review", :js => true do
94
- user.publisher!
95
90
 
96
- visit crowdblog.posts_path
91
+ it "marks the post for review", :js => true do
92
+ visit crowdblog.admin_posts_path
97
93
 
98
- within "#post_#{post.id}" do
99
- button = find_link 'Review'
100
- button.click
94
+ within "#post_#{post.id}" do
95
+ button = find_link 'Review'
96
+ button.click
101
97
 
102
- page.should have_css 'a.btn-warning'
103
- post.reload.ready_for_review.should be_true
98
+ page.should have_css 'a.btn-warning'
99
+ post.reload.ready_for_review.should be_true
100
+ end
104
101
  end
105
102
  end
106
103
  end
@@ -1,3 +1,3 @@
1
1
  module Crowdblog
2
- VERSION = '0.1.3'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -0,0 +1,11 @@
1
+ require 'rails/generators'
2
+
3
+ module Crowdblog
4
+ class ViewsGenerator < ::Rails::Generators::Base
5
+ source_root File.expand_path('../../../../app/', __FILE__)
6
+
7
+ def copy_views
8
+ directory 'views', 'app/views'
9
+ end
10
+ end
11
+ end
@@ -1,4 +1,2 @@
1
1
  class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
-
4
2
  end
@@ -1,6 +1,4 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
- mount Crowdblog::Engine => '/blogadmin'
4
-
5
- root to: 'home#show'
3
+ mount Crowdblog::Engine => '/'
6
4
  end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120220033923) do
14
+ ActiveRecord::Schema.define(:version => 20120219071614) do
15
15
 
16
16
  create_table "crowdblog_assets", :force => true do |t|
17
17
  t.integer "post_id"
@@ -34,45 +34,4 @@ ActiveRecord::Schema.define(:version => 20120220033923) do
34
34
  t.datetime "updated_at", :null => false
35
35
  end
36
36
 
37
- create_table "crowdblog_users", :force => true do |t|
38
- t.string "name"
39
- t.boolean "is_publisher"
40
- t.string "email", :default => "", :null => false
41
- t.string "encrypted_password", :default => "", :null => false
42
- t.datetime "remember_created_at"
43
- t.integer "sign_in_count", :default => 0
44
- t.datetime "current_sign_in_at"
45
- t.datetime "last_sign_in_at"
46
- t.string "current_sign_in_ip"
47
- t.string "last_sign_in_ip"
48
- t.string "authentication_token"
49
- t.string "gravatar_alias"
50
- t.datetime "created_at", :null => false
51
- t.datetime "updated_at", :null => false
52
- end
53
-
54
- add_index "crowdblog_users", ["authentication_token"], :name => "index_crowdblog_users_on_authentication_token", :unique => true
55
- add_index "crowdblog_users", ["email"], :name => "index_crowdblog_users_on_email", :unique => true
56
-
57
- create_table "versions", :force => true do |t|
58
- t.integer "versioned_id"
59
- t.string "versioned_type"
60
- t.integer "user_id"
61
- t.string "user_type"
62
- t.string "user_name"
63
- t.text "modifications"
64
- t.integer "number"
65
- t.integer "reverted_from"
66
- t.string "tag"
67
- t.datetime "created_at", :null => false
68
- t.datetime "updated_at", :null => false
69
- end
70
-
71
- add_index "versions", ["created_at"], :name => "index_versions_on_created_at"
72
- add_index "versions", ["number"], :name => "index_versions_on_number"
73
- add_index "versions", ["tag"], :name => "index_versions_on_tag"
74
- add_index "versions", ["user_id", "user_type"], :name => "index_versions_on_user_id_and_user_type"
75
- add_index "versions", ["user_name"], :name => "index_versions_on_user_name"
76
- add_index "versions", ["versioned_id", "versioned_type"], :name => "index_versions_on_versioned_id_and_versioned_type"
77
-
78
37
  end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe Crowdblog::ViewsGenerator do
4
+ let(:destination) { 'tmp' }
5
+
6
+ before do
7
+ FileUtils.rm_rf 'tmp'
8
+ end
9
+
10
+ it "copies all the views" do
11
+ Crowdblog::ViewsGenerator.start([], :destination_root => destination)
12
+ Dir['app/views/**/*'].each do |f|
13
+ File.read(f).should eq File.read(File.join(destination, f)) unless File.directory?(f)
14
+ end
15
+ end
16
+ end
@@ -43,7 +43,7 @@ module Crowdblog
43
43
  end
44
44
 
45
45
  describe '#self.scoped_for' do
46
- let(:user) { mock_model User, is_publisher?: true }
46
+ let(:user) { mock(is_publisher?: true) }
47
47
 
48
48
  context 'user is publisher' do
49
49
  it 'should see all the Posts' do
@@ -140,27 +140,17 @@ module Crowdblog
140
140
  end
141
141
 
142
142
  describe "#publish_if_allowed" do
143
- let(:user) { Crowdblog::User.new }
144
143
  context "user is publisher" do
145
- before do
146
- user.is_publisher = true
147
- end
148
-
144
+ let(:user) { stub_model(User, :is_publisher? => true) }
149
145
  it "changes its state" do
146
+ subject.should_receive(:publisher=).with(user)
150
147
  subject.should_receive('publish')
151
148
  subject.publish_if_allowed('publish', user)
152
149
  end
153
-
154
- it "sets the user as publisher" do
155
- subject.publish_if_allowed('publish', user)
156
- subject.publisher.should be(user)
157
- end
158
150
  end
159
151
 
160
152
  context "user is not publisher" do
161
- before do
162
- user.is_publisher = false
163
- end
153
+ let(:user) { stub_model(User, :is_publisher? => false) }
164
154
 
165
155
  it "does not change its state" do
166
156
  subject.should_not_receive('publish')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowdblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2012-10-11 00:00:00.000000000 Z
16
+ date: 2012-10-12 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -48,7 +48,7 @@ dependencies:
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  - !ruby/object:Gem::Dependency
51
- name: devise
51
+ name: gravtastic
52
52
  requirement: !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
@@ -64,7 +64,7 @@ dependencies:
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  - !ruby/object:Gem::Dependency
67
- name: gravtastic
67
+ name: jquery-rails
68
68
  requirement: !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
@@ -80,7 +80,7 @@ dependencies:
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  - !ruby/object:Gem::Dependency
83
- name: jquery-rails
83
+ name: jbuilder
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
@@ -96,7 +96,7 @@ dependencies:
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
- name: jbuilder
99
+ name: redcarpet
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  none: false
102
102
  requirements:
@@ -112,7 +112,7 @@ dependencies:
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  - !ruby/object:Gem::Dependency
115
- name: redcarpet
115
+ name: slim
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -128,7 +128,7 @@ dependencies:
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  - !ruby/object:Gem::Dependency
131
- name: slim
131
+ name: state_machine
132
132
  requirement: !ruby/object:Gem::Requirement
133
133
  none: false
134
134
  requirements:
@@ -144,7 +144,7 @@ dependencies:
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  - !ruby/object:Gem::Dependency
147
- name: state_machine
147
+ name: strong_parameters
148
148
  requirement: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
@@ -160,14 +160,30 @@ dependencies:
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  - !ruby/object:Gem::Dependency
163
- name: strong_parameters
163
+ name: autotest
164
164
  requirement: !ruby/object:Gem::Requirement
165
165
  none: false
166
166
  requirements:
167
167
  - - ! '>='
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
- type: :runtime
170
+ type: :development
171
+ prerelease: false
172
+ version_requirements: !ruby/object:Gem::Requirement
173
+ none: false
174
+ requirements:
175
+ - - ! '>='
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ - !ruby/object:Gem::Dependency
179
+ name: autotest-growl
180
+ requirement: !ruby/object:Gem::Requirement
181
+ none: false
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ type: :development
171
187
  prerelease: false
172
188
  version_requirements: !ruby/object:Gem::Requirement
173
189
  none: false
@@ -298,6 +314,7 @@ executables: []
298
314
  extensions: []
299
315
  extra_rdoc_files: []
300
316
  files:
317
+ - .autotest
301
318
  - .gitignore
302
319
  - .rbenv-version
303
320
  - .rspec
@@ -309,18 +326,19 @@ files:
309
326
  - README.md
310
327
  - Rakefile
311
328
  - app/assets/images/crowdblog/.gitkeep
312
- - app/assets/images/crowdblog/logo.png
313
329
  - app/assets/javascripts/crowdblog.js
314
330
  - app/assets/javascripts/crowdblog/models/post.js.coffee.erb
315
331
  - app/assets/javascripts/crowdblog/views/attachment_view.js.coffee
316
332
  - app/assets/javascripts/crowdblog/views/post_form_view.js.coffee
317
333
  - app/assets/javascripts/crowdblog/views/post_view.js.coffee
334
+ - app/assets/stylesheets/application.css
318
335
  - app/assets/stylesheets/crowdblog.css
319
336
  - app/assets/stylesheets/crowdblog/posts.css.scss
337
+ - app/controllers/crowdblog/admin/assets_controller.rb
338
+ - app/controllers/crowdblog/admin/authors_controller.rb
339
+ - app/controllers/crowdblog/admin/base_controller.rb
340
+ - app/controllers/crowdblog/admin/posts_controller.rb
320
341
  - app/controllers/crowdblog/application_controller.rb
321
- - app/controllers/crowdblog/assets_controller.rb
322
- - app/controllers/crowdblog/authors_controller.rb
323
- - app/controllers/crowdblog/devise/sessions_controller.rb
324
342
  - app/controllers/crowdblog/posts_controller.rb
325
343
  - app/helpers/crowdblog/application_helper.rb
326
344
  - app/models/crowdblog/asset.rb
@@ -328,34 +346,35 @@ files:
328
346
  - app/models/crowdblog/user.rb
329
347
  - app/sweepers/post_sweeper.rb
330
348
  - app/uploaders/attachment_uploader.rb
349
+ - app/views/crowdblog/admin/authors/index.html.slim
350
+ - app/views/crowdblog/admin/posts/_form.html.slim
351
+ - app/views/crowdblog/admin/posts/_post.html.slim
352
+ - app/views/crowdblog/admin/posts/edit.html.slim
353
+ - app/views/crowdblog/admin/posts/index.html.slim
354
+ - app/views/crowdblog/admin/posts/new.html.slim
355
+ - app/views/crowdblog/admin/posts/update.json.jbuilder
331
356
  - app/views/crowdblog/application/_navbar.html.slim
332
357
  - app/views/crowdblog/application/_notices.html.slim
333
- - app/views/crowdblog/authors/index.html.slim
334
358
  - app/views/crowdblog/devise/_links.erb
335
359
  - app/views/crowdblog/devise/sessions/new.html.erb
336
- - app/views/crowdblog/posts/_form.html.slim
337
360
  - app/views/crowdblog/posts/_post.html.slim
338
- - app/views/crowdblog/posts/edit.html.slim
339
361
  - app/views/crowdblog/posts/index.html.slim
340
- - app/views/crowdblog/posts/new.html.slim
341
- - app/views/crowdblog/posts/update.json.jbuilder
362
+ - app/views/layouts/crowdblog/admin/base.html.slim
342
363
  - app/views/layouts/crowdblog/application.html.slim
343
364
  - config/cucumber.yml
344
365
  - config/initializers/date_formats.rb
345
- - config/initializers/devise.rb
346
366
  - config/locales/devise.en.yml
347
367
  - config/routes.rb
348
368
  - crowdblog.gemspec
349
- - db/migrate/20120215232711_create_crowdblog_users.rb
350
369
  - db/migrate/20120217213920_create_crowdblog_posts.rb
351
370
  - db/migrate/20120219071614_create_crowdblog_assets.rb
352
- - db/migrate/20120220033923_create_vestal_versions.rb
353
371
  - lib/crowdblog.rb
354
372
  - lib/crowdblog/devise/failure_app.rb
355
373
  - lib/crowdblog/engine.rb
356
374
  - lib/crowdblog/rspec.rb
357
375
  - lib/crowdblog/rspec/crowdblog_shared_examples.rb
358
376
  - lib/crowdblog/version.rb
377
+ - lib/generators/crowdblog/views_generator.rb
359
378
  - lib/tasks/crowdblog_tasks.rake
360
379
  - script/build
361
380
  - script/cucumber
@@ -365,10 +384,7 @@ files:
365
384
  - spec/dummy/Rakefile
366
385
  - spec/dummy/app/assets/javascripts/application.js
367
386
  - spec/dummy/app/assets/stylesheets/application.css
368
- - spec/dummy/app/controllers/admin_controller.rb
369
387
  - spec/dummy/app/controllers/application_controller.rb
370
- - spec/dummy/app/controllers/home_controller.rb
371
- - spec/dummy/app/controllers/sessions_controller.rb
372
388
  - spec/dummy/app/helpers/application_helper.rb
373
389
  - spec/dummy/app/mailers/.gitkeep
374
390
  - spec/dummy/app/models/.gitkeep
@@ -385,7 +401,6 @@ files:
385
401
  - spec/dummy/config/initializers/backtrace_silencers.rb
386
402
  - spec/dummy/config/initializers/carrierwave.rb
387
403
  - spec/dummy/config/initializers/crowdblog.rb
388
- - spec/dummy/config/initializers/devise.rb
389
404
  - spec/dummy/config/initializers/inflections.rb
390
405
  - spec/dummy/config/initializers/mime_types.rb
391
406
  - spec/dummy/config/initializers/secret_token.rb
@@ -403,10 +418,10 @@ files:
403
418
  - spec/dummy/public/500.html
404
419
  - spec/dummy/public/favicon.ico
405
420
  - spec/dummy/script/rails
421
+ - spec/generators/crowdblog/views_generator_spec.rb
406
422
  - spec/helpers/application_helper_spec.rb
407
423
  - spec/integration/crowdblog_spec.rb
408
424
  - spec/models/post_spec.rb
409
- - spec/models/user_spec.rb
410
425
  - spec/spec_helper.rb
411
426
  - vendor/assets/javascripts/backbone_rails_sync.js
412
427
  - vendor/assets/javascripts/jquery.uploadify.js
@@ -427,7 +442,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
427
442
  version: '0'
428
443
  segments:
429
444
  - 0
430
- hash: 2276514708006833005
445
+ hash: 4035348149856330059
431
446
  required_rubygems_version: !ruby/object:Gem::Requirement
432
447
  none: false
433
448
  requirements:
@@ -436,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
436
451
  version: '0'
437
452
  segments:
438
453
  - 0
439
- hash: 2276514708006833005
454
+ hash: 4035348149856330059
440
455
  requirements: []
441
456
  rubyforge_project:
442
457
  rubygems_version: 1.8.23
@@ -449,10 +464,7 @@ test_files:
449
464
  - spec/dummy/Rakefile
450
465
  - spec/dummy/app/assets/javascripts/application.js
451
466
  - spec/dummy/app/assets/stylesheets/application.css
452
- - spec/dummy/app/controllers/admin_controller.rb
453
467
  - spec/dummy/app/controllers/application_controller.rb
454
- - spec/dummy/app/controllers/home_controller.rb
455
- - spec/dummy/app/controllers/sessions_controller.rb
456
468
  - spec/dummy/app/helpers/application_helper.rb
457
469
  - spec/dummy/app/mailers/.gitkeep
458
470
  - spec/dummy/app/models/.gitkeep
@@ -469,7 +481,6 @@ test_files:
469
481
  - spec/dummy/config/initializers/backtrace_silencers.rb
470
482
  - spec/dummy/config/initializers/carrierwave.rb
471
483
  - spec/dummy/config/initializers/crowdblog.rb
472
- - spec/dummy/config/initializers/devise.rb
473
484
  - spec/dummy/config/initializers/inflections.rb
474
485
  - spec/dummy/config/initializers/mime_types.rb
475
486
  - spec/dummy/config/initializers/secret_token.rb
@@ -487,8 +498,8 @@ test_files:
487
498
  - spec/dummy/public/500.html
488
499
  - spec/dummy/public/favicon.ico
489
500
  - spec/dummy/script/rails
501
+ - spec/generators/crowdblog/views_generator_spec.rb
490
502
  - spec/helpers/application_helper_spec.rb
491
503
  - spec/integration/crowdblog_spec.rb
492
504
  - spec/models/post_spec.rb
493
- - spec/models/user_spec.rb
494
505
  - spec/spec_helper.rb