davejacobs / letters

A tiny debugging library for Ruby
Other
271 stars 9 forks source link

Permissions issue with 0.2.2 gem #5

Closed cabo closed 12 years ago

cabo commented 12 years ago

Some of the files installed by the 0.2.2 gem are 0600 (rw-------), so the installed gem cannot be used by any other user than the installer.

cabo commented 12 years ago

This is a tar tfv listing of the data.tar.gz in the gem:

    -rw-r--r--  0 wheel  wheel      63 Jan  1  1970 lib/letters/assertion_error.rb
    -rw-------  0 wheel  wheel    3206 Jan  1  1970 lib/letters/core_ext.rb
    -rw-------  0 wheel  wheel      60 Jan  1  1970 lib/letters/empty_error.rb
    -rw-------  0 wheel  wheel    2447 Jan  1  1970 lib/letters/helpers.rb
    -rw-------  0 wheel  wheel      57 Jan  1  1970 lib/letters/nil_error.rb
    -rw-r--r--  0 wheel  wheel     270 Jan  1  1970 lib/letters/patch/core.rb
    -rw-r--r--  0 wheel  wheel      47 Jan  1  1970 lib/letters/patch/object.rb
    -rw-r--r--  0 wheel  wheel     234 Jan  1  1970 lib/letters/patch/rails.rb
    -rw-r--r--  0 wheel  wheel     232 Jan  1  1970 lib/letters/patch.rb
    -rw-r--r--  0 wheel  wheel     131 Jan  1  1970 lib/letters/time_formats.rb
    -rw-r--r--  0 wheel  wheel      39 Jan  1  1970 lib/letters/version.rb
    -rw-r--r--  0 wheel  wheel     198 Jan  1  1970 lib/letters.rb
    -rw-r--r--  0 wheel  wheel    2723 Jan  1  1970 README.md
    -rw-------  0 wheel  wheel    1051 Jan  1  1970 COPYING
    -rw-------  0 wheel  wheel     181 Jan  1  1970 Gemfile
    -rw-------  0 wheel  wheel    7419 Jan  1  1970 spec/letters/core_ext_spec.rb
    -rw-------  0 wheel  wheel    2842 Jan  1  1970 spec/letters/helpers_spec.rb
    -rw-r--r--  0 wheel  wheel     425 Jan  1  1970 spec/letters/patch_spec.rb
    -rw-r--r--  0 wheel  wheel     277 Jan  1  1970 spec/letters/time_formats_spec.rb
    -rw-------  0 wheel  wheel      60 Jan  1  1970 spec/spec_helper.rb
davejacobs commented 12 years ago

Thanks for pointing this out. I only tend to use gems with one user on any one workstation, so I wouldn't have noticed this otherwise. I fixed the permissions to 755 and pushed a new version out to RubyGems. Does version 0.2.3 fix this problem?

cabo commented 12 years ago

Indeed, fixed in 0.2.3. Thanks for the great gem!

cabo commented 12 years ago

Oh, and the top-level files (README.md etc.) don't really need to be 755, 644 would be fine too. Not important.