ifttt-client 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.
- checksums.yaml +4 -4
- data/README.rdoc +19 -0
- data/ifttt-client.gemspec +14 -0
- data/lib/ifttt.rb +0 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae75dcd8395459da793252bf3c809b9124129ff7
|
|
4
|
+
data.tar.gz: ae588f9796c88d7959ae851df931aa4e1b7b1998
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfd43732d30aa9d4daa8a2b72c7992fa87165de325866435534d90188126d1c29e0732471df76a836e983eac14753f8da0246198caacd6a8e2bbe67c97297d51
|
|
7
|
+
data.tar.gz: 780bf536c6d569b59cfea5bd340dbd19eebe864991c5fc410f112a9ca43de029b6d825cae075a1a660997290d9dc80e18e29248585fa548de1debe354ec84f18
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
= ifttt-client
|
|
2
|
+
|
|
3
|
+
ifttt-client — Simple gem for IFTTT integration.
|
|
4
|
+
|
|
5
|
+
== Getting started
|
|
6
|
+
|
|
7
|
+
1. Install the gem
|
|
8
|
+
gem install ifttt-client
|
|
9
|
+
2. Sample usage:
|
|
10
|
+
|
|
11
|
+
require 'ifttt'
|
|
12
|
+
|
|
13
|
+
example=IFTTT::Profile.new("YOUR_WEBHOOK_KEY")
|
|
14
|
+
example.get("EVENT_NAME") # Simple get request
|
|
15
|
+
example.post("EVENT_NAME",["array","of","values"]) # Post request with array of values
|
|
16
|
+
|
|
17
|
+
== Copyright
|
|
18
|
+
|
|
19
|
+
Copyright (c) 2019 Alexander Krushin. See LICENSE for details.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
2
|
+
|
|
3
|
+
Gem::Specification.new do |s|
|
|
4
|
+
s.name = 'ifttt-client'
|
|
5
|
+
s.version = '1.0.1'
|
|
6
|
+
s.date = '2019-02-08'
|
|
7
|
+
s.summary = 'IFTTT - Simple IFTTT integration'
|
|
8
|
+
s.description = 'Simple gem for IFTTT integration.'
|
|
9
|
+
s.author = 'Alexander Krushin'
|
|
10
|
+
s.email = 'alex@krushin.ru'
|
|
11
|
+
s.homepage = 'https://github.com/krushinru/ifttt'
|
|
12
|
+
s.license = 'MIT'
|
|
13
|
+
s.files = `git ls-files`.split("\n")
|
|
14
|
+
end
|
data/lib/ifttt.rb
CHANGED
|
@@ -20,7 +20,6 @@ module IFTTT
|
|
|
20
20
|
uri = URI("https://maker.ifttt.com/trigger/#{event}/with/key/#{@key}")
|
|
21
21
|
req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
|
|
22
22
|
req.body = hash.to_json
|
|
23
|
-
puts hash.to_json
|
|
24
23
|
res = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') do |http|
|
|
25
24
|
http.request(req)
|
|
26
25
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ifttt-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Krushin
|
|
@@ -18,6 +18,8 @@ extra_rdoc_files: []
|
|
|
18
18
|
files:
|
|
19
19
|
- ".gitignore"
|
|
20
20
|
- Gemfile
|
|
21
|
+
- README.rdoc
|
|
22
|
+
- ifttt-client.gemspec
|
|
21
23
|
- lib/ifttt.rb
|
|
22
24
|
homepage: https://github.com/krushinru/ifttt
|
|
23
25
|
licenses:
|