Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove coffeescript #1790

Merged
merged 4 commits into from
Jul 16, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove Coffescript
  • Loading branch information
epergo committed Jul 16, 2022
commit b970a2c551dc757835414d71a3ce205a4d095a5e
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ gem 'nokogiri', '> 1.5.0'
gem 'rainbows', platforms: [ :ruby ]
gem 'eventmachine'
gem 'slim', '~> 4'
gem 'coffee-script', '>= 2.0'
gem 'rdoc'
gem 'kramdown'
gem 'creole'
Expand Down
5 changes: 0 additions & 5 deletions lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,6 @@ def markaby(template = nil, options = {}, locals = {}, &block)
render_ruby(:mab, template, options, locals, &block)
end

def coffee(template, options = {}, locals = {})
options.merge! :layout => false, :default_content_type => :js
render :coffee, template, options, locals
end

def nokogiri(template = nil, options = {}, locals = {}, &block)
options[:default_content_type] = :xml
render_ruby(:nokogiri, template, options, locals, &block)
Expand Down
5 changes: 0 additions & 5 deletions sinatra-contrib/lib/sinatra/engine_tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ def markaby?
@current_engine == :markaby
end

# @return [Boolean] Returns true if current engine is `:coffee`.
def coffee?
@current_engine == :coffee
end

# @return [Boolean] Returns true if current engine is `:nokogiri`.
def nokogiri?
@current_engine == :nokogiri
Expand Down
2 changes: 1 addition & 1 deletion sinatra-contrib/lib/sinatra/namespace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ module NamespacedMethods
ALLOWED_ENGINES = [
:erb, :erubi, :haml, :hamlit, :builder, :nokogiri,
:liquid, :markdown, :rdoc, :asciidoc, :radius, :markaby,
:rabl, :slim, :creole, :mediawiki, :coffee, :yajl
:rabl, :slim, :creole, :mediawiki, :yajl
]

def self.prefixed(*names)
Expand Down
1 change: 0 additions & 1 deletion sinatra-contrib/lib/sinatra/respond_with.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ def self.jrubyify(engs)
def self.engines
engines = {
:xml => [:builder, :nokogiri],
:js => [:coffee],
:html => [:erb, :erubi, :haml, :hamlit, :slim, :liquid, :radius,
:mab, :markdown, :rdoc],
:all => (Sinatra::Templates.instance_methods.map(&:to_sym) +
Expand Down
1 change: 0 additions & 1 deletion sinatra-contrib/sinatra-contrib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ EOF
s.add_development_dependency "redcarpet"
s.add_development_dependency "asciidoctor"
s.add_development_dependency "radius"
s.add_development_dependency "coffee-script"
s.add_development_dependency "nokogiri"
s.add_development_dependency "creole"
s.add_development_dependency "wikicloth"
Expand Down
96 changes: 0 additions & 96 deletions test/coffee_test.rb

This file was deleted.