vcard 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4f75edebd0dd1ec896b452016d0a34a7f5223c3
4
- data.tar.gz: df369e737e53edabc6f3af18513fc252570ac52b
3
+ metadata.gz: 6f08f4f7aa3e79dda330a56b2cddb0629388f033
4
+ data.tar.gz: 4e73e399c414fef9a96b58625cf8e5763e0c5ddb
5
5
  SHA512:
6
- metadata.gz: b83b1476ed86d9ac223f23bf95e435b7dd696fda6e615d5d8fdbd8c28cdfd49615bd76c91d0439a73376a29c9a64a99dd2b79e578414bddb1a7c8a4613f64d9d
7
- data.tar.gz: feaff19112de3ed07d9784f423ca97a89bd47df8393c0085783d61346543605273a31eeebecf35bd184eada5558a8e842a44df2015c9ec142f7ad5c33d435361
6
+ metadata.gz: 0d6577970761ac7b49bd44c380907f0c9f6a82c29a66f2a195315d705b2a99de3645449b5b216b5b0621ea57c9260556e579c7377506b0c33d0b8bfc53259774
7
+ data.tar.gz: 24330d86736986c9add123743bcdaf76a09cca7cfe8975e5746eea4d95bc97fe4b3f256c34a62c66603a9c8718a59a1ded63eb537428b1808f660193e927260f
@@ -649,7 +649,6 @@ module Vcard
649
649
  raise ArgumentError, "Vcard.decode cannot be called with a #{card.type}"
650
650
  end
651
651
 
652
- string.force_encoding(Encoding::UTF_8)
653
652
  entities = ::Vcard.expand(::Vcard.decode(string))
654
653
 
655
654
  # Since all vCards must have a begin/end, the top-level should consist
@@ -1,3 +1,3 @@
1
1
  module Vcard
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -305,14 +305,10 @@ EOF
305
305
  end
306
306
 
307
307
  def test_modify_name
308
- card = Vcard.decode("begin:vcard\nend:vcard\n").first
309
-
310
- assert_raises(::Vcard::InvalidEncodingError) do
311
- card.name
312
- end
308
+ card = Vcard::Vcard.decode("begin:vcard\nend:vcard\n").first
313
309
 
314
310
  assert_raises(::Vcard::Unencodeable) do
315
- Vcard::Maker.make2(card) {}
311
+ Vcard::Vcard::Maker.make2(card) {}
316
312
  end
317
313
 
318
314
  card.make do |m|
@@ -408,25 +404,6 @@ EOF
408
404
  assert_equal(Date.new(1980, 10, 25), card.birthday)
409
405
  end
410
406
 
411
- def test_utf_heuristics
412
- bom = "\xEF\xBB\xBF"
413
- dat = "BEGIN:VCARD\nN:name\nEND:VCARD\n"
414
- utf_name_test(bom+dat)
415
- utf_name_test(bom+dat.downcase)
416
- utf_name_test(dat)
417
- utf_name_test(dat.downcase)
418
-
419
- utf_name_test(be(bom+dat))
420
- utf_name_test(be(bom+dat.downcase))
421
- utf_name_test(be(dat))
422
- utf_name_test(be(dat.downcase))
423
-
424
- utf_name_test(le(bom+dat))
425
- utf_name_test(le(bom+dat.downcase))
426
- utf_name_test(le(dat))
427
- utf_name_test(le(dat.downcase))
428
- end
429
-
430
407
  # Broken output from Highrise. Report to support@highrisehq.com
431
408
  def test_highrises_invalid_google_talk_field
432
409
  c = vcard(:highrise)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Kuźma