alfred-workflow 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/lib/alfred.rb +8 -1
- data/lib/alfred/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
|
4
|
-
|
3
|
+
metadata.gz: 8b3c5fffe416e05c99f4baad880f92456cc10fd8
|
4
|
+
data.tar.gz: 55a135c15ccf8448be4ffdd421537dfd05d6f6c9
|
5
5
|
SHA512:
|
6
|
-
|
7
|
-
|
6
|
+
metadata.gz: e82a150c2e4d388fbcbe4f60436777fb70091810f4c7188592bcf73f62cf3e391f58565ba7584ed466ef60c1067579cda5dd1c9f5667dd305d4c9690a3b959e5
|
7
|
+
data.tar.gz: 1d23f9683615bcc24164e2e039eb719ec56cba0348d3ab2d50dfe8161aa02552c3f352cb87baf5dc6b72fbb25517c0861aab131b93ef7bdfb440bab61fd97b57
|
data/README.md
CHANGED
@@ -16,6 +16,7 @@ alfred-workflow is a ruby Gem helper for building [Alfred](http://www.alfredapp.
|
|
16
16
|
* Use standard [bundler][gembundler] to easily package, manage, and update ruby gems in the workflow.
|
17
17
|
* Friendly exception and debug output to the Mac OS X Console.
|
18
18
|
* Automate rescue feedback items to alfred when something goes wrong.
|
19
|
+
* Functions to easily load and save user configuration (in YAML)
|
19
20
|
* Functions for smart case query filter of feedback results.
|
20
21
|
* Functions for finding the bundle ID, cache and storage paths, and query arguments.
|
21
22
|
* Functions for reading and writing plist files.
|
@@ -51,7 +52,14 @@ Code are wrapped in `Alfred.with_friendly_error` block. Exceptions and debug mes
|
|
51
52
|
|
52
53
|
## Example Projects
|
53
54
|
|
54
|
-
* [
|
55
|
+
* [alfred2-top-workflow]( https://github.com/zhaocai/alfred2-top-workflow )
|
56
|
+
* [alfred2-google-workflow]( https://github.com/zhaocai/alfred2-google-workflow )
|
57
|
+
* [alfred2-sourcetree-workflow]( https://github.com/zhaocai/alfred2-sourcetree-workflow )
|
58
|
+
|
59
|
+
|
60
|
+
## Troubleshooting
|
61
|
+
|
62
|
+
|
55
63
|
|
56
64
|
|
57
65
|
## DEVELOPERS:
|
data/lib/alfred.rb
CHANGED
@@ -2,9 +2,11 @@ require 'rubygems' unless defined? Gem # rubygems is only needed in 1.8
|
|
2
2
|
|
3
3
|
require 'plist'
|
4
4
|
require 'fileutils'
|
5
|
+
require "yaml"
|
5
6
|
|
6
7
|
require 'alfred/ui'
|
7
8
|
require 'alfred/feedback'
|
9
|
+
require 'alfred/setting'
|
8
10
|
|
9
11
|
module Alfred
|
10
12
|
|
@@ -63,7 +65,6 @@ module Alfred
|
|
63
65
|
end
|
64
66
|
end
|
65
67
|
|
66
|
-
|
67
68
|
class Core
|
68
69
|
attr_accessor :with_rescue_feedback
|
69
70
|
|
@@ -76,6 +77,10 @@ module Alfred
|
|
76
77
|
@ui ||= Logger.new(bundle_id)
|
77
78
|
end
|
78
79
|
|
80
|
+
def setting
|
81
|
+
@setting ||= Setting.new(self)
|
82
|
+
end
|
83
|
+
|
79
84
|
def feedback
|
80
85
|
raise NoBundleIDError unless bundle_id
|
81
86
|
@feedback ||= Feedback.new
|
@@ -109,6 +114,8 @@ module Alfred
|
|
109
114
|
path
|
110
115
|
end
|
111
116
|
|
117
|
+
|
118
|
+
|
112
119
|
def rescue_feedback(opts = {})
|
113
120
|
default_opts = {
|
114
121
|
:title => "Failed Query!",
|
data/lib/alfred/version.rb
CHANGED