trusty-cms 1.0.1 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/.gitignore +1 -0
  2. data/INSTALL.md +12 -5
  3. data/bin/trusty_cms +1 -2
  4. data/bin/trusty_test +3 -0
  5. data/lib/generators/language_extension/templates/tasks.rake +1 -1
  6. data/lib/generators/trusty_cms/USAGE +8 -0
  7. data/lib/generators/trusty_cms/templates/Rakefile.erb +7 -0
  8. data/lib/generators/trusty_cms/templates/application.rb.erb +151 -0
  9. data/lib/generators/trusty_cms/templates/boot.rb.erb +9 -0
  10. data/lib/generators/trusty_cms/templates/compass.rb.erb +1 -0
  11. data/lib/generators/trusty_cms/templates/config.ru.erb +4 -0
  12. data/lib/generators/trusty_cms/templates/database.yml.erb +28 -0
  13. data/lib/generators/trusty_cms/templates/environment.rb.erb +5 -0
  14. data/lib/generators/trusty_cms/templates/environments/development.rb.erb +24 -0
  15. data/lib/generators/trusty_cms/templates/environments/production.rb.erb +26 -0
  16. data/lib/generators/trusty_cms/templates/environments/test.rb.erb +35 -0
  17. data/lib/generators/trusty_cms/templates/initializers/secret_token.rb.erb +13 -0
  18. data/lib/generators/trusty_cms/templates/initializers/session_store.rb.erb +8 -0
  19. data/lib/generators/trusty_cms/templates/initializers/trusty_cms_config.rb.erb +16 -0
  20. data/lib/generators/trusty_cms/templates/preinitializer.rb.erb +18 -0
  21. data/lib/generators/trusty_cms/templates/routes.rb.erb +1 -0
  22. data/lib/generators/trusty_cms/trusty_cms_generator.rb +33 -0
  23. data/lib/trusty_cms.rb +3 -3
  24. data/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
  25. data/tmp/cache/85C/FA0/TrustyCms.cache_mtime +0 -0
  26. metadata +21 -20
  27. data/vendor/plugins/rails_upgrade/MIT-LICENSE +0 -20
  28. data/vendor/plugins/rails_upgrade/README.rdoc +0 -26
  29. data/vendor/plugins/rails_upgrade/Rakefile +0 -22
  30. data/vendor/plugins/rails_upgrade/init.rb +0 -2
  31. data/vendor/plugins/rails_upgrade/install.rb +0 -38
  32. data/vendor/plugins/rails_upgrade/lib/application_checker.rb +0 -506
  33. data/vendor/plugins/rails_upgrade/lib/gemfile_generator.rb +0 -95
  34. data/vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb +0 -59
  35. data/vendor/plugins/rails_upgrade/lib/rails_upgrade.rb +0 -0
  36. data/vendor/plugins/rails_upgrade/lib/routes_upgrader.rb +0 -344
  37. data/vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake +0 -79
  38. data/vendor/plugins/rails_upgrade/test/application_checker_test.rb +0 -344
  39. data/vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb +0 -72
  40. data/vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb +0 -63
  41. data/vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb +0 -218
  42. data/vendor/plugins/rails_upgrade/test/test_helper.rb +0 -5
  43. data/vendor/plugins/rails_upgrade/uninstall.rb +0 -1
data/.gitignore CHANGED
@@ -23,4 +23,5 @@ radiant-*.gem
23
23
  vendor/plugins/rails_upgrade
24
24
  trusty-cms.box
25
25
  .vagrant
26
+ *.gem
26
27
  .sass-cache
data/INSTALL.md CHANGED
@@ -2,9 +2,16 @@
2
2
 
3
3
  From within the directory containing your TrustyCms instance:
4
4
 
5
- 1. Decide which database you want to use. SQLite is configured by default and
6
- the easiest way to get started. If you want to use another database:
7
- - Enable your preferred database adapter in the Gemfile
8
- - Run `bundle update`
5
+ 1. Create a new Rails 3 application (i.e. `rails new [project_name]`)
6
+
7
+ 2. Replace most of your gemfile with these gems:
8
+ - `gem "trusty-cms", "~>1.1.0`
9
+ - `gem "mysql", "~> 2.9.1"`
10
+
11
+ 3. Run `bundle install`
12
+
13
+ 4. Run the Trusty CMS generator to get the project into shape: `rails g trusty_cms [project_name]`.
14
+ - This will ask you if you want to replace a number of existing files (like application.rb); reply Y to all.
15
+
16
+ 5. Run `bundle exec rake db:create`, then `bundle exec rake db:bootstrap`.
9
17
 
10
- 2. Run `bundle exec rake production db:bootstrap` to initialize the database
data/bin/trusty_cms CHANGED
@@ -49,5 +49,4 @@ class Rails::Generator::Base
49
49
 
50
50
  end
51
51
 
52
- Rails::Generator::Base.use_application_sources!
53
- Rails::Generator::Scripts::Generate.new.run(ARGV, :generator => 'instance')
52
+ Rails::Generators.invoke("trusty_cms", [ARGV])
data/bin/trusty_test ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts "face"
@@ -13,7 +13,7 @@ namespace :radiant do
13
13
  end
14
14
 
15
15
  desc "Copies public assets of the <%= localization_name %> language pack to the instance public/ directory."
16
- task :update => :environment do
16
+ task :update => :environments do
17
17
  is_svn_or_dir = proc {|path| path =~ /\.svn/ || File.directory?(path) }
18
18
  puts "Copying assets from <%= class_name %>"
19
19
  Dir[<%= class_name %>.root + "/public/**/*"].reject(&is_svn_or_dir).each do |file|
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Generates a new Trusty CMS project.
3
+
4
+ Example:
5
+ rails generate trusty_cms [PROJECT NAME]
6
+
7
+ This will create:
8
+ A new Trusty CMS site with the name given in [PROJECT NAME]
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+ STDOUT.sync = true
7
+ TrustyCms::Application.load_tasks
@@ -0,0 +1,151 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+ require 'trusty_cms'
5
+ require 'ckeditor'
6
+ require 'radius'
7
+ require 'trusty_cms/extension_loader'
8
+ require 'trusty_cms/initializer'
9
+ require 'string_extensions/string_extensions'
10
+ require 'active_record_extensions/active_record_extensions'
11
+ require 'configuration_extensions/configuration_extensions'
12
+ require 'compass'
13
+ require 'rack/cache'
14
+
15
+ if defined?(Bundler)
16
+ # If you precompile assets before deploying to production, use this line
17
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
18
+ # If you want your assets lazily compiled in production, use this line
19
+ # Bundler.require(:default, :assets, Rails.env)
20
+ end
21
+
22
+ module TrustyCms
23
+ class Application < Rails::Application
24
+
25
+ attr_accessor :captcha_public_key, :captcha_private_key
26
+
27
+ include TrustyCms::Initializer
28
+
29
+ config.autoload_paths += %W(#{TRUSTY_CMS_ROOT}/lib)
30
+
31
+ Sass.load_paths << Compass::Frameworks['compass'].stylesheets_directory
32
+
33
+ # Initialize extension paths
34
+ config.initialize_extension_paths
35
+ extension_loader = ExtensionLoader.instance {|l| l.initializer = self }
36
+ extension_loader.paths(:load).reverse_each do |path, value|
37
+ config.autoload_paths.unshift path
38
+ $LOAD_PATH.unshift path
39
+ end
40
+ # config.add_plugin_paths(extension_loader.paths(:plugin))
41
+ radiant_locale_paths = Dir[File.join(TRUSTY_CMS_ROOT, 'config', 'locales', '*.{rb,yml}')]
42
+ config.i18n.load_path = radiant_locale_paths + extension_loader.paths(:locale)
43
+
44
+ config.encoding = 'utf-8'
45
+ # Skip frameworks you're not going to use (only works if using vendor/rails).
46
+ # To use Rails without a database, you must remove the Active Record framework
47
+ # config.frameworks -= [ :action_mailer ]
48
+
49
+ # Only load the extensions named here, in the order given. By default all
50
+ # extensions in vendor/extensions are loaded, in alphabetical order. :all
51
+ # can be used as a placeholder for all extensions not explicitly named.
52
+
53
+ # An example of how to add extensions:
54
+ # config.extensions = [ :snippets, :clipped, :layouts, :reorder, :multi_site, :rad_social]
55
+
56
+ config.extensions = [ ]
57
+
58
+ # By default, only English translations are loaded. Remove any of these from
59
+ # the list below if you'd like to provide any of the additional options
60
+ # config.ignore_extensions []
61
+
62
+ config.captcha_public_key = "6LcbvwsAAAAAACQjq3ZNqqBuDIHUR6gUthjhT9_Z"
63
+ config.captcha_private_key = "6LcbvwsAAAAAALftkG9kwwqbPCeThnSOyn-TK8n5"
64
+
65
+ # Your secret key for verifying cookie session data integrity.
66
+ # If you change this key, all old sessions will become invalid!
67
+ # Make sure the secret is at least 30 characters and all random,
68
+ # no regular words or you'll be exposed to dictionary attacks.
69
+
70
+ # Comment out this line if you want to turn off all caching, or
71
+ # add options to modify the behavior. In the majority of deployment
72
+ # scenarios it is desirable to leave TrustyCms's cache enabled and in
73
+ # the default configuration.
74
+ #
75
+ # Additional options:
76
+ # :use_x_sendfile => true
77
+ # Turns on X-Sendfile support for Apache with mod_xsendfile or lighttpd.
78
+ # :use_x_accel_redirect => '/some/virtual/path'
79
+ # Turns on X-Accel-Redirect support for nginx. You have to provide
80
+ # a path that corresponds to a virtual location in your webserver
81
+ # configuration.
82
+ # :entitystore => "radiant:tmp/cache/entity"
83
+ # Sets the entity store type (preceding the colon) and storage
84
+ # location (following the colon, relative to Rails.root).
85
+ # We recommend you use radiant: since this will enable manual expiration.
86
+ # :metastore => "radiant:tmp/cache/meta"
87
+ # Sets the meta store type and storage location. We recommend you use
88
+ # radiant: since this will enable manual expiration and acceleration headers.
89
+
90
+
91
+ # TODO: We're not sure this is actually working, but we can't really test this until the app initializes.
92
+ config.middleware.use Rack::Cache,
93
+ :private_headers => ['Authorization'],
94
+ :entitystore => "radiant:tmp/cache/entity",
95
+ :metastore => "radiant:tmp/cache/meta",
96
+ :verbose => false,
97
+ :allow_reload => false,
98
+ :allow_revalidate => false
99
+ # TODO: There's got to be a better place for this, but in order for assets to work fornow, we need ConditionalGet
100
+ # TODO: Workaround from: https://github.com/rtomayko/rack-cache/issues/80
101
+ config.middleware.insert_before(Rack::ConditionalGet, Rack::Cache)
102
+ config.assets.enabled = true
103
+
104
+
105
+
106
+ config.filter_parameters += [:password, :password_confirmation]
107
+
108
+ # Use the database for sessions instead of the cookie-based default,
109
+ # which shouldn't be used to store highly confidential information
110
+ # (create the session table with 'rake db:sessions:create')
111
+ # config.action_controller.session_store = :cookie_store DEPRECATED
112
+
113
+ # Activate observers that should always be running
114
+ config.active_record.observers = :user_action_observer
115
+
116
+ # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
117
+ # All files from config/locales/*.rb,yml are added automatically.
118
+ # config.i18n.load_path << Dir[File.join(Rails.root, 'my', 'locales', '*.{rb,yml}')]
119
+ # config.i18n.default_locale = :'en'
120
+
121
+ # Make Active Record use UTC-base instead of local time
122
+ config.time_zone = 'UTC'
123
+
124
+ # Set the default field error proc
125
+ config.action_view.field_error_proc = Proc.new do |html, instance|
126
+ if html !~ /label/
127
+ %{<span class="error-with-fieldxxxx">#{html} <span class="error">#{[instance.error_message].flatten.first}</span></span>}.html_safe
128
+ else
129
+ html
130
+ end
131
+ end
132
+
133
+ config.after_initialize do
134
+ extension_loader.load_extensions
135
+ extension_loader.load_extension_initalizers
136
+
137
+ #Dir["#{TRUSTY_CMS_ROOT}/config/initializers/**/*.rb"].sort.each do |initializer|
138
+ # load(initializer)
139
+ #end
140
+
141
+ extension_loader.activate_extensions # also calls initialize_views
142
+ #config.add_controller_paths(extension_loader.paths(:controller))
143
+ #config.add_eager_load_paths(extension_loader.paths(:eager_load))
144
+
145
+ # Add new inflection rules using the following format:
146
+ ActiveSupport::Inflector.inflections do |inflect|
147
+ inflect.uncountable 'config'
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ # Don't change this file!
3
+ # Configure your app in config/environment.rb and config/environments/*.rb
4
+
5
+
6
+ # Set up gems listed in the Gemfile.
7
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
8
+
9
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1 @@
1
+ additional_import_paths = ["app/assets/stylesheets/", "app/assets/stylesheets/admin"]
@@ -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 TrustyCms::Application
@@ -0,0 +1,28 @@
1
+ #
2
+ # This is only an example configuration. Please see the Rails
3
+ # documentation for more details.
4
+ #
5
+
6
+ development:
7
+ adapter: mysql
8
+ database: <%= project_name%>_blank_dev
9
+ username:
10
+ password:
11
+ host: localhost
12
+
13
+ test: &TEST
14
+ adapter: mysql
15
+ database: <%= project_name%>_blank_test
16
+ username:
17
+ password:
18
+ host:
19
+
20
+ production:
21
+ adapter: mysql
22
+ database: <%= project_name%>_blank_live
23
+ username:
24
+ password:
25
+ socket: /tmp/mysql.sock
26
+
27
+ cucumber:
28
+ <<: *TEST
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ TrustyCms::Application.initialize!
@@ -0,0 +1,24 @@
1
+ TrustyCms::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and caching is turned off
13
+ config.consider_all_requests_local = true
14
+ #config.action_view.debug_rjs = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+ config.domain = ".local"
20
+
21
+ config.after_initialize do
22
+ SiteController.cache_timeout = 0.minutes
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ TrustyCms::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The production environment is meant for finished, "live" apps.
5
+ # Code is not reloaded between requests
6
+ config.cache_classes = true
7
+
8
+ # Use a different logger for distributed setups
9
+ # config.logger = SyslogLogger.new
10
+
11
+
12
+ # Full error reports are disabled and caching is on
13
+ config.action_controller.consider_all_requests_local = false
14
+ config.action_controller.perform_caching = true
15
+
16
+ # Enable serving of images, stylesheets, and javascripts from an asset server
17
+ # config.action_controller.asset_host = "http://assets.example.com"
18
+
19
+ # Disable delivery errors if you bad email addresses should just be ignored
20
+ # config.action_mailer.raise_delivery_errors = false
21
+
22
+ # Cache your content for a longer time, the default is 5.minutes
23
+ # config.after_initialize do
24
+ # SiteController.cache_timeout = 12.hours
25
+ # end
26
+ end
@@ -0,0 +1,35 @@
1
+ TrustyCms::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.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
+ # ensure test extensions are loaded
11
+ # test_extension_dir = File.join(File.expand_path(RADIANT_ROOT), 'test', 'fixtures', 'extensions')
12
+ # config.extension_paths.unshift test_extension_dir
13
+ # config.extension_paths.uniq!
14
+ # if !config.extensions.include?(:all)
15
+ # config.extensions.concat(Dir["#{test_extension_dir}/*"].sort.map {|x| File.basename(x).sub(/^\d+_/,'')})
16
+ # config.extensions.uniq!
17
+ # end
18
+
19
+ # Log error messages when you accidentally call methods on nil.
20
+ config.whiny_nils = true
21
+ config.domain = ".local"
22
+
23
+ # Show full error reports and disable caching
24
+ config.action_controller.consider_all_requests_local = true
25
+ config.action_controller.perform_caching = false
26
+
27
+ # Disable request forgery protection in test environment
28
+ config.action_controller.allow_forgery_protection = false
29
+
30
+ # Tell ActionMailer not to deliver emails to the real world.
31
+ # The :test delivery method accumulates sent emails in the
32
+ # ActionMailer::Base.deliveries array.
33
+ config.action_mailer.delivery_method = :test
34
+ end
35
+
@@ -0,0 +1,13 @@
1
+ # config/initializers/secret_token.rb
2
+
3
+ # Be sure to restart your server when you modify this file.
4
+
5
+ # Your secret key for verifying the integrity of signed cookies.
6
+ # If you change this key, all old signed cookies will become invalid!
7
+ # Make sure the secret is at least 30 characters and all random,
8
+ # no regular words or you'll be exposed to dictionary attacks.
9
+ TrustyCms::Application.config.secret_token = if Rails.env.development? or Rails.env.test?
10
+ ('x' * 30) # meets minimum requirement of 30 chars long
11
+ else
12
+ ENV['SECRET_TOKEN']
13
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ TrustyCms::Application.config.session_store :cookie_store, :key => "_<%= project_name %>_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
+ # TestTrusty::Application.config.session_store :active_record_store
@@ -0,0 +1,16 @@
1
+ TrustyCms::Application.config do |config|
2
+ # this file can be used to set defaults, options and validation rules for local configuration settings.
3
+ # core settings are defined in RADIANT_ROOT/config/initializers/radiant_config.rb and by the corresponding
4
+ # file in each radiant extension. You probably don't need to add anything here, but in case you do:
5
+
6
+ # config.define 'site.show_footer?', :default => "true"
7
+ # config.define 'S3.bucket', :default => "key", :allow_change => false
8
+
9
+ # you can also use this file to set config values (by environment, for example):
10
+
11
+ # if RAILS_ENV == 'production'
12
+ # config['cache.duration'] = 86400
13
+ # else
14
+ # config['cache.duration'] = 0
15
+ # end
16
+ end
@@ -0,0 +1,18 @@
1
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
2
+ # Lessens Debians need to edit.
3
+ require "rubygems" rescue nil
4
+
5
+ # Since Bundler is not really a 'must have' for Rails development just send off
6
+ # a warning and see if the sytem continues to load, the user can optionally use
7
+ # RADIANT_NOWARNINGS to disable it.
8
+
9
+ if File.file?(ENV['BUNDLE_GEMFILE'])
10
+ begin
11
+ require 'bundler/setup'
12
+ rescue LoadError
13
+ unless ENV['RADIANT_NOWARNINGS'] == true
14
+ $stderr.puts 'WARNING: It seems you do not have Bundler installed.'
15
+ $stderr.puts 'WARNING: You can install it by doing `gem install bundler`'
16
+ end
17
+ end
18
+ end
@@ -0,0 +1 @@
1
+ load File.join(TRUSTY_CMS_ROOT, "config", "routes.rb")
@@ -0,0 +1,33 @@
1
+ class TrustyCmsGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+ argument :project_name, type: :string, default: "trusty"
4
+
5
+ def generate_config
6
+
7
+ template "Rakefile.erb", "Rakefile"
8
+ template "config.ru.erb", "config.ru"
9
+
10
+ template "boot.rb.erb", "config/boot.rb"
11
+ template "environment.rb.erb", "config/environment.rb"
12
+ template "application.rb.erb", "config/application.rb"
13
+ template "compass.rb.erb", "config/compass.rb"
14
+ template "preinitializer.rb.erb", "config/preinitializer.rb"
15
+ template "routes.rb.erb", "config/routes.rb"
16
+ template "database.yml.erb", "config/database.yml"
17
+
18
+ template "environments/development.rb.erb", "config/environments/development.rb"
19
+ template "environments/test.rb.erb", "config/environments/test.rb"
20
+ template "environments/production.rb.erb", "config/environments/production.rb"
21
+
22
+ template "initializers/trusty_cms_config.rb.erb", "config/initializers/trusty_cms_config.rb"
23
+ template "initializers/secret_token.rb.erb", "config/initializers/secret_token.rb"
24
+ template "initializers/session_store.rb.erb", "config/initializers/session_store.rb"
25
+
26
+ remove_file 'app/controllers/application_controller.rb'
27
+ remove_file 'app/helpers/application_helper.rb'
28
+ remove_file 'app/assets/javascripts/application.js'
29
+ remove_file 'app/views/layouts/application.html.erb'
30
+
31
+ end
32
+
33
+ end
data/lib/trusty_cms.rb CHANGED
@@ -4,9 +4,9 @@ unless defined? TrustyCms::Version
4
4
  module TrustyCms
5
5
  module Version
6
6
  Major = '1'
7
- Minor = '0'
8
- Tiny = '1'
9
- Patch = nil # set to nil for normal release
7
+ Minor = '1'
8
+ Tiny = '0'
9
+ Patch = 'rc1' # set to nil for normal release
10
10
 
11
11
  class << self
12
12
  def to_s
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.1.0.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - TrustyCms CMS dev team
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-24 00:00:00.000000000 Z
12
+ date: 2014-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tzinfo
@@ -555,6 +555,7 @@ files:
555
555
  - app/views/site/show_page.html.haml
556
556
  - bin/ci/before_script
557
557
  - bin/trusty_cms
558
+ - bin/trusty_test
558
559
  - CHANGELOG.md
559
560
  - config/application.rb
560
561
  - config/boot.rb
@@ -699,6 +700,23 @@ files:
699
700
  - lib/generators/language_extension/templates/tasks.rake
700
701
  - lib/generators/language_extension/templates/test_helper.rb
701
702
  - lib/generators/language_extension/USAGE
703
+ - lib/generators/trusty_cms/templates/application.rb.erb
704
+ - lib/generators/trusty_cms/templates/boot.rb.erb
705
+ - lib/generators/trusty_cms/templates/compass.rb.erb
706
+ - lib/generators/trusty_cms/templates/config.ru.erb
707
+ - lib/generators/trusty_cms/templates/database.yml.erb
708
+ - lib/generators/trusty_cms/templates/environment.rb.erb
709
+ - lib/generators/trusty_cms/templates/environments/development.rb.erb
710
+ - lib/generators/trusty_cms/templates/environments/production.rb.erb
711
+ - lib/generators/trusty_cms/templates/environments/test.rb.erb
712
+ - lib/generators/trusty_cms/templates/initializers/secret_token.rb.erb
713
+ - lib/generators/trusty_cms/templates/initializers/session_store.rb.erb
714
+ - lib/generators/trusty_cms/templates/initializers/trusty_cms_config.rb.erb
715
+ - lib/generators/trusty_cms/templates/preinitializer.rb.erb
716
+ - lib/generators/trusty_cms/templates/Rakefile.erb
717
+ - lib/generators/trusty_cms/templates/routes.rb.erb
718
+ - lib/generators/trusty_cms/trusty_cms_generator.rb
719
+ - lib/generators/trusty_cms/USAGE
702
720
  - lib/inheritable_class_attributes.rb
703
721
  - lib/local_time.rb
704
722
  - lib/login_system.rb
@@ -851,23 +869,6 @@ files:
851
869
  - tmp/sass-cache/dc9647e96d50c02214aff50e88308a74bf56d1d7/_utilities.scssc
852
870
  - trusty_cms.gemspec
853
871
  - Vagrantfile
854
- - vendor/plugins/rails_upgrade/init.rb
855
- - vendor/plugins/rails_upgrade/install.rb
856
- - vendor/plugins/rails_upgrade/lib/application_checker.rb
857
- - vendor/plugins/rails_upgrade/lib/gemfile_generator.rb
858
- - vendor/plugins/rails_upgrade/lib/new_configuration_generator.rb
859
- - vendor/plugins/rails_upgrade/lib/rails_upgrade.rb
860
- - vendor/plugins/rails_upgrade/lib/routes_upgrader.rb
861
- - vendor/plugins/rails_upgrade/lib/tasks/rails_upgrade_tasks.rake
862
- - vendor/plugins/rails_upgrade/MIT-LICENSE
863
- - vendor/plugins/rails_upgrade/Rakefile
864
- - vendor/plugins/rails_upgrade/README.rdoc
865
- - vendor/plugins/rails_upgrade/test/application_checker_test.rb
866
- - vendor/plugins/rails_upgrade/test/gemfile_generator_test.rb
867
- - vendor/plugins/rails_upgrade/test/new_configuration_generator_test.rb
868
- - vendor/plugins/rails_upgrade/test/routes_upgrader_test.rb
869
- - vendor/plugins/rails_upgrade/test/test_helper.rb
870
- - vendor/plugins/rails_upgrade/uninstall.rb
871
872
  - .gitignore
872
873
  - public/.htaccess
873
874
  - log/.keep
@@ -1,20 +0,0 @@
1
- Copyright (c) 2010 Jeremy McAnally
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,26 +0,0 @@
1
- = rails-upgrade
2
-
3
- A simple battery of scripts for upgrading Rails app/checking them for required updates. This application should work on Rails 2.x and 3.0, with a focus on upgrading to 3.0.
4
-
5
- == Usage
6
-
7
- You need to install this plugin first:
8
-
9
- script/plugin install git://github.com/rails/rails_upgrade.git
10
-
11
- Then you can run its rake tasks to check your application:
12
-
13
- # Check your app for required upgrades
14
- rake rails:upgrade:check
15
-
16
- # Backup your likely modified files that might be overwritten by the generator
17
- rake rails:upgrade:backup
18
-
19
- # Generate a new route file
20
- rake rails:upgrade:routes
21
-
22
- # Generate a Gemfile from your config.gem directives
23
- rake rails:upgrade:gems
24
-
25
- # Generate code for a new config/application.rb from your environment.rb
26
- rake rails:upgrade:configuration
@@ -1,22 +0,0 @@
1
- require 'rake'
2
- require 'rake/testtask'
3
- require 'rake/rdoctask'
4
-
5
- desc 'Default: run unit tests.'
6
- task :default => :test
7
-
8
- Rake::TestTask.new do |t|
9
- t.libs << 'lib'
10
- t.libs << 'test'
11
- t.test_files = FileList['test/*_test.rb']
12
- t.verbose = true
13
- end
14
-
15
- desc 'Generate documentation for the rails_upgrade plugin.'
16
- Rake::RDocTask.new(:rdoc) do |rdoc|
17
- rdoc.rdoc_dir = 'rdoc'
18
- rdoc.title = 'Rails-upgrade'
19
- rdoc.options << '--line-numbers' << '--inline-source'
20
- rdoc.rdoc_files.include('README')
21
- rdoc.rdoc_files.include('lib/**/*.rb')
22
- end
@@ -1,2 +0,0 @@
1
- # Get long stack traces for easier debugging; you'll thank me later.
2
- Rails.backtrace_cleaner.remove_silencers! if Rails.respond_to?(:backtrace_cleaner)