enginex 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enginex.rb +1 -2
- metadata +3 -21
- data/test/enginex/1/demo_engine/lib/demo_engine.rb +0 -2
- data/test/enginex/1/demo_engine/spec/demo_engine_spec.rb +0 -7
- data/test/enginex/1/demo_engine/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/test/enginex/1/demo_engine/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/test/enginex/1/demo_engine/spec/dummy/config/application.rb +0 -46
- data/test/enginex/1/demo_engine/spec/dummy/config/boot.rb +0 -9
- data/test/enginex/1/demo_engine/spec/dummy/config/environment.rb +0 -5
- data/test/enginex/1/demo_engine/spec/dummy/config/environments/development.rb +0 -19
- data/test/enginex/1/demo_engine/spec/dummy/config/environments/production.rb +0 -42
- data/test/enginex/1/demo_engine/spec/dummy/config/environments/test.rb +0 -32
- data/test/enginex/1/demo_engine/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/enginex/1/demo_engine/spec/dummy/config/initializers/cookie_verification_secret.rb +0 -7
- data/test/enginex/1/demo_engine/spec/dummy/config/initializers/inflections.rb +0 -10
- data/test/enginex/1/demo_engine/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/test/enginex/1/demo_engine/spec/dummy/config/initializers/session_store.rb +0 -10
- data/test/enginex/1/demo_engine/spec/dummy/config/routes.rb +0 -58
- data/test/enginex/1/demo_engine/spec/integration/navigation_spec.rb +0 -9
- data/test/enginex/1/demo_engine/spec/spec_helper.rb +0 -28
data/lib/enginex.rb
CHANGED
@@ -7,7 +7,7 @@ require "rails/generators"
|
|
7
7
|
require "rails/generators/rails/app/app_generator"
|
8
8
|
|
9
9
|
class Enginex < Thor::Group
|
10
|
-
VERSION = "0.
|
10
|
+
VERSION = "0.5.0".freeze
|
11
11
|
|
12
12
|
include Thor::Actions
|
13
13
|
check_unknown_options!
|
@@ -85,7 +85,6 @@ end
|
|
85
85
|
remove_file "public/images/rails.png"
|
86
86
|
remove_file "public/index.html"
|
87
87
|
remove_file "public/robots.txt"
|
88
|
-
remove_file "Rakefile"
|
89
88
|
remove_file "README"
|
90
89
|
remove_file "test"
|
91
90
|
remove_file "vendor"
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 5
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.5.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Jos\xC3\xA9 Valim"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-07 00:00:00 +02:00
|
18
18
|
default_executable: enginex
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -130,23 +130,5 @@ signing_key:
|
|
130
130
|
specification_version: 3
|
131
131
|
summary: Creates a Rails 3 engine with Rakefile, Gemfile and running tests
|
132
132
|
test_files:
|
133
|
-
- test/enginex/1/demo_engine/lib/demo_engine.rb
|
134
|
-
- test/enginex/1/demo_engine/spec/demo_engine_spec.rb
|
135
|
-
- test/enginex/1/demo_engine/spec/dummy/app/controllers/application_controller.rb
|
136
|
-
- test/enginex/1/demo_engine/spec/dummy/app/helpers/application_helper.rb
|
137
|
-
- test/enginex/1/demo_engine/spec/dummy/config/application.rb
|
138
|
-
- test/enginex/1/demo_engine/spec/dummy/config/boot.rb
|
139
|
-
- test/enginex/1/demo_engine/spec/dummy/config/environment.rb
|
140
|
-
- test/enginex/1/demo_engine/spec/dummy/config/environments/development.rb
|
141
|
-
- test/enginex/1/demo_engine/spec/dummy/config/environments/production.rb
|
142
|
-
- test/enginex/1/demo_engine/spec/dummy/config/environments/test.rb
|
143
|
-
- test/enginex/1/demo_engine/spec/dummy/config/initializers/backtrace_silencers.rb
|
144
|
-
- test/enginex/1/demo_engine/spec/dummy/config/initializers/cookie_verification_secret.rb
|
145
|
-
- test/enginex/1/demo_engine/spec/dummy/config/initializers/inflections.rb
|
146
|
-
- test/enginex/1/demo_engine/spec/dummy/config/initializers/mime_types.rb
|
147
|
-
- test/enginex/1/demo_engine/spec/dummy/config/initializers/session_store.rb
|
148
|
-
- test/enginex/1/demo_engine/spec/dummy/config/routes.rb
|
149
|
-
- test/enginex/1/demo_engine/spec/integration/navigation_spec.rb
|
150
|
-
- test/enginex/1/demo_engine/spec/spec_helper.rb
|
151
133
|
- test/enginex_test.rb
|
152
134
|
- test/test_helper.rb
|
@@ -1,46 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require "active_model/railtie"
|
4
|
-
require "active_record/railtie"
|
5
|
-
require "action_controller/railtie"
|
6
|
-
require "action_view/railtie"
|
7
|
-
require "action_mailer/railtie"
|
8
|
-
|
9
|
-
Bundler.require
|
10
|
-
require "demo_engine"
|
11
|
-
|
12
|
-
module Dummy
|
13
|
-
class Application < Rails::Application
|
14
|
-
# Settings in config/environments/* take precedence over those specified here.
|
15
|
-
# Application configuration should go into files in config/initializers
|
16
|
-
# -- all .rb files in that directory are automatically loaded.
|
17
|
-
|
18
|
-
# Add additional load paths for your own custom dirs
|
19
|
-
# config.load_paths += %W( #{config.root}/extras )
|
20
|
-
|
21
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
-
# :all can be used as a placeholder for all plugins not explicitly named
|
23
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
-
|
25
|
-
# Activate observers that should always be running
|
26
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
-
|
28
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
-
|
32
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
-
# config.i18n.default_locale = :de
|
35
|
-
|
36
|
-
# Configure generators values. Many other options are available, be sure to check the documentation.
|
37
|
-
# config.generators do |g|
|
38
|
-
# g.orm :active_record
|
39
|
-
# g.template_engine :erb
|
40
|
-
# g.test_framework :test_unit, :fixture => true
|
41
|
-
# end
|
42
|
-
|
43
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
44
|
-
config.filter_parameters << :password
|
45
|
-
end
|
46
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
Dummy::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 disable caching
|
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
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
Dummy::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
|
-
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
11
|
-
|
12
|
-
# Specifies the header that your server uses for sending files
|
13
|
-
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
-
|
15
|
-
# For nginx:
|
16
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
-
|
18
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
-
# just comment this out and Rails will serve the files
|
20
|
-
|
21
|
-
# See everything in the log (default is :info)
|
22
|
-
# config.log_level = :debug
|
23
|
-
|
24
|
-
# Use a different logger for distributed setups
|
25
|
-
# config.logger = SyslogLogger.new
|
26
|
-
|
27
|
-
# Use a different cache store in production
|
28
|
-
# config.cache_store = :mem_cache_store
|
29
|
-
|
30
|
-
# Disable Rails's static asset server
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
-
|
37
|
-
# Disable delivery errors, bad email addresses will be ignored
|
38
|
-
# config.action_mailer.raise_delivery_errors = false
|
39
|
-
|
40
|
-
# Enable threaded mode
|
41
|
-
# config.threadsafe!
|
42
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
Dummy::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
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Disable request forgery protection in test environment
|
18
|
-
config.action_controller.allow_forgery_protection = false
|
19
|
-
|
20
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
21
|
-
# The :test delivery method accumulates sent emails in the
|
22
|
-
# ActionMailer::Base.deliveries array.
|
23
|
-
config.action_mailer.delivery_method = :test
|
24
|
-
|
25
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
26
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
27
|
-
# like if you have constraints or database-specific column types
|
28
|
-
# config.active_record.schema_format = :sql
|
29
|
-
|
30
|
-
# Remove show exceptions middleware from tests, so we always Ruby failures.
|
31
|
-
config.middleware.delete "ActionDispatch::ShowExceptions"
|
32
|
-
end
|
@@ -1,7 +0,0 @@
|
|
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!
|
data/test/enginex/1/demo_engine/spec/dummy/config/initializers/cookie_verification_secret.rb
DELETED
@@ -1,7 +0,0 @@
|
|
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
|
-
Rails.application.config.cookie_secret = '29f0bc895a00b0101744606e9d08d58f20719a2a49fb965eeb1ebd906c3bfae71dc8e7b555f1f064a854d5f3f24905d61a5d150d27db31a97b8eb6696b04d2f3'
|
@@ -1,10 +0,0 @@
|
|
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
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
Rails.application.config.session_store :cookie_store, {
|
4
|
-
:key => '_dummy_session',
|
5
|
-
}
|
6
|
-
|
7
|
-
# Use the database for sessions instead of the cookie-based default,
|
8
|
-
# which shouldn't be used to store highly confidential information
|
9
|
-
# (create the session table with "rake db:sessions:create")
|
10
|
-
# Rails.application.config.session_store :active_record_store
|
@@ -1,58 +0,0 @@
|
|
1
|
-
Dummy::Application.routes.draw do |map|
|
2
|
-
# The priority is based upon order of creation:
|
3
|
-
# first created -> highest priority.
|
4
|
-
|
5
|
-
# Sample of regular route:
|
6
|
-
# match 'products/:id' => 'catalog#view'
|
7
|
-
# Keep in mind you can assign values other than :controller and :action
|
8
|
-
|
9
|
-
# Sample of named route:
|
10
|
-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
-
|
13
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
-
# resources :products
|
15
|
-
|
16
|
-
# Sample resource route with options:
|
17
|
-
# resources :products do
|
18
|
-
# member do
|
19
|
-
# get :short
|
20
|
-
# post :toggle
|
21
|
-
# end
|
22
|
-
#
|
23
|
-
# collection do
|
24
|
-
# get :sold
|
25
|
-
# end
|
26
|
-
# end
|
27
|
-
|
28
|
-
# Sample resource route with sub-resources:
|
29
|
-
# resources :products do
|
30
|
-
# resources :comments, :sales
|
31
|
-
# resource :seller
|
32
|
-
# end
|
33
|
-
|
34
|
-
# Sample resource route with more complex sub-resources
|
35
|
-
# resources :products do
|
36
|
-
# resources :comments
|
37
|
-
# resources :sales do
|
38
|
-
# get :recent, :on => :collection
|
39
|
-
# end
|
40
|
-
# end
|
41
|
-
|
42
|
-
# Sample resource route within a namespace:
|
43
|
-
# namespace :admin do
|
44
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
-
# # (app/controllers/admin/products_controller.rb)
|
46
|
-
# resources :products
|
47
|
-
# end
|
48
|
-
|
49
|
-
# You can have the root of your site routed with "root"
|
50
|
-
# just remember to delete public/index.html.
|
51
|
-
# root :to => "welcome#index"
|
52
|
-
|
53
|
-
# See how all your routes lay out with "rake routes"
|
54
|
-
|
55
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
-
# match ':controller(/:action(/:id(.:format)))'
|
58
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Configure Rails Envinronment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
|
4
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
-
require "rails/test_help"
|
6
|
-
|
7
|
-
ActionMailer::Base.delivery_method = :test
|
8
|
-
ActionMailer::Base.perform_deliveries = true
|
9
|
-
ActionMailer::Base.default_url_options[:host] = "test.com"
|
10
|
-
|
11
|
-
Rails.backtrace_cleaner.remove_silencers!
|
12
|
-
|
13
|
-
require "capybara/rails"
|
14
|
-
Capybara.default_driver = :rack_test
|
15
|
-
|
16
|
-
require 'rspec/rails'
|
17
|
-
|
18
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
19
|
-
|
20
|
-
Rspec.configure do |config|
|
21
|
-
# Remove this line if you don't want Rspec's should and should_not
|
22
|
-
# methods or matchers
|
23
|
-
require 'rspec/expectations'
|
24
|
-
config.include Rspec::Matchers
|
25
|
-
|
26
|
-
# == Mock Framework
|
27
|
-
config.mock_with :rspec
|
28
|
-
end
|