rubyfocus 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -1
- data/README.md +2 -2
- data/lib/rubyfocus/fetchers/oss_fetcher.rb +4 -4
- data/lib/rubyfocus/includes/searchable.rb +2 -2
- data/lib/rubyfocus/items/ranked_item.rb +1 -1
- data/version.txt +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82077645344ca5fe1545fcd39cde72a210068a36
|
4
|
+
data.tar.gz: a054fac0fe2b89ea91b4e32277abe843b5a7a0ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
##
|
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.
|
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.
|
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
|
-
|
102
|
-
data = self.fetcher.get(
|
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 #{
|
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
|
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
|
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,
|
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.
|
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.
|
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:
|
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.
|
129
|
+
rubygems_version: 2.5.1
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Pure ruby bridge to OmniFocus.
|