delegator 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,19 @@
1
- = delegator
1
+ = Delegator
2
+
3
+ Capture leads data, follow up later with canned responses and email marketing.
4
+
5
+ ===== delegator.bakedweb.net
6
+
7
+
8
+ == Usage:
9
+
10
+ ===== The most basic form of lead.
11
+
12
+ params = { :person => { :email => "ivan@bakedweb.net", :nombre => "IvanHo", :telefono => "3057737020", :account => "bakedweb"}}
13
+
14
+ Bakedweb::Delegator.envia(params)
15
+
2
16
 
3
- This is a gem we use to send leads to Bakedweb's backend app.
4
17
 
5
18
  == Note on Patches/Pull Requests
6
19
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.1.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{delegator}
8
- s.version = "0.0.0"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["ivanacostarubio"]
12
- s.date = %q{2010-07-26}
12
+ s.date = %q{2010-08-03}
13
13
  s.description = %q{We use this gem to send leads to Bakedweb's backend}
14
14
  s.email = %q{ivan@bakedweb.net}
15
15
  s.extra_rdoc_files = [
@@ -8,7 +8,7 @@ class Bakedweb
8
8
  raise "WrongNumberOfParams" if params[:person][:telefono] == nil
9
9
  raise "WrongNumberOfParams" if params[:person][:email] == nil
10
10
  raise "WrongNumberOfParams" if params[:person][:account] == nil
11
- RestClient.post 'admin.bolsitosdecolores.com/people', params
11
+ RestClient.post 'admin.bolsitosdecolores.com/people.json', params
12
12
  end
13
13
  end
14
14
  end
@@ -5,7 +5,7 @@ require 'rubygems'
5
5
  require 'fakeweb'
6
6
  require 'delegator'
7
7
 
8
- FakeWeb.register_uri(:get, "admin.bolsitosdecolores.com/people", :body => "success")
8
+ FakeWeb.register_uri(:get, "admin.bolsitosdecolores.com/people.json", :body => "success")
9
9
 
10
10
 
11
11
  describe Bakedweb do
@@ -38,9 +38,17 @@ describe Bakedweb do
38
38
  end
39
39
 
40
40
  describe "Sending data with RestClient" do
41
+ before(:all) do
42
+ params = {:person => { :email => "ivan@bakedweb.net", :nombre => "ivanho", :telefono => "3057737020", :account => "bakedweb"} }
43
+ @response = Bakedweb::Delegator.envia(params)
44
+ end
45
+
41
46
  it "should use restclient" do
42
- params = {:person => { :email => "ivan@bakedweb.net", :nombre => "3057737020", :telefono => "3057737020", :account => "bakedweb"} }
43
- Bakedweb::Delegator.envia(params).class.should == String
47
+ @response.class.should == String
48
+ end
49
+
50
+ it "should return 201 for response" do
51
+ @response.code.should == 201
44
52
  end
45
53
  end
46
54
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 0
9
- version: 0.0.0
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - ivanacostarubio
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-26 00:00:00 -04:00
17
+ date: 2010-08-03 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency