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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 181490a21d3d1e85deff78416176f83b0a354f8a
4
- data.tar.gz: 005ecc67ba5f41e319e4013233aab9ef3fe066cd
3
+ metadata.gz: ae75dcd8395459da793252bf3c809b9124129ff7
4
+ data.tar.gz: ae588f9796c88d7959ae851df931aa4e1b7b1998
5
5
  SHA512:
6
- metadata.gz: dd3834127afd467b33939465947c43cc11a80448432cc656e6ef38de12c248bbdcbe43952c56fd93035605cb4397bc7ac6e2bdc8077d1e026a2ae54023775ee2
7
- data.tar.gz: 0bcbd7955e5e3a07a981e769050a4d9f2bd19df1bac3fd1fccc6fb532c3029d9c65a0d9c7bc64854aa57e974c0e9c54ad219e258627fd602b9807415e09e44e6
6
+ metadata.gz: cfd43732d30aa9d4daa8a2b72c7992fa87165de325866435534d90188126d1c29e0732471df76a836e983eac14753f8da0246198caacd6a8e2bbe67c97297d51
7
+ data.tar.gz: 780bf536c6d569b59cfea5bd340dbd19eebe864991c5fc410f112a9ca43de029b6d825cae075a1a660997290d9dc80e18e29248585fa548de1debe354ec84f18
@@ -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
@@ -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.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: