brightcontent-core 2.0.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/.gitignore +9 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +163 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +44 -0
  6. data/Rakefile +14 -0
  7. data/app/assets/images/brightcontent/.gitkeep +0 -0
  8. data/app/assets/images/brightcontent/glyphicons-halflings-white.png +0 -0
  9. data/app/assets/images/brightcontent/glyphicons-halflings.png +0 -0
  10. data/app/assets/javascripts/brightcontent/bootstrap.min.js +6 -0
  11. data/app/assets/javascripts/brightcontent/brightcontent.js +17 -0
  12. data/app/assets/javascripts/brightcontent/custom.js +1 -0
  13. data/app/assets/javascripts/brightcontent/main.js +3 -0
  14. data/app/assets/stylesheets/brightcontent/bootstrap-responsive.min.css +9 -0
  15. data/app/assets/stylesheets/brightcontent/bootstrap.min.css +9 -0
  16. data/app/assets/stylesheets/brightcontent/brightcontent.css +17 -0
  17. data/app/assets/stylesheets/brightcontent/custom.css +1 -0
  18. data/app/assets/stylesheets/brightcontent/main.css +44 -0
  19. data/app/controllers/brightcontent/admin_users_controller.rb +6 -0
  20. data/app/controllers/brightcontent/application_controller.rb +22 -0
  21. data/app/controllers/brightcontent/base_controller.rb +27 -0
  22. data/app/controllers/brightcontent/sessions_controller.rb +24 -0
  23. data/app/helpers/brightcontent/application_helper.rb +4 -0
  24. data/app/helpers/brightcontent/base_helper.rb +17 -0
  25. data/app/models/brightcontent/admin_user.rb +7 -0
  26. data/app/views/brightcontent/application/_menu.html.erb +3 -0
  27. data/app/views/brightcontent/application/_show_flash_names.html.erb +5 -0
  28. data/app/views/brightcontent/base/_form.html.erb +10 -0
  29. data/app/views/brightcontent/base/_list.html.erb +8 -0
  30. data/app/views/brightcontent/base/_list_actions.html.erb +2 -0
  31. data/app/views/brightcontent/base/edit.html.erb +3 -0
  32. data/app/views/brightcontent/base/index.html.erb +22 -0
  33. data/app/views/brightcontent/base/new.html.erb +3 -0
  34. data/app/views/brightcontent/sessions/new.html.erb +12 -0
  35. data/app/views/layouts/brightcontent/application.html.erb +53 -0
  36. data/brightcontent-core.gemspec +31 -0
  37. data/config/initializers/simple_form.rb +142 -0
  38. data/config/initializers/simple_form_bootstrap.rb +45 -0
  39. data/config/initializers/will_paginate.rb +28 -0
  40. data/config/routes.rb +9 -0
  41. data/db/migrate/20121206121725_create_brightcontent_admin_users.rb +12 -0
  42. data/lib/brightcontent-core.rb +1 -0
  43. data/lib/brightcontent/core.rb +32 -0
  44. data/lib/brightcontent/core/version.rb +5 -0
  45. data/lib/brightcontent/default_actions.rb +19 -0
  46. data/lib/brightcontent/engine.rb +9 -0
  47. data/lib/brightcontent/pagination.rb +24 -0
  48. data/lib/brightcontent/rails/routes.rb +16 -0
  49. data/lib/brightcontent/routes_parser.rb +38 -0
  50. data/lib/generators/brightcontent/install_generator.rb +34 -0
  51. data/lib/generators/brightcontent/resource_generator.rb +22 -0
  52. data/lib/generators/brightcontent/templates/brightcontent_controller.rb +2 -0
  53. data/lib/generators/brightcontent/templates/initializer.rb +8 -0
  54. data/script/rails +8 -0
  55. data/spec/dummy/README.rdoc +261 -0
  56. data/spec/dummy/Rakefile +7 -0
  57. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  58. data/spec/dummy/app/assets/javascripts/brightcontent/custom.js +1 -0
  59. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  60. data/spec/dummy/app/assets/stylesheets/brightcontent/custom.css +1 -0
  61. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  62. data/spec/dummy/app/controllers/brightcontent/blogs_controller.rb +2 -0
  63. data/spec/dummy/app/controllers/pages_controller.rb +8 -0
  64. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  65. data/spec/dummy/app/mailers/.gitkeep +0 -0
  66. data/spec/dummy/app/models/.gitkeep +0 -0
  67. data/spec/dummy/app/models/blog.rb +3 -0
  68. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  69. data/spec/dummy/app/views/pages/index.html.erb +1 -0
  70. data/spec/dummy/config.ru +4 -0
  71. data/spec/dummy/config/application.rb +59 -0
  72. data/spec/dummy/config/boot.rb +10 -0
  73. data/spec/dummy/config/database.yml +25 -0
  74. data/spec/dummy/config/environment.rb +5 -0
  75. data/spec/dummy/config/environments/development.rb +37 -0
  76. data/spec/dummy/config/environments/production.rb +67 -0
  77. data/spec/dummy/config/environments/test.rb +37 -0
  78. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  79. data/spec/dummy/config/initializers/brightcontent.rb +3 -0
  80. data/spec/dummy/config/initializers/inflections.rb +15 -0
  81. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  82. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  83. data/spec/dummy/config/initializers/session_store.rb +8 -0
  84. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  85. data/spec/dummy/config/locales/en.yml +5 -0
  86. data/spec/dummy/config/routes.rb +7 -0
  87. data/spec/dummy/db/migrate/20121206225720_create_blogs.rb +10 -0
  88. data/spec/dummy/db/schema.rb +30 -0
  89. data/spec/dummy/lib/assets/.gitkeep +0 -0
  90. data/spec/dummy/public/404.html +26 -0
  91. data/spec/dummy/public/422.html +26 -0
  92. data/spec/dummy/public/500.html +25 -0
  93. data/spec/dummy/public/favicon.ico +0 -0
  94. data/spec/dummy/script/rails +6 -0
  95. data/spec/factories.rb +16 -0
  96. data/spec/features/login_spec.rb +29 -0
  97. data/spec/features/menu_spec.rb +27 -0
  98. data/spec/features/resources_form_spec.rb +51 -0
  99. data/spec/features/resources_index_spec.rb +50 -0
  100. data/spec/lib/brightcontent/routes_parser_spec.rb +34 -0
  101. data/spec/spec_helper.rb +18 -0
  102. data/spec/support/acceptance_helper.rb +8 -0
  103. metadata +389 -0
@@ -0,0 +1,30 @@
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 => 20121206225720) do
15
+
16
+ create_table "blogs", :force => true do |t|
17
+ t.string "name"
18
+ t.text "body"
19
+ t.datetime "created_at", :null => false
20
+ t.datetime "updated_at", :null => false
21
+ end
22
+
23
+ create_table "brightcontent_admin_users", :force => true do |t|
24
+ t.string "email"
25
+ t.string "password_digest"
26
+ t.datetime "created_at", :null => false
27
+ t.datetime "updated_at", :null => false
28
+ end
29
+
30
+ end
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,16 @@
1
+ FactoryGirl.define do
2
+ sequence :email do |n|
3
+ "person#{n}@example.com"
4
+ end
5
+
6
+ factory :admin_user, class: Brightcontent::AdminUser do
7
+ email
8
+ password "password"
9
+ password_confirmation "password"
10
+ end
11
+
12
+ factory :blog do
13
+ name "Blogname"
14
+ body "Inhoud"
15
+ end
16
+ end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+
3
+ feature "Login" do
4
+
5
+ scenario "Login with invalid credentials" do
6
+ sign_in_with_invalid_email
7
+ page.should have_content "invalid"
8
+ end
9
+
10
+ scenario "Login with valid credentials" do
11
+ sign_in
12
+ page.should have_content "Admin users"
13
+ end
14
+
15
+ scenario "User logs out" do
16
+ sign_in
17
+ click_link "Logout"
18
+ page.should have_content "Please sign in"
19
+ end
20
+
21
+ def sign_in_with_invalid_email
22
+ @user = create(:admin_user)
23
+ visit "/admin"
24
+ fill_in "Email", with: @user.email
25
+ fill_in "Password", with: "wrongpass"
26
+ click_button "Login"
27
+ end
28
+
29
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ feature "Menu" do
4
+
5
+ scenario "Shows default menu" do
6
+ sign_in
7
+ menu_should_not_have_link "Sessions"
8
+ end
9
+
10
+ scenario "Shows menu for extra resources" do
11
+ sign_in
12
+ menu_should_have_link "Blogs"
13
+ end
14
+
15
+ def menu_should_have_link(link_name)
16
+ within "#menu" do
17
+ page.should have_link link_name
18
+ end
19
+ end
20
+
21
+ def menu_should_not_have_link(link_name)
22
+ within "#menu" do
23
+ page.should have_no_link link_name
24
+ end
25
+ end
26
+
27
+ end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+
3
+ feature "Resources form" do
4
+
5
+ scenario "Adds a new item" do
6
+ sign_in
7
+ create_blog "Name for blogitem"
8
+ page.should have_content "Name for blogitem"
9
+ end
10
+
11
+ scenario "Edits an existing item" do
12
+ sign_in
13
+ create_blog "Name for blogitem"
14
+ update_blog "Name for blogitem", "New blog name"
15
+ page.should have_content "New blog name"
16
+ end
17
+
18
+ scenario "Removes an item" do
19
+ sign_in
20
+ create_blog "Name for blogitem"
21
+ remove_blog "Name for blogitem"
22
+ page.should_not have_content "Name for blogitem"
23
+ end
24
+
25
+ def create_blog(title)
26
+ visit brightcontent.blogs_url
27
+ click_link "Create new Blog"
28
+ fill_in "Name", with: title
29
+ click_button "Create Blog"
30
+ end
31
+
32
+ def update_blog(title, new_title)
33
+ within_blog_item(title) { click_link "Edit" }
34
+ fill_in "Name", with: new_title
35
+ click_button "Update Blog"
36
+ end
37
+
38
+ def remove_blog(title)
39
+ within_blog_item(title) do
40
+ click_link "Delete"
41
+ end
42
+ end
43
+
44
+ def within_blog_item(title)
45
+ blog = Blog.find_by_name!(title)
46
+ within "#blog_#{blog.id}" do
47
+ yield
48
+ end
49
+ end
50
+
51
+ end
@@ -0,0 +1,50 @@
1
+ require 'spec_helper'
2
+
3
+ feature "Resources index" do
4
+
5
+ background do
6
+ sign_in
7
+ end
8
+
9
+ scenario "Visit the index view of resource" do
10
+ visit_blogs_page
11
+ page_should_have_valid_table
12
+ end
13
+
14
+ scenario "Multiple pages for items with more than 30 items" do
15
+ given_31_blog_items
16
+ visit_blogs_page
17
+ page.should have_css("tbody tr", :count => 30)
18
+ click_link "Next"
19
+ page.should have_css("tbody tr", :count => 1)
20
+ end
21
+
22
+ scenario "Editable paginate count" do
23
+ given_10_per_page
24
+ given_31_blog_items
25
+ visit_blogs_page
26
+ page.should have_css("tbody tr", :count => 10)
27
+ end
28
+
29
+ def visit_blogs_page
30
+ click_link "Blogs"
31
+ end
32
+
33
+ def page_should_have_valid_table
34
+ within "#overview" do
35
+ page.should have_content "Blogs"
36
+ page.should have_content "Name"
37
+ page.should have_content "Body"
38
+ page.should have_no_content "created_at"
39
+ end
40
+ end
41
+
42
+ def given_31_blog_items
43
+ 31.times { create :blog }
44
+ end
45
+
46
+ def given_10_per_page
47
+ Brightcontent::BlogsController.class_eval { per_page 10 }
48
+ end
49
+
50
+ end
@@ -0,0 +1,34 @@
1
+ require "brightcontent/routes_parser"
2
+
3
+ class Blog ; end
4
+ class Article ; end
5
+
6
+ module Brightcontent
7
+ describe RoutesParser do
8
+ let(:engine_resources) { %w{sessions admin_users} }
9
+ let(:routes_hash) do
10
+ [ {}, nil, {:action=>"admin"},
11
+ {:action=>"index", :controller=>"brightcontent/blogs"},
12
+ {:action=>"create", :controller=>"brightcontent/blogs"} ]
13
+ end
14
+
15
+ subject(:parser) { RoutesParser.parse(routes_hash, engine_resources) }
16
+
17
+ it { should eq ["blogs"] }
18
+
19
+ context "with extra resource" do
20
+ before { routes_hash << {:action=>"index", :controller=>"brightcontent/articles"} }
21
+ it { should eq ["blogs", "articles"] }
22
+ end
23
+
24
+ context "with engine resources" do
25
+ before do
26
+ engine_resources.each do |resource_name|
27
+ routes_hash << {:action=>"index", :controller=>"brightcontent/#{resource_name}"}
28
+ end
29
+ end
30
+ it { should eq ["blogs"] }
31
+ end
32
+
33
+ end
34
+ end
@@ -0,0 +1,18 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require 'rspec/rails'
6
+ require 'capybara/rspec'
7
+ require 'factory_girl_rails'
8
+ require 'brightcontent-core'
9
+
10
+ Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
11
+
12
+ Rails.backtrace_cleaner.remove_silencers!
13
+
14
+ RSpec.configure do |config|
15
+ config.mock_with :rspec
16
+ config.use_transactional_fixtures = true
17
+ config.include FactoryGirl::Syntax::Methods
18
+ end
@@ -0,0 +1,8 @@
1
+ def sign_in
2
+ user = create(:admin_user)
3
+ visit "/admin"
4
+ fill_in "Email", with: user.email
5
+ fill_in "Password", with: "password"
6
+ click_button "Login"
7
+ user
8
+ end
metadata ADDED
@@ -0,0 +1,389 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brightcontent-core
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.alpha2
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Developers at Brightin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.9
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.9
30
+ - !ruby/object:Gem::Dependency
31
+ name: jquery-rails
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'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bcrypt-ruby
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: inherited_resources
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: simple_form
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: will_paginate
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'
110
+ - !ruby/object:Gem::Dependency
111
+ name: bootstrap-wysihtml5-rails
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sqlite3
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: rspec-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: launchy
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: factory_girl_rails
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'
206
+ description: Brightcontent core
207
+ email: developers@brightin.nl
208
+ executables: []
209
+ extensions: []
210
+ extra_rdoc_files: []
211
+ files:
212
+ - .gitignore
213
+ - Gemfile
214
+ - Gemfile.lock
215
+ - MIT-LICENSE
216
+ - README.md
217
+ - Rakefile
218
+ - app/assets/images/brightcontent/.gitkeep
219
+ - app/assets/images/brightcontent/glyphicons-halflings-white.png
220
+ - app/assets/images/brightcontent/glyphicons-halflings.png
221
+ - app/assets/javascripts/brightcontent/bootstrap.min.js
222
+ - app/assets/javascripts/brightcontent/brightcontent.js
223
+ - app/assets/javascripts/brightcontent/custom.js
224
+ - app/assets/javascripts/brightcontent/main.js
225
+ - app/assets/stylesheets/brightcontent/bootstrap-responsive.min.css
226
+ - app/assets/stylesheets/brightcontent/bootstrap.min.css
227
+ - app/assets/stylesheets/brightcontent/brightcontent.css
228
+ - app/assets/stylesheets/brightcontent/custom.css
229
+ - app/assets/stylesheets/brightcontent/main.css
230
+ - app/controllers/brightcontent/admin_users_controller.rb
231
+ - app/controllers/brightcontent/application_controller.rb
232
+ - app/controllers/brightcontent/base_controller.rb
233
+ - app/controllers/brightcontent/sessions_controller.rb
234
+ - app/helpers/brightcontent/application_helper.rb
235
+ - app/helpers/brightcontent/base_helper.rb
236
+ - app/models/brightcontent/admin_user.rb
237
+ - app/views/brightcontent/application/_menu.html.erb
238
+ - app/views/brightcontent/application/_show_flash_names.html.erb
239
+ - app/views/brightcontent/base/_form.html.erb
240
+ - app/views/brightcontent/base/_list.html.erb
241
+ - app/views/brightcontent/base/_list_actions.html.erb
242
+ - app/views/brightcontent/base/edit.html.erb
243
+ - app/views/brightcontent/base/index.html.erb
244
+ - app/views/brightcontent/base/new.html.erb
245
+ - app/views/brightcontent/sessions/new.html.erb
246
+ - app/views/layouts/brightcontent/application.html.erb
247
+ - brightcontent-core.gemspec
248
+ - config/initializers/simple_form.rb
249
+ - config/initializers/simple_form_bootstrap.rb
250
+ - config/initializers/will_paginate.rb
251
+ - config/routes.rb
252
+ - db/migrate/20121206121725_create_brightcontent_admin_users.rb
253
+ - lib/brightcontent-core.rb
254
+ - lib/brightcontent/core.rb
255
+ - lib/brightcontent/core/version.rb
256
+ - lib/brightcontent/default_actions.rb
257
+ - lib/brightcontent/engine.rb
258
+ - lib/brightcontent/pagination.rb
259
+ - lib/brightcontent/rails/routes.rb
260
+ - lib/brightcontent/routes_parser.rb
261
+ - lib/generators/brightcontent/install_generator.rb
262
+ - lib/generators/brightcontent/resource_generator.rb
263
+ - lib/generators/brightcontent/templates/brightcontent_controller.rb
264
+ - lib/generators/brightcontent/templates/initializer.rb
265
+ - script/rails
266
+ - spec/dummy/README.rdoc
267
+ - spec/dummy/Rakefile
268
+ - spec/dummy/app/assets/javascripts/application.js
269
+ - spec/dummy/app/assets/javascripts/brightcontent/custom.js
270
+ - spec/dummy/app/assets/stylesheets/application.css
271
+ - spec/dummy/app/assets/stylesheets/brightcontent/custom.css
272
+ - spec/dummy/app/controllers/application_controller.rb
273
+ - spec/dummy/app/controllers/brightcontent/blogs_controller.rb
274
+ - spec/dummy/app/controllers/pages_controller.rb
275
+ - spec/dummy/app/helpers/application_helper.rb
276
+ - spec/dummy/app/mailers/.gitkeep
277
+ - spec/dummy/app/models/.gitkeep
278
+ - spec/dummy/app/models/blog.rb
279
+ - spec/dummy/app/views/layouts/application.html.erb
280
+ - spec/dummy/app/views/pages/index.html.erb
281
+ - spec/dummy/config.ru
282
+ - spec/dummy/config/application.rb
283
+ - spec/dummy/config/boot.rb
284
+ - spec/dummy/config/database.yml
285
+ - spec/dummy/config/environment.rb
286
+ - spec/dummy/config/environments/development.rb
287
+ - spec/dummy/config/environments/production.rb
288
+ - spec/dummy/config/environments/test.rb
289
+ - spec/dummy/config/initializers/backtrace_silencers.rb
290
+ - spec/dummy/config/initializers/brightcontent.rb
291
+ - spec/dummy/config/initializers/inflections.rb
292
+ - spec/dummy/config/initializers/mime_types.rb
293
+ - spec/dummy/config/initializers/secret_token.rb
294
+ - spec/dummy/config/initializers/session_store.rb
295
+ - spec/dummy/config/initializers/wrap_parameters.rb
296
+ - spec/dummy/config/locales/en.yml
297
+ - spec/dummy/config/routes.rb
298
+ - spec/dummy/db/migrate/20121206225720_create_blogs.rb
299
+ - spec/dummy/db/schema.rb
300
+ - spec/dummy/lib/assets/.gitkeep
301
+ - spec/dummy/public/404.html
302
+ - spec/dummy/public/422.html
303
+ - spec/dummy/public/500.html
304
+ - spec/dummy/public/favicon.ico
305
+ - spec/dummy/script/rails
306
+ - spec/factories.rb
307
+ - spec/features/login_spec.rb
308
+ - spec/features/menu_spec.rb
309
+ - spec/features/resources_form_spec.rb
310
+ - spec/features/resources_index_spec.rb
311
+ - spec/lib/brightcontent/routes_parser_spec.rb
312
+ - spec/spec_helper.rb
313
+ - spec/support/acceptance_helper.rb
314
+ homepage: http://brightin.nl
315
+ licenses: []
316
+ post_install_message:
317
+ rdoc_options: []
318
+ require_paths:
319
+ - lib
320
+ required_ruby_version: !ruby/object:Gem::Requirement
321
+ none: false
322
+ requirements:
323
+ - - ! '>='
324
+ - !ruby/object:Gem::Version
325
+ version: '0'
326
+ segments:
327
+ - 0
328
+ hash: -4540201092329045641
329
+ required_rubygems_version: !ruby/object:Gem::Requirement
330
+ none: false
331
+ requirements:
332
+ - - ! '>'
333
+ - !ruby/object:Gem::Version
334
+ version: 1.3.1
335
+ requirements: []
336
+ rubyforge_project:
337
+ rubygems_version: 1.8.23
338
+ signing_key:
339
+ specification_version: 3
340
+ summary: Brightcontent core
341
+ test_files:
342
+ - spec/dummy/README.rdoc
343
+ - spec/dummy/Rakefile
344
+ - spec/dummy/app/assets/javascripts/application.js
345
+ - spec/dummy/app/assets/javascripts/brightcontent/custom.js
346
+ - spec/dummy/app/assets/stylesheets/application.css
347
+ - spec/dummy/app/assets/stylesheets/brightcontent/custom.css
348
+ - spec/dummy/app/controllers/application_controller.rb
349
+ - spec/dummy/app/controllers/brightcontent/blogs_controller.rb
350
+ - spec/dummy/app/controllers/pages_controller.rb
351
+ - spec/dummy/app/helpers/application_helper.rb
352
+ - spec/dummy/app/mailers/.gitkeep
353
+ - spec/dummy/app/models/.gitkeep
354
+ - spec/dummy/app/models/blog.rb
355
+ - spec/dummy/app/views/layouts/application.html.erb
356
+ - spec/dummy/app/views/pages/index.html.erb
357
+ - spec/dummy/config.ru
358
+ - spec/dummy/config/application.rb
359
+ - spec/dummy/config/boot.rb
360
+ - spec/dummy/config/database.yml
361
+ - spec/dummy/config/environment.rb
362
+ - spec/dummy/config/environments/development.rb
363
+ - spec/dummy/config/environments/production.rb
364
+ - spec/dummy/config/environments/test.rb
365
+ - spec/dummy/config/initializers/backtrace_silencers.rb
366
+ - spec/dummy/config/initializers/brightcontent.rb
367
+ - spec/dummy/config/initializers/inflections.rb
368
+ - spec/dummy/config/initializers/mime_types.rb
369
+ - spec/dummy/config/initializers/secret_token.rb
370
+ - spec/dummy/config/initializers/session_store.rb
371
+ - spec/dummy/config/initializers/wrap_parameters.rb
372
+ - spec/dummy/config/locales/en.yml
373
+ - spec/dummy/config/routes.rb
374
+ - spec/dummy/db/migrate/20121206225720_create_blogs.rb
375
+ - spec/dummy/db/schema.rb
376
+ - spec/dummy/lib/assets/.gitkeep
377
+ - spec/dummy/public/404.html
378
+ - spec/dummy/public/422.html
379
+ - spec/dummy/public/500.html
380
+ - spec/dummy/public/favicon.ico
381
+ - spec/dummy/script/rails
382
+ - spec/factories.rb
383
+ - spec/features/login_spec.rb
384
+ - spec/features/menu_spec.rb
385
+ - spec/features/resources_form_spec.rb
386
+ - spec/features/resources_index_spec.rb
387
+ - spec/lib/brightcontent/routes_parser_spec.rb
388
+ - spec/spec_helper.rb
389
+ - spec/support/acceptance_helper.rb