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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d07ebbc76492e41177f7ff796acae6d1c57f6444
4
- data.tar.gz: 84b11267ed48262a4a47295f495cbfa55430c421
3
+ metadata.gz: 9d596d1229598dd3fc84210c64d68b7e2f133986
4
+ data.tar.gz: 1c9b5eeced1f04ec09f0be85ffa07306f6ee60ef
5
5
  SHA512:
6
- metadata.gz: 2d54aa23f2e5b42c4a16e7bd43319f66775cd222652116a53ec3ac9761dc86fcb30de11297bed60bb6ab26a27c8ded1e371f56f45f670e0f75b935bc94536c7b
7
- data.tar.gz: 9646a04e42350d5f6878a0343e52afd22d929c29602ed3e192eae45874193bd2cab12bba3b58f91b573a1ecf57eb19c5db402990874dbaeef23f2ce5874fbea8
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.png)](http://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 Status](https://coveralls.io/repos/hirakiuc/tinybucket/badge.png?branch=master)](https://coveralls.io/r/hirakiuc/tinybucket?branch=master)
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
@@ -25,7 +25,7 @@ module Tinybucket
25
25
  USER_AGENT: 'test client' # TODO: fix this !
26
26
  },
27
27
  ssl: { verify: false },
28
- url: 'https://bitbucket.org/api/2.0'.freeze
28
+ url: 'https://api.bitbucket.org/2.0'.freeze
29
29
  }
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module Tinybucket
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "pagelen": 1,
3
- "next": "https://bitbucket.org/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3767/comments?pagelen=1&page=2",
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/api/2.0/repositories/bitbucket/bitbucket/pullrequests/3764/commits?pagelen=1&page=2",
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/api/2.0/repositories/tutorials/tutorials.bitbucket.org/watchers?pagelen=2&page=2",
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/api/2.0' + path)
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.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-03-27 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel