[DRE-commits] [librarian-puppet] 05/153: Issue #227 Librarian::Puppet::VERSION undefined

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 4b70e6b47c08b2833b301d81afc1570e7dc333be
Author: Carlos Sanchez <csanchez at maestrodev.com>
Date:   Thu Jun 12 11:06:21 2014 +0200

    Issue #227 Librarian::Puppet::VERSION undefined
---
 Changelog.md                                 | 2 ++
 lib/librarian/puppet/source/forge/repo_v3.rb | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Changelog.md b/Changelog.md
index c9b774d..048ae0e 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,6 +2,8 @@
 
 ### 1.1.1
 
+ * [Issue #227](https://github.com/rodjek/librarian-puppet/issues/227) Fix Librarian::Puppet::VERSION undefined
+
 ### 1.1.0
 
  * [Issue #210](https://github.com/rodjek/librarian-puppet/issues/210) Use forgeapi.puppetlabs.com and API v3
diff --git a/lib/librarian/puppet/source/forge/repo_v3.rb b/lib/librarian/puppet/source/forge/repo_v3.rb
index a1784df..3025d89 100644
--- a/lib/librarian/puppet/source/forge/repo_v3.rb
+++ b/lib/librarian/puppet/source/forge/repo_v3.rb
@@ -1,7 +1,6 @@
 require 'librarian/puppet/source/forge/repo'
 require 'puppet_forge'
-
-PuppetForge.user_agent = "librarian-puppet/#{Librarian::Puppet::VERSION}"
+require 'librarian/puppet/version'
 
 module Librarian
   module Puppet
@@ -9,6 +8,8 @@ module Librarian
       class Forge
         class RepoV3 < Librarian::Puppet::Source::Forge::Repo
 
+          PuppetForge.user_agent = "librarian-puppet/#{Librarian::Puppet::VERSION}"
+
           def get_versions
             get_module.releases.map{|r| r.version}
           end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



More information about the Pkg-ruby-extras-commits mailing list