hubbah 0.0.1 → 0.0.2

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: da19980856fd999ea53cd68fbff8270b82915865
4
- data.tar.gz: 11f94f326343d6ebefddfcd1f29618cac9e60948
3
+ metadata.gz: 05171a5c92b62887259db1cb3aed55942a2d8561
4
+ data.tar.gz: baabae2c2bc72b5ba066723da97bfd809263d191
5
5
  SHA512:
6
- metadata.gz: 1612acf80e7f46002a254ca6a15b6e746d29587ed8042f616da9f00a526021b7fe041dc9b488878eb8e154160cae7004c3bc0baabcd987fa110b24685a9784b4
7
- data.tar.gz: 0af9908dfd0394152655276e58212292bb02271b2af0c70f54e17dda9fb1c5397994e3523495cd670a562532b51ad8eb5efe33f7f7fa064fc1f49eb8d5329c70
6
+ metadata.gz: 6053412e3bfb5a8d368c8bfda8f34f25fb5d2bc4a3dd79e6fd2bdbaa8e5df904eef9d48bc165bc7efcd47749ab5ef85c31dba01e075b47a8b12ace72f05a6139
7
+ data.tar.gz: 02ea341d96da561688a4a4b10854a2191f195be52edaf6860208d94f618db343c5ccac25c0948222494e0fab0f059642ed8e75050aef858062747e8edf8420c5
data/README.md CHANGED
@@ -1,16 +1,18 @@
1
1
  # Hubbah
2
2
 
3
+ Hubbah makes it easy to submit hubspot form data.
4
+
3
5
  ```ruby
4
6
  #in an initializer
5
7
  config.middleware.use Hubba::Middleware do |app|
6
- app.hub_id = '312425'
8
+ app.hub_id = 'xxxxxx'
7
9
  end
8
10
 
9
11
  #in your controller, when you want to submit the form payload:
10
12
  env['hubbah'].submit(form_guid, params[:subscriber])
11
13
  ```
12
14
 
13
- TODO: Write a gem description
15
+ Hubbah will send the relevant `hs_context` metadata (ip address, tracking cookie, and referrer) along with the data you pass to the `submit` invocation. The `form_guid` should correlate with the form you've configured in hubspot.
14
16
 
15
17
  ## Installation
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Hubbah
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/hubbah.rb CHANGED
@@ -26,6 +26,7 @@ module Hubbah
26
26
  end
27
27
  end
28
28
 
29
- class HubIdNotConfigured < Exception; end
30
- class ServerErrorEncountered < Exception; end
29
+ class Error < Exception; end
30
+ class HubIdNotConfigured < Error; end
31
+ class ServerErrorEncountered < Error; end
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubbah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett