alfred-workflow 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Gemfile +1 -19
- data/Gemfile.lock +28 -19
- data/Guardfile +12 -1
- data/History.txt +7 -10
- data/Manifest.txt +5 -4
- data/Rakefile +21 -7
- data/alfred-workflow.gemspec +77 -0
- data/lib/alfred.rb +6 -4
- data/lib/alfred/ui.rb +15 -36
- data/lib/alfred/version.rb +1 -1
- data/spec/{item_spec.rb → alfred/feedback/item_spec.rb} +0 -0
- data/spec/alfred/feedback_spec.rb +118 -0
- data/spec/alfred/setting_spec.rb +74 -0
- data/spec/alfred/ui_spec.rb +21 -0
- data/spec/alfred_spec.rb +3 -138
- data/spec/spec_helper.rb +13 -0
- metadata +161 -224
- metadata.gz.sig +0 -0
- data/.travis.yml +0 -19
- data/spec/feedback_spec.rb +0 -33
metadata.gz.sig
ADDED
Binary file
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 1.8.7
|
4
|
-
- 1.9.2
|
5
|
-
- 1.9.3
|
6
|
-
- 2.0.0
|
7
|
-
- ruby-head
|
8
|
-
- ree
|
9
|
-
- jruby-18mode
|
10
|
-
- jruby-19mode
|
11
|
-
- jruby-head
|
12
|
-
- rbx-18mode
|
13
|
-
- rbx-19mode
|
14
|
-
branches:
|
15
|
-
only:
|
16
|
-
- master
|
17
|
-
notifications:
|
18
|
-
recipients:
|
19
|
-
- caizhaoff@gmail.com
|
data/spec/feedback_spec.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe "Feedback" do
|
4
|
-
|
5
|
-
before :all do
|
6
|
-
@feedback = Alfred::Feedback.new
|
7
|
-
|
8
|
-
@item_elements = %w{title subtitle icon}
|
9
|
-
@item_attributes = %w{uid arg autocomplete}
|
10
|
-
end
|
11
|
-
|
12
|
-
it "should create a basic XML response" do
|
13
|
-
@feedback.add_item(:uid => "uid" ,
|
14
|
-
:arg => "arg" ,
|
15
|
-
:autocomplete => "autocomplete" ,
|
16
|
-
:title => "Title" ,
|
17
|
-
:subtitle => "Subtitle")
|
18
|
-
|
19
|
-
xml_data = <<-END.strip_heredoc
|
20
|
-
<?xml version="1.0"?>
|
21
|
-
<items>
|
22
|
-
<item valid="yes" arg="arg" autocomplete="autocomplete" uid="uid">
|
23
|
-
<title>Title</title>
|
24
|
-
<subtitle>Subtitle</subtitle>
|
25
|
-
<icon>icon.png</icon>
|
26
|
-
</item>
|
27
|
-
</items>
|
28
|
-
END
|
29
|
-
|
30
|
-
compare_xml(xml_data, @feedback.to_xml).should == true
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|