alfred-workflow 1.1.4 → 1.1.5

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.
Files changed (3) hide show
  1. data/README.md +23 -5
  2. data/lib/alfred/version.rb +1 -1
  3. metadata +5 -5
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # alfred-workflow
2
2
 
3
- home :: https://github.com/zhaocai/alfred-workflow
4
- code :: https://github.com/zhaocai/alfred-workflow
5
- bugs :: https://github.com/zhaocai/alfred-workflow/issues
6
- rdoc :: http://rubydoc.info/gems/alfred-workflow/
3
+ * home :: https://github.com/zhaocai/alfred-workflow
4
+ * code :: https://github.com/zhaocai/alfred-workflow
5
+ * bugs :: https://github.com/zhaocai/alfred-workflow/issues
6
+ * rdoc :: http://rubydoc.info/gems/alfred-workflow/
7
+
7
8
 
8
9
  ## DESCRIPTION:
9
10
 
10
- `alfred-workflow` is a ruby Gem helper for building [Alfred](http://www.alfredapp.com) workflow.
11
+ alfred-workflow is a ruby Gem helper for building [Alfred](http://www.alfredapp.com) workflow.
11
12
 
12
13
 
13
14
  ## FEATURES:
@@ -20,6 +21,23 @@ rdoc :: http://rubydoc.info/gems/alfred-workflow/
20
21
  * Functions to simplify generating feedback XML for Alfred.
21
22
  * Functions to simplify saving and retrieving settings.
22
23
 
24
+ ## SYNOPSIS:
25
+
26
+ ```ruby
27
+ require 'rubygems' unless defined? Gem
28
+ require "bundle/bundler/setup"
29
+ require "alfred"
30
+
31
+ Alfred.with_friendly_error do |alfred|
32
+ fb = alfred.feedback
33
+
34
+ fb.add_file_item(File.expand_path "~/Applications/")
35
+
36
+ puts fb.to_xml
37
+ end
38
+ ```
39
+
40
+ Code are wrapped in `Alfred.with_friendly_error` block. Exceptions and debug messages are logged to Console log file **~/Library/Logs/Alfred-Workflow.log**.
23
41
 
24
42
  ## INSTALL:
25
43
 
@@ -1,3 +1,3 @@
1
1
  module Alfred
2
- VERSION = '1.1.4'
2
+ VERSION = '1.1.5'
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.1.4
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,8 +75,8 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: '3.5'
78
- description: ! '`alfred-workflow` is a ruby Gem helper for building [Alfred](http://www.alfredapp.com)
79
- workflow.'
78
+ description: alfred-workflow is a ruby Gem helper for building [Alfred](http://www.alfredapp.com)
79
+ workflow.
80
80
  email:
81
81
  - caizhaoff@gmail.com
82
82
  executables: []
@@ -120,6 +120,6 @@ rubyforge_project: alfred-workflow
120
120
  rubygems_version: 1.8.24
121
121
  signing_key:
122
122
  specification_version: 3
123
- summary: ! '`alfred-workflow` is a ruby Gem helper for building [Alfred](http://www.alfredapp.com)
124
- workflow.'
123
+ summary: alfred-workflow is a ruby Gem helper for building [Alfred](http://www.alfredapp.com)
124
+ workflow.
125
125
  test_files: []