jc_cms 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,16 +8,16 @@ body {
8
8
  @import "jc_cms/bootswatch.css";
9
9
 
10
10
  // Set the correct sprite paths
11
- @iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
12
- @iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
11
+ // @iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
12
+ // @iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
13
13
 
14
14
  // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
15
15
  // Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not
16
16
  // have the proper paths. So for now we use the absolute path.
17
- //@fontAwesomeEotPath: '/assets/fontawesome-webfont.eot';
18
- //@fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff';
19
- //@fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf';
20
- //@fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg';
17
+ // @fontAwesomeEotPath: '/assets/fontawesome-webfont.eot';
18
+ // @fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff';
19
+ // @fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf';
20
+ // @fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg';
21
21
 
22
22
  // Font Awesome
23
23
  //@import "fontawesome";
@@ -13,7 +13,7 @@
13
13
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
14
14
  <![endif]-->
15
15
 
16
- <%= stylesheet_link_tag "application", :media => "all" %>
16
+ <%= stylesheet_link_tag "jc_cms/application", :media => "all" %>
17
17
 
18
18
  <!-- For third-generation iPad with high-resolution Retina display: -->
19
19
  <!-- Size should be 144 x 144 pixels -->
@@ -1,3 +1,4 @@
1
+ require 'devise'
1
2
  # Use this hook to configure devise mailer, warden hooks and so forth.
2
3
  # Many of these configuration options can be set straight in your model.
3
4
  Devise.setup do |config|
@@ -9,12 +10,12 @@ Devise.setup do |config|
9
10
  # Configure the class responsible to send e-mails.
10
11
  # config.mailer = "Devise::Mailer"
11
12
 
12
- config.router_name = :jc_cms
13
13
  # ==> ORM configuration
14
14
  # Load and configure the ORM. Supports :active_record (default) and
15
15
  # :mongoid (bson_ext recommended) by default. Other ORMs may be
16
16
  # available as additional gems.
17
17
  require 'devise/orm/active_record'
18
+ config.router_name = :jc_cms
18
19
 
19
20
  # ==> Configuration for any authentication mechanism
20
21
  # Configure which keys are used when authenticating a user. The default is
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  JcCms::Engine.routes.draw do
2
2
 
3
- devise_for :users, :class_name => "JcCms::User", module: :devise
3
+ # devise_for :users, :class_name => "JcCms::User"
4
4
 
5
5
  namespace :dashboard do
6
6
  get "dashboard/index"
@@ -10,5 +10,10 @@ JcCms::Engine.routes.draw do
10
10
 
11
11
  mount Ckeditor::Engine => '/ckeditor'
12
12
 
13
+ devise_for :users, {
14
+ class_name: 'JcCms::User',
15
+ module: 'devise'
16
+ }
17
+
13
18
 
14
19
  end
@@ -6,7 +6,7 @@ class CreatePages < ActiveRecord::Migration
6
6
  t.string :meta_title
7
7
  t.string :meta_description
8
8
  t.string :meta_keywords
9
- t.integer :page_id
9
+ t.integer :page_id, foreign_key: { references: [:jc_cms_pages, :id] }
10
10
  t.boolean :active
11
11
  t.integer :position
12
12
 
@@ -5,7 +5,7 @@ class CreateCkeditorAssets < ActiveRecord::Migration
5
5
  t.string :data_content_type
6
6
  t.integer :data_file_size
7
7
 
8
- t.integer :assetable_id
8
+ t.integer :assetable_id, references: nil
9
9
  t.string :assetable_type, :limit => 30
10
10
  t.string :type, :limit => 30
11
11
 
@@ -1,3 +1,3 @@
1
1
  module JcCms
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,49 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jc_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Jakub Cieślar
8
+ - Jakub cieslar
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-27 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: sqlite3
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
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
- description: Description of JcCms.
12
+ date: 2013-02-18 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Description of JcCms - base CMS.
47
15
  email:
48
16
  - cieslar.jakub@gmail.com
49
17
  executables: []
@@ -260,7 +228,6 @@ files:
260
228
  - test/dummy/tmp/cache/assets/D60/D30/sprockets%2Ff42c2090b3b42edbb29b14b8ca8c9381
261
229
  - test/dummy/tmp/cache/assets/D36/C00/sprockets%2F31d5b05a9ef64c11c99038b8f3ea024c
262
230
  - test/dummy/tmp/cache/assets/D36/A00/sprockets%2F794a48f8e74df2f775ab5e289f385a87
263
- - test/dummy/tmp/pids/server.pid
264
231
  - test/dummy/db/schema.rb
265
232
  - test/dummy/db/development.sqlite3
266
233
  - test/dummy/db/migrate/20121216213710_create_ckeditor_assets.jc_cms.rb
@@ -336,7 +303,7 @@ rubyforge_project:
336
303
  rubygems_version: 1.8.24
337
304
  signing_key:
338
305
  specification_version: 3
339
- summary: Summary of JcCms.
306
+ summary: Base Cms JcCms.
340
307
  test_files:
341
308
  - test/functional/jc_cms/dashboard/dashboard_controller_test.rb
342
309
  - test/integration/navigation_test.rb
@@ -470,7 +437,6 @@ test_files:
470
437
  - test/dummy/tmp/cache/assets/D60/D30/sprockets%2Ff42c2090b3b42edbb29b14b8ca8c9381
471
438
  - test/dummy/tmp/cache/assets/D36/C00/sprockets%2F31d5b05a9ef64c11c99038b8f3ea024c
472
439
  - test/dummy/tmp/cache/assets/D36/A00/sprockets%2F794a48f8e74df2f775ab5e289f385a87
473
- - test/dummy/tmp/pids/server.pid
474
440
  - test/dummy/db/schema.rb
475
441
  - test/dummy/db/development.sqlite3
476
442
  - test/dummy/db/migrate/20121216213710_create_ckeditor_assets.jc_cms.rb
@@ -1 +0,0 @@
1
- 29151