feather_cms 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/{README.md → README.rdoc} +13 -12
  3. data/Rakefile +40 -1
  4. data/app/assets/images/feather_cms/images/edit.png +0 -0
  5. data/app/assets/images/feather_cms/images/fullscreen.png +0 -0
  6. data/app/assets/images/feather_cms/images/preview.png +0 -0
  7. data/app/assets/javascripts/feather_cms/application.js +14 -0
  8. data/app/assets/javascripts/feather_cms/editor.js +21 -0
  9. data/app/assets/javascripts/feather_cms/epiceditor.js +716 -0
  10. data/app/assets/javascripts/feather_cms/epiceditor.min.js +4 -0
  11. data/app/assets/stylesheets/feather_cms/application.css.sass +37 -0
  12. data/{lib/generators/feather_cms/templates → app/assets/stylesheets/feather_cms}/bootstrap.css +0 -0
  13. data/app/assets/stylesheets/feather_cms/themes/base/epiceditor.css +31 -0
  14. data/app/assets/stylesheets/feather_cms/themes/editor/epic-dark.css +47 -0
  15. data/app/assets/stylesheets/feather_cms/themes/editor/epic-light.css +48 -0
  16. data/app/assets/stylesheets/feather_cms/themes/preview/github.css +82 -0
  17. data/app/assets/stylesheets/feather_cms/themes/preview/preview-dark.css +113 -0
  18. data/app/controllers/feather_cms/application_controller.rb +4 -0
  19. data/app/controllers/feather_cms/pages_controller.rb +84 -0
  20. data/app/helpers/feather_cms/application_helper.rb +4 -0
  21. data/app/models/feather_cms/page.rb +11 -0
  22. data/app/views/feather_cms/pages/_form.html.haml +24 -0
  23. data/app/views/feather_cms/pages/edit.html.haml +17 -0
  24. data/app/views/feather_cms/pages/index.html.haml +22 -0
  25. data/app/views/feather_cms/pages/new.html.haml +4 -0
  26. data/app/views/layouts/feather_layout.html.haml +30 -0
  27. data/config/routes.rb +7 -0
  28. data/lib/feather_cms/config.rb +6 -18
  29. data/lib/feather_cms/engine.rb +5 -0
  30. data/lib/feather_cms/version.rb +1 -1
  31. data/lib/feather_cms.rb +1 -13
  32. data/lib/generators/feather_cms/USAGE +3 -8
  33. data/lib/generators/feather_cms/feather_cms_generator.rb +5 -39
  34. data/lib/generators/feather_cms/templates/initializer.rb +0 -5
  35. data/lib/generators/feather_cms/templates/migration.rb +2 -3
  36. data/lib/tasks/feather_cms_tasks.rake +4 -0
  37. data/test/dummy/README.rdoc +261 -0
  38. data/test/dummy/Rakefile +7 -0
  39. data/test/dummy/app/assets/javascripts/application.js +15 -0
  40. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  41. data/test/dummy/app/controllers/application_controller.rb +3 -0
  42. data/test/dummy/app/helpers/application_helper.rb +2 -0
  43. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  44. data/test/dummy/config/application.rb +59 -0
  45. data/test/dummy/config/boot.rb +10 -0
  46. data/test/dummy/config/database.yml +25 -0
  47. data/test/dummy/config/environment.rb +5 -0
  48. data/test/dummy/config/environments/development.rb +37 -0
  49. data/test/dummy/config/environments/production.rb +67 -0
  50. data/test/dummy/config/environments/test.rb +37 -0
  51. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  52. data/test/dummy/config/initializers/inflections.rb +15 -0
  53. data/test/dummy/config/initializers/mime_types.rb +5 -0
  54. data/test/dummy/config/initializers/secret_token.rb +7 -0
  55. data/test/dummy/config/initializers/session_store.rb +8 -0
  56. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/test/dummy/config/locales/en.yml +5 -0
  58. data/test/dummy/config/routes.rb +4 -0
  59. data/test/dummy/config.ru +4 -0
  60. data/test/dummy/public/404.html +26 -0
  61. data/test/dummy/public/422.html +26 -0
  62. data/test/dummy/public/500.html +25 -0
  63. data/test/dummy/public/favicon.ico +0 -0
  64. data/test/dummy/script/rails +6 -0
  65. data/test/feather_cms_test.rb +7 -0
  66. data/test/fixtures/feather_cms/pages.yml +11 -0
  67. data/test/integration/navigation_test.rb +10 -0
  68. data/test/test_helper.rb +15 -0
  69. data/test/unit/feather_cms/page_test.rb +9 -0
  70. metadata +123 -26
  71. data/.gitignore +0 -4
  72. data/Gemfile +0 -4
  73. data/feather_cms.gemspec +0 -24
  74. data/lib/feather_cms/model.rb +0 -59
  75. data/lib/feather_cms/railtie.rb +0 -13
  76. data/lib/feather_cms/template_cache.rb +0 -52
  77. data/lib/generators/feather_cms/templates/controller.rb +0 -40
  78. data/lib/generators/feather_cms/templates/form.html.erb +0 -40
  79. data/lib/generators/feather_cms/templates/helper.rb +0 -18
  80. data/lib/generators/feather_cms/templates/index.html.erb +0 -11
  81. data/lib/generators/feather_cms/templates/layout.html.erb +0 -52
  82. data/lib/generators/feather_cms/templates/model.rb +0 -5
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '91e079b8176e41c7a78dec2ccde51237f43c0fd53406b00526edda4aeb8031786a02817177c1465c5b8a6fc867d8b86e9d9fbe9a220cf1f11a047099f3b6b6b6'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount FeatherCms::Engine => "/feather_cms"
4
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -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,7 @@
1
+ require 'test_helper'
2
+
3
+ class FeatherCmsTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, FeatherCms
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module FeatherCms
4
+ class PageTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata CHANGED
@@ -1,19 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feather_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Jiren Patel
8
+ - Jiren Patel, Prasad Surase, Pratik Shah
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-10 00:00:00.000000000 Z
12
+ date: 2012-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: &2152934440 !ruby/object:Gem::Requirement
15
+ name: rails
16
+ requirement: &2161924400 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.5
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2161924400
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &2161923920 !ruby/object:Gem::Requirement
17
28
  none: false
18
29
  requirements:
19
30
  - - ! '>='
@@ -21,28 +32,43 @@ dependencies:
21
32
  version: '0'
22
33
  type: :development
23
34
  prerelease: false
24
- version_requirements: *2152934440
35
+ version_requirements: *2161923920
25
36
  description: Lightweight do it youself cms
26
37
  email:
27
- - jiren@joshsoftware.com
38
+ - jiren@joshsoftware.com, prasad@joshsoftware.com, pratik@joshsoftware.com
28
39
  executables: []
29
40
  extensions: []
30
41
  extra_rdoc_files: []
31
42
  files:
32
- - .gitignore
33
- - Gemfile
34
- - README.md
35
- - Rakefile
36
- - feather_cms.gemspec
37
- - lib/feather_cms.rb
43
+ - app/assets/images/feather_cms/images/edit.png
44
+ - app/assets/images/feather_cms/images/fullscreen.png
45
+ - app/assets/images/feather_cms/images/preview.png
46
+ - app/assets/javascripts/feather_cms/application.js
47
+ - app/assets/javascripts/feather_cms/editor.js
48
+ - app/assets/javascripts/feather_cms/epiceditor.js
49
+ - app/assets/javascripts/feather_cms/epiceditor.min.js
50
+ - app/assets/stylesheets/feather_cms/application.css.sass
51
+ - app/assets/stylesheets/feather_cms/bootstrap.css
52
+ - app/assets/stylesheets/feather_cms/themes/base/epiceditor.css
53
+ - app/assets/stylesheets/feather_cms/themes/editor/epic-dark.css
54
+ - app/assets/stylesheets/feather_cms/themes/editor/epic-light.css
55
+ - app/assets/stylesheets/feather_cms/themes/preview/github.css
56
+ - app/assets/stylesheets/feather_cms/themes/preview/preview-dark.css
57
+ - app/controllers/feather_cms/application_controller.rb
58
+ - app/controllers/feather_cms/pages_controller.rb
59
+ - app/helpers/feather_cms/application_helper.rb
60
+ - app/models/feather_cms/page.rb
61
+ - app/views/feather_cms/pages/_form.html.haml
62
+ - app/views/feather_cms/pages/edit.html.haml
63
+ - app/views/feather_cms/pages/index.html.haml
64
+ - app/views/feather_cms/pages/new.html.haml
65
+ - app/views/layouts/feather_layout.html.haml
66
+ - config/routes.rb
38
67
  - lib/feather_cms/config.rb
39
- - lib/feather_cms/model.rb
40
- - lib/feather_cms/railtie.rb
41
- - lib/feather_cms/template_cache.rb
68
+ - lib/feather_cms/engine.rb
42
69
  - lib/feather_cms/version.rb
43
- - lib/generators/feather_cms/USAGE
70
+ - lib/feather_cms.rb
44
71
  - lib/generators/feather_cms/feather_cms_generator.rb
45
- - lib/generators/feather_cms/templates/bootstrap.css
46
72
  - lib/generators/feather_cms/templates/codemirror/codemirror.css
47
73
  - lib/generators/feather_cms/templates/codemirror/codemirror.js
48
74
  - lib/generators/feather_cms/templates/codemirror/feather_cms.js
@@ -62,14 +88,46 @@ files:
62
88
  - lib/generators/feather_cms/templates/codemirror/util/searchcursor.js
63
89
  - lib/generators/feather_cms/templates/codemirror/util/simple-hint.css
64
90
  - lib/generators/feather_cms/templates/codemirror/util/simple-hint.js
65
- - lib/generators/feather_cms/templates/controller.rb
66
- - lib/generators/feather_cms/templates/form.html.erb
67
- - lib/generators/feather_cms/templates/helper.rb
68
- - lib/generators/feather_cms/templates/index.html.erb
69
91
  - lib/generators/feather_cms/templates/initializer.rb
70
- - lib/generators/feather_cms/templates/layout.html.erb
71
92
  - lib/generators/feather_cms/templates/migration.rb
72
- - lib/generators/feather_cms/templates/model.rb
93
+ - lib/generators/feather_cms/USAGE
94
+ - lib/tasks/feather_cms_tasks.rake
95
+ - MIT-LICENSE
96
+ - Rakefile
97
+ - README.rdoc
98
+ - test/dummy/app/assets/javascripts/application.js
99
+ - test/dummy/app/assets/stylesheets/application.css
100
+ - test/dummy/app/controllers/application_controller.rb
101
+ - test/dummy/app/helpers/application_helper.rb
102
+ - test/dummy/app/views/layouts/application.html.erb
103
+ - test/dummy/config/application.rb
104
+ - test/dummy/config/boot.rb
105
+ - test/dummy/config/database.yml
106
+ - test/dummy/config/environment.rb
107
+ - test/dummy/config/environments/development.rb
108
+ - test/dummy/config/environments/production.rb
109
+ - test/dummy/config/environments/test.rb
110
+ - test/dummy/config/initializers/backtrace_silencers.rb
111
+ - test/dummy/config/initializers/inflections.rb
112
+ - test/dummy/config/initializers/mime_types.rb
113
+ - test/dummy/config/initializers/secret_token.rb
114
+ - test/dummy/config/initializers/session_store.rb
115
+ - test/dummy/config/initializers/wrap_parameters.rb
116
+ - test/dummy/config/locales/en.yml
117
+ - test/dummy/config/routes.rb
118
+ - test/dummy/config.ru
119
+ - test/dummy/public/404.html
120
+ - test/dummy/public/422.html
121
+ - test/dummy/public/500.html
122
+ - test/dummy/public/favicon.ico
123
+ - test/dummy/Rakefile
124
+ - test/dummy/README.rdoc
125
+ - test/dummy/script/rails
126
+ - test/feather_cms_test.rb
127
+ - test/fixtures/feather_cms/pages.yml
128
+ - test/integration/navigation_test.rb
129
+ - test/test_helper.rb
130
+ - test/unit/feather_cms/page_test.rb
73
131
  homepage: ''
74
132
  licenses: []
75
133
  post_install_message:
@@ -82,16 +140,55 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
140
  - - ! '>='
83
141
  - !ruby/object:Gem::Version
84
142
  version: '0'
143
+ segments:
144
+ - 0
145
+ hash: -3891901379387416045
85
146
  required_rubygems_version: !ruby/object:Gem::Requirement
86
147
  none: false
87
148
  requirements:
88
149
  - - ! '>='
89
150
  - !ruby/object:Gem::Version
90
151
  version: '0'
152
+ segments:
153
+ - 0
154
+ hash: -3891901379387416045
91
155
  requirements: []
92
- rubyforge_project: feather_cms
156
+ rubyforge_project:
93
157
  rubygems_version: 1.8.10
94
158
  signing_key:
95
159
  specification_version: 3
96
160
  summary: Lightweight do it youself cms
97
- test_files: []
161
+ test_files:
162
+ - test/dummy/app/assets/javascripts/application.js
163
+ - test/dummy/app/assets/stylesheets/application.css
164
+ - test/dummy/app/controllers/application_controller.rb
165
+ - test/dummy/app/helpers/application_helper.rb
166
+ - test/dummy/app/views/layouts/application.html.erb
167
+ - test/dummy/config/application.rb
168
+ - test/dummy/config/boot.rb
169
+ - test/dummy/config/database.yml
170
+ - test/dummy/config/environment.rb
171
+ - test/dummy/config/environments/development.rb
172
+ - test/dummy/config/environments/production.rb
173
+ - test/dummy/config/environments/test.rb
174
+ - test/dummy/config/initializers/backtrace_silencers.rb
175
+ - test/dummy/config/initializers/inflections.rb
176
+ - test/dummy/config/initializers/mime_types.rb
177
+ - test/dummy/config/initializers/secret_token.rb
178
+ - test/dummy/config/initializers/session_store.rb
179
+ - test/dummy/config/initializers/wrap_parameters.rb
180
+ - test/dummy/config/locales/en.yml
181
+ - test/dummy/config/routes.rb
182
+ - test/dummy/config.ru
183
+ - test/dummy/public/404.html
184
+ - test/dummy/public/422.html
185
+ - test/dummy/public/500.html
186
+ - test/dummy/public/favicon.ico
187
+ - test/dummy/Rakefile
188
+ - test/dummy/README.rdoc
189
+ - test/dummy/script/rails
190
+ - test/feather_cms_test.rb
191
+ - test/fixtures/feather_cms/pages.yml
192
+ - test/integration/navigation_test.rb
193
+ - test/test_helper.rb
194
+ - test/unit/feather_cms/page_test.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in feather_cms.gemspec
4
- gemspec
data/feather_cms.gemspec DELETED
@@ -1,24 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "feather_cms/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "feather_cms"
7
- s.version = FeatherCms::VERSION
8
- s.authors = ["Jiren Patel"]
9
- s.email = ["jiren@joshsoftware.com"]
10
- s.homepage = ""
11
- s.summary = %q{Lightweight do it youself cms}
12
- s.description = %q{Lightweight do it youself cms}
13
-
14
- s.rubyforge_project = "feather_cms"
15
-
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
20
-
21
- # specify any dependencies here; for example:
22
- s.add_development_dependency "rspec"
23
- # s.add_runtime_dependency "rest-client"
24
- end
@@ -1,59 +0,0 @@
1
- module FeatherCms
2
- module Model
3
- module ClassMethods
4
- def template_content_field(name)
5
- _cms_content_fields_ << name
6
- return unless Config.template_store_type == :file
7
-
8
- attr_accessor name.to_sym
9
-
10
- class_eval <<-METHOD, __FILE__, __LINE__ + 1
11
- def #{name}
12
- @#{name} || _cms_content(:#{name})
13
- end
14
- METHOD
15
-
16
- class_eval <<-METHOD, __FILE__, __LINE__ + 1
17
- def #{name}_changed?
18
- @#{name} != _cms_content(:#{name})
19
- end
20
- METHOD
21
- end
22
-
23
- def _cms_content_fields_
24
- @_cms_content_fields_ ||= []
25
- end
26
-
27
- def define_feather_cms_callbacks
28
- after_destroy { |template|
29
- self.class._cms_content_fields_.each do |f|
30
- TemplateCache.delete_file(_template_path(f))
31
- end
32
- }
33
-
34
- after_save { |template|
35
- self.class._cms_content_fields_.each do |f|
36
- TemplateCache.write_to_file_and_cache(send(f), template_name(f))
37
- end
38
- }
39
- end
40
- end
41
-
42
- module InstanceMethods
43
-
44
- def template_name(field_name)
45
- "#{self.class.name.downcase}_#{field_name}_#{self.id}.#{Config.template_extenstion}"
46
- end
47
-
48
- def _template_path(field)
49
- File.join([Config.template_store_path, template_name(file)])
50
- end
51
-
52
- def _cms_content(field)
53
- return nil if self.id.nil?
54
- TemplateCache.cache_file(template_name(field))
55
- end
56
-
57
- end
58
- end
59
- end
@@ -1,13 +0,0 @@
1
- require 'rails'
2
-
3
- module FeatherCms
4
- module Railtie
5
- class Railtie < ::Rails::Railtie
6
- if ::Rails.version.to_f >= 3.1
7
- config.before_configuration do |app|
8
- app.config.assets.paths << Rails.root.join("app", "assets", "codemirror")
9
- end
10
- end
11
- end
12
- end
13
- end