sass-rails 3.2.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +1 -1
- data/README.md +103 -0
- data/lib/sass/rails/importer.rb +3 -120
- data/lib/sass/rails/logger.rb +3 -19
- data/lib/sass/rails/railtie.rb +1 -77
- data/lib/sass/rails/version.rb +1 -1
- data/lib/sass/rails.rb +1 -16
- data/lib/sass-rails.rb +1 -1
- metadata +42 -408
- data/.gitignore +0 -5
- data/.travis.yml +0 -12
- data/CHANGELOG.md +0 -20
- data/Gemfile +0 -17
- data/README.markdown +0 -75
- data/Rakefile +0 -12
- data/lib/rails/generators/sass/assets/assets_generator.rb +0 -13
- data/lib/rails/generators/sass/assets/templates/stylesheet.css.sass +0 -3
- data/lib/rails/generators/sass/scaffold/scaffold_generator.rb +0 -9
- data/lib/rails/generators/sass_scaffold.rb +0 -16
- data/lib/rails/generators/scss/assets/assets_generator.rb +0 -13
- data/lib/rails/generators/scss/assets/templates/stylesheet.css.scss +0 -3
- data/lib/rails/generators/scss/scaffold/scaffold_generator.rb +0 -10
- data/lib/sass/rails/compressor.rb +0 -19
- data/lib/sass/rails/helpers.rb +0 -52
- data/lib/sass/rails/template_handlers.rb +0 -117
- data/sass-rails.gemspec +0 -25
- data/test/fixtures/engine_project/.gitignore +0 -6
- data/test/fixtures/engine_project/Gemfile +0 -5
- data/test/fixtures/engine_project/README.rdoc +0 -3
- data/test/fixtures/engine_project/Rakefile +0 -39
- data/test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep +0 -0
- data/test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js +0 -9
- data/test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css +0 -7
- data/test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb +0 -4
- data/test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb +0 -4
- data/test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb +0 -14
- data/test/fixtures/engine_project/config/routes.rb +0 -2
- data/test/fixtures/engine_project/db/seeds.rb +0 -7
- data/test/fixtures/engine_project/engine_project.gemspec +0 -8
- data/test/fixtures/engine_project/lib/engine_project/engine.rb +0 -5
- data/test/fixtures/engine_project/lib/engine_project/version.rb +0 -3
- data/test/fixtures/engine_project/lib/engine_project.rb +0 -4
- data/test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake +0 -4
- data/test/fixtures/engine_project/script/rails +0 -6
- data/test/fixtures/engine_project/test/dummy/Rakefile +0 -7
- data/test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js +0 -9
- data/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css +0 -7
- data/test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/models/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/fixtures/engine_project/test/dummy/config/application.rb +0 -42
- data/test/fixtures/engine_project/test/dummy/config/boot.rb +0 -10
- data/test/fixtures/engine_project/test/dummy/config/database.yml +0 -25
- data/test/fixtures/engine_project/test/dummy/config/environment.rb +0 -5
- data/test/fixtures/engine_project/test/dummy/config/environments/development.rb +0 -27
- data/test/fixtures/engine_project/test/dummy/config/environments/production.rb +0 -51
- data/test/fixtures/engine_project/test/dummy/config/environments/test.rb +0 -39
- data/test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb +0 -12
- data/test/fixtures/engine_project/test/dummy/config/locales/en.yml +0 -5
- data/test/fixtures/engine_project/test/dummy/config/routes.rb +0 -4
- data/test/fixtures/engine_project/test/dummy/config.ru +0 -4
- data/test/fixtures/engine_project/test/dummy/db/seeds.rb +0 -7
- data/test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/log/.gitkeep +0 -0
- data/test/fixtures/engine_project/test/dummy/public/404.html +0 -26
- data/test/fixtures/engine_project/test/dummy/public/422.html +0 -26
- data/test/fixtures/engine_project/test/dummy/public/500.html +0 -26
- data/test/fixtures/engine_project/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/engine_project/test/dummy/script/rails +0 -6
- data/test/fixtures/sass_project/.gitignore +0 -5
- data/test/fixtures/sass_project/Gemfile +0 -7
- data/test/fixtures/sass_project/README +0 -261
- data/test/fixtures/sass_project/Rakefile +0 -7
- data/test/fixtures/sass_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/sass_project/app/assets/javascripts/application.js +0 -9
- data/test/fixtures/sass_project/app/assets/stylesheets/application.css +0 -7
- data/test/fixtures/sass_project/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/sass_project/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/sass_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/sass_project/app/models/.gitkeep +0 -0
- data/test/fixtures/sass_project/app/views/layouts/application.html.erb +0 -14
- data/test/fixtures/sass_project/config/application.rb +0 -52
- data/test/fixtures/sass_project/config/boot.rb +0 -6
- data/test/fixtures/sass_project/config/database.yml +0 -25
- data/test/fixtures/sass_project/config/environment.rb +0 -5
- data/test/fixtures/sass_project/config/environments/development.rb +0 -27
- data/test/fixtures/sass_project/config/environments/production.rb +0 -54
- data/test/fixtures/sass_project/config/environments/test.rb +0 -39
- data/test/fixtures/sass_project/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/sass_project/config/initializers/inflections.rb +0 -10
- data/test/fixtures/sass_project/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/sass_project/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/sass_project/config/initializers/session_store.rb +0 -8
- data/test/fixtures/sass_project/config/initializers/wrap_parameters.rb +0 -12
- data/test/fixtures/sass_project/config/locales/en.yml +0 -5
- data/test/fixtures/sass_project/config/routes.rb +0 -58
- data/test/fixtures/sass_project/config.ru +0 -4
- data/test/fixtures/sass_project/db/seeds.rb +0 -7
- data/test/fixtures/sass_project/doc/README_FOR_APP +0 -2
- data/test/fixtures/sass_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/sass_project/log/.gitkeep +0 -0
- data/test/fixtures/sass_project/public/404.html +0 -26
- data/test/fixtures/sass_project/public/422.html +0 -26
- data/test/fixtures/sass_project/public/500.html +0 -26
- data/test/fixtures/sass_project/public/favicon.ico +0 -0
- data/test/fixtures/sass_project/public/index.html +0 -241
- data/test/fixtures/sass_project/public/robots.txt +0 -5
- data/test/fixtures/sass_project/script/rails +0 -6
- data/test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/sass_project/vendor/plugins/.gitkeep +0 -0
- data/test/fixtures/scss_project/.gitignore +0 -5
- data/test/fixtures/scss_project/Gemfile +0 -7
- data/test/fixtures/scss_project/README +0 -261
- data/test/fixtures/scss_project/Rakefile +0 -7
- data/test/fixtures/scss_project/app/assets/images/1x1.png +0 -0
- data/test/fixtures/scss_project/app/assets/images/rails.png +0 -0
- data/test/fixtures/scss_project/app/assets/javascripts/application.js +0 -9
- data/test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/application.css.scss +0 -32
- data/test/fixtures/scss_project/app/assets/stylesheets/css_application.css +0 -7
- data/test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass +0 -5
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss +0 -9
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass +0 -2
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css +0 -3
- data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss +0 -1
- data/test/fixtures/scss_project/app/controllers/application_controller.rb +0 -3
- data/test/fixtures/scss_project/app/helpers/application_helper.rb +0 -2
- data/test/fixtures/scss_project/app/mailers/.gitkeep +0 -0
- data/test/fixtures/scss_project/app/models/.gitkeep +0 -0
- data/test/fixtures/scss_project/app/views/layouts/application.html.erb +0 -14
- data/test/fixtures/scss_project/config/application.rb +0 -49
- data/test/fixtures/scss_project/config/boot.rb +0 -6
- data/test/fixtures/scss_project/config/database.yml +0 -25
- data/test/fixtures/scss_project/config/environment.rb +0 -5
- data/test/fixtures/scss_project/config/environments/development.rb +0 -27
- data/test/fixtures/scss_project/config/environments/production.rb +0 -54
- data/test/fixtures/scss_project/config/environments/test.rb +0 -39
- data/test/fixtures/scss_project/config/initializers/backtrace_silencers.rb +0 -7
- data/test/fixtures/scss_project/config/initializers/inflections.rb +0 -10
- data/test/fixtures/scss_project/config/initializers/mime_types.rb +0 -5
- data/test/fixtures/scss_project/config/initializers/secret_token.rb +0 -7
- data/test/fixtures/scss_project/config/initializers/session_store.rb +0 -8
- data/test/fixtures/scss_project/config/initializers/wrap_parameters.rb +0 -12
- data/test/fixtures/scss_project/config/locales/en.yml +0 -5
- data/test/fixtures/scss_project/config/routes.rb +0 -58
- data/test/fixtures/scss_project/config.ru +0 -4
- data/test/fixtures/scss_project/db/seeds.rb +0 -7
- data/test/fixtures/scss_project/doc/README_FOR_APP +0 -2
- data/test/fixtures/scss_project/lib/tasks/.gitkeep +0 -0
- data/test/fixtures/scss_project/log/.gitkeep +0 -0
- data/test/fixtures/scss_project/public/404.html +0 -26
- data/test/fixtures/scss_project/public/422.html +0 -26
- data/test/fixtures/scss_project/public/500.html +0 -26
- data/test/fixtures/scss_project/public/favicon.ico +0 -0
- data/test/fixtures/scss_project/public/index.html +0 -241
- data/test/fixtures/scss_project/public/robots.txt +0 -5
- data/test/fixtures/scss_project/script/rails +0 -6
- data/test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/fixtures/scss_project/vendor/plugins/.gitkeep +0 -0
- data/test/sass_rails_logger_test.rb +0 -24
- data/test/sass_rails_test.rb +0 -110
- data/test/support/sass_rails_test_case.rb +0 -159
- data/test/test_helper.rb +0 -30
@@ -1,16 +0,0 @@
|
|
1
|
-
require "sass/css"
|
2
|
-
require "rails/generators/named_base"
|
3
|
-
|
4
|
-
module Sass
|
5
|
-
module Generators
|
6
|
-
class ScaffoldBase < ::Rails::Generators::NamedBase
|
7
|
-
def copy_stylesheet
|
8
|
-
dir = ::Rails::Generators::ScaffoldGenerator.source_root
|
9
|
-
file = File.join(dir, "scaffold.css")
|
10
|
-
converted_contents = ::Sass::CSS.new(File.read(file)).render(syntax)
|
11
|
-
create_file "app/assets/stylesheets/scaffolds.css.#{syntax}", converted_contents
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require "rails/generators/named_base"
|
2
|
-
|
3
|
-
module Scss
|
4
|
-
module Generators
|
5
|
-
class AssetsGenerator < ::Rails::Generators::NamedBase
|
6
|
-
source_root File.expand_path("../templates", __FILE__)
|
7
|
-
|
8
|
-
def copy_scss
|
9
|
-
template "stylesheet.css.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.scss")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'sass'
|
2
|
-
|
3
|
-
module Sass
|
4
|
-
module Rails
|
5
|
-
class CssCompressor
|
6
|
-
def compress(css)
|
7
|
-
if css.count("\n") > 2
|
8
|
-
Sass::Engine.new(css,
|
9
|
-
:syntax => :scss,
|
10
|
-
:cache => false,
|
11
|
-
:read_cache => false,
|
12
|
-
:style => :compressed).render
|
13
|
-
else
|
14
|
-
css
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
data/lib/sass/rails/helpers.rb
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
module Sass
|
2
|
-
module Rails
|
3
|
-
module Helpers
|
4
|
-
|
5
|
-
def asset_data_url(path)
|
6
|
-
data = context_asset_data_uri(path.value)
|
7
|
-
Sass::Script::String.new(%Q{url(#{data})})
|
8
|
-
end
|
9
|
-
|
10
|
-
def asset_path(asset, kind)
|
11
|
-
Sass::Script::String.new(public_path(asset.value, kind.value), true)
|
12
|
-
end
|
13
|
-
|
14
|
-
def asset_url(asset, kind)
|
15
|
-
Sass::Script::String.new(%Q{url(#{public_path(asset.value, kind.value)})})
|
16
|
-
end
|
17
|
-
|
18
|
-
[:image, :video, :audio, :javascript, :stylesheet, :font].each do |asset_class|
|
19
|
-
class_eval %Q{
|
20
|
-
def #{asset_class}_path(asset)
|
21
|
-
Sass::Script::String.new(resolver.#{asset_class}_path(asset.value), true)
|
22
|
-
end
|
23
|
-
def #{asset_class}_url(asset)
|
24
|
-
Sass::Script::String.new("url(" + resolver.#{asset_class}_path(asset.value) + ")")
|
25
|
-
end
|
26
|
-
}, __FILE__, __LINE__ - 6
|
27
|
-
end
|
28
|
-
|
29
|
-
protected
|
30
|
-
|
31
|
-
def resolver
|
32
|
-
options[:custom][:resolver]
|
33
|
-
end
|
34
|
-
|
35
|
-
def public_path(asset, kind)
|
36
|
-
resolver.public_path(asset, kind.pluralize)
|
37
|
-
end
|
38
|
-
|
39
|
-
def context_asset_data_uri(path)
|
40
|
-
resolver.context.asset_data_uri(path)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
module Sass
|
47
|
-
module Script
|
48
|
-
module Functions
|
49
|
-
include Sass::Rails::Helpers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,117 +0,0 @@
|
|
1
|
-
require 'tilt'
|
2
|
-
require 'sprockets'
|
3
|
-
|
4
|
-
module Sass::Rails
|
5
|
-
|
6
|
-
class Resolver
|
7
|
-
|
8
|
-
attr_accessor :context
|
9
|
-
|
10
|
-
def initialize(context)
|
11
|
-
@context = context
|
12
|
-
end
|
13
|
-
|
14
|
-
def resolve(path, content_type = :self)
|
15
|
-
options = {}
|
16
|
-
options[:content_type] = content_type unless content_type.nil?
|
17
|
-
context.resolve(path, options)
|
18
|
-
rescue Sprockets::FileNotFound, Sprockets::ContentTypeMismatch
|
19
|
-
nil
|
20
|
-
end
|
21
|
-
|
22
|
-
def source_path(path, ext)
|
23
|
-
context.asset_paths.compute_source_path(path, ::Rails.application.config.assets.prefix, ext)
|
24
|
-
end
|
25
|
-
|
26
|
-
def public_path(path, scope = nil, options = {})
|
27
|
-
context.asset_paths.compute_public_path(path, ::Rails.application.config.assets.prefix, options)
|
28
|
-
end
|
29
|
-
|
30
|
-
def process(path)
|
31
|
-
context.environment[path].to_s
|
32
|
-
end
|
33
|
-
|
34
|
-
def image_path(img)
|
35
|
-
context.image_path(img)
|
36
|
-
end
|
37
|
-
|
38
|
-
def video_path(video)
|
39
|
-
context.video_path(video)
|
40
|
-
end
|
41
|
-
|
42
|
-
def audio_path(audio)
|
43
|
-
context.audio_path(audio)
|
44
|
-
end
|
45
|
-
|
46
|
-
def javascript_path(javascript)
|
47
|
-
context.javascript_path(javascript)
|
48
|
-
end
|
49
|
-
|
50
|
-
def stylesheet_path(stylesheet)
|
51
|
-
context.stylesheet_path(stylesheet)
|
52
|
-
end
|
53
|
-
|
54
|
-
def font_path(font)
|
55
|
-
context.font_path(font)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
class SassTemplate < Tilt::SassTemplate
|
60
|
-
self.default_mime_type = 'text/css'
|
61
|
-
|
62
|
-
def self.engine_initialized?
|
63
|
-
defined?(::Sass::Engine)
|
64
|
-
end
|
65
|
-
|
66
|
-
def initialize_engine
|
67
|
-
require_template_library 'sass'
|
68
|
-
end
|
69
|
-
|
70
|
-
def syntax
|
71
|
-
:sass
|
72
|
-
end
|
73
|
-
|
74
|
-
def sass_options_from_rails(scope)
|
75
|
-
scope.environment.context_class.sass_config
|
76
|
-
end
|
77
|
-
|
78
|
-
def sass_options(scope)
|
79
|
-
importer = self.importer(scope)
|
80
|
-
options = sass_options_from_rails(scope)
|
81
|
-
load_paths = (options[:load_paths] || []).dup
|
82
|
-
load_paths.unshift(importer)
|
83
|
-
resolver = Resolver.new(scope)
|
84
|
-
css_filename = resolver.source_path(scope.logical_path, 'css')
|
85
|
-
options.merge(
|
86
|
-
:filename => eval_file,
|
87
|
-
:css_filename => css_filename,
|
88
|
-
:line => line,
|
89
|
-
:syntax => syntax,
|
90
|
-
:importer => importer,
|
91
|
-
:load_paths => load_paths,
|
92
|
-
:custom => {
|
93
|
-
:resolver => resolver
|
94
|
-
}
|
95
|
-
)
|
96
|
-
end
|
97
|
-
|
98
|
-
def importer(scope)
|
99
|
-
Sass::Rails::Importer.new(scope)
|
100
|
-
end
|
101
|
-
|
102
|
-
def prepare
|
103
|
-
end
|
104
|
-
|
105
|
-
def evaluate(scope, locals, &block)
|
106
|
-
Sass::Engine.new(data, sass_options(scope)).render
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
class ScssTemplate < SassTemplate
|
111
|
-
self.default_mime_type = 'text/css'
|
112
|
-
|
113
|
-
def syntax
|
114
|
-
:scss
|
115
|
-
end
|
116
|
-
end
|
117
|
-
end
|
data/sass-rails.gemspec
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "sass/rails/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "sass-rails"
|
7
|
-
s.version = Sass::Rails::VERSION
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["wycats", "chriseppstein"]
|
10
|
-
s.email = ["wycats@gmail.com", "chris@eppsteins.net"]
|
11
|
-
s.homepage = ""
|
12
|
-
s.summary = %q{Sass adapter for the Rails asset pipeline.}
|
13
|
-
s.description = %q{Sass adapter for the Rails asset pipeline.}
|
14
|
-
|
15
|
-
s.rubyforge_project = "sass-rails"
|
16
|
-
|
17
|
-
s.add_runtime_dependency 'sass', '>= 3.1.10'
|
18
|
-
s.add_runtime_dependency 'railties', '~> 3.2.0.beta'
|
19
|
-
s.add_runtime_dependency 'tilt', '~> 1.3'
|
20
|
-
|
21
|
-
s.files = `git ls-files`.split("\n")
|
22
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
23
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
24
|
-
s.require_paths = ["lib"]
|
25
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
begin
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
|
-
|
15
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'EngineProject'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
22
|
-
|
23
|
-
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
24
|
-
load 'rails/tasks/engine.rake'
|
25
|
-
|
26
|
-
|
27
|
-
Bundler::GemHelper.install_tasks :name => 'engine_project'
|
28
|
-
|
29
|
-
require 'rake/testtask'
|
30
|
-
|
31
|
-
Rake::TestTask.new(:test) do |t|
|
32
|
-
t.libs << 'lib'
|
33
|
-
t.libs << 'test'
|
34
|
-
t.pattern = 'test/**/*_test.rb'
|
35
|
-
t.verbose = false
|
36
|
-
end
|
37
|
-
|
38
|
-
|
39
|
-
task :default => :test
|
File without changes
|
@@ -1,9 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
-
// the compiled file.
|
6
|
-
//
|
7
|
-
//= require jquery
|
8
|
-
//= require jquery_ujs
|
9
|
-
//= require_tree .
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
-
*= require_self
|
6
|
-
*= require_tree .
|
7
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>EngineProject</title>
|
5
|
-
<%= stylesheet_link_tag "engine_project/application" %>
|
6
|
-
<%= javascript_include_tag "engine_project/application" %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
-
# Mayor.create(name: 'Emanuel', city: cities.first)
|
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#!/usr/bin/env ruby
|
3
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
4
|
-
|
5
|
-
ENGINE_PATH = File.expand_path('../..', __FILE__)
|
6
|
-
load File.expand_path('../../test/dummy/script/rails', __FILE__)
|
@@ -1,7 +0,0 @@
|
|
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
|
-
|
7
|
-
Dummy::Application.load_tasks
|
@@ -1,9 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
-
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
-
// the compiled file.
|
6
|
-
//
|
7
|
-
//= require jquery
|
8
|
-
//= require jquery_ujs
|
9
|
-
//= require_tree .
|
@@ -1,7 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
-
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
-
*= require_self
|
6
|
-
*= require_tree .
|
7
|
-
*/
|
File without changes
|
File without changes
|
@@ -1,42 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require
|
6
|
-
require "engine_project"
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
11
|
-
# Application configuration should go into files in config/initializers
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
13
|
-
|
14
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
15
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
16
|
-
|
17
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
18
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
19
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
20
|
-
|
21
|
-
# Activate observers that should always be running.
|
22
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
23
|
-
|
24
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
25
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
26
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
27
|
-
|
28
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
29
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
30
|
-
# config.i18n.default_locale = :de
|
31
|
-
|
32
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
33
|
-
config.encoding = "utf-8"
|
34
|
-
|
35
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
36
|
-
config.filter_parameters += [:password]
|
37
|
-
|
38
|
-
# Enable the asset pipeline
|
39
|
-
config.assets.enabled = true
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: sqlite3
|
8
|
-
database: db/development.sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
13
|
-
# re-generated from your development database when you run "rake".
|
14
|
-
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
16
|
-
adapter: sqlite3
|
17
|
-
database: db/test.sqlite3
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
|
-
|
21
|
-
production:
|
22
|
-
adapter: sqlite3
|
23
|
-
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|
@@ -1,27 +0,0 @@
|
|
1
|
-
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.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 web server 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_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
# Only use best-standards-support built into browsers
|
23
|
-
config.action_dispatch.best_standards_support = :builtin
|
24
|
-
|
25
|
-
# Do not compress assets
|
26
|
-
config.assets.compress = false
|
27
|
-
end
|