denotificator 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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/denotificator/api_client.rb +7 -6
- data/lib/denotificator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f6af2427d8d29f669f6791d31ea30638ff57761
|
4
|
+
data.tar.gz: c38a2a63788d4c23cbc6179d8e6c5f7b371458cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c30994f35aa1b818106421c0c9fcf549de3e00db91f6b0e04bb503e679aa74d9fc5ac18942f0c026f6ee7b58206c50829cdc3252b431da2164533c426ae7378
|
7
|
+
data.tar.gz: ea880d1081853e5420a45b7a00a5ac2dda63f5bf50cc16d90189e9cc96738f9a764f024862a750ef66293386a0f53bf1ea3d934900d1e26565ccb396483a2f4f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ It uses the [GitHub Notifications API](http://developer.github.com/v3/activity/n
|
|
7
7
|
You can create your GitHub authentication token following [this](https://help.github.com/articles/creating-an-access-token-for-command-line-use) instructions.
|
8
8
|
|
9
9
|
[![Build Status](https://travis-ci.org/marcosvm/denotificator.png)](https://travis-ci.org/marcosvm/denotificator)
|
10
|
-
|
10
|
+
[![Code Climate](https://codeclimate.com/github/marcosvm/denotificator.png)](https://codeclimate.com/github/marcosvm/denotificator)
|
11
11
|
## Installation
|
12
12
|
|
13
13
|
Or install it yourself as:
|
@@ -11,17 +11,18 @@ module Denotificator
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def get_http_response uri
|
14
|
-
connection.get uri
|
15
|
-
request.headers['User-Agent'] = user_agent
|
16
|
-
request.headers['Authorization'] = "token #{auth_token}"
|
17
|
-
end
|
14
|
+
connection.get uri, &headers
|
18
15
|
end
|
19
16
|
|
20
17
|
def put_http_response uri, payload
|
21
|
-
connection.put uri
|
18
|
+
connection.put uri, &headers
|
19
|
+
end
|
20
|
+
|
21
|
+
def headers
|
22
|
+
-> request {
|
22
23
|
request.headers['User-Agent'] = user_agent
|
23
24
|
request.headers['Authorization'] = "token #{auth_token}"
|
24
|
-
|
25
|
+
}
|
25
26
|
end
|
26
27
|
end
|
27
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: denotificator
|
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
|
- Marcos Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|