noid 0.6.5 → 0.6.6

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: 030be3b01cc2ea47116b13957cfbd64b01097af0
4
- data.tar.gz: 21bd9b4385520538ab7d5072623b654211d5c118
3
+ metadata.gz: bf146d1776a27d32f143739ec816493891785b40
4
+ data.tar.gz: f7aa9deb3f005be8c995a88d446f97371ad6ff61
5
5
  SHA512:
6
- metadata.gz: 7d011eb2d80e3ce506a5993d4a1fde57676bafa06a6e34d4332b49fb9b2c85d7f6f0284ef3d00c130aa6f69bf547fdbf82346103c2b3b26a71ddddb0fee6bd81
7
- data.tar.gz: 22166b166b3b30d76bd016325e967afc76246115ddb04fea740688a94783aabca64176d029dcc69526da66b67f9b0746617841d848af6525dc64e1fa0773a5de
6
+ metadata.gz: f11e4d49a4f1de1135518b7b0a5d2e8475430e4c45b6c62701d513be606dee0e4ae6b0a0ae78c8ea34aea2097967604587132557fdf4887ad0ae5ac0182072d5
7
+ data.tar.gz: 75135706b2e242974ab2ad2225815d13d40802f6cf5519d4af6b34c9ac8466af76ffe74b8a619fc8a09de2568f3ee8f7b19c0725f6f16bbcea2acfd41eee2eb4
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ��ªS�Fn⇉۠rhq�jA�< �̗��LO�5�+�h�����*K��ڳx���8{��+z
1
+ &����B����� ����O#��I�� .���JI�kA.eG�mn=DXI�AWй�E��X �Q��Gs�̍�&tg��YX��4�}�w�*�~e�U�]�8�E�,+Dž�! }0ʍ���JNU���eP�*�u��?\��c�`í��eWݧ�S�x�s|��51AC��n�����Pk�!Ec&P���xce�:k��w�[�MώL�%�᷾eF�e�Y�y�A*ɏ�9� ���_��/�����(
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.5
1
+ 0.6.6
data/lib/noid/minter.rb CHANGED
@@ -20,6 +20,7 @@ module Noid
20
20
 
21
21
  @after_mint = options[:after_mint]
22
22
  end
23
+ @template ||= Noid::Template.new(@template_string)
23
24
  end
24
25
 
25
26
  ##
@@ -38,7 +39,7 @@ module Noid
38
39
  #
39
40
  # @return Noid::Template
40
41
  def template
41
- @template ||= Noid::Template.new(@template_string)
42
+ @template
42
43
  end
43
44
 
44
45
  ##
@@ -106,6 +106,12 @@ describe Noid::Minter do
106
106
  id = minter.mint
107
107
  minter.valid?(id).should be_true
108
108
  end
109
+ it "should validate with a new minter" do
110
+ minter = Noid::Minter.new(:template => ".redek")
111
+ id = minter.mint
112
+ minter2 = Noid::Minter.new(:template => ".redek")
113
+ minter2.valid?(id).should be_true
114
+ end
109
115
  end
110
116
 
111
117
  describe "seed" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -30,7 +30,7 @@ cert_chain:
30
30
  W4KPvarE4dgxT4TXIIKkh/K/Z9yaYt73biInVukEI9H2HHWkuAyblxg1jcR/zy+w
31
31
  K27NJ2vhSpx2PPhb
32
32
  -----END CERTIFICATE-----
33
- date: 2013-03-08 00:00:00.000000000 Z
33
+ date: 2013-03-27 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: backports
metadata.gz.sig CHANGED
Binary file