simple-pages-rails 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +22 -4
  3. data/Guardfile +47 -0
  4. data/app/assets/javascripts/simple_pages/application.js +0 -2
  5. data/app/assets/javascripts/simple_pages/pages.js.coffee +4 -0
  6. data/app/controllers/simple_pages/application_controller.rb +5 -4
  7. data/app/controllers/simple_pages/pages_controller.rb +6 -1
  8. data/app/helpers/simple_pages/application_helper.rb +0 -3
  9. data/app/helpers/simple_pages/pages_helper.rb +1 -1
  10. data/app/models/simple_pages/page.rb +6 -17
  11. data/lib/generators/simple_pages/USAGE +11 -0
  12. data/lib/generators/simple_pages/install_generator.rb +40 -0
  13. data/lib/generators/simple_pages/templates/cancan_ext.rb +25 -0
  14. data/lib/generators/simple_pages/templates/devise_ext.rb +25 -0
  15. data/lib/generators/simple_pages/templates/simple_pages.rb +19 -0
  16. data/lib/simple-pages-rails/version.rb +1 -1
  17. data/lib/simple_pages.rb +22 -11
  18. data/lib/simple_pages/controllers/page_layout_at.rb +34 -0
  19. data/lib/simple_pages/engine.rb +12 -0
  20. data/lib/simple_pages/models/page_attachment.rb +15 -0
  21. data/lib/simple_pages/models/page_author.rb +19 -0
  22. data/lib/simple_pages/models/page_locale.rb +28 -0
  23. data/lib/simple_pages/models/page_owner.rb +23 -0
  24. data/simple-pages-rails.gemspec +9 -1
  25. data/spec/configuration_spec.rb +39 -0
  26. data/spec/dummy/.rspec +1 -0
  27. data/spec/dummy/app/models/ability.rb +7 -0
  28. data/spec/dummy/app/models/user.rb +17 -0
  29. data/spec/dummy/config/environments/development.rb +2 -0
  30. data/spec/dummy/config/initializers/devise.rb +232 -0
  31. data/spec/dummy/config/initializers/simple_form.rb +142 -0
  32. data/spec/dummy/config/initializers/simple_form_bootstrap.rb +45 -0
  33. data/spec/dummy/config/initializers/simple_pages.rb +19 -0
  34. data/spec/dummy/config/locales/devise.en.yml +58 -0
  35. data/spec/dummy/config/locales/simple_form.en.yml +26 -0
  36. data/spec/dummy/config/routes.rb +3 -2
  37. data/spec/dummy/db/migrate/20121214105317_devise_create_users.rb +46 -0
  38. data/spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb +19 -0
  39. data/spec/dummy/db/schema.rb +51 -0
  40. data/spec/dummy/lib/cancan_ext.rb +25 -0
  41. data/spec/dummy/lib/devise_ext.rb +25 -0
  42. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  43. data/spec/spec_helper.rb +54 -0
  44. metadata +193 -8
  45. data/lib/simple_pages/page_author.rb +0 -17
  46. data/lib/simple_pages/page_layout_at.rb +0 -32
  47. data/spec/dummy/README.rdoc +0 -261
@@ -0,0 +1,45 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b|
4
+ b.use :html5
5
+ b.use :placeholder
6
+ b.use :label
7
+ b.wrapper :tag => 'div', :class => 'controls' do |ba|
8
+ ba.use :input
9
+ ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
10
+ ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
11
+ end
12
+ end
13
+
14
+ config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
15
+ b.use :html5
16
+ b.use :placeholder
17
+ b.use :label
18
+ b.wrapper :tag => 'div', :class => 'controls' do |input|
19
+ input.wrapper :tag => 'div', :class => 'input-prepend' do |prepend|
20
+ prepend.use :input
21
+ end
22
+ input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
23
+ input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
24
+ end
25
+ end
26
+
27
+ config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b|
28
+ b.use :html5
29
+ b.use :placeholder
30
+ b.use :label
31
+ b.wrapper :tag => 'div', :class => 'controls' do |input|
32
+ input.wrapper :tag => 'div', :class => 'input-append' do |append|
33
+ append.use :input
34
+ end
35
+ input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
36
+ input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
37
+ end
38
+ end
39
+
40
+ # Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
41
+ # Check the Bootstrap docs (http://twitter.github.com/bootstrap)
42
+ # to learn about the different styles for forms and inputs,
43
+ # buttons and other elements.
44
+ config.default_wrapper = :bootstrap
45
+ end
@@ -0,0 +1,19 @@
1
+ require 'devise_ext'
2
+ require 'cancan_ext'
3
+
4
+ SimplePages.configure do |config|
5
+ # mixin controller modules.
6
+ config.controller_modules += [DeviseExt, CanCanExt]
7
+
8
+ # mixin helper modules.
9
+ # config.helper_modules += []
10
+
11
+ # set table name of Page, default to simple_pages.
12
+ # config.page_table_name = 'simple_pages'
13
+
14
+ # mixin modules for Page.
15
+ # config.page_modules += []
16
+
17
+ # set per page of pagination for page controller, default to 30.
18
+ # config.pages_per_page = 30
19
+ end
@@ -0,0 +1,58 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ errors:
5
+ messages:
6
+ expired: "has expired, please request a new one"
7
+ not_found: "not found"
8
+ already_confirmed: "was already confirmed, please try signing in"
9
+ not_locked: "was not locked"
10
+ not_saved:
11
+ one: "1 error prohibited this %{resource} from being saved:"
12
+ other: "%{count} errors prohibited this %{resource} from being saved:"
13
+
14
+ devise:
15
+ failure:
16
+ already_authenticated: 'You are already signed in.'
17
+ unauthenticated: 'You need to sign in or sign up before continuing.'
18
+ unconfirmed: 'You have to confirm your account before continuing.'
19
+ locked: 'Your account is locked.'
20
+ invalid: 'Invalid email or password.'
21
+ invalid_token: 'Invalid authentication token.'
22
+ timeout: 'Your session expired, please sign in again to continue.'
23
+ inactive: 'Your account was not activated yet.'
24
+ sessions:
25
+ signed_in: 'Signed in successfully.'
26
+ signed_out: 'Signed out successfully.'
27
+ passwords:
28
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
+ updated: 'Your password was changed successfully. You are now signed in.'
30
+ updated_not_active: 'Your password was changed successfully.'
31
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
32
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
+ confirmations:
34
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
35
+ send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
36
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
37
+ registrations:
38
+ signed_up: 'Welcome! You have signed up successfully.'
39
+ signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
40
+ signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
41
+ signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
42
+ updated: 'You updated your account successfully.'
43
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
44
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
45
+ unlocks:
46
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
47
+ unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
48
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
49
+ omniauth_callbacks:
50
+ success: 'Successfully authenticated from %{kind} account.'
51
+ failure: 'Could not authenticate you from %{kind} because "%{reason}".'
52
+ mailer:
53
+ confirmation_instructions:
54
+ subject: 'Confirmation instructions'
55
+ reset_password_instructions:
56
+ subject: 'Reset password instructions'
57
+ unlock_instructions:
58
+ subject: 'Unlock Instructions'
@@ -0,0 +1,26 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Labels and hints examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+
@@ -1,4 +1,5 @@
1
1
  Rails.application.routes.draw do
2
-
3
- mount SimplePages::Engine => "/simple_pages"
2
+ mount SimplePages::Engine, at: '/'
3
+ root to: 'simple_pages/pages#index'
4
+ devise_for :users
4
5
  end
@@ -0,0 +1,46 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table(:users) do |t|
4
+ ## Database authenticatable
5
+ t.string :email, :null => false, :default => ""
6
+ t.string :encrypted_password, :null => false, :default => ""
7
+
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+
12
+ ## Rememberable
13
+ t.datetime :remember_created_at
14
+
15
+ ## Trackable
16
+ t.integer :sign_in_count, :default => 0
17
+ t.datetime :current_sign_in_at
18
+ t.datetime :last_sign_in_at
19
+ t.string :current_sign_in_ip
20
+ t.string :last_sign_in_ip
21
+
22
+ ## Confirmable
23
+ # t.string :confirmation_token
24
+ # t.datetime :confirmed_at
25
+ # t.datetime :confirmation_sent_at
26
+ # t.string :unconfirmed_email # Only if using reconfirmable
27
+
28
+ ## Lockable
29
+ # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
30
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
31
+ # t.datetime :locked_at
32
+
33
+ ## Token authenticatable
34
+ # t.string :authentication_token
35
+
36
+
37
+ t.timestamps
38
+ end
39
+
40
+ add_index :users, :email, :unique => true
41
+ add_index :users, :reset_password_token, :unique => true
42
+ # add_index :users, :confirmation_token, :unique => true
43
+ # add_index :users, :unlock_token, :unique => true
44
+ # add_index :users, :authentication_token, :unique => true
45
+ end
46
+ end
@@ -0,0 +1,19 @@
1
+ # This migration comes from simple_pages (originally 20121206042138)
2
+ class CreateSimplePages < ActiveRecord::Migration
3
+ def change
4
+ create_table :simple_pages do |t|
5
+ t.string :url
6
+ t.string :title
7
+ t.string :excerpt
8
+ t.text :content
9
+ t.belongs_to :author, polymorphic: true
10
+ t.string :layout_at
11
+ t.datetime :published_at
12
+
13
+ t.timestamps
14
+ end
15
+ add_index :simple_pages, [:author_id, :author_type], name: 'author'
16
+ add_index :simple_pages, :layout_at
17
+ add_index :simple_pages, :published_at
18
+ end
19
+ end
@@ -0,0 +1,51 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20121214105802) do
15
+
16
+ create_table "simple_pages", :force => true do |t|
17
+ t.string "url"
18
+ t.string "title"
19
+ t.string "excerpt"
20
+ t.text "content"
21
+ t.integer "author_id"
22
+ t.string "author_type"
23
+ t.string "layout_at"
24
+ t.datetime "published_at"
25
+ t.datetime "created_at", :null => false
26
+ t.datetime "updated_at", :null => false
27
+ end
28
+
29
+ add_index "simple_pages", ["author_id", "author_type"], :name => "author"
30
+ add_index "simple_pages", ["layout_at"], :name => "index_simple_pages_on_layout_at"
31
+ add_index "simple_pages", ["published_at"], :name => "index_simple_pages_on_published_at"
32
+
33
+ create_table "users", :force => true do |t|
34
+ t.string "email", :default => "", :null => false
35
+ t.string "encrypted_password", :default => "", :null => false
36
+ t.string "reset_password_token"
37
+ t.datetime "reset_password_sent_at"
38
+ t.datetime "remember_created_at"
39
+ t.integer "sign_in_count", :default => 0
40
+ t.datetime "current_sign_in_at"
41
+ t.datetime "last_sign_in_at"
42
+ t.string "current_sign_in_ip"
43
+ t.string "last_sign_in_ip"
44
+ t.datetime "created_at", :null => false
45
+ t.datetime "updated_at", :null => false
46
+ end
47
+
48
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
49
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
50
+
51
+ end
@@ -0,0 +1,25 @@
1
+ require 'active_support/concern'
2
+
3
+ module CanCanExt
4
+ extend ActiveSupport::Concern
5
+ included do
6
+ rescue_from ::CanCan::AccessDenied do |exception|
7
+ redirect_to secure_root_url, alert: exception.message
8
+ end
9
+
10
+ helper_method :secure_root_url
11
+ end
12
+
13
+ module ClassMethods
14
+ end
15
+
16
+ protected
17
+
18
+ def current_ability
19
+ @current_ability ||= Ability.new session_user
20
+ end
21
+
22
+ def secure_root_url
23
+ main_app.root_url
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ require 'active_support/concern'
2
+
3
+ module DeviseExt
4
+ extend ActiveSupport::Concern
5
+ included do
6
+ helper_method :session_user
7
+ end
8
+
9
+ module ClassMethods
10
+ end
11
+
12
+ protected
13
+
14
+ def authenticate_session!
15
+ authenticate_user!
16
+ end
17
+
18
+ def session_user
19
+ current_user
20
+ end
21
+
22
+ def load_authors
23
+ @authors = User.all
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
2
+ <%%= f.error_notification %>
3
+
4
+ <div class="form-inputs">
5
+ <%- attributes.each do |attribute| -%>
6
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
7
+ <%- end -%>
8
+ </div>
9
+
10
+ <div class="form-actions">
11
+ <%%= f.button :submit %>
12
+ </div>
13
+ <%% end %>
@@ -0,0 +1,54 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+
4
+ #uncomment the following line to use spork with the debugger
5
+ #require 'spork/ext/ruby-debug'
6
+
7
+ Spork.prefork do
8
+ # Loading more in this block will cause your tests to run faster. However,
9
+ # if you change any configuration or code from libraries loaded here, you'll
10
+ # need to restart spork for it take effect.
11
+
12
+ ENV['RAILS_ENV'] ||= 'test'
13
+ require File.expand_path('../dummy/config/environment', __FILE__)
14
+ require 'rspec/rails'
15
+ require 'rspec/autorun'
16
+
17
+ # Requires supporting ruby files with custom matchers and macros, etc,
18
+ # in spec/support/ and its subdirectories.
19
+ Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
20
+
21
+ RSpec.configure do |config|
22
+ # ## Mock Framework
23
+ #
24
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
25
+ #
26
+ # config.mock_with :mocha
27
+ # config.mock_with :flexmock
28
+ # config.mock_with :rr
29
+
30
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
31
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
32
+
33
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
34
+ # examples within a transaction, remove the following line or assign false
35
+ # instead of true.
36
+ config.use_transactional_fixtures = true
37
+
38
+ # If true, the base class of anonymous controllers will be inferred
39
+ # automatically. This will be the default behavior in future versions of
40
+ # rspec-rails.
41
+ config.infer_base_class_for_anonymous_controllers = false
42
+
43
+ # Run specs in random order to surface order dependencies. If you find an
44
+ # order dependency and want to debug it, you can fix the order by providing
45
+ # the seed, which is printed after each run.
46
+ # --seed 1234
47
+ config.order = 'random'
48
+ end
49
+ end
50
+
51
+ Spork.each_run do
52
+ # This code will be run each time you run your specs.
53
+
54
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-pages-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-08 00:00:00.000000000 Z
12
+ date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.2.9
30
+ - !ruby/object:Gem::Dependency
31
+ name: will_paginate
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: rails-theme-helper
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -43,6 +59,54 @@ dependencies:
43
59
  - - ! '>='
44
60
  - !ruby/object:Gem::Version
45
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: chosen-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: ckeditor_rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: stringex
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
46
110
  - !ruby/object:Gem::Dependency
47
111
  name: mysql2
48
112
  requirement: !ruby/object:Gem::Requirement
@@ -59,6 +123,86 @@ dependencies:
59
123
  - - ! '>='
60
124
  - !ruby/object:Gem::Version
61
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: rspec-rails
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: factory_girl_rails
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: capybara
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: guard-rspec
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: guard-spork
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
62
206
  description: This gem provides simple pages with rails engine
63
207
  email:
64
208
  - tsechingho@gmail.com
@@ -68,6 +212,7 @@ extra_rdoc_files: []
68
212
  files:
69
213
  - .gitignore
70
214
  - Gemfile
215
+ - Guardfile
71
216
  - LICENSE.txt
72
217
  - README.md
73
218
  - Rakefile
@@ -96,16 +241,25 @@ files:
96
241
  - config/locales/simple_pages.zh-TW.yml
97
242
  - config/routes.rb
98
243
  - db/migrate/20121206042138_create_simple_pages.rb
244
+ - lib/generators/simple_pages/USAGE
245
+ - lib/generators/simple_pages/install_generator.rb
246
+ - lib/generators/simple_pages/templates/cancan_ext.rb
247
+ - lib/generators/simple_pages/templates/devise_ext.rb
248
+ - lib/generators/simple_pages/templates/simple_pages.rb
99
249
  - lib/simple-pages-rails.rb
100
250
  - lib/simple-pages-rails/version.rb
101
251
  - lib/simple_pages.rb
252
+ - lib/simple_pages/controllers/page_layout_at.rb
102
253
  - lib/simple_pages/engine.rb
103
- - lib/simple_pages/page_author.rb
104
- - lib/simple_pages/page_layout_at.rb
254
+ - lib/simple_pages/models/page_attachment.rb
255
+ - lib/simple_pages/models/page_author.rb
256
+ - lib/simple_pages/models/page_locale.rb
257
+ - lib/simple_pages/models/page_owner.rb
105
258
  - lib/tasks/simple_pages_tasks.rake
106
259
  - script/rails
107
260
  - simple-pages-rails.gemspec
108
- - spec/dummy/README.rdoc
261
+ - spec/configuration_spec.rb
262
+ - spec/dummy/.rspec
109
263
  - spec/dummy/Rakefile
110
264
  - spec/dummy/app/assets/javascripts/application.js
111
265
  - spec/dummy/app/assets/stylesheets/application.css
@@ -113,6 +267,8 @@ files:
113
267
  - spec/dummy/app/helpers/application_helper.rb
114
268
  - spec/dummy/app/mailers/.gitkeep
115
269
  - spec/dummy/app/models/.gitkeep
270
+ - spec/dummy/app/models/ability.rb
271
+ - spec/dummy/app/models/user.rb
116
272
  - spec/dummy/app/views/layouts/application.html.erb
117
273
  - spec/dummy/config.ru
118
274
  - spec/dummy/config/application.rb
@@ -123,20 +279,33 @@ files:
123
279
  - spec/dummy/config/environments/production.rb
124
280
  - spec/dummy/config/environments/test.rb
125
281
  - spec/dummy/config/initializers/backtrace_silencers.rb
282
+ - spec/dummy/config/initializers/devise.rb
126
283
  - spec/dummy/config/initializers/inflections.rb
127
284
  - spec/dummy/config/initializers/mime_types.rb
128
285
  - spec/dummy/config/initializers/secret_token.rb
129
286
  - spec/dummy/config/initializers/session_store.rb
287
+ - spec/dummy/config/initializers/simple_form.rb
288
+ - spec/dummy/config/initializers/simple_form_bootstrap.rb
289
+ - spec/dummy/config/initializers/simple_pages.rb
130
290
  - spec/dummy/config/initializers/wrap_parameters.rb
291
+ - spec/dummy/config/locales/devise.en.yml
131
292
  - spec/dummy/config/locales/en.yml
293
+ - spec/dummy/config/locales/simple_form.en.yml
132
294
  - spec/dummy/config/routes.rb
295
+ - spec/dummy/db/migrate/20121214105317_devise_create_users.rb
296
+ - spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
297
+ - spec/dummy/db/schema.rb
133
298
  - spec/dummy/lib/assets/.gitkeep
299
+ - spec/dummy/lib/cancan_ext.rb
300
+ - spec/dummy/lib/devise_ext.rb
301
+ - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
134
302
  - spec/dummy/log/.gitkeep
135
303
  - spec/dummy/public/404.html
136
304
  - spec/dummy/public/422.html
137
305
  - spec/dummy/public/500.html
138
306
  - spec/dummy/public/favicon.ico
139
307
  - spec/dummy/script/rails
308
+ - spec/spec_helper.rb
140
309
  homepage: https://github.com/tsechingho/simple-pages-rails
141
310
  licenses: []
142
311
  post_install_message:
@@ -151,7 +320,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
320
  version: '0'
152
321
  segments:
153
322
  - 0
154
- hash: -3339486714339949255
323
+ hash: -1805547192965503228
155
324
  required_rubygems_version: !ruby/object:Gem::Requirement
156
325
  none: false
157
326
  requirements:
@@ -160,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
329
  version: '0'
161
330
  segments:
162
331
  - 0
163
- hash: -3339486714339949255
332
+ hash: -1805547192965503228
164
333
  requirements: []
165
334
  rubyforge_project:
166
335
  rubygems_version: 1.8.24
@@ -168,7 +337,8 @@ signing_key:
168
337
  specification_version: 3
169
338
  summary: provides simple pages with rails engine
170
339
  test_files:
171
- - spec/dummy/README.rdoc
340
+ - spec/configuration_spec.rb
341
+ - spec/dummy/.rspec
172
342
  - spec/dummy/Rakefile
173
343
  - spec/dummy/app/assets/javascripts/application.js
174
344
  - spec/dummy/app/assets/stylesheets/application.css
@@ -176,6 +346,8 @@ test_files:
176
346
  - spec/dummy/app/helpers/application_helper.rb
177
347
  - spec/dummy/app/mailers/.gitkeep
178
348
  - spec/dummy/app/models/.gitkeep
349
+ - spec/dummy/app/models/ability.rb
350
+ - spec/dummy/app/models/user.rb
179
351
  - spec/dummy/app/views/layouts/application.html.erb
180
352
  - spec/dummy/config.ru
181
353
  - spec/dummy/config/application.rb
@@ -186,17 +358,30 @@ test_files:
186
358
  - spec/dummy/config/environments/production.rb
187
359
  - spec/dummy/config/environments/test.rb
188
360
  - spec/dummy/config/initializers/backtrace_silencers.rb
361
+ - spec/dummy/config/initializers/devise.rb
189
362
  - spec/dummy/config/initializers/inflections.rb
190
363
  - spec/dummy/config/initializers/mime_types.rb
191
364
  - spec/dummy/config/initializers/secret_token.rb
192
365
  - spec/dummy/config/initializers/session_store.rb
366
+ - spec/dummy/config/initializers/simple_form.rb
367
+ - spec/dummy/config/initializers/simple_form_bootstrap.rb
368
+ - spec/dummy/config/initializers/simple_pages.rb
193
369
  - spec/dummy/config/initializers/wrap_parameters.rb
370
+ - spec/dummy/config/locales/devise.en.yml
194
371
  - spec/dummy/config/locales/en.yml
372
+ - spec/dummy/config/locales/simple_form.en.yml
195
373
  - spec/dummy/config/routes.rb
374
+ - spec/dummy/db/migrate/20121214105317_devise_create_users.rb
375
+ - spec/dummy/db/migrate/20121214105802_create_simple_pages.simple_pages.rb
376
+ - spec/dummy/db/schema.rb
196
377
  - spec/dummy/lib/assets/.gitkeep
378
+ - spec/dummy/lib/cancan_ext.rb
379
+ - spec/dummy/lib/devise_ext.rb
380
+ - spec/dummy/lib/templates/erb/scaffold/_form.html.erb
197
381
  - spec/dummy/log/.gitkeep
198
382
  - spec/dummy/public/404.html
199
383
  - spec/dummy/public/422.html
200
384
  - spec/dummy/public/500.html
201
385
  - spec/dummy/public/favicon.ico
202
386
  - spec/dummy/script/rails
387
+ - spec/spec_helper.rb