diff --git a/Gemfile b/Gemfile index 5b6c6ea..cb5720f 100644 --- a/Gemfile +++ b/Gemfile @@ -31,13 +31,7 @@ end group :development do gem 'github_changelog_generator', git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2') gem 'pry' - if RUBY_VERSION[0..2] == '1.9' - gem 'pry-debugger' - elsif RUBY_VERSION[0] == '2' - gem 'pry-byebug' - end + gem 'pry-byebug' end -gem 'json', '<= 1.8' if RUBY_VERSION < '2.0.0' -gem 'json_pure', '<= 2.0.1' if RUBY_VERSION < '2.0.0' -gem 'rubocop', '<= 0.47.0' if RUBY_VERSION >= '2.0.0' +gem 'rubocop', '<= 0.47.0' diff --git a/lib/puppet-strings/version.rb b/lib/puppet-strings/version.rb new file mode 100644 index 0000000..84845ec --- /dev/null +++ b/lib/puppet-strings/version.rb @@ -0,0 +1,3 @@ +module PuppetStrings + VERSION = '2.0.0'.freeze +end diff --git a/puppet-strings.gemspec b/puppet-strings.gemspec index ae691c5..6e7236f 100644 --- a/puppet-strings.gemspec +++ b/puppet-strings.gemspec @@ -1,7 +1,11 @@ +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'puppet-strings/version' + Gem::Specification.new do |s| s.name = 'puppet-strings' s.author = 'Puppet Inc.' - s.version = '2.0.0' + s.version = PuppetStrings::VERSION s.license = 'Apache-2.0' s.summary = 'Puppet documentation via YARD' s.email = 'info@puppet.com'