slikio 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -8
- data/lib/slikio/version.rb +1 -1
- data/slikio.gemspec +2 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzk5MzA2MDhjNWVlNTQzY2Y4MWZiNGQ3MjkyZDVlODM4ZWJmNjc3ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTFjZTE3MzkxZTI4ODY3NDY3NDY1Mjk2YTU0MDJmNzQyZjQ4MTMyNQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmVjOGM1ZDEwNjgyM2ZkMWNjZDc5NWQ2N2I5MTRkOGUxMDI1NzQxZjk1OGNh
|
10
|
+
ZTc2NDUxYTcwOWE0YTM3NjBhOTYyN2Q1NDIwMjI4MmY2MWQxNTcxNjQ4OTY5
|
11
|
+
YmQ0MTkyZTBhNWQ4NWMxMzEzZGJlZDJiNDEwYWFhZGZhNjFmZDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjVhM2RhODFlMGJkMmZlYjcxNmI5YjhkNmEzOTY2Yzc4ODI2NTFlZGM1ODQ2
|
14
|
+
MWE0NjM5NmE5MmE5MTg2ODJkZWQxZmU1NGIxZjk1MmI2MmM0NjdhZjEwYTAx
|
15
|
+
ZTk3NmUyOGIwMDg0OTMyZWJlNmU3ZTJhN2Q0NGRmYmNlNTdmNWY=
|
data/README.md
CHANGED
@@ -24,23 +24,20 @@ After you've done that, get the secret api key
|
|
24
24
|
require 'slikio'
|
25
25
|
.
|
26
26
|
.
|
27
|
-
SlikIO.SECRET_API_KEY = '
|
27
|
+
SlikIO.SECRET_API_KEY = 'YOUR_API_SECRET_KEY'
|
28
28
|
```
|
29
29
|
|
30
30
|
For rails you can set the api key from an initializer (e.g. config/initializers/slikio.rb)
|
31
31
|
```ruby
|
32
32
|
# config/initializers/slikio.rb
|
33
|
-
|
34
|
-
.
|
35
|
-
.
|
36
|
-
SlikIO.SECRET_API_KEY = 'YOUR_API_KEY'
|
33
|
+
SlikIO.SECRET_API_KEY = 'YOUR_API_SECRET_KEY'
|
37
34
|
```
|
38
35
|
### Pushing data to collections
|
39
36
|
You can use our API to push data into your collections using:
|
40
37
|
```ruby
|
41
|
-
|
38
|
+
SlikIO.sendData(COLLECTION_ID, data)
|
42
39
|
```
|
43
40
|
Example:
|
44
41
|
```ruby
|
45
|
-
SlikIO.sendData("
|
46
|
-
```
|
42
|
+
SlikIO.sendData("col_3841841041hc029281", {userId: "123123", email: "user@email.com", action: "planPurchased", cost: 150.0})
|
43
|
+
```
|
data/lib/slikio/version.rb
CHANGED
data/slikio.gemspec
CHANGED
@@ -12,7 +12,8 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = "This is a ruby gem for Slik.IO"
|
13
13
|
spec.homepage = "https://github.com/SlikIO/slikio-ruby"
|
14
14
|
spec.license = "MIT"
|
15
|
-
|
15
|
+
spec.post_install_message = "Congratulations!\nSlik.IO gem successfully installed.\nNow sign up at http://slik.io and start creating charts as easy as it gets"
|
16
|
+
|
16
17
|
spec.files = `git ls-files`.split($/)
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slikio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Brodsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,7 +71,11 @@ homepage: https://github.com/SlikIO/slikio-ruby
|
|
71
71
|
licenses:
|
72
72
|
- MIT
|
73
73
|
metadata: {}
|
74
|
-
post_install_message:
|
74
|
+
post_install_message: ! 'Congratulations!
|
75
|
+
|
76
|
+
Slik.IO gem successfully installed.
|
77
|
+
|
78
|
+
Now sign up at http://slik.io and start creating charts as easy as it gets'
|
75
79
|
rdoc_options: []
|
76
80
|
require_paths:
|
77
81
|
- lib
|