(PDOC-28) Naming this gem puppet-strings instead of puppetlabs-strings.

This commit is contained in:
David Danzilio 2015-09-18 07:32:43 -04:00
parent 0431bc7735
commit 4845bc2a0d
2 changed files with 4 additions and 2 deletions

View File

@ -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`: 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 ```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`: To use the rake tasks, `require puppet-strings/rake_tasks` in your `Rakefile`:

View File

@ -3,7 +3,9 @@ require 'json'
puppet_metadata = JSON.load File.open(File.expand_path(File.join(__FILE__, '..', 'metadata.json'))).read puppet_metadata = JSON.load File.open(File.expand_path(File.join(__FILE__, '..', 'metadata.json'))).read
Gem::Specification.new do |s| 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]) s.send("#{section}=", puppet_metadata[section])
end end