Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Do not including test/** into gem. #88

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Do not including test/** into gem. #88

merged 1 commit into from
Oct 18, 2018

Conversation

huacnlee
Copy link
Contributor

@huacnlee huacnlee commented Oct 17, 2018

Remove this to reduce gem size 1Mb.

2018-10-16 18 11 02

Same issue like:

rails/marcel#11
sparklemotion/nokogiri#1804
heartcombo/devise#4955

After:

$ gem build sass.gemspec
$ gem install sass-3.6.0.gem
$ ncdu /Users/jason/.rvm/gems/ruby-2.5.1/gems/sass-3.6.0
$ sass -v
Ruby Sass 3.6.0
$ irb

2.5.1 :001 > require "sass"
 => true 
2.5.1 :002 > Sass::VERSION
 => "3.6.0" 

2018-10-17 16 39 35

spec.homepage = 'http://sass-lang.com/'
spec.has_rdoc = false
spec.test_files = Dir['test/**/*_test.rb']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless remove this line, then test files will still including in gem file.

spec.add_development_dependency 'yard', '~> 0.8.7.6'
spec.add_development_dependency 'redcarpet', '~> 3.3'
spec.add_development_dependency 'nokogiri', '~> 1.6.0'
spec.add_development_dependency 'minitest', '>= 5'

readmes = Dir['*'].reject{ |x| x =~ /(^|[^.a-z])[a-z]+/ || x == "TODO" }
spec.executables = ['sass', 'sass-convert', 'scss']
spec.files = Dir['rails/init.rb', 'lib/**/*', 'bin/*', 'test/**/*',
'extra/**/*', 'Rakefile', 'init.rb', '.yardopts'] + readmes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you removing .yardopts and init.rb?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reverted .yardopts

@nex3 nex3 merged commit 669fcd3 into sass:stable Oct 18, 2018
@huacnlee huacnlee deleted the patch-2 branch October 19, 2018 02:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants