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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a81355ad4a09d80a8c79b39369b9085df8ddbe92
4
- data.tar.gz: b52c6430199f0a32bd2c7a696195e1cb7d7d90ba
3
+ metadata.gz: 8581dfed788ba0dfb1e96ea144f71eba4aec2ec7
4
+ data.tar.gz: b17a95a671ece4c2fbe3568c263efe20ead678d9
5
5
  SHA512:
6
- metadata.gz: d0b6ec90c5ce0f3e1824ca6221e7ec44b6ed0346b5c0c5a4569c3d23550b14396fb8662c115b76d0c87182ef2f1d435da6091465574160ddf931465545230d4c
7
- data.tar.gz: 47b98d9d0d55f620477d075ff9a6081aa5ddd3456dc4936fb881e8d32a951e9bb2b28ecf86d4bd4223fdb5466fb44815c076f155a92d252d2e77dae67cdf3877
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
@@ -20,7 +20,7 @@ Now build and install it!
20
20
 
21
21
  ```
22
22
  gem build rubyfocus.gemspec
23
- gem install rubyfocus-0.5.13.gem
23
+ gem install rubyfocus-0.5.14.gem
24
24
  ```
25
25
 
26
26
  # Usage
@@ -151,7 +151,7 @@ class Rubyfocus::Document
151
151
  if(
152
152
  element.class == Rubyfocus::Task &&
153
153
  (node / "project *").size > 0
154
- )
154
+ )
155
155
 
156
156
  # Upgrade
157
157
  new_node = element.to_project
@@ -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, "Rubyfocs::LocalFetcher looking for zip files at #{self.location}: none found."
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.13
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.13
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-10 00:00:00.000000000 Z
11
+ date: 2017-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri