ppl 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/completions/bash +1 -0
- data/features/grep.feature +10 -0
- data/lib/ppl/application/bootstrap.rb +7 -0
- data/ppl.gemspec +2 -2
- data/spec/ppl/application/bootstrap_spec.rb +9 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6751b47fc16bbbe1cf3f04a8c314f3c6fb54ff6
|
4
|
+
data.tar.gz: c44d7945c8b6994f0adfc8aadb59936e2a8bb5c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0683f92143ecfbcb291ad7d8c341cf946652f74f563d765b738ae6a703aae324bf6818d5e20db394b5ed9cab89187d195e4842b3cd79246d3b1b05211b1bde4c
|
7
|
+
data.tar.gz: 56a3e71bfde3fbf4affbc1865239e84fd7a20b2767b83dcc4b776c3afd6d5f2f9b1c220785c9543bfde8c75bc074d3a37be229336fdaad846657b4855ae7119f
|
data/completions/bash
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
Feature: ppl grep
|
3
|
+
|
4
|
+
Scenario: Search for matching lines using git grep
|
5
|
+
Given I am in an address book with a blank contact called bob
|
6
|
+
And bob's name is "Robert Testing"
|
7
|
+
And bob's email address is "bob@example.org"
|
8
|
+
Then running "ppl grep bob" should output 1 line
|
9
|
+
And the 1st line should be "bob.vcf:EMAIL:bob@example.org"
|
10
|
+
|
@@ -52,6 +52,12 @@ class Ppl::Application::Bootstrap
|
|
52
52
|
help
|
53
53
|
end
|
54
54
|
|
55
|
+
register :command_grep do
|
56
|
+
grep = Ppl::Command::External.new("grep", "git grep", "Execute 'git grep' in the address book directory")
|
57
|
+
grep.storage = storage_adapter
|
58
|
+
grep
|
59
|
+
end
|
60
|
+
|
55
61
|
register :command_init do
|
56
62
|
init = Ppl::Command::Init.new
|
57
63
|
init.storage = storage_adapter
|
@@ -187,6 +193,7 @@ class Ppl::Application::Bootstrap
|
|
187
193
|
suite.add_command command_bday
|
188
194
|
suite.add_command command_completion
|
189
195
|
suite.add_command command_email
|
196
|
+
suite.add_command command_grep
|
190
197
|
suite.add_command command_help
|
191
198
|
suite.add_command command_init
|
192
199
|
suite.add_command command_ls
|
data/ppl.gemspec
CHANGED
@@ -43,6 +43,12 @@ describe Ppl::Application::Bootstrap do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
describe "#command_grep" do
|
47
|
+
it "should return a command" do
|
48
|
+
@bootstrap.command_grep.should be_a(Ppl::Application::Command)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
46
52
|
describe "#command_help" do
|
47
53
|
it "should return a Ppl::Command::Help" do
|
48
54
|
@bootstrap.command_help.should be_a(Ppl::Command::Help)
|
@@ -437,6 +443,9 @@ describe Ppl::Application::Bootstrap do
|
|
437
443
|
it "should contain the 'email' command" do
|
438
444
|
@bootstrap.command_suite.find_command("email").should_not be nil
|
439
445
|
end
|
446
|
+
it "should contain the 'grep' command" do
|
447
|
+
@bootstrap.command_suite.find_command("grep").should_not be nil
|
448
|
+
end
|
440
449
|
it "should contain the 'init' command" do
|
441
450
|
@bootstrap.command_suite.find_command("init").should_not be nil
|
442
451
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ppl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- features/add.feature
|
172
172
|
- features/bday.feature
|
173
173
|
- features/email.feature
|
174
|
+
- features/grep.feature
|
174
175
|
- features/init.feature
|
175
176
|
- features/ls.feature
|
176
177
|
- features/mutt.feature
|
@@ -384,3 +385,4 @@ signing_key:
|
|
384
385
|
specification_version: 4
|
385
386
|
summary: The command line address book
|
386
387
|
test_files: []
|
388
|
+
has_rdoc:
|