rubyfocus 0.5.13 → 0.5.14
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/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/rubyfocus/document.rb +1 -1
- data/lib/rubyfocus/fetchers/local_fetcher.rb +3 -3
- data/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8581dfed788ba0dfb1e96ea144f71eba4aec2ec7
|
4
|
+
data.tar.gz: b17a95a671ece4c2fbe3568c263efe20ead678d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d931ad7f5ced5acba9da8063341cd00d7ba10d6721131d010b1543a8b6c044dac12f13ad565c234140e303f16b9c4c4d6bf20c0d4138ce9ac7b780cc96a3a2ca
|
7
|
+
data.tar.gz: '0859e4936f4341b911cbbd0c330226348a1facb716efddaf32493678b319cc2a8eef056f93ef2108d1606907d393710efc537850ab9e4a2699a2626ea3b486e5'
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [0.5.14]
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
* Fixed a bug where Rubyfocus sometimes picks the wrong file to be the "base" file.
|
10
|
+
* Fixed a typo.
|
11
|
+
|
5
12
|
## [0.5.13] - 2017-12-10
|
6
13
|
|
7
14
|
### Changed
|
data/README.md
CHANGED
data/lib/rubyfocus/document.rb
CHANGED
@@ -13,18 +13,18 @@ class Rubyfocus::LocalFetcher < Rubyfocus::Fetcher
|
|
13
13
|
# Fetches the contents of the base file
|
14
14
|
def base
|
15
15
|
@base ||= begin
|
16
|
-
zip_file = Dir[File.join(self.location,"*.zip")].first
|
16
|
+
zip_file = Dir[File.join(self.location,"*.zip")].sort.first
|
17
17
|
if zip_file
|
18
18
|
Zip::File.open(zip_file){ |z| z.get_entry("contents.xml").get_input_stream.read }
|
19
19
|
else
|
20
|
-
raise RuntimeError, "
|
20
|
+
raise RuntimeError, "Rubyfocus::LocalFetcher looking for zip files at #{self.location}: none found."
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
# Fetches the ID Of the base file
|
26
26
|
def base_id
|
27
|
-
base_file = File.basename(Dir[File.join(self.location,"*.zip")].first)
|
27
|
+
base_file = File.basename(Dir[File.join(self.location,"*.zip")].sort.first)
|
28
28
|
if base_file =~ /^\d+\=.*\+(.*)\.zip$/
|
29
29
|
$1
|
30
30
|
else
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.14
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyfocus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan-Yves Ruzicka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|