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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abe256f644a7e60683670d5fbc836e41c0cee92a
4
- data.tar.gz: 9e2681b3572f76e77e1b4006a1950071036d32b8
3
+ metadata.gz: 6f6af2427d8d29f669f6791d31ea30638ff57761
4
+ data.tar.gz: c38a2a63788d4c23cbc6179d8e6c5f7b371458cb
5
5
  SHA512:
6
- metadata.gz: fe67ba79aba5a8a18e82321d0ab962a61493adca8ded5be5c085fd41c8d9416dcd5b90cfffb92519ecf8e8d086c8ae3467e86f9a26e3e0db7e1675001038a833
7
- data.tar.gz: b5e9253b74d0b34bfa884e16cfd83ae8d0b888940ab419c43378ebbb545ec29617d83360ea6c9edb17c067074533178716b487a7e96a03a4efb7137f53192f73
6
+ metadata.gz: 6c30994f35aa1b818106421c0c9fcf549de3e00db91f6b0e04bb503e679aa74d9fc5ac18942f0c026f6ee7b58206c50829cdc3252b431da2164533c426ae7378
7
+ data.tar.gz: ea880d1081853e5420a45b7a00a5ac2dda63f5bf50cc16d90189e9cc96738f9a764f024862a750ef66293386a0f53bf1ea3d934900d1e26565ccb396483a2f4f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### v0.0.3
2
+ * Remove duplication
3
+
1
4
  ### v0.0.2
2
5
  * Check on AUTH_TOKEN before running
3
6
  * New Relic support
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 do |request|
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 do |request|
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
- end
25
+ }
25
26
  end
26
27
  end
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module Denotificator
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  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.2
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-27 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday