tinybucket 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -8
- data/lib/tinybucket/connection.rb +1 -1
- data/lib/tinybucket/version.rb +1 -1
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/get.json +1 -1
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/commits/get.json +1 -1
- data/spec/fixtures/repositories/test_owner/test_repo/watchers/get.json +1 -1
- data/spec/support/api_response_macros.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: 9d596d1229598dd3fc84210c64d68b7e2f133986
|
4
|
+
data.tar.gz: 1c9b5eeced1f04ec09f0be85ffa07306f6ee60ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09ee886f336681f0b0b9e0b734899334b4589ce28cd8dc43989a726d0afca94bc9ede953e413c3887e450836d79169eefc4aab82df587210c749bf9cb1ec3fca
|
7
|
+
data.tar.gz: 29a5525a8133c69414e3e7023d6c73213979bdad3544b4b0fc3b4a121a1f597a9f697ef001affbed0c668817c3804898e5ff5898a13357c6915e46a1e30975ff
|
data/README.md
CHANGED
@@ -7,10 +7,10 @@ A Ruby client library for Bitbucket REST API v2 with OAuth Authentication.
|
|
7
7
|
|
8
8
|
This gem is inspired by [vongrippen/bitbucket](https://github.com/vongrippen/bitbucket). Thanks.
|
9
9
|
|
10
|
-
[![Gem Version](https://badge.fury.io/rb/tinybucket.
|
10
|
+
[![Gem Version](https://badge.fury.io/rb/tinybucket.svg)](https://badge.fury.io/rb/tinybucket)
|
11
11
|
[![Build Status](https://travis-ci.org/hirakiuc/tinybucket.svg?branch=master)](https://travis-ci.org/hirakiuc/tinybucket)
|
12
12
|
[![Code Climate](https://codeclimate.com/github/hirakiuc/tinybucket/badges/gpa.svg)](https://codeclimate.com/github/hirakiuc/tinybucket)
|
13
|
-
[![Coverage
|
13
|
+
[![Test Coverage](https://codeclimate.com/github/hirakiuc/tinybucket/badges/coverage.svg)](https://codeclimate.com/github/hirakiuc/tinybucket/coverage)
|
14
14
|
[![Inline docs](http://inch-ci.org/github/hirakiuc/tinybucket.svg?branch=master)](http://inch-ci.org/github/hirakiuc/tinybucket)
|
15
15
|
|
16
16
|
[yard doc](http://www.rubydoc.info/github/hirakiuc/tinybucket/master) (master branch)
|
@@ -37,17 +37,12 @@ NOTE: `x` mark means `Already implemented.`.
|
|
37
37
|
|
38
38
|
### Configure
|
39
39
|
|
40
|
-
#### Configure logger
|
41
|
-
|
42
|
-
This gem use built-in null_logger in default.
|
43
|
-
|
44
|
-
If you want to set your logger, configure like this.
|
45
|
-
|
46
40
|
```ruby
|
47
41
|
logger = Logger.new($stdout)
|
48
42
|
logger.level = Logger::WARN
|
49
43
|
|
50
44
|
Tinybucket.configure do |config|
|
45
|
+
# set your logger if you want.
|
51
46
|
config.logger = logger
|
52
47
|
|
53
48
|
# configure oauth_token/oauth_secret
|
data/lib/tinybucket/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"pagelen": 1,
|
3
|
-
"next": "https://bitbucket.org/
|
3
|
+
"next": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/comments?pagelen=1&page=2",
|
4
4
|
"values": [{
|
5
5
|
"parent": {
|
6
6
|
"id": 25334,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"pagelen": 1,
|
3
|
-
"next": "https://bitbucket.org/
|
3
|
+
"next": "https://api.bitbucket.org/2.0/repositories/bitbucket/bitbucket/pullrequests/3764/commits?pagelen=1&page=2",
|
4
4
|
"values": [{
|
5
5
|
"hash": "ad758aeba36fa4b9d258ac1667f55cfb811e6df3",
|
6
6
|
"links": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"pagelen": 2,
|
3
|
-
"next": "https://bitbucket.org/
|
3
|
+
"next": "https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.bitbucket.org/watchers?pagelen=2&page=2",
|
4
4
|
"values": [
|
5
5
|
{
|
6
6
|
"username": "tutorials",
|
@@ -8,7 +8,7 @@ module ApiResponseMacros
|
|
8
8
|
else 'json'
|
9
9
|
end
|
10
10
|
|
11
|
-
stub_request(method, 'https://bitbucket.org/
|
11
|
+
stub_request(method, 'https://api.bitbucket.org/2.0' + path)
|
12
12
|
.to_return(
|
13
13
|
status: (options[:status_code] || 200),
|
14
14
|
body: (options[:message] || fixture_json(method, path, ext)),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tinybucket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hirakiuc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|