rdstation-ruby-client 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f05e3bb0cc97936927b8a13b65bb8d0b2e3be9c
4
- data.tar.gz: 4c439967950ac138283f458f2d390e252be49307
3
+ metadata.gz: 0b7a4c99778510e108208f90b32ae15a9e0d17fd
4
+ data.tar.gz: 82e639874139f4f0989f4c2dffdd4d82fe14c62d
5
5
  SHA512:
6
- metadata.gz: a2de9a8366104abe9d80ea481e375af59c204b7f7806545388347464e20971d7af0caf2906d05256bcdc57140079b3e9610daf5817d54499a04a3e57515eac26
7
- data.tar.gz: ffe014fd6aba574d1740c64c2135fb3ea1dfea75bb6fb6197b12cf28bcaccb762ae8dcb966b05376fe8a82aa1e0be0ef0d89d59da57d74b0b26490601363512b
6
+ metadata.gz: 1d3dc24bdddd186f3933c3c65cb32f00ff3d48bfc3c67a0dc5bc130064787e85d194c40609d8b23688e61a8783bfb8aad67fe69cebf34809b4d1e1e3ae106f00
7
+ data.tar.gz: b601e929310add3f122dd92c66919f82614ba3973d33004bf5e03565b7814458d59003261c4e31ed7e3c45a4fa9912573bf50a85a3777b944e8bce59d9dda173
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Rdstation::Ruby
1
+ # RDStation Ruby Client
2
2
 
3
- TODO: Write a gem description
3
+ RDstation ruby wrapper to interact with RDStation API.
4
4
 
5
5
  ## Installation
6
6
 
@@ -19,16 +19,33 @@ Or install it yourself as:
19
19
  ## Usage
20
20
 
21
21
  ### Creating a Lead
22
- rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
23
- rdstation_client.create_lead({:email => 'joe@foo.bar', :nome => 'Joe Foo', :empresa => 'A random Company', :cargo => 'Developer', identificador: 'nome_da_conversao'})
22
+
23
+ ```ruby
24
+ lead_info = {
25
+ email: 'joe@foo.bar',
26
+ name: 'Joe foo',
27
+ empresa: 'A random Company',
28
+ cargo: 'Developer',
29
+ identificador: 'nome_da_conversao'
30
+ }
31
+
32
+ rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
33
+ rdstation_client.create_lead(lead_info)
34
+ ```
24
35
 
25
36
  ### Changing a Lead
26
- rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
27
- rdstation_client.change_lead('joe@foo.bar', {:lifecycle_stage => 1, :opportunity => true})
37
+
38
+ ```ruby
39
+ rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
40
+ rdstation_client.change_lead('joe@foo.bar', lifecycle_stage: 1, opportunity: true})
41
+ ```
28
42
 
29
43
  ### Change Lead Status
30
- rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
31
- rdstation_client.change_lead_status(email: 'joe@foo.bar', status: 'won', value: 999)
44
+
45
+ ```ruby
46
+ rdstation_client = RDStation::Client.new('rdstation_token', 'auth_token')
47
+ rdstation_client.change_lead_status(email: 'joe@foo.bar', status: 'won', value: 999)
48
+ ```
32
49
 
33
50
 
34
51
  ## Contributing
@@ -39,6 +56,9 @@ Or install it yourself as:
39
56
  4. Push to the branch (`git push origin my-new-feature`)
40
57
  5. Create new Pull Request
41
58
 
59
+ ## Maintainer
60
+ [Nando Sousa](mailto:fernando.sousa@resultadosdigitais.com.br)
61
+
42
62
  ## Reference
43
63
 
44
64
  You can check out RDstation's integration (pt-BR) documentation here:
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  module RDStation
2
3
  #
3
4
  # Mais informações em http://ajuda.rdstation.com.br/hc/pt-br/articles/204526429-Guia-de-integra%C3%A7%C3%B5es-com-o-RD-Station
@@ -1,3 +1,3 @@
1
1
  module RDStation
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdstation-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo L F Casaretto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-19 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.2.2
150
+ rubygems_version: 2.4.8
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Ruby API wrapper for RD Station