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.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +103 -0
  4. data/lib/sass/rails/importer.rb +3 -120
  5. data/lib/sass/rails/logger.rb +3 -19
  6. data/lib/sass/rails/railtie.rb +1 -77
  7. data/lib/sass/rails/version.rb +1 -1
  8. data/lib/sass/rails.rb +1 -16
  9. data/lib/sass-rails.rb +1 -1
  10. metadata +42 -408
  11. data/.gitignore +0 -5
  12. data/.travis.yml +0 -12
  13. data/CHANGELOG.md +0 -20
  14. data/Gemfile +0 -17
  15. data/README.markdown +0 -75
  16. data/Rakefile +0 -12
  17. data/lib/rails/generators/sass/assets/assets_generator.rb +0 -13
  18. data/lib/rails/generators/sass/assets/templates/stylesheet.css.sass +0 -3
  19. data/lib/rails/generators/sass/scaffold/scaffold_generator.rb +0 -9
  20. data/lib/rails/generators/sass_scaffold.rb +0 -16
  21. data/lib/rails/generators/scss/assets/assets_generator.rb +0 -13
  22. data/lib/rails/generators/scss/assets/templates/stylesheet.css.scss +0 -3
  23. data/lib/rails/generators/scss/scaffold/scaffold_generator.rb +0 -10
  24. data/lib/sass/rails/compressor.rb +0 -19
  25. data/lib/sass/rails/helpers.rb +0 -52
  26. data/lib/sass/rails/template_handlers.rb +0 -117
  27. data/sass-rails.gemspec +0 -25
  28. data/test/fixtures/engine_project/.gitignore +0 -6
  29. data/test/fixtures/engine_project/Gemfile +0 -5
  30. data/test/fixtures/engine_project/README.rdoc +0 -3
  31. data/test/fixtures/engine_project/Rakefile +0 -39
  32. data/test/fixtures/engine_project/app/assets/images/engine_project/.gitkeep +0 -0
  33. data/test/fixtures/engine_project/app/assets/javascripts/engine_project/application.js +0 -9
  34. data/test/fixtures/engine_project/app/assets/stylesheets/engine_project/application.css +0 -7
  35. data/test/fixtures/engine_project/app/controllers/engine_project/application_controller.rb +0 -4
  36. data/test/fixtures/engine_project/app/helpers/engine_project/application_helper.rb +0 -4
  37. data/test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb +0 -14
  38. data/test/fixtures/engine_project/config/routes.rb +0 -2
  39. data/test/fixtures/engine_project/db/seeds.rb +0 -7
  40. data/test/fixtures/engine_project/engine_project.gemspec +0 -8
  41. data/test/fixtures/engine_project/lib/engine_project/engine.rb +0 -5
  42. data/test/fixtures/engine_project/lib/engine_project/version.rb +0 -3
  43. data/test/fixtures/engine_project/lib/engine_project.rb +0 -4
  44. data/test/fixtures/engine_project/lib/tasks/engine_project_tasks.rake +0 -4
  45. data/test/fixtures/engine_project/script/rails +0 -6
  46. data/test/fixtures/engine_project/test/dummy/Rakefile +0 -7
  47. data/test/fixtures/engine_project/test/dummy/app/assets/javascripts/application.js +0 -9
  48. data/test/fixtures/engine_project/test/dummy/app/assets/stylesheets/application.css +0 -7
  49. data/test/fixtures/engine_project/test/dummy/app/controllers/application_controller.rb +0 -3
  50. data/test/fixtures/engine_project/test/dummy/app/helpers/application_helper.rb +0 -2
  51. data/test/fixtures/engine_project/test/dummy/app/mailers/.gitkeep +0 -0
  52. data/test/fixtures/engine_project/test/dummy/app/models/.gitkeep +0 -0
  53. data/test/fixtures/engine_project/test/dummy/app/views/layouts/application.html.erb +0 -14
  54. data/test/fixtures/engine_project/test/dummy/config/application.rb +0 -42
  55. data/test/fixtures/engine_project/test/dummy/config/boot.rb +0 -10
  56. data/test/fixtures/engine_project/test/dummy/config/database.yml +0 -25
  57. data/test/fixtures/engine_project/test/dummy/config/environment.rb +0 -5
  58. data/test/fixtures/engine_project/test/dummy/config/environments/development.rb +0 -27
  59. data/test/fixtures/engine_project/test/dummy/config/environments/production.rb +0 -51
  60. data/test/fixtures/engine_project/test/dummy/config/environments/test.rb +0 -39
  61. data/test/fixtures/engine_project/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  62. data/test/fixtures/engine_project/test/dummy/config/initializers/inflections.rb +0 -10
  63. data/test/fixtures/engine_project/test/dummy/config/initializers/mime_types.rb +0 -5
  64. data/test/fixtures/engine_project/test/dummy/config/initializers/secret_token.rb +0 -7
  65. data/test/fixtures/engine_project/test/dummy/config/initializers/session_store.rb +0 -8
  66. data/test/fixtures/engine_project/test/dummy/config/initializers/wrap_parameters.rb +0 -12
  67. data/test/fixtures/engine_project/test/dummy/config/locales/en.yml +0 -5
  68. data/test/fixtures/engine_project/test/dummy/config/routes.rb +0 -4
  69. data/test/fixtures/engine_project/test/dummy/config.ru +0 -4
  70. data/test/fixtures/engine_project/test/dummy/db/seeds.rb +0 -7
  71. data/test/fixtures/engine_project/test/dummy/lib/assets/.gitkeep +0 -0
  72. data/test/fixtures/engine_project/test/dummy/log/.gitkeep +0 -0
  73. data/test/fixtures/engine_project/test/dummy/public/404.html +0 -26
  74. data/test/fixtures/engine_project/test/dummy/public/422.html +0 -26
  75. data/test/fixtures/engine_project/test/dummy/public/500.html +0 -26
  76. data/test/fixtures/engine_project/test/dummy/public/favicon.ico +0 -0
  77. data/test/fixtures/engine_project/test/dummy/script/rails +0 -6
  78. data/test/fixtures/sass_project/.gitignore +0 -5
  79. data/test/fixtures/sass_project/Gemfile +0 -7
  80. data/test/fixtures/sass_project/README +0 -261
  81. data/test/fixtures/sass_project/Rakefile +0 -7
  82. data/test/fixtures/sass_project/app/assets/images/rails.png +0 -0
  83. data/test/fixtures/sass_project/app/assets/javascripts/application.js +0 -9
  84. data/test/fixtures/sass_project/app/assets/stylesheets/application.css +0 -7
  85. data/test/fixtures/sass_project/app/controllers/application_controller.rb +0 -3
  86. data/test/fixtures/sass_project/app/helpers/application_helper.rb +0 -2
  87. data/test/fixtures/sass_project/app/mailers/.gitkeep +0 -0
  88. data/test/fixtures/sass_project/app/models/.gitkeep +0 -0
  89. data/test/fixtures/sass_project/app/views/layouts/application.html.erb +0 -14
  90. data/test/fixtures/sass_project/config/application.rb +0 -52
  91. data/test/fixtures/sass_project/config/boot.rb +0 -6
  92. data/test/fixtures/sass_project/config/database.yml +0 -25
  93. data/test/fixtures/sass_project/config/environment.rb +0 -5
  94. data/test/fixtures/sass_project/config/environments/development.rb +0 -27
  95. data/test/fixtures/sass_project/config/environments/production.rb +0 -54
  96. data/test/fixtures/sass_project/config/environments/test.rb +0 -39
  97. data/test/fixtures/sass_project/config/initializers/backtrace_silencers.rb +0 -7
  98. data/test/fixtures/sass_project/config/initializers/inflections.rb +0 -10
  99. data/test/fixtures/sass_project/config/initializers/mime_types.rb +0 -5
  100. data/test/fixtures/sass_project/config/initializers/secret_token.rb +0 -7
  101. data/test/fixtures/sass_project/config/initializers/session_store.rb +0 -8
  102. data/test/fixtures/sass_project/config/initializers/wrap_parameters.rb +0 -12
  103. data/test/fixtures/sass_project/config/locales/en.yml +0 -5
  104. data/test/fixtures/sass_project/config/routes.rb +0 -58
  105. data/test/fixtures/sass_project/config.ru +0 -4
  106. data/test/fixtures/sass_project/db/seeds.rb +0 -7
  107. data/test/fixtures/sass_project/doc/README_FOR_APP +0 -2
  108. data/test/fixtures/sass_project/lib/tasks/.gitkeep +0 -0
  109. data/test/fixtures/sass_project/log/.gitkeep +0 -0
  110. data/test/fixtures/sass_project/public/404.html +0 -26
  111. data/test/fixtures/sass_project/public/422.html +0 -26
  112. data/test/fixtures/sass_project/public/500.html +0 -26
  113. data/test/fixtures/sass_project/public/favicon.ico +0 -0
  114. data/test/fixtures/sass_project/public/index.html +0 -241
  115. data/test/fixtures/sass_project/public/robots.txt +0 -5
  116. data/test/fixtures/sass_project/script/rails +0 -6
  117. data/test/fixtures/sass_project/vendor/assets/stylesheets/.gitkeep +0 -0
  118. data/test/fixtures/sass_project/vendor/plugins/.gitkeep +0 -0
  119. data/test/fixtures/scss_project/.gitignore +0 -5
  120. data/test/fixtures/scss_project/Gemfile +0 -7
  121. data/test/fixtures/scss_project/README +0 -261
  122. data/test/fixtures/scss_project/Rakefile +0 -7
  123. data/test/fixtures/scss_project/app/assets/images/1x1.png +0 -0
  124. data/test/fixtures/scss_project/app/assets/images/rails.png +0 -0
  125. data/test/fixtures/scss_project/app/assets/javascripts/application.js +0 -9
  126. data/test/fixtures/scss_project/app/assets/stylesheets/_top_level_partial.css.scss +0 -3
  127. data/test/fixtures/scss_project/app/assets/stylesheets/application.css.scss +0 -32
  128. data/test/fixtures/scss_project/app/assets/stylesheets/css_application.css +0 -7
  129. data/test/fixtures/scss_project/app/assets/stylesheets/globbed/globbed.css.scss +0 -3
  130. data/test/fixtures/scss_project/app/assets/stylesheets/globbed/nested/nested_glob.css.scss +0 -3
  131. data/test/fixtures/scss_project/app/assets/stylesheets/partials/_sass_import.css.sass +0 -5
  132. data/test/fixtures/scss_project/app/assets/stylesheets/partials/_scss_import.css.scss +0 -9
  133. data/test/fixtures/scss_project/app/assets/stylesheets/partials/_without_css_ext.scss +0 -3
  134. data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_sass.css.sass +0 -2
  135. data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/_relative_scss.css.scss +0 -3
  136. data/test/fixtures/scss_project/app/assets/stylesheets/partials/subfolder/relative_not_a_partial.css.scss +0 -3
  137. data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/another_plain.css +0 -3
  138. data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/plain.css +0 -3
  139. data/test/fixtures/scss_project/app/assets/stylesheets/subfolder/second_level.css.scss +0 -1
  140. data/test/fixtures/scss_project/app/controllers/application_controller.rb +0 -3
  141. data/test/fixtures/scss_project/app/helpers/application_helper.rb +0 -2
  142. data/test/fixtures/scss_project/app/mailers/.gitkeep +0 -0
  143. data/test/fixtures/scss_project/app/models/.gitkeep +0 -0
  144. data/test/fixtures/scss_project/app/views/layouts/application.html.erb +0 -14
  145. data/test/fixtures/scss_project/config/application.rb +0 -49
  146. data/test/fixtures/scss_project/config/boot.rb +0 -6
  147. data/test/fixtures/scss_project/config/database.yml +0 -25
  148. data/test/fixtures/scss_project/config/environment.rb +0 -5
  149. data/test/fixtures/scss_project/config/environments/development.rb +0 -27
  150. data/test/fixtures/scss_project/config/environments/production.rb +0 -54
  151. data/test/fixtures/scss_project/config/environments/test.rb +0 -39
  152. data/test/fixtures/scss_project/config/initializers/backtrace_silencers.rb +0 -7
  153. data/test/fixtures/scss_project/config/initializers/inflections.rb +0 -10
  154. data/test/fixtures/scss_project/config/initializers/mime_types.rb +0 -5
  155. data/test/fixtures/scss_project/config/initializers/secret_token.rb +0 -7
  156. data/test/fixtures/scss_project/config/initializers/session_store.rb +0 -8
  157. data/test/fixtures/scss_project/config/initializers/wrap_parameters.rb +0 -12
  158. data/test/fixtures/scss_project/config/locales/en.yml +0 -5
  159. data/test/fixtures/scss_project/config/routes.rb +0 -58
  160. data/test/fixtures/scss_project/config.ru +0 -4
  161. data/test/fixtures/scss_project/db/seeds.rb +0 -7
  162. data/test/fixtures/scss_project/doc/README_FOR_APP +0 -2
  163. data/test/fixtures/scss_project/lib/tasks/.gitkeep +0 -0
  164. data/test/fixtures/scss_project/log/.gitkeep +0 -0
  165. data/test/fixtures/scss_project/public/404.html +0 -26
  166. data/test/fixtures/scss_project/public/422.html +0 -26
  167. data/test/fixtures/scss_project/public/500.html +0 -26
  168. data/test/fixtures/scss_project/public/favicon.ico +0 -0
  169. data/test/fixtures/scss_project/public/index.html +0 -241
  170. data/test/fixtures/scss_project/public/robots.txt +0 -5
  171. data/test/fixtures/scss_project/script/rails +0 -6
  172. data/test/fixtures/scss_project/vendor/assets/stylesheets/.gitkeep +0 -0
  173. data/test/fixtures/scss_project/vendor/plugins/.gitkeep +0 -0
  174. data/test/sass_rails_logger_test.rb +0 -24
  175. data/test/sass_rails_test.rb +0 -110
  176. data/test/support/sass_rails_test_case.rb +0 -159
  177. data/test/test_helper.rb +0 -30
@@ -1,9 +0,0 @@
1
- require "rails/generators/sass_scaffold"
2
-
3
- module Sass
4
- module Generators
5
- class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase
6
- def syntax() :sass end
7
- end
8
- end
9
- end
@@ -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,3 +0,0 @@
1
- // Place all the styles related to the <%= name %> controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,10 +0,0 @@
1
- require "rails/generators/sass_scaffold"
2
-
3
- module Scss
4
- module Generators
5
- class ScaffoldGenerator < ::Sass::Generators::ScaffoldBase
6
- def syntax() :scss end
7
- end
8
- end
9
- end
10
-
@@ -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
@@ -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,6 +0,0 @@
1
- .bundle/
2
- log/*.log
3
- pkg/
4
- test/dummy/db/*.sqlite3
5
- test/dummy/log/*.log
6
- test/dummy/tmp/
@@ -1,5 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__)
@@ -1,3 +0,0 @@
1
- = EngineProject
2
-
3
- This project rocks and uses MIT-LICENSE.
@@ -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
@@ -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,4 +0,0 @@
1
- module EngineProject
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module EngineProject
2
- module ApplicationHelper
3
- end
4
- end
@@ -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,2 +0,0 @@
1
- EngineProject::Engine.routes.draw do
2
- end
@@ -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,8 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = 'engine_project'
3
- s.version = '0.0.0'
4
-
5
- s.add_dependency "rails", "~> 3.2.0.rc1"
6
- s.add_dependency "sqlite3"
7
- s.add_dependency "sass-rails", "~> 3.2.0"
8
- end
@@ -1,5 +0,0 @@
1
- module EngineProject
2
- class Engine < Rails::Engine
3
- isolate_namespace EngineProject
4
- end
5
- end
@@ -1,3 +0,0 @@
1
- module EngineProject
2
- VERSION = "0.0.1"
3
- end
@@ -1,4 +0,0 @@
1
- require "engine_project/engine"
2
-
3
- module EngineProject
4
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :engine_project do
3
- # # Task goes here
4
- # end
@@ -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
- */
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -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,10 +0,0 @@
1
- require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- if File.exist?(gemfile)
5
- ENV['BUNDLE_GEMFILE'] = gemfile
6
- require 'bundler'
7
- Bundler.setup
8
- end
9
-
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -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,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- Dummy::Application.initialize!
@@ -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