certmeister 0.2.0 → 0.2.1

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: 4a9c4caa4ce477f7481e1357d98f142638e9a531
4
- data.tar.gz: c81a795d5f84058b66cdbb0f9a7ae8f2adc94554
3
+ metadata.gz: a34a13bbefa8d0ea4817a67eeebbc0b182e34299
4
+ data.tar.gz: cf99f4747e5889f884f4baa1273080e1aeffa552
5
5
  SHA512:
6
- metadata.gz: 2e11877e3183bd036e954a0b8f961ba4ca6941c74785b04929db9ae1f02d8cf3cca0f602f233d162494e7fe4414f09e165fe54ff4bd5728724fb35dfa2d59b67
7
- data.tar.gz: 1fbe2145d82e9a3d41441ec3d3806b9e94497bd94f438680e0f7ea93b1a267cb5d37b7e4192146099864c1f6fdf902986d5bbbe9c4d773ee5182a780c3b23aee
6
+ metadata.gz: 828e3b77c8013f5f7d80f22df627660cb4a5f79722d0c9bd46d62ea5a5dfa553527a624518e4036d6ed76384fc02a6a3e9a6b4511492fe13ae0510168de53d45
7
+ data.tar.gz: 0b09ff33db1d7b2a43ee03e8f602571ae6c4c9e6655e24c475b8bd17a36314fdf376902ecdb1cfb6174a28b95071f346463637fbb2a0ca51d53894842ff09116
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- certmeister (0.2.0)
5
- certmeister-redis (0.2.0)
6
- certmeister (= 0.2.0)
4
+ certmeister (0.2.1)
5
+ certmeister-redis (0.2.1)
6
+ certmeister (= 0.2.1)
7
7
  redis-sentinel (~> 1.4)
8
8
 
9
9
  GEM
@@ -1,5 +1,5 @@
1
1
  module Certmeister
2
2
 
3
- VERSION = '0.2.0' unless defined?(VERSION)
3
+ VERSION = '0.2.1' unless defined?(VERSION)
4
4
 
5
5
  end
@@ -1,6 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  require 'certmeister/policy/ip'
4
+ require 'ipaddr'
4
5
 
5
6
  describe Certmeister::Policy::IP do
6
7
 
@@ -10,6 +11,10 @@ describe Certmeister::Policy::IP do
10
11
  expect { subject.authenticate }.to raise_error(ArgumentError)
11
12
  end
12
13
 
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)
16
+ end
17
+
13
18
  it "refuses to authenticate a request with a missing ip" do
14
19
  response = subject.authenticate(cn: 'localhost')
15
20
  expect(response).to_not be_authenticated
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Hearn