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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a34a13bbefa8d0ea4817a67eeebbc0b182e34299
4
- data.tar.gz: cf99f4747e5889f884f4baa1273080e1aeffa552
3
+ metadata.gz: 2a1dc0d6cb9c023dff3eb527f546afbad9f7a5a8
4
+ data.tar.gz: aa70c68eaa079200a7c7e32aa61d7199da762e91
5
5
  SHA512:
6
- metadata.gz: 828e3b77c8013f5f7d80f22df627660cb4a5f79722d0c9bd46d62ea5a5dfa553527a624518e4036d6ed76384fc02a6a3e9a6b4511492fe13ae0510168de53d45
7
- data.tar.gz: 0b09ff33db1d7b2a43ee03e8f602571ae6c4c9e6655e24c475b8bd17a36314fdf376902ecdb1cfb6174a28b95071f346463637fbb2a0ca51d53894842ff09116
6
+ metadata.gz: 72ff500fc3e710490fdb428b0d2691f98ed7f3d4ea67a39cb39b30af3639512d073f257bff2150615787ab6e062da4a61be2fefbc4c91fb66c6f0e04f308df53
7
+ data.tar.gz: d575f3badcad0e32659395b2446d5e4549e0e50299070512ed648bd186dccd9d1f60ee075027b8086499278ba31e670bd4f6b025ed279680d6b13451c5b230bc
data/.semver ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 2
4
+ :patch: 3
5
+ :special: ''
6
+ :metadata: ''
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- certmeister (0.2.1)
5
- certmeister-redis (0.2.1)
6
- certmeister (= 0.2.1)
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
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "bundler", "~> 1.5"
26
26
  spec.add_development_dependency "rake", "~> 0"
27
27
  spec.add_development_dependency "rspec", "~> 2.14"
28
+ spec.add_development_dependency "semver2", "~> 3.3"
28
29
  end
29
30
 
30
31
 
@@ -1,5 +1,7 @@
1
+ require 'semver'
2
+
1
3
  module Certmeister
2
4
 
3
- VERSION = '0.2.1' unless defined?(VERSION)
5
+ VERSION = SemVer.find.format("%M.%m.%p%s") unless defined?(VERSION)
4
6
 
5
7
  end
@@ -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']) }.to_not raise_error(IPAddr::Error)
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.1
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