vcardigan 0.0.4 → 0.0.5

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: 432f5d57365fbb6550a8313fe3d6f7fd02a9cc92
4
- data.tar.gz: c8586a64664d2b2def6891b66d2859aee55f3ce7
3
+ metadata.gz: 7799d87438e5ba3eaad59ae21715a984f745d250
4
+ data.tar.gz: 0aaddc3527eef3b5213196715f71383197d610d4
5
5
  SHA512:
6
- metadata.gz: 8941aaff5b47521d32615a6d688d6a81b57a254a7ca3e022438d21756215074636fc6695a8161e7b9c2cfbc4a6bc58a539fcb19a7059379b5b57eba61980ca9f
7
- data.tar.gz: 3c36c99ef74b505445c3abd1c089e931e26e493af98fcaddfb8352127f6b405b1db305168046e651a5b652f6c85369f4ceb106d163e8bb41930bb4e3a405b8c7
6
+ metadata.gz: 726b70f8e1404cd2f51c945678b0929f519f90efbe3e99c4b7b78f350b810cae4195d6d47e4ed203f2a3fd53f7a9f81013e75cf3bff8b67ad72176ea2fedec5c
7
+ data.tar.gz: 6136cdfef1723d5c74b0231bffa58f1bf6d273ed07619135064a5b90f837d8dedbba7c7085131da8a2590eeeb40c570f7761e9ace4b8e8b4fc278f6aff79139d
@@ -31,6 +31,7 @@ module VCardigan
31
31
  lines.each do |line|
32
32
  if line =~ /^VERSION:(.+)/
33
33
  @version = $1
34
+ next
34
35
  end
35
36
 
36
37
  property = VCardigan::Property.parse(self, line)
@@ -1,5 +1,5 @@
1
1
  module VCardigan
2
2
 
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
 
5
5
  end
@@ -284,6 +284,10 @@ describe VCardigan::VCard do
284
284
  vcard.version.should == '4.0'
285
285
  end
286
286
 
287
+ it 'should only have one version property' do
288
+ vcard.to_s.lines.count {|l| l =~ /^VERSION:/ }.should == 1
289
+ end
290
+
287
291
  it 'should add the properties to the fields array' do
288
292
  fields.should have_key('n')
289
293
  fields.should have_key('fn')
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcardigan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-08 00:00:00.000000000 Z
11
+ date: 2014-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: vCardigan is a ruby library for building and parsing vCards that supports
@@ -64,12 +64,12 @@ require_paths:
64
64
  - lib
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []