coderwall-ruby-api 0.0.3 → 0.0.4
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/README.md +7 -0
- data/lib/coderwall-ruby-api.rb +7 -5
- data/lib/version.rb +1 -2
- metadata +2 -3
data/README.md
CHANGED
@@ -41,6 +41,13 @@ When you create a Coderwall::User instance, automatically the data is fetched fr
|
|
41
41
|
user_badges = Coderwall::User.achievements('fidelisrafael')
|
42
42
|
user_github_account = Coderwall::User.accounts('fidelisrafael')['github']
|
43
43
|
|
44
|
+
|
45
|
+
Contributors
|
46
|
+
=========
|
47
|
+
|
48
|
+
* Kenichi Kamiya - https://github.com/kachick
|
49
|
+
* Syntactic Vexation - https://github.com/syntacticvexation
|
50
|
+
|
44
51
|
License
|
45
52
|
=======
|
46
53
|
The project is licensed under the MIT license. See LICENSE file for details.
|
data/lib/coderwall-ruby-api.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
#encoding: UTF-8
|
2
1
|
require 'version'
|
3
|
-
require 'net/
|
2
|
+
require 'net/https'
|
4
3
|
require 'json'
|
5
4
|
|
6
5
|
module Coderwall
|
@@ -29,10 +28,13 @@ module Coderwall
|
|
29
28
|
end
|
30
29
|
def send_http_request
|
31
30
|
uri = URI.parse(BASE_URI % @username)
|
32
|
-
|
33
|
-
|
31
|
+
https = Net::HTTP.new(uri.host, 443)
|
32
|
+
https.use_ssl = true
|
33
|
+
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
34
|
+
https.start do
|
35
|
+
response = https.get uri.request_uri
|
36
|
+
return response.body
|
34
37
|
end
|
35
|
-
return response.body
|
36
38
|
end
|
37
39
|
|
38
40
|
def invalid_username
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coderwall-ruby-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Simple Coderwall API Interface for Ruby
|
15
15
|
email:
|
@@ -52,4 +52,3 @@ signing_key:
|
|
52
52
|
specification_version: 3
|
53
53
|
summary: Simple Coderwall API Interface for Ruby
|
54
54
|
test_files: []
|
55
|
-
has_rdoc:
|