exchange-offline-address-book 0.0.21 → 0.0.22

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: f239ef0e5e42b4bae3c9851ad6101c68d76add2e
4
- data.tar.gz: e241b73dcc0030346bd82f0389c42f202d409614
3
+ metadata.gz: 947c78913649b08047b71e83727990a8f878a8f8
4
+ data.tar.gz: 1254537b6ba6e736117ca69886f4e3ae4be3743f
5
5
  SHA512:
6
- metadata.gz: f19aae2d253ed8358cd18b121d3b4c2cbe877431f0168c322de831ea5fb72a202aa8acf52cc6aee2c56d2f7939baf8356a23b0da1053518df5b6424217ff2166
7
- data.tar.gz: ae23f5cb6cd2003edf14320daa5c91e04cf3a7b5ef5b022fbecccb7ef7035c1e60bddc6450f360fef96e2fd7f83637954155f5903aa0bc9045f6c00598831f00
6
+ metadata.gz: dadbeb5b49a5e1b8eb36758268dfcc05df5f3d7d4c4d6199eea6d3ca19be91dbde817dae3795999d1b97dd0bb7471dcf6a5b75fc5a475a9321ca4cf463800cd6
7
+ data.tar.gz: 7674415ad4af74494f8044da15bb2e600b755e648d1a3abb1df844279d8420fad8a8e936dd905ec519c02b5bafb81cc68aa1e6f6025daf505df1658110b644bb
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exchange-offline-address-book (0.0.21)
4
+ exchange-offline-address-book (0.0.22)
5
5
  autodiscover (~> 1)
6
6
  curb (~> 0.9)
7
7
  hashie
@@ -59,6 +59,10 @@ module Exchange
59
59
  open(cache, 'w'){|f| f.write(JSON.pretty_generate(@records)) }
60
60
  end
61
61
 
62
+ def cache
63
+ @cache ||= File.join(@dir || @cachedir, File.basename(addressbook, File.extname(addressbook)) + '.json')
64
+ end
65
+
62
66
  private
63
67
 
64
68
  def fetch_to(dir)
@@ -116,10 +120,6 @@ module Exchange
116
120
  File.join(@dir, oab)
117
121
  end
118
122
  end
119
-
120
- def cache
121
- @cache ||= File.join(@dir, File.basename(addressbook, File.extname(addressbook)) + '.json')
122
- end
123
123
  end
124
124
 
125
125
  end
@@ -1,5 +1,5 @@
1
1
  module Exchange
2
2
  module OfflineAddressBook
3
- VERSION = '0.0.21'
3
+ VERSION = '0.0.22'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exchange-offline-address-book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns