hoodie 0.2.3 → 0.2.4
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 +4 -4
- data/lib/hoodie/stash/disk_store.rb +6 -8
- data/lib/hoodie/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02c7f5949654025049f5d31b44a053e391cf1acc
|
|
4
|
+
data.tar.gz: 715bc9fb1518e1c2fd90e591c86c8843b159bd09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85bdc00b8e353643a669a33ff04987485ac46e85a98d9bd2ed36a085c8dee73686a62eb54bfd16e196952ff942004b914e33042d2068954c8010f6a47875c415
|
|
7
|
+
data.tar.gz: 98c1dd4c8ddca703a965319d6477c7dd8c4a06bb8506b17aa0e4bdd38d4fe478144276c7882fc4f184d0d34a6a0b2b6371f0ecf10fa4ad8612732ff3c24f4e29
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
#
|
|
13
13
|
# Unless required by applicable law or agreed to in writing, software
|
|
14
14
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
16
|
-
# implied. See the License for the specific language governing
|
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
16
|
+
# implied. See the License for the specific language governing
|
|
17
17
|
# permissions and limitations under the License.
|
|
18
18
|
#
|
|
19
19
|
|
|
@@ -103,12 +103,10 @@ module DiskStash
|
|
|
103
103
|
# temp path. On Winders Dir.tmpdir returns the correct path.
|
|
104
104
|
#
|
|
105
105
|
def file_store
|
|
106
|
-
# tmp = defined?(Chef::Config) ? Chef::Config[:file_cache_path] : Dir.tmpdir
|
|
107
106
|
if OS.windows?
|
|
108
|
-
win_friendly_path('/
|
|
107
|
+
win_friendly_path('/chef/._stash_')
|
|
109
108
|
else
|
|
110
|
-
'_stash'
|
|
111
|
-
# ::File.join(tmp, '._stash')
|
|
109
|
+
::File.join('var', 'lib', '._stash')
|
|
112
110
|
end
|
|
113
111
|
end
|
|
114
112
|
|
|
@@ -122,7 +120,7 @@ module DiskStash
|
|
|
122
120
|
end
|
|
123
121
|
|
|
124
122
|
def _write_cache_file(key, content)
|
|
125
|
-
f = ::File.open(cache_file(key), '
|
|
123
|
+
f = ::File.open(cache_file(key), 'wb' )
|
|
126
124
|
f.flock(::File::LOCK_EX)
|
|
127
125
|
f.write(content)
|
|
128
126
|
f.close
|
|
@@ -130,7 +128,7 @@ module DiskStash
|
|
|
130
128
|
end
|
|
131
129
|
|
|
132
130
|
def _read_cache_file(key)
|
|
133
|
-
f = ::File.open(cache_file(key), '
|
|
131
|
+
f = ::File.open(cache_file(key), 'rb')
|
|
134
132
|
f.flock(::File::LOCK_SH)
|
|
135
133
|
out = f.read
|
|
136
134
|
f.close
|
data/lib/hoodie/version.rb
CHANGED