rubyfocus 0.5.14 → 0.5.15

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: 8581dfed788ba0dfb1e96ea144f71eba4aec2ec7
4
- data.tar.gz: b17a95a671ece4c2fbe3568c263efe20ead678d9
3
+ metadata.gz: f5a4c91ed0928fd76122bd1a73aac09cd7865910
4
+ data.tar.gz: c0b84fe38a026dec491cacb779d1af6711c113e4
5
5
  SHA512:
6
- metadata.gz: d931ad7f5ced5acba9da8063341cd00d7ba10d6721131d010b1543a8b6c044dac12f13ad565c234140e303f16b9c4c4d6bf20c0d4138ce9ac7b780cc96a3a2ca
7
- data.tar.gz: '0859e4936f4341b911cbbd0c330226348a1facb716efddaf32493678b319cc2a8eef056f93ef2108d1606907d393710efc537850ab9e4a2699a2626ea3b486e5'
6
+ metadata.gz: e310985eb7a3abb07c71659308b02e819db7ca8d833d543b3bf6c050ceda74ad009a22008c5d55b1bb9938db02def736ad749c94dfdc92cf3d45e6c7be47a469
7
+ data.tar.gz: ab34e7acef67d5c7a4892a71065ae98200398027d9698d2630bc502987c136bfba55db773e7c6b5ec73e235bfdfe4cff5a15614f8066d60e07aa2ff5227342fe
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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.15]
6
+
7
+ ## Changed
8
+
9
+ * Fixed further bugs related to Rubyfocus' not being able to pick the base file from OmniFocus' local file store.
10
+
5
11
  ## [0.5.14]
6
12
 
7
13
  ### 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.14.gem
23
+ gem install rubyfocus-0.5.15.gem
24
24
  ```
25
25
 
26
26
  # Usage
@@ -88,7 +88,7 @@ class Rubyfocus::Fetcher
88
88
  # apply the latest one.
89
89
  def next_patch(document)
90
90
  all_possible_patches = self.patches.select{ |patch| patch.can_patch?(document) }
91
- return all_possible_patches.sort.first
91
+ return all_possible_patches.sort.last
92
92
  end
93
93
 
94
94
 
@@ -24,7 +24,7 @@ class Rubyfocus::LocalFetcher < Rubyfocus::Fetcher
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")].sort.first)
27
+ base_file = File.basename(sorted_files.first)
28
28
  if base_file =~ /^\d+\=.*\+(.*)\.zip$/
29
29
  $1
30
30
  else
@@ -34,7 +34,12 @@ class Rubyfocus::LocalFetcher < Rubyfocus::Fetcher
34
34
 
35
35
  # Fetches a list of every patch file
36
36
  def patches
37
- @patches ||= Dir[File.join(self.location, "*.zip")][1..-1].map{ |f| Rubyfocus::Patch.new(self, File.basename(f)) }
37
+ @patches ||= sorted_files[1..-1].map{ |f| Rubyfocus::Patch.new(self, File.basename(f)) }
38
+ end
39
+
40
+ # Fetch a sorted list of files from this directory
41
+ private def sorted_files
42
+ @sorted_files ||= Dir[File.join(self.location, "*.zip")].sort
38
43
  end
39
44
 
40
45
  # Fetches the contents of a given patch file
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.5.14
1
+ 0.5.15
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.14
4
+ version: 0.5.15
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-18 00:00:00.000000000 Z
11
+ date: 2018-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri