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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29ebfed69dcf001e746e48a71e7264a479c5a3cb
4
- data.tar.gz: 76df48178f8096c31e4c425433798ebe21dd3138
3
+ metadata.gz: e6751b47fc16bbbe1cf3f04a8c314f3c6fb54ff6
4
+ data.tar.gz: c44d7945c8b6994f0adfc8aadb59936e2a8bb5c3
5
5
  SHA512:
6
- metadata.gz: 5e414fbc166fc1d3eef308a476bcbbd89315fa7276a42b19c28dbc993c9945bdd8c0ea362e31214f6be89e41ba1556fd33d2be9689771bfb6d6c942de952a60f
7
- data.tar.gz: 4620b182ccea6549b53c4ee456f239fb167db7f336d4e8c1a323f4f9d6469f445289b3ebf312ab8750a553ddf462c826a238dc686148e32d0baf94ad83a75333
6
+ metadata.gz: 0683f92143ecfbcb291ad7d8c341cf946652f74f563d765b738ae6a703aae324bf6818d5e20db394b5ed9cab89187d195e4842b3cd79246d3b1b05211b1bde4c
7
+ data.tar.gz: 56a3e71bfde3fbf4affbc1865239e84fd7a20b2767b83dcc4b776c3afd6d5f2f9b1c220785c9543bfde8c75bc074d3a37be229336fdaad846657b4855ae7119f
data/completions/bash CHANGED
@@ -189,6 +189,7 @@ __ppl_commands()
189
189
  echo "bday"
190
190
  echo "completion"
191
191
  echo "email"
192
+ echo "grep"
192
193
  echo "init"
193
194
  echo "ls"
194
195
  echo "mutt"
@@ -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
@@ -2,8 +2,8 @@
2
2
  Gem::Specification.new do |spec|
3
3
 
4
4
  spec.name = "ppl"
5
- spec.version = "2.2.0"
6
- spec.date = "2013-07-20"
5
+ spec.version = "2.3.0"
6
+ spec.date = "2013-10-12"
7
7
 
8
8
  spec.required_ruby_version = ">= 1.9.3"
9
9
 
@@ -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.2.0
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-07-20 00:00:00.000000000 Z
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: