utilitypack 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utility_pack/persistenthash.rb +3 -3
- data/lib/utility_pack/version.rb +1 -1
- metadata +3 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'json
|
2
|
+
require 'json'
|
3
3
|
require 'utility_pack/core_ext/file'
|
4
4
|
|
5
5
|
module UtilityPack
|
@@ -14,11 +14,11 @@ module UtilityPack
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def load
|
17
|
-
File.exists?(@path) ? json_parse_file(@path) : {}
|
17
|
+
::File.exists?(@path) ? json_parse_file(@path) : {}
|
18
18
|
end
|
19
19
|
|
20
20
|
def save h
|
21
|
-
File.write_file @path, h.to_json
|
21
|
+
::File.write_file @path, h.to_json
|
22
22
|
end
|
23
23
|
|
24
24
|
def [](key)
|
data/lib/utility_pack/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 4
|
9
|
+
version: 0.5.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Brian Pfeil
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2012-01-05 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|