mackerel-client 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: 0f043c163694280f7233b26cf625bdba0caa646ba55d3c2cba6002772468c7b9
4
- data.tar.gz: 7b1c11e80e5126cc8312b3d4695e0bc980f8a9c83ce3f629431a5625e89e5624
3
+ metadata.gz: 31730bc25cb0a0b6def2d537096f4bbcc46af1de869df74a56115f91184c5126
4
+ data.tar.gz: e96b732c979574df0b1f60721578e199decd2bb1f3fbb17b1d83006286d5a49d
5
5
  SHA512:
6
- metadata.gz: 18f19702d70fa6718924102398852f947f24d11721aa839af55c141819b0e4cb184b0ccf0ebaca5af3fd75c192fb1e77f2e0e72939aaa396c2a262dd9a207a24
7
- data.tar.gz: a364791a0b00a4695f654f6fae03002a4e11cfa9e2ba5ff55265e0bffd98fa518970315f80672dfbc21108c17997777a2c744c6950b9a8cfa84e0cc91345a56c
6
+ metadata.gz: bc4578bed917dbd28c5d866ca443b6390e157c38f63f9430217e6b657898f986378e86c0f91f5a1d557bbcc6e98adf68a8d3201974012d6fb61ae7bb81d356c7
7
+ data.tar.gz: c45d14fe4d0225c5c8d3968aef9caa79ecc275a91ece1c24ae6230b9d133817046c1bd649a2c06b568b0831cdc29159aa801bdafa80005fa0c72249740873587
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --require spec_helper
data/RELEASE.md CHANGED
@@ -1,7 +1,9 @@
1
1
  RELEASE
2
2
  =======
3
3
 
4
- 1. Update VERSION file.
5
- 1. git push
6
- 1. `gem build mackerel-client.gemspec`
7
- 1. `gem push mackerel-client-$VERSION.gem`
4
+ 1. Create release branch. (`git checkout -b version-<VERSION>`)
5
+ 1. Bump version `VERSION` and `lib/mackerel/version.rb` files.
6
+ 1. Push release branch to upstream(GitHub). (`git push -u origin version-<VERSION>`)
7
+ 1. Create Pull-Request on Github.
8
+ 1. Merge Pull-Request to master branch on Github.
9
+ 1. Tagging and Release. (`rake release`)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
@@ -1,3 +1,3 @@
1
1
  module Mackerel
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_dependency 'faraday', '~> 0.9'
20
20
 
21
- spec.add_development_dependency "rake", '~> 0'
22
- spec.add_development_dependency "bundler", "~> 1.5"
23
- spec.add_development_dependency "rspec", '~> 2'
21
+ spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rspec"
24
24
  end
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,6 +1,6 @@
1
1
  require 'mackerel/client/helper'
2
2
 
3
- describe Mackerel::Client::Helper do
3
+ RSpec.describe Mackerel::Client::Helper do
4
4
  describe '.as_safe_metric_name' do
5
5
  it 'translates characters that cannot be used as a metric name to safe characters' do
6
6
  name = 'readme.md'
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,8 +1,4 @@
1
- require 'mackerel'
2
- require 'mackerel/host'
3
- require 'json'
4
-
5
- describe Mackerel::Client do
1
+ RSpec.describe Mackerel::Client do
6
2
  let(:api_key) { 'xxxxxxxx' }
7
3
  let(:client) { Mackerel::Client.new(:mackerel_api_key => api_key) }
8
4
 
@@ -1,2 +1,10 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
2
  require 'mackerel'
3
+
4
+ RSpec.configure do |config|
5
+ config.disable_monkey_patching!
6
+ config.filter_run_when_matching :focus
7
+
8
+ config.order = :random
9
+ Kernel.srand config.seed
10
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mackerel-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mackerel developer team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.5'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.5'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '2'
68
+ version: '0'
69
69
  description: Mackerel client is a library to access Mackerel (https://mackerel.io/).
70
70
  email:
71
71
  - developers@mackerel.io