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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- data.tar.gz: f3a1332027c93637c9d4445dd2deee89b6db0cf3
4
- metadata.gz: 916f3e4bea283b76e93260b7f6a118e3860eea3a
3
+ metadata.gz: 8b3c5fffe416e05c99f4baad880f92456cc10fd8
4
+ data.tar.gz: 55a135c15ccf8448be4ffdd421537dfd05d6f6c9
5
5
  SHA512:
6
- data.tar.gz: d76507d49d17e6048b4fe62abb7acb531b60f7a5e561cdeccd72f034245a5ca97add2a4a41743dc63e0e1045e61a1f9222a7c9932db19f9c8917b1add998d634
7
- metadata.gz: 6a3374efdd56b0ee35ac4f96b482c5b6f6d59b5f14deaed37a8ca437fcc7607ff585e878c798a7c4282056f63d1a5605969f9159a512da48d61cf874faa1225f
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
- * [alfred2_top_workflow]( https://github.com/zhaocai/alfred2-top-workflow )
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:
@@ -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!",
@@ -1,3 +1,3 @@
1
1
  module Alfred
2
- VERSION = '1.3.0'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alfred-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhao Cai