From 4845bc2a0da40b7b45ce11d1e3b1444822170118 Mon Sep 17 00:00:00 2001 From: David Danzilio Date: Fri, 18 Sep 2015 07:32:43 -0400 Subject: [PATCH] (PDOC-28) Naming this gem puppet-strings instead of puppetlabs-strings. --- README.md | 2 +- puppet-strings.gemspec | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0fe24f6..38cb433 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ Rake Tasks This module is also available as a Gem and makes two rake tasks (`generate` and `serve`) available in `puppet-strings/rake_tasks`. To add this to your module's CI workflow, be sure to add this module to your `Gemfile`: ```ruby -gem 'puppetlabs-strings', :git => 'https://github.com/puppetlabs/puppet-strings.git' +gem 'puppet-strings', :git => 'https://github.com/puppetlabs/puppet-strings.git' ``` To use the rake tasks, `require puppet-strings/rake_tasks` in your `Rakefile`: diff --git a/puppet-strings.gemspec b/puppet-strings.gemspec index fb35ef1..1aef237 100644 --- a/puppet-strings.gemspec +++ b/puppet-strings.gemspec @@ -3,7 +3,9 @@ require 'json' puppet_metadata = JSON.load File.open(File.expand_path(File.join(__FILE__, '..', 'metadata.json'))).read Gem::Specification.new do |s| - %w(name author version license summary).each do |section| + s.name = 'puppet-strings' + + %w(author version license summary).each do |section| s.send("#{section}=", puppet_metadata[section]) end