grosser-concat_rpc 0.1.1 → 0.1.2

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.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'rubygems'
15
15
  require 'rake'
16
16
  require 'echoe'
17
17
 
18
- Echoe.new('concat_rpc', '0.1.1') do |p|
18
+ Echoe.new('concat_rpc', '0.1.2') do |p|
19
19
  p.description = "Api for 20Sec Concat - Contact managing"
20
20
  p.url = "http://github.com/grosser/concat_rpc"
21
21
  p.author = "Michael Grosser"
@@ -31,4 +31,4 @@ task :update_gemspec do
31
31
  puts "updating..."
32
32
  `rake manifest`
33
33
  `rake build_gemspec`
34
- end
34
+ end
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{concat_rpc}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Michael Grosser"]
9
- s.date = %q{2008-12-31}
9
+ s.date = %q{2009-01-09}
10
10
  s.description = %q{Api for 20Sec Concat - Contact managing}
11
11
  s.email = %q{grosser.michael@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/concat_rpc/person.rb", "lib/concat_rpc.rb", "README.markdown"]
13
- s.files = ["Manifest", "lib/concat_rpc/person.rb", "lib/concat_rpc.rb", "spec/spec_helper.rb", "spec/concat_rpc_spec.rb", "init.rb", "Rakefile", "README.markdown", "concat_rpc.gemspec"]
13
+ s.files = ["Manifest", "nbproject/private/private.xml", "nbproject/private/rake-d.txt", "lib/concat_rpc/person.rb", "lib/concat_rpc.rb", "spec/spec_helper.rb", "spec/concat_rpc_spec.rb", "init.rb", "Rakefile", "README.markdown", "concat_rpc.gemspec"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/grosser/concat_rpc}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Concat_rpc", "--main", "README.markdown"]
@@ -10,7 +10,7 @@ module ConcatRPC
10
10
 
11
11
  def self.find_by_text(text)
12
12
  person = ConcatRPC.find_person(text).first
13
- return unless person
13
+ return nil if person.blank?
14
14
  find(person['id'])
15
15
  end
16
16
 
@@ -20,6 +20,9 @@ describe ConcatRPC do
20
20
  it "finds a person by email" do
21
21
  Person.find_by_text(PERSON_EMAIL).id.should == PERSON_ID
22
22
  end
23
+ it "returns nil for unfound persons" do
24
+ Person.find_by_text('adsaadsadsaswwwddssdsdsdadadsdas').should == nil
25
+ end
23
26
  end
24
27
  describe 'tagging' do
25
28
  before do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grosser-concat_rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-31 00:00:00 -08:00
12
+ date: 2009-01-09 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -33,6 +33,8 @@ extra_rdoc_files:
33
33
  - README.markdown
34
34
  files:
35
35
  - Manifest
36
+ - nbproject/private/private.xml
37
+ - nbproject/private/rake-d.txt
36
38
  - lib/concat_rpc/person.rb
37
39
  - lib/concat_rpc.rb
38
40
  - spec/spec_helper.rb