Skip to content

Commit 79d28bf

Browse files
authored
Merge pull request #51 from nwops/1.0-release
Prep for 1.0.0 release
2 parents beefb85 + 1c66b41 commit 79d28bf

File tree

6 files changed

+75
-48
lines changed

6 files changed

+75
-48
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Augosign changelog
22

33
## Unreleased
4+
5+
## 1.0.0
6+
Released May 19, 2020
7+
48
* (maint) print config in yaml format
59
* (maint) Fix a cache bug where the settings were loaded multiple times
610
* (maint) Fix a bug where the config overwrites settings

Gemfile.lock

+46-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
autosign (0.1.4)
4+
autosign (1.0.0)
55
deep_merge (~> 1.2)
66
gli (~> 2)
77
iniparse (~> 1)
@@ -12,17 +12,18 @@ PATH
1212
GEM
1313
remote: https://rubygems.org/
1414
specs:
15-
aruba (0.14.12)
15+
aruba (0.14.14)
1616
childprocess (>= 0.6.3, < 4.0.0)
1717
contracts (~> 0.9)
1818
cucumber (>= 1.3.19)
1919
ffi (~> 1.9)
2020
rspec-expectations (>= 2.99)
21-
thor (~> 0.19)
21+
thor (>= 0.19, < 2.0)
2222
ast (2.4.0)
23-
builder (3.2.3)
23+
builder (3.2.4)
2424
childprocess (3.0.0)
2525
coderay (1.1.2)
26+
concurrent-ruby (1.1.6)
2627
contracts (0.16.0)
2728
coveralls (0.8.23)
2829
json (>= 1.8, < 3)
@@ -44,33 +45,46 @@ GEM
4445
deep_merge (1.2.1)
4546
diff-lcs (1.3)
4647
docile (1.3.2)
47-
facter (2.5.6)
48-
ffi (1.11.2)
48+
facter (4.0.21)
49+
hocon (~> 1.3)
50+
thor (>= 1.0.1, < 2.0)
51+
fast_gettext (1.8.0)
52+
ffi (1.12.2)
4953
gherkin (4.1.3)
5054
gli (2.19.0)
51-
hiera (1.3.4)
52-
json_pure
55+
hiera (3.6.0)
56+
hocon (1.3.0)
57+
httpclient (2.8.3)
5358
iniparse (1.5.0)
54-
json (2.2.0)
55-
json_pure (2.2.0)
59+
json (2.3.0)
5660
jwt (1.5.6)
5761
little-plugger (1.1.4)
62+
locale (2.1.3)
5863
logging (2.2.2)
5964
little-plugger (~> 1.1)
6065
multi_json (~> 1.10)
61-
method_source (0.9.2)
66+
method_source (1.0.0)
6267
multi_json (1.14.1)
6368
multi_test (0.1.2)
6469
parallel (1.19.1)
6570
parser (2.7.1.2)
6671
ast (~> 2.4.0)
67-
pry (0.12.2)
68-
coderay (~> 1.1.0)
69-
method_source (~> 0.9.0)
70-
puppet (3.8.7)
71-
facter (> 1.6, < 3)
72-
hiera (~> 1.0)
73-
json_pure
72+
pry (0.13.1)
73+
coderay (~> 1.1)
74+
method_source (~> 1.0)
75+
puppet (6.15.0)
76+
concurrent-ruby (~> 1.0)
77+
deep_merge (~> 1.0)
78+
facter (> 2.0.1, < 5)
79+
fast_gettext (~> 1.1)
80+
hiera (>= 3.2.1, < 4)
81+
httpclient (~> 2.8)
82+
locale (~> 2.1)
83+
multi_json (~> 1.10)
84+
puppet-resource_api (~> 1.5)
85+
semantic_puppet (~> 1.0)
86+
puppet-resource_api (1.8.13)
87+
hocon (>= 1.0)
7488
rainbow (3.0.0)
7589
rake (13.0.1)
7690
rdoc (4.3.0)
@@ -79,15 +93,15 @@ GEM
7993
rspec-core (~> 3.9.0)
8094
rspec-expectations (~> 3.9.0)
8195
rspec-mocks (~> 3.9.0)
82-
rspec-core (3.9.0)
83-
rspec-support (~> 3.9.0)
84-
rspec-expectations (3.9.0)
96+
rspec-core (3.9.2)
97+
rspec-support (~> 3.9.3)
98+
rspec-expectations (3.9.2)
8599
diff-lcs (>= 1.2.0, < 2.0)
86100
rspec-support (~> 3.9.0)
87-
rspec-mocks (3.9.0)
101+
rspec-mocks (3.9.1)
88102
diff-lcs (>= 1.2.0, < 2.0)
89103
rspec-support (~> 3.9.0)
90-
rspec-support (3.9.0)
104+
rspec-support (3.9.3)
91105
rubocop (0.83.0)
92106
parallel (~> 1.10)
93107
parser (>= 2.7.0.1)
@@ -96,33 +110,37 @@ GEM
96110
ruby-progressbar (~> 1.7)
97111
unicode-display_width (>= 1.4.0, < 2.0)
98112
ruby-progressbar (1.10.1)
113+
semantic_puppet (1.0.2)
99114
simplecov (0.16.1)
100115
docile (~> 1.1)
101116
json (>= 1.8, < 3)
102117
simplecov-html (~> 0.10.0)
103118
simplecov-html (0.10.2)
119+
sync (0.5.0)
104120
term-ansicolor (1.7.1)
105121
tins (~> 1.0)
106-
thor (0.20.3)
107-
tins (1.22.2)
122+
thor (1.0.1)
123+
tins (1.25.0)
124+
sync
108125
unicode-display_width (1.7.0)
109-
yard (0.9.20)
126+
yard (0.9.25)
110127

111128
PLATFORMS
112129
ruby
113130

114131
DEPENDENCIES
115132
aruba (~> 0.6)
116133
autosign!
134+
bundler (~> 2.0)
117135
coveralls
118136
cucumber (~> 2)
119137
pry (~> 0.10)
120-
puppet (~> 3)
138+
puppet (~> 6)
121139
rake (~> 13)
122140
rdoc (~> 4)
123141
rspec (~> 3)
124142
rubocop (~> 0.83.0)
125143
yard (~> 0.9.11)
126144

127145
BUNDLED WITH
128-
1.17.3
146+
2.1.4

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ By default the validation runs the following validators in order:
9090

9191
The first validator to succeed wins and short circuits the validaiton process.
9292

93-
You can completely customize the list and how they are ordered via the configuration file.
93+
You can completely customize the list and how they are ordered via the configuration file. Or even remove some entirely.
9494

9595
```
9696
---
@@ -116,6 +116,8 @@ be important if you wanted to only use special validators or remove unwanted val
116116
Please note, the name of the validator which is speficed by the `NAME` constant in the validator code must match
117117
the list you specify otherwise it will not be part of the validation process.
118118
119+
**NOTE** To use this feature you must have deep_merge 1.2.1+ installed which is now a requirement of this gem.
120+
119121
### Troubleshooting
120122
If you're having problems, try the following:
121123
@@ -124,6 +126,7 @@ If you're having problems, try the following:
124126
- you can manually trigger the autosigning script with something like `cat the_csr.csr | autosign-validator certname.example.com`
125127
- If you run the puppet master foregrounded, you'll see quite a bit of autosign script output if autosign loglevel is set to debug.
126128
129+
Starting with the 1.0.0 release the autosign gem requires ruby 2.4. If you can't upgrade just yet you can continue to use the older 0.1.4 release.
127130
128131
### Further Reading
129132

Rakefile

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1+
# encoding: utf-8
2+
# frozen_string_literal: true
3+
14
require 'rubygems'
2-
begin
3-
require 'rspec/core/rake_task'
4-
require 'cucumber'
5-
require 'cucumber/rake/task'
6-
require 'rdoc/task'
7-
RSpec::Core::RakeTask.new(:spec) do |t|
8-
t.rspec_opts = '--format documentation'
9-
end
10-
rescue LoadError
11-
end
5+
require 'bundler'
6+
require 'bundler/gem_tasks'
7+
require 'rake/testtask'
8+
require 'rspec/core/rake_task'
9+
require 'cucumber'
10+
require 'cucumber/rake/task'
11+
require 'rdoc/task'
1212
require 'rake/clean'
13-
require 'rubygems/package_task'
13+
14+
RSpec::Core::RakeTask.new(:spec) do |t|
15+
t.rspec_opts = '--format documentation'
16+
end
17+
1418
Rake::RDocTask.new do |rd|
1519
rd.main = 'README.rdoc'
1620
rd.rdoc_files.include('README.rdoc', 'lib/**/*.rb', 'bin/**/*')
17-
rd.title = 'Your application title'
21+
rd.title = 'Autosign'
1822
end
1923

20-
spec = eval(File.read('autosign.gemspec'))
21-
22-
Gem::PackageTask.new(spec) do |pkg|
23-
end
2424
CUKE_RESULTS = 'results.html'.freeze
2525
CLEAN << CUKE_RESULTS
2626
desc 'Run features'

autosign.gemspec

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Ensure we require the local version and not one we might have installed already
4-
require File.join([File.dirname(__FILE__), 'lib', 'autosign', 'version.rb'])
4+
require File.join([__dir__, 'lib', 'autosign', 'version.rb'])
55
spec = Gem::Specification.new do |s|
66
s.name = 'autosign'
77
s.version = Autosign::VERSION
@@ -11,6 +11,7 @@ spec = Gem::Specification.new do |s|
1111
s.platform = Gem::Platform::RUBY
1212
s.summary = 'Tooling to make puppet autosigning easy, secure, and extensible'
1313
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|features|fixtures)/}) }
14+
s.required_ruby_version = '>= 2.4'
1415
s.require_paths << 'lib'
1516
s.extra_rdoc_files = [
1617
'CHANGELOG.md',
@@ -23,12 +24,13 @@ spec = Gem::Specification.new do |s|
2324
s.add_development_dependency('coveralls')
2425
s.add_development_dependency('cucumber', '~> 2')
2526
s.add_development_dependency('pry', '~> 0.10')
26-
s.add_development_dependency('puppet', '~> 3')
27+
s.add_development_dependency('puppet', '~> 6')
2728
s.add_development_dependency('rake', '~> 13')
2829
s.add_development_dependency('rdoc', '~> 4')
2930
s.add_development_dependency('rspec', '~> 3')
3031
s.add_development_dependency('rubocop', '~> 0.83.0')
3132
s.add_development_dependency('yard', '~> 0.9.11')
33+
s.add_development_dependency('bundler', '~> 2.0')
3234
s.add_runtime_dependency('deep_merge', '~> 1.2')
3335
s.add_runtime_dependency('gli', '~> 2')
3436
s.add_runtime_dependency('iniparse', '~> 1')

lib/autosign/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Autosign
2-
VERSION = '0.1.4'
2+
VERSION = '1.0.0'
33
end

0 commit comments

Comments
 (0)