yo-api 1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +12 -0
  4. data/lib/yo.rb +13 -0
  5. metadata +46 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e374fe590d6a92d6f408729f8c8d7553d0f660bb
4
+ data.tar.gz: f88cd82b8dfbe6adb7f0e29b61b27449e94d1deb
5
+ SHA512:
6
+ metadata.gz: 6a8a373a9aedb5f77cd6ef08fefbfceca6fd0f967acc5a8d972605c35cdadc26c21b00fb6de9ad070dece56f71f00e2cf8d9a681caa4cf2e7b5db26379c0f729
7
+ data.tar.gz: cfcf82f758a9fea9af53f38193e29bb55689db50d5dae8c237344280a063ddd43186137a1b8f9b360398bb4fe486b2398cc3c2488b507ed6f902e109546a8652
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Elliot Speck
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,12 @@
1
+ # Yo
2
+
3
+ *No, seriously. That's it. Just 'yo'.*
4
+
5
+ ## Requirements
6
+
7
+ Nil.
8
+
9
+ ## Usage
10
+
11
+ yo = Yo.new(my_api_key)
12
+ yo.yo
@@ -0,0 +1,13 @@
1
+ require 'net/http'
2
+
3
+ class Yo
4
+ attr_accessor :api_token
5
+
6
+ def initialize(api_token)
7
+ @@api_token = api_token
8
+ end
9
+
10
+ def yo
11
+ Net::HTTP.post_form(URI('http://api.justyo.co/yoall/'), 'api_token' => @@api_token)
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yo-api
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.1'
5
+ platform: ruby
6
+ authors:
7
+ - Elliot Speck (@Aeoxic)
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Ruby gem for the Yo API (http://justyo.co/).
14
+ email: me@elliot.pro
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE
20
+ - README.md
21
+ - lib/yo.rb
22
+ homepage: http://bitbucket.org/Aeoxic/yo
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.2.2
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Yo!
46
+ test_files: []