summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/rubygems.rb
Commit message (Collapse)AuthorAgeFilesLines
* package provider cleanuplcg/package-cleanupLamont Granquist2017-02-111-60/+60
| | | | | | | | | - cleans up a lot of ivar usage - converts most providers to shell_out_compact_timeout! - almost deprecates a few APIs, but can't quite yet - windows providers need mixlib-shellout to take an argv Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* revert --local filter for gems installed from pathslocalMatt Wrock2016-09-231-1/+0
|
* Fixes GH-4955, allowing local gems with remote dependenciesJoseph (Jy) Yaworski2016-09-081-3/+1
|
* fix gem_package regressionlcg/gem-package-regressionLamont Granquist2016-08-291-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* rubygems memory perf issueslcg/rubygems_perf2Lamont Granquist2016-08-151-13/+16
| | | | | | set rubygems_cache_enabled to true in Chef::Config to get the old behavior back Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* correctly select current gem versiontm/sorted_gemsThom May2016-06-221-3/+9
| | | | Signed-off-by: Thom May <thom@chef.io>
* this seems both more readable and correctLamont Granquist2016-05-021-13/+2
|
* Update gem_package with version constraint on :upgrade actionWill Jordan2016-05-021-11/+18
| | | | | | Add Package#version_requirement_satisfied? to separate fuzzy-match (:install) and exact-match (:upgrade) version checks when supported by the package subclass. Wrap Package#candidate_version in a lazy-initialization object to minimize unnecessary API queries when candidate_version is not needed. (fixes #3867)
* Update rubygems provider to support local install of gems if so specifiedksubrama+praj/FLOW-298/local_gemPrajakta Purohit2016-04-211-1/+4
|
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-1/+1
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* Merge pull request #4617 from chef/lcg/chefstyle-perfLamont Granquist2016-03-041-1/+1
|\ | | | | Autofixing new Perf cops in 0.37.2
| * Autofixing new Perf cops in 0.37.2Lamont Granquist2016-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | 6 Performance/Casecmp 18 Performance/Detect 1 Performance/RangeInclude 27 Performance/RedundantBlockCall 6 Performance/RedundantMatch 5 Performance/RedundantMerge 18 Performance/StringReplacement
* | make rubygems.org configurableLamont Granquist2016-02-091-1/+1
|/ | | | for bonus points gem_package will pick this up as well.
* autofixing whitespace copsLamont Granquist2016-02-051-15/+15
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-2/+2
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* Use double quotes by defaultThom May2016-01-141-24/+24
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-24/+24
|
* chefstyle: fix Lint/StringConversionInInterpolationLamont Granquist2016-01-121-2/+2
| | | | useless use of `"#{foo.to_s}"`
* Merge pull request #3383 from jfly/masterThom May2015-08-131-1/+1
|\ | | | | gem_package should install to the systemwide Ruby when using ChefDK.
| * Handling case where windows users install to a non default location.Jeremy Fleischman2015-06-291-1/+1
| |
| * gem_package should install to the systemwide Ruby when using ChefDK.Jeremy Fleischman2015-05-181-1/+1
| | | | | | | | Fixes #3382.
* | fix package timeout attributeLamont Granquist2015-06-021-4/+4
| | | | | | | | | | | | | | | | | | | | updates all the shell_out calls to respect the timeout which is passed on the new_resource. the old `Chef::Config` yum timeout values are still respected and will override the default. the default of 900 seconds is preserved.
* | Drop support for rubygems 1.xdrop-rubygems-1.xdanielsdeleo2015-06-011-8/+1
|/ | | | | Ruby 2.0 is the oldest release we support, and it ships with Rubygems 2.0: https://github.com/ruby/ruby/blob/v2_0_0_0/lib/rubygems.rb#L11
* Clearing sources works for string optionsPeter Burkholder2015-03-271-2/+3
|
* Test for current behaviorPeter Burkholder2015-03-271-3/+3
|
* Don't use rubygems if explicitly remotePeter Burkholder2015-03-271-0/+2
|
* Change 'should' to 'must'Peter Burkholder (@pburkholder)2015-03-241-1/+1
|
* Using warning suggested by @btmPeter Burkholder2015-03-131-4/+7
|
* Clarify warningPeter Burkholder2015-02-251-2/+4
|
* Multipackage fixes to superclassLamont Granquist2015-02-031-6/+5
| | | | | | | - fixes define_resource_requirements - better idempotency (only packages that need updating are updated) - better messaging (only packages that update are output) - better comments
* Ensure 'uri' is required where it's used.danielsdeleo2014-11-261-0/+1
| | | | | URI previously was globally available because chef.rb loaded it via a monkey patch for the URI class.
* Merge branch 'master' into tball/contrib-passtyler-ball2014-11-251-1/+1
|\ | | | | | | | | Conflicts: CHANGELOG.md
| * Setting version to an empty string in testslucywyman2014-11-191-1/+1
| | | | | | | | | | | | | | Check for nil and length on version in package/rubygems tests In gemspec test change @new_resource.instance_variable_set() to @new_resource.version()
* | Merge branch 'typofixes-vlajos-20141107' of github.com:vlajos/chef into ↵tyler-ball2014-11-251-1/+1
|\ \ | |/ |/| | | tball/contrib-pass
| * typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-1/+1
| |
* | Fix rubygems provider to use https instead of http.Nathan Cerny2014-11-131-1/+1
|/
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-0/+3
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Merge branch 'CHEF-4890' of github.com:rathers/chef into sersut/doc-updatessersut/doc-updatesSerdar Sutay2014-10-091-0/+1
|\
| * CHEF-4890: Allow gem upgradesDan Rathbone2013-12-171-0/+1
| | | | | | | | | | This was preventing chef from finding the candidate version when upgrading a gem and assuming there was nothing to do
* | revert this lineLamont Granquist2014-08-011-0/+2
| | | | | | | | | | Chef::Provider::Package::Rubygems::AlternateGemEnvironment does not inherit from Chef::Provider
* | fixing all the extra blank linesLamont Granquist2014-07-291-2/+0
| | | | | | | | yes, i just used rubocop on the chef sourcecode...
* | add shell_out to base provider codeLamont Granquist2014-07-291-2/+0
|/
* Normalize whitespace on all filesSeth Vargo2013-09-261-1/+1
|
* Fix rubygems > 2.0 heuristic testdanielsdeleo2013-06-131-1/+1
| | | | | | | | | | | | | | | | Fixes CHEF-4275 In some cases, upgrading to rubygems 2.0 from 1.8 can leave both installations available in the load path. The 2.0 install is ahead of the 1.8 install, but it is possible to load a file from the 1.8 install if that file does not exist in rubygems 2.0. In particular, rubygems/format does not exist in 2.0, so `require "rubygems/format"` loads from rubygems 1.8. When Chef "accidentally" loads the old rubygems/format, it defeats the version detection heuristic (check if Gem::Format) is defined, which eventually causes an error calling Gem::Package.open. Adding a check to see if Gem::Package defines open resolves this problem.
* URI really doesn't know what to do with windows pathsBryan McLellan2013-06-041-1/+4
| | | | Since we're here anyway...
* fix specs for rubygems < 2.0danielsdeleo2013-02-271-1/+1
|
* [CHEF-3933] support new gem dependency installer return typedanielsdeleo2013-02-271-6/+15
| | | | | | in rubygems commit 432fc4818bbf14dfa5e49bbc1950eaa6d3fde133, return type of dependency_installer's #find_gems_with_sources is changed to return a Gem::AvailableSet collection instead of an ordered Array.
* [CHEF-3933] use rubygems 2.0 files/classes/methodsdanielsdeleo2013-02-271-3/+26
| | | | | | * rubygems/format file removed * Gem::Package replaces functionality in Gem::Format * Gem.sources returns a SourceList which must be coerced to array