Issue #22640 has been updated by Igor Galić.

File scm-support.patch added

This is my attempt at adding support for hg, alas my tests were not very 
fruitful:

<pre>
igalic@levix ~/src/bw/puppetlabs_spec_helper (git)-[scm] % gem build 
puppetlabs_spec_helper.gemspec
  Successfully built RubyGem
  Name: puppetlabs_spec_helper
  Version: 0.4.1
  File: puppetlabs_spec_helper-0.4.1.gem
igalic@levix ~/src/bw/puppetlabs_spec_helper (git)-[scm] % rm 
puppetlabs_spec_helper-0.4.2.gem
igalic@levix ~/src/bw/puppetlabs_spec_helper (git)-[scm] % sudo gem install -u 
puppetlabs_spec_helper-0.4.1.gem
[sudo] password for igalic: 
Successfully installed puppetlabs_spec_helper-0.4.1
1 gem installed
Installing ri documentation for puppetlabs_spec_helper-0.4.1...
file 'lib' not found
Building YARD (yri) index for puppetlabs_spec_helper-0.4.1...
Installing RDoc documentation for puppetlabs_spec_helper-0.4.1...
file 'lib' not found
igalic@levix ~/src/bw/puppetlabs_spec_helper (git)-[scm] %
</pre>

vs:

<pre>
igalic@levix ~/src/bw/puppet-kvmhost (git)-[master] % rake --trace
rake aborted!
cannot load such file -- puppetlabs_spec_helper/rake_tasks
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/igalic/src/bw/puppet-kvmhost/Rakefile:16:in `<top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in 
`load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:637:in 
`raw_load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in 
load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:165:in 
`standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:93:in 
`load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in 
run'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:165:in 
`standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/var/lib/gems/1.9.1/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
1 igalic@levix ~/src/bw/puppet-kvmhost (git)-[master] % 
</pre>

----------------------------------------
Bug #22640: puppetlabs_spec_helper only supports Git
https://projects.puppetlabs.com/issues/22640#change-97829

* Author: Igor Galić
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
I know it's shocking in this day and age to hear such a thing, but there are 
other SCM out there, a number of which are *not* git, or even Git compatible 
(if there is such a thing).

It would be nice if puppetlabs_spec_helper's .fixtures.yml supported more than 
just git - hg is easy and right there with git the general semantics!

Sidenote: puppetlabs_spec_helper's .gemspec file is still at version 0.3.0, 
which is confusing.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to