[PATCH] Remove coffee from development dependency
authorTakashi Kokubun <takashikkbn@gmail.com>
Fri, 19 Aug 2022 01:11:17 +0000 (18:11 -0700)
committerPirate Praveen <praveen@debian.org>
Wed, 8 Feb 2023 15:49:02 +0000 (15:49 +0000)
Close https://github.com/k0kubun/hamlit/issues/190

Gbp-Pq: Name 003-remove-coffee-script.patch

hamlit.gemspec
test/hamlit/filters/coffee_test.rb [deleted file]
test/hamlit/line_number_test.rb

index 092a673556d9f36f19bcf51ecfe9978842ac8b68..274013650e117208706f02cd3aeaa4b4f01c5193 100644 (file)
@@ -32,7 +32,6 @@ Gem::Specification.new do |spec|
 
   spec.add_development_dependency 'benchmark_driver'
   spec.add_development_dependency 'bundler'
-  spec.add_development_dependency 'coffee-script'
   spec.add_development_dependency 'erubi'
   spec.add_development_dependency 'haml', '>= 5'
   spec.add_development_dependency 'less'
diff --git a/test/hamlit/filters/coffee_test.rb b/test/hamlit/filters/coffee_test.rb
deleted file mode 100644 (file)
index d4dbb5c..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-describe Hamlit::Filters do
-  include RenderHelper
-
-  describe '#compile' do
-    it 'renders coffee filter' do
-      assert_render(<<-HTML.unindent, <<-HAML.unindent)
-        <script>
-          (function() {
-            var foo;
-          
-            foo = function() {
-              return alert('hello');
-            };
-          
-          }).call(this);
-        </script>
-      HTML
-        :coffee
-          foo = ->
-            alert('hello')
-      HAML
-    end
-
-    it 'renders coffeescript filter' do
-      assert_render(<<-HTML.unindent, <<-HAML.unindent)
-        <script>
-          (function() {
-            var foo;
-          
-            foo = function() {
-              return alert('hello');
-            };
-          
-          }).call(this);
-        </script>
-      HTML
-        :coffeescript
-          foo = ->
-            alert('hello')
-      HAML
-    end
-
-    it 'renders coffeescript filter' do
-      assert_render(<<-HTML.unindent, <<-'HAML'.unindent)
-        <script>
-          (function() {
-            var foo;
-          
-            foo = function() {
-              return alert("<&>");
-            };
-          
-          }).call(this);
-        </script>
-      HTML
-        :coffee
-          foo = ->
-            alert("#{'<&>'}")
-      HAML
-    end
-  end unless /java/ === RUBY_PLATFORM # execjs is not working with Travis JRuby environment
-end
index 6c737b05c37869304d6f19ee65a6b3ffbbaee14f..1355724007fa00be21805fa3edfe3a2c2e8d35e8 100644 (file)
@@ -105,50 +105,6 @@ describe Hamlit::Engine do
   end
 
   describe 'filters' do
-    describe 'coffee filter' do
-      it 'renders static filter' do
-        assert_render(<<-HTML.unindent, <<-'HAML'.unindent)
-          <script>
-            (function() {
-              jQuery(function($) {
-                console.log('3');
-                return console.log('4');
-              });
-            
-            }).call(this);
-          </script>
-          5
-        HTML
-          :coffee
-            jQuery ($) ->
-              console.log('#{__LINE__}')
-              console.log('#{__LINE__}')
-          = __LINE__
-        HAML
-      end
-
-      it 'renders dynamic filter' do
-        assert_render(<<-HTML.unindent, <<-HAML.unindent)
-          <script>
-            (function() {
-              jQuery(function($) {
-                console.log('3');
-                return console.log('4');
-              });
-            
-            }).call(this);
-          </script>
-          5
-        HTML
-          :coffee
-            jQuery ($) ->
-              console.log('3')
-              console.log('4')
-          = __LINE__
-        HAML
-      end
-    end unless /java/ === RUBY_PLATFORM # execjs is not working with Travis JRuby environment
-
     describe 'css filter' do
       it 'renders static filter' do
         assert_render(<<-HTML.unindent, <<-HAML.unindent)