certmeister 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semver +6 -0
- data/Gemfile.lock +5 -3
- data/Rakefile +23 -1
- data/certmeister.gemspec +1 -0
- data/lib/certmeister/version.rb +3 -1
- data/spec/certmeister/policy/ip_spec.rb +1 -1
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1dc0d6cb9c023dff3eb527f546afbad9f7a5a8
|
4
|
+
data.tar.gz: aa70c68eaa079200a7c7e32aa61d7199da762e91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ff500fc3e710490fdb428b0d2691f98ed7f3d4ea67a39cb39b30af3639512d073f257bff2150615787ab6e062da4a61be2fefbc4c91fb66c6f0e04f308df53
|
7
|
+
data.tar.gz: d575f3badcad0e32659395b2446d5e4549e0e50299070512ed648bd186dccd9d1f60ee075027b8086499278ba31e670bd4f6b025ed279680d6b13451c5b230bc
|
data/.semver
ADDED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
certmeister (0.2.
|
5
|
-
certmeister-redis (0.2.
|
6
|
-
certmeister (= 0.2.
|
4
|
+
certmeister (0.2.3)
|
5
|
+
certmeister-redis (0.2.3)
|
6
|
+
certmeister (= 0.2.3)
|
7
7
|
redis-sentinel (~> 1.4)
|
8
8
|
|
9
9
|
GEM
|
@@ -22,6 +22,7 @@ GEM
|
|
22
22
|
rspec-expectations (2.14.4)
|
23
23
|
diff-lcs (>= 1.1.3, < 2.0)
|
24
24
|
rspec-mocks (2.14.4)
|
25
|
+
semver2 (3.3.3)
|
25
26
|
|
26
27
|
PLATFORMS
|
27
28
|
ruby
|
@@ -32,3 +33,4 @@ DEPENDENCIES
|
|
32
33
|
certmeister-redis!
|
33
34
|
rake (~> 0)
|
34
35
|
rspec (~> 2.14)
|
36
|
+
semver2 (~> 3.3)
|
data/Rakefile
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
require "rspec/core/rake_task"
|
2
|
+
require "certmeister/version"
|
2
3
|
|
3
4
|
desc 'Build gem into the pkg directory'
|
4
|
-
task :build do
|
5
|
+
task :build => :spec do
|
5
6
|
FileUtils.rm_rf('pkg')
|
6
7
|
Dir['*.gemspec'].each do |gemspec|
|
7
8
|
system "gem build #{gemspec}"
|
@@ -10,6 +11,27 @@ task :build do
|
|
10
11
|
FileUtils.mv(Dir['*.gem'], 'pkg')
|
11
12
|
end
|
12
13
|
|
14
|
+
namespace :bump do
|
15
|
+
bump_version = ->(component) do
|
16
|
+
sh 'bundle', 'exec', 'semver', 'inc', component
|
17
|
+
sh 'bundle'
|
18
|
+
sh 'bundle', 'exec', 'semver', 'format', "New version: v%M.%m.%p%s"
|
19
|
+
end
|
20
|
+
|
21
|
+
desc 'Bump version [major]'
|
22
|
+
task :major => :build do
|
23
|
+
bump_version.call('major')
|
24
|
+
end
|
25
|
+
desc 'Bump version [minor]'
|
26
|
+
task :minor => :build do
|
27
|
+
bump_version.call('minor')
|
28
|
+
end
|
29
|
+
desc 'Bump version [patch]'
|
30
|
+
task :patch => :build do
|
31
|
+
bump_version.call('patch')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
13
35
|
desc 'Tags version, pushes to remote, and pushes gem'
|
14
36
|
task :release => :build do
|
15
37
|
sh 'git', 'tag', '-m', "Released v#{Certmeister::VERSION}", "v#{Certmeister::VERSION}"
|
data/certmeister.gemspec
CHANGED
data/lib/certmeister/version.rb
CHANGED
@@ -12,7 +12,7 @@ describe Certmeister::Policy::IP do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it "explodes if initialized with things other than CIDR strings" do
|
15
|
-
expect { Certmeister::Policy::IP.new(['localhost']) }.
|
15
|
+
expect { Certmeister::Policy::IP.new(['localhost']) }.to raise_error(IPAddr::Error)
|
16
16
|
end
|
17
17
|
|
18
18
|
it "refuses to authenticate a request with a missing ip" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: certmeister
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheldon Hearn
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: semver2
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.3'
|
55
69
|
description: Certificate authority that can be configured to make decisions about
|
56
70
|
whether to autosign certificate signing requests for clients. This gem provides
|
57
71
|
the protocol-agnostic library, which is expected to be used within something like
|
@@ -66,6 +80,7 @@ files:
|
|
66
80
|
- .rspec
|
67
81
|
- .ruby-gemset
|
68
82
|
- .ruby-version
|
83
|
+
- .semver
|
69
84
|
- Gemfile
|
70
85
|
- Gemfile.lock
|
71
86
|
- LICENSE
|