middleman-vcard 0.9.1 → 0.9.2

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: 2f5cbb8a938d2e46505a58c389a4f31976567759
4
- data.tar.gz: 9d2a436c83ecb4ed220a7d26a350c2416a78eae5
3
+ metadata.gz: accb51fb50ad5aba7e07a47c5d562fc25473208d
4
+ data.tar.gz: 8de40cf605f39d8f0f5b83b6998415dcacfb9244
5
5
  SHA512:
6
- metadata.gz: 5a1ed224690ee3ef7aba47587c548f46dceb1b68aa4c83a7de52bf4979c62b8f93cabaea84e1eb49676a48c5bdff65c591f750c42c3ced96282c28986c142233
7
- data.tar.gz: 8900f67ab03efff844bbb4478a791bb0e3ee49e54d5f5e80e005e25a3b0013768165a2249240976cef5c1381dce7b76d4140102b635420db0e3294689a7af672
6
+ metadata.gz: fe38cfd1a0ded059578e32e09c8dd1db7c6af0e6a4525042af8927fc3a8f1195a179116b2d9d888ce19aec31ab8750fc49581cc8d43354829fcbd820bb82a614
7
+ data.tar.gz: d969dc8c89f724cf5a859b47460f73190945fee6d1946216781fdc359d827bc49fe4d47cfb51eda608c00fa89a6e0fb4e71056061aab7e85b7fb7915bf433f02
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- middleman-vcard (0.9.1)
4
+ middleman-vcard (0.9.2)
5
5
  contracts
6
6
  middleman-core (>= 3.3.10)
7
7
  vpim
@@ -6,6 +6,11 @@ require "logger"
6
6
 
7
7
  # Require - External {{{
8
8
 
9
+ # Be a good citizen with Middleman.
10
+ require("contracts") unless Kernel::const_defined?(:Contracts)
11
+
12
+ require "vpim/vcard"
13
+
9
14
  require "middleman-core"
10
15
 
11
16
  # }}}
@@ -1,7 +1,3 @@
1
- require "middleman-core"
2
- require "middleman-vcard/generator"
3
-
4
-
5
1
  module Middleman
6
2
  module VCard
7
3
  ##
@@ -22,12 +18,10 @@ module Middleman
22
18
 
23
19
  @destination_path = options_hash[:destination_path] ||
24
20
  File.join(app.root, app.config.source, "#{options_hash[:name]}.vcf")
25
- @vcard_generator = ::Generator.new(options_hash[:name],
26
- options_hash[:emails],
27
- options_hash[:phones],
28
- options_hash[:addresses],
29
- options_hash[:photo],
30
- logger)
21
+ @vcard_generator = Middleman::VCard::Generator.new(
22
+ options_hash[:name], options_hash[:emails],
23
+ options_hash[:phones], options_hash[:addresses],
24
+ options_hash[:photo], logger)
31
25
  end
32
26
 
33
27
  def after_configuration
@@ -1,7 +1,3 @@
1
- require("contracts") unless Kernel::const_defined?(:Contracts)
2
- require "vpim/vcard"
3
-
4
-
5
1
  module Middleman
6
2
  module VCard
7
3
  class Generator
@@ -3,7 +3,7 @@ module Middleman
3
3
 
4
4
  VERSION_MAJOR = 0
5
5
  VERSION_MINOR = 9
6
- VERSION_PATCH = 1
6
+ VERSION_PATCH = 2
7
7
 
8
8
  VERSION = "#{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_PATCH}"
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-vcard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Molari