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

fix pecl/pear providers query method #298

Merged
merged 1 commit into from Feb 7, 2017
Merged

fix pecl/pear providers query method #298

merged 1 commit into from Feb 7, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jan 20, 2017

could return info about another package

example:

  pry> @resource
  => Package[pecl-mongo]
  pry> self.class.pecllist(justme: peclname)
  => {:name=>"pecl-apcu", :ensure=>"4.0.7", :provider=>:peclcmd}

this wrongly results in pecl-mongo not being installed when needed

fixes #255 as well by returning the correct version for installed
packages

@igalic
Copy link
Contributor

igalic commented Jan 20, 2017

@cbaoxa would you mind adding a spec test for this so we can maybe learn from our horrible mistakes of the past?

@ghost ghost changed the title fix pecl/pear providers query method WIP: fix pecl/pear providers query method Jan 26, 2017
@ghost
Copy link
Author

ghost commented Jan 26, 2017

@igalic sure, working on it, plus maybe merging all the features in the pear provider, as it can handle both pear and pecl extensions

Copy link
Contributor

@igalic igalic left a comment

Choose a reason for hiding this comment

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

im very happy with most of your changes here!

========================================
(no packages installed)

Installed packages, channel pear.php.net:
Copy link
Contributor

Choose a reason for hiding this comment

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

is it not possible to get this lists without those ansi characters?

Copy link
Author

Choose a reason for hiding this comment

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

Not directly with pear arguments, but it is with ENV['TERM']='dumb'

else
commands pearcmd: 'pear'
end
commands pearcmd: 'pear'
Copy link
Contributor

Choose a reason for hiding this comment

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

i'd just call this pear… you can maybe add a wrapper with default options that you call pearcmd (or vice versa?)

@igalic
Copy link
Contributor

igalic commented Jan 30, 2017

@bastelfreak is there any way to fix the 1.9 failures, or can we just gracefully ignore them for now?

query method could return info about another package

example:
  pry> @resource
  => Package[pecl-mongo]
  pry> self.class.pecllist(justme: peclname)
  => {:name=>"pecl-apcu", :ensure=>"4.0.7", :provider=>:peclcmd}

this wrongly results in pecl-mongo not being installed although it is
needed

fixes #255 as well by returning the correct version for installed
packages

add pecl_spec and pear_spec too

pecl is now a simple wrapper to pear, which can handle both kind of
packages
@ghost
Copy link
Author

ghost commented Feb 3, 2017

PR updated wrt @igalic comments.
1.9 failures are related to beaker dependencies, but the module is running fine on my test env (ruby 1.9.3, puppet 3.8.7)

@ghost ghost changed the title WIP: fix pecl/pear providers query method fix pecl/pear providers query method Feb 3, 2017
@igalic igalic merged commit 03e1187 into voxpupuli:master Feb 7, 2017
@igalic
Copy link
Contributor

igalic commented Feb 7, 2017

thank you so much @cbaoxa \o/

@ghost ghost deleted the pecl_provider branch February 8, 2017 12:54
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.

deep_merge of php::extensions does not work with versions
1 participant