Skip to content

Conversation

@Yasmine-Gaber
Copy link
Contributor

No description provided.

@Yasmine-Gaber Yasmine-Gaber requested a review from OAbubakr October 3, 2019 11:34
Copy link

@ahmedyehia ahmedyehia left a comment

Choose a reason for hiding this comment

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

Thanks

s.authors = ['Omar Abubakr', 'Yara Salah']
s.email = 'omar.abubakr@espace.com.eg'
s.files = ['lib/annazer.rb', 'lib/annazer/railtie.rb', 'lib/tasks/generate_config_files.rake', 'lib/annazer/config_files/.rubocop.yml', 'lib/annazer/config_files/.overcommit.yml']
s.files = ['lib/annazer.rb', 'lib/annazer/railtie.rb', 'lib/tasks/generate_config_files.rake',

Choose a reason for hiding this comment

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

You can use this line instead

  spec.files         = Dir.chdir(File.expand_path(__dir__)) do
    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  end

The git ls-files -z loads the files in the RubyGem that have been added into git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants