dash-fu 1.0.0 → 1.0.1
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/CHANGELOG +5 -0
- data/README.md +6 -1
- data/VERSION +1 -1
- data/dash-fu.gemspec +2 -1
- metadata +6 -5
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
Use me to push data to [Dash-fu](http://dash-fu.com) in real time.
|
1
|
+
## Use me to push data to [Dash-fu](http://dash-fu.com) in real time.
|
2
2
|
|
3
3
|
|
4
|
+
Add this gem to your project's `Gemfile`:
|
5
|
+
|
6
|
+
gem "dash-fu"
|
7
|
+
|
4
8
|
The only configuration you need is setting the API key in
|
5
9
|
`config/environments/production.rb`:
|
6
10
|
|
@@ -12,6 +16,7 @@ You only want to push data in production, so make sure the API key is only set
|
|
12
16
|
in production environment. Calls to created/active with no API key are
|
13
17
|
simply ignored.
|
14
18
|
|
19
|
+
-----
|
15
20
|
|
16
21
|
You can send events by calling DashFu.push with UID and event, or using the
|
17
22
|
specialized created and active methods.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/dash-fu.gemspec
CHANGED
@@ -9,9 +9,10 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.summary = "Use me to push data to Dash-fu in real time"
|
10
10
|
spec.description = ""
|
11
11
|
spec.post_install_message = IO.read("README.md")
|
12
|
-
spec.license
|
12
|
+
spec.license = "Public domain"
|
13
13
|
|
14
14
|
spec.files = Dir["{bin,lib,test}/**/*", "CHANGELOG", "VERSION", "README.md", "*.gemspec"]
|
15
|
+
spec.require_paths = [ "lib" ]
|
15
16
|
|
16
17
|
spec.required_ruby_version = '>= 1.8.7'
|
17
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dash-fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -26,13 +26,14 @@ files:
|
|
26
26
|
homepage: http://dash-fu.com
|
27
27
|
licenses:
|
28
28
|
- Public domain
|
29
|
-
post_install_message: ! "Use me to push data to [Dash-fu](http://dash-fu.com) in
|
30
|
-
time.\n\n\
|
29
|
+
post_install_message: ! "## Use me to push data to [Dash-fu](http://dash-fu.com) in
|
30
|
+
real time.\n\n\nAdd this gem to your project's `Gemfile`:\n\n gem \"dash-fu\"\n\nThe
|
31
|
+
only configuration you need is setting the API key in\n`config/environments/production.rb`:\n\n
|
31
32
|
\ DashFu.api_key = \"<your API key>\"\n\nYour API key is available from [account
|
32
33
|
settings](http://dash-fu.com/settings).\n\nYou only want to push data in production,
|
33
34
|
so make sure the API key is only set\nin production environment. Calls to created/active
|
34
|
-
with no API key are\nsimply ignored.\n\n\nYou can send events by calling
|
35
|
-
with UID and event, or using the\nspecialized created and active methods.\n\nFor
|
35
|
+
with no API key are\nsimply ignored.\n\n-----\n\nYou can send events by calling
|
36
|
+
DashFu.push with UID and event, or using the\nspecialized created and active methods.\n\nFor
|
36
37
|
example, to assign a user to a cohort, we're going to notify Dash-fu\nwhenever an
|
37
38
|
acount gets created:\n\n class User < ActiveRecord::Model\n after_create
|
38
39
|
do\n DashFu.created id\n end\n end\n\nIn this example, we consider
|