hubbah 0.0.1 → 0.0.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.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/hubbah/version.rb +1 -1
- data/lib/hubbah.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05171a5c92b62887259db1cb3aed55942a2d8561
|
|
4
|
+
data.tar.gz: baabae2c2bc72b5ba066723da97bfd809263d191
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = '
|
|
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
|
-
|
|
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
|
|
data/lib/hubbah/version.rb
CHANGED
data/lib/hubbah.rb
CHANGED