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

Your new gem (0.7) version has permission issues. #171

Closed
envygeeks opened this issue Oct 11, 2012 · 3 comments
Closed

Your new gem (0.7) version has permission issues. #171

envygeeks opened this issue Oct 11, 2012 · 3 comments
Labels

Comments

@envygeeks
Copy link
Contributor

-rw-r----- 1 root root  823 Oct 11 04:15 adapters.rb
-rw-r--r-- 1 root root 1509 Oct 11 04:15 command_guesser.rb
-rw-r--r-- 1 root root 8010 Oct 11 04:15 configuration.rb
-rw-r--r-- 1 root root 2745 Oct 11 04:15 defaults.rb
-rw-r--r-- 1 root root   99 Oct 11 04:15 exit_codes.rb
-rw-r----- 1 root root 1319 Oct 11 04:15 file_list.rb
-rw-r--r-- 1 root root 1336 Oct 11 04:15 filter.rb
drwxr-xr-x 2 root root 4096 Oct 11 04:15 formatter/
-rw-r--r-- 1 root root  200 Oct 11 04:15 formatter.rb
-rw-r--r-- 1 root root  610 Oct 11 04:15 json.rb
-rw-r--r-- 1 root root  395 Oct 11 04:15 last_run.rb
-rw-r----- 1 root root 1001 Oct 11 04:15 merge_helpers.rb
-rw-r--r-- 1 root root  131 Oct 11 04:15 railtie.rb
drwxr-xr-x 2 root root 4096 Oct 11 04:15 railties/
-rw-r--r-- 1 root root 2315 Oct 11 04:15 result_merger.rb
-rw-r--r-- 1 root root 4135 Oct 11 04:15 result.rb
-rw-r--r-- 1 root root 6241 Oct 11 04:15 source_file.rb
-rw-r--r-- 1 root root   40 Oct 11 04:15 version.rb

Because of incorrect permissions on a few files your gem being installed globally and available to non-privileged users results in an un-start-able application spec. Is there anyway we can get you to fix the permissions to canonical uog+rw,r,r and repush the gem so that everybody can use the gem and not just root on global installs. You can simply run these commands from the root of the application:

find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;
@colszowka
Copy link
Collaborator

Hm, that is weird. I released the gem from my office computer, as opposed to my laptop that I usually use for this. Since git itself does not store file permissions, something must have went wrong while packaging the gem using bundler's supplied task (rake release). I'll try to investigate as soon as possible.

@envygeeks
Copy link
Contributor Author

@colszowka There is the same issue with simplecov-html too, don't want to cluster you with tickets so I thought I would bring that up here since you already know about it here. Sometimes permissions get messed up though, I just had the same issue with several of my gems, and most people don't notice since RVM is so popular now but on our servers we don't use RVM so it got brought up fast for your gem when it hit the staging server.

colszowka added a commit that referenced this issue Oct 12, 2012
…ons on

gem packaging to ensure install-independent gems. Pertains to #171
colszowka added a commit that referenced this issue Oct 12, 2012
@colszowka
Copy link
Collaborator

Shipping 0.7.1 right now, also integrated your little bash bit into the gem build process so this hopefully does not reappear in the future.

jperkin pushed a commit to TritonDataCenter/pkgsrc-legacy that referenced this issue Dec 9, 2013
Make this package to Ruby 1.9.3 only.

v0.7.1, 2012-10-12 ([changes](simplecov-ruby/simplecov@v0.7.0...v0.7.1))
-------------------

  * [BUGFIX] The gem packages of 0.7.0 (both simplecov and simplecov-html) pushed to Rubygems had some file
    permission issues, leading to problems when installing SimpleCov in a root/system Rubygems install and then
    trying to use it as a normal user (see simplecov-ruby/simplecov#171, thanks @envygeeks
    for bringing it up). The gem build process has been changed to always enforce proper permissions before packaging
    to avoid this issue in the future.


v0.7.0, 2012-10-10 ([changes](simplecov-ruby/simplecov@v0.6.4...v0.7.0))
-------------------

  * [FEATURE] The new `maximum_coverage_drop` and `minimum_coverage` now allow you to fail your build when the
    coverage dropped by more than what you allowed or is below a minimum value required. Also, `refuse_coverage_drop` disallows
    any coverage drops between test runs.
    See simplecov-ruby/simplecov#151, simplecov-ruby/simplecov#11,
    simplecov-ruby/simplecov#90, and simplecov-ruby/simplecov#96 (thanks to @infertux)
  * [FEATURE] SimpleCov now ships with a built-in MultiFormatter which allows the easy usage of multiple result formatters at
    the same time without the need to write custom wrapper code.
    See simplecov-ruby/simplecov#158 (thanks to @nikitug)
  * [BUGFIX] The usage of digits, hyphens and underscores in group names could lead to broken tab navigation
    in the default simplecov-html reports. See simplecov-ruby/simplecov-html#14 (thanks to @ebelgarts)
  * [REFACTORING] A few more ruby warnings removed. See simplecov-ruby/simplecov#106 and
    simplecov-ruby/simplecov#139. (thanks to @lukejahnke)
  * A [Pledgie button](simplecov-ruby/simplecov@63cfa99) for those that
    feel generous :)
  * The usual bunch of README fixes and documentation tweaks. Thanks to everyone who contributed those!
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Mar 12, 2014
Make this package to Ruby 1.9.3 only.

v0.7.1, 2012-10-12 ([changes](simplecov-ruby/simplecov@v0.7.0...v0.7.1))
-------------------

  * [BUGFIX] The gem packages of 0.7.0 (both simplecov and simplecov-html) pushed to Rubygems had some file
    permission issues, leading to problems when installing SimpleCov in a root/system Rubygems install and then
    trying to use it as a normal user (see simplecov-ruby/simplecov#171, thanks @envygeeks
    for bringing it up). The gem build process has been changed to always enforce proper permissions before packaging
    to avoid this issue in the future.


v0.7.0, 2012-10-10 ([changes](simplecov-ruby/simplecov@v0.6.4...v0.7.0))
-------------------

  * [FEATURE] The new `maximum_coverage_drop` and `minimum_coverage` now allow you to fail your build when the
    coverage dropped by more than what you allowed or is below a minimum value required. Also, `refuse_coverage_drop` disallows
    any coverage drops between test runs.
    See simplecov-ruby/simplecov#151, simplecov-ruby/simplecov#11,
    simplecov-ruby/simplecov#90, and simplecov-ruby/simplecov#96 (thanks to @infertux)
  * [FEATURE] SimpleCov now ships with a built-in MultiFormatter which allows the easy usage of multiple result formatters at
    the same time without the need to write custom wrapper code.
    See simplecov-ruby/simplecov#158 (thanks to @nikitug)
  * [BUGFIX] The usage of digits, hyphens and underscores in group names could lead to broken tab navigation
    in the default simplecov-html reports. See simplecov-ruby/simplecov-html#14 (thanks to @ebelgarts)
  * [REFACTORING] A few more ruby warnings removed. See simplecov-ruby/simplecov#106 and
    simplecov-ruby/simplecov#139. (thanks to @lukejahnke)
  * A [Pledgie button](simplecov-ruby/simplecov@63cfa99) for those that
    feel generous :)
  * The usual bunch of README fixes and documentation tweaks. Thanks to everyone who contributed those!
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Oct 11, 2014
Make this package to Ruby 1.9.3 only.

v0.7.1, 2012-10-12 ([changes](simplecov-ruby/simplecov@v0.7.0...v0.7.1))
-------------------

  * [BUGFIX] The gem packages of 0.7.0 (both simplecov and simplecov-html) pushed to Rubygems had some file
    permission issues, leading to problems when installing SimpleCov in a root/system Rubygems install and then
    trying to use it as a normal user (see simplecov-ruby/simplecov#171, thanks @envygeeks
    for bringing it up). The gem build process has been changed to always enforce proper permissions before packaging
    to avoid this issue in the future.


v0.7.0, 2012-10-10 ([changes](simplecov-ruby/simplecov@v0.6.4...v0.7.0))
-------------------

  * [FEATURE] The new `maximum_coverage_drop` and `minimum_coverage` now allow you to fail your build when the
    coverage dropped by more than what you allowed or is below a minimum value required. Also, `refuse_coverage_drop` disallows
    any coverage drops between test runs.
    See simplecov-ruby/simplecov#151, simplecov-ruby/simplecov#11,
    simplecov-ruby/simplecov#90, and simplecov-ruby/simplecov#96 (thanks to @infertux)
  * [FEATURE] SimpleCov now ships with a built-in MultiFormatter which allows the easy usage of multiple result formatters at
    the same time without the need to write custom wrapper code.
    See simplecov-ruby/simplecov#158 (thanks to @nikitug)
  * [BUGFIX] The usage of digits, hyphens and underscores in group names could lead to broken tab navigation
    in the default simplecov-html reports. See simplecov-ruby/simplecov-html#14 (thanks to @ebelgarts)
  * [REFACTORING] A few more ruby warnings removed. See simplecov-ruby/simplecov#106 and
    simplecov-ruby/simplecov#139. (thanks to @lukejahnke)
  * A [Pledgie button](simplecov-ruby/simplecov@63cfa99) for those that
    feel generous :)
  * The usual bunch of README fixes and documentation tweaks. Thanks to everyone who contributed those!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants