rubyfocus 0.5.11 → 0.5.12

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: a081be1af0e05194f95e7de7e5e4452a53605971
4
- data.tar.gz: 84f7160ffec7195233677897531a7c128eed5bb6
3
+ metadata.gz: 82077645344ca5fe1545fcd39cde72a210068a36
4
+ data.tar.gz: a054fac0fe2b89ea91b4e32277abe843b5a7a0ed
5
5
  SHA512:
6
- metadata.gz: aa6f406623b728c990eb1d79877a1485437383a427563fdf16ad657e325bed552fbcecec7eeb0b59388a4e026809470dc5831a4b4de91dc0df10ec019d28b0b6
7
- data.tar.gz: c5ca0640fc7d3643d8b1c6946dd533c9e4f1ea2f99cb6b054ce7d5f2d8ce933bb23dd672ec21b713df1bd2e3457a283ee2b141f30cbe09b8f3e006840b1e333f
6
+ metadata.gz: 983822f28897f7456a4bc84f9bea36d48a73805ea6478bd9ff0cc5537a5fdcf0d368327eebddcca67bdd8582e2920c8968f674952922bcf46bfac46efc781825
7
+ data.tar.gz: 2bfce9942ad55a3019870d86855932b92ee91bfb5870e21a9a0b733e06c8d4f1eb9f778c3f5b6f93112721fcc09cce741b8d5823da2d20d23b697e1da17a5b9d
data/CHANGELOG.md CHANGED
@@ -2,13 +2,14 @@
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
- ## Unreleased
5
+ ## [0.5.12] - 2017-09-16
6
6
 
7
7
  ### Added
8
8
  * `Fetcher#encrypted?` will tell you if a fetcher is looking at an encrypted folder or not.
9
9
 
10
10
  ### Changed
11
11
 
12
+ * Replaced references to `Fixnum` with `Integer`
12
13
  * `Document#update` will error if you try to update based on an encrypted fetcher.
13
14
  * HISTORY.md is now CHANGELOG.md
14
15
  * Reformatted Changelog to match KaC format
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Version: 0.5.11
1
+ # Version: 0.5.12
2
2
 
3
3
  Rubyfocus is a one-way (read-only) ruby bridge to OmniFocus. Analyse, store, inspect, or play with your projects and tasks in OmniFocus from the comfort and flexibility of ruby!
4
4
 
@@ -22,7 +22,7 @@ Now build and install it!
22
22
 
23
23
  ```
24
24
  gem build rubyfocus.gemspec
25
- gem install rubyfocus-0.5.11.gem
25
+ gem install rubyfocus-0.5.12.gem
26
26
  ```
27
27
 
28
28
  # Usage
@@ -98,14 +98,14 @@ class Rubyfocus::OSSFetcher < Rubyfocus::Fetcher
98
98
  end
99
99
 
100
100
  def fetch_file(f)
101
- f = File.join(url,f)
102
- data = self.fetcher.get(f, digest_auth: auth).body
101
+ fq_zipfile = File.join(url,f)
102
+ data = self.fetcher.get(fq_zipfile, digest_auth: auth).body
103
103
  io = StringIO.new(data)
104
104
  Zip::InputStream.open(io) do |io|
105
105
  while (entry = io.get_next_entry)
106
106
  return io.read if entry.name == "contents.xml"
107
107
  end
108
- raise Rubyfocus::OSSFetcherError, "Malformed OmniFocus zip file #{zipfile}."
108
+ raise Rubyfocus::OSSFetcherError, "Malformed OmniFocus zip file #{fq_zipfile}."
109
109
  end
110
110
  end
111
- end
111
+ end
@@ -9,7 +9,7 @@ module Rubyfocus
9
9
  #
10
10
  # data_store.find{ |o| o.name == "Foobard" }
11
11
  #
12
- # If you pass +find+ or +select+ a String or Fixnum, it will look for objects
12
+ # If you pass +find+ or +select+ a String or Integer, it will look for objects
13
13
  # whose +id+ equals this value.
14
14
  #
15
15
  # You should ensure that your class' +array+ method is overwritten to point
@@ -47,7 +47,7 @@ module Rubyfocus
47
47
  # This method determines the correct block to use in find or select operations
48
48
  def find_select_block(arg)
49
49
  case arg
50
- when Fixnum # ID
50
+ when Integer # ID
51
51
  string_id = arg.to_s
52
52
  Proc.new{ |item| item.id == string_id }
53
53
  when String
@@ -17,7 +17,7 @@ class Rubyfocus::RankedItem < Rubyfocus::NamedItem
17
17
  # Is this item contained within another? You may supply an object, string or integer ID, hash of properties,
18
18
  # or proc to run on each item.
19
19
  def contained_within?(object)
20
- if [String, Fixnum, Hash, Proc].include?(object.class)
20
+ if [String, Integer, Hash, Proc].include?(object.class)
21
21
  document.find_all(object).any?{ |o| ancestry.include?(o) }
22
22
  else
23
23
  ancestry.include?(object)
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.5.11
1
+ 0.5.12
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.11
4
+ version: 0.5.12
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: 2016-11-15 00:00:00.000000000 Z
11
+ date: 2017-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.4.5.1
129
+ rubygems_version: 2.5.1
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Pure ruby bridge to OmniFocus.