kintone-client 0.1.5 → 0.1.6

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: 3694e90d16fa4534d88e4659b91a1e394245e171
4
- data.tar.gz: 202bbe0d5bf966c694fbb0293eeded67e28520fb
3
+ metadata.gz: 99e5af90a7d62deb3deef3fa75e3b9ec980788be
4
+ data.tar.gz: c67f29d41804404ad6cded4814b3660e42881d8b
5
5
  SHA512:
6
- metadata.gz: 012d642d217d5979838ced75ed493de82a563c6676aae1c3f25d859ef2b52a1d949c13029c0b6c84d75fece04289bbbd0973755eaf1e4f60e896eace61f391c6
7
- data.tar.gz: c63c992d4cf281c5907eb20d54e32e29a32e895062fbc881d54faf685e5baf0aac777f490638eb2beab09e84f05ff8a48f9830e50f45120ce0cb3424fe756393
6
+ metadata.gz: 35e71aa0f05b0595e693e7729cf62b99faf706901ef524088e716b5feb516f1c9fe4787c4bf6a78e8104977dc30870bf582513c6bab5937646ed6a38590c4d2d
7
+ data.tar.gz: 01d34a60abcb3d9a17f9cf02cb9892cc5e7c9d9d450cbd2abfd39795d4ff6becf449164c421497f8939c0138f229b74249a7bd113f11f6f120ca30aad7c75279
data/README.md CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
  ```ruby
24
24
  require 'kintone/client'
25
25
 
26
- client = Kintone::Client.new(subdomein: "max6j", login_name: "Genki Sugawara", password: "...")
26
+ client = Kintone::Client.new(subdomain: "max6j", login_name: "Genki Sugawara", password: "...")
27
27
 
28
28
  # https://cybozudev.zendesk.com/hc/ja/articles/202931674-%E3%82%A2%E3%83%97%E3%83%AA%E6%83%85%E5%A0%B1%E3%81%AE%E5%8F%96%E5%BE%97
29
29
  p client.app.get(id: 211)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['sugawara@cookpad.com']
11
11
  spec.summary = %q{It is a simple client of cybozu kintone.}
12
12
  spec.description = %q{It is a simple client of cybozu kintone.}
13
- spec.homepage = ''
13
+ spec.homepage = 'https://github.com/tokubai/kintone-client'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -2,7 +2,7 @@ class Kintone::Error < StandardError
2
2
  attr_reader :response
3
3
 
4
4
  def initialize(response, path, method_name, params)
5
- message = [response['message'], path, method_name, params].join(' ')
5
+ message = [response['message'], response['errors'], path, method_name, params].join(' ')
6
6
  super(message)
7
7
  @response = response
8
8
  end
@@ -1,5 +1,5 @@
1
1
  module Kintone
2
2
  class Client
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
@@ -68,7 +68,10 @@ describe Kintone::Client do
68
68
  end
69
69
 
70
70
  let(:response) do
71
- {"message"=>"不正なJSON文字列です。", "id"=>"1505999166-897850006", "code"=>"CB_IJ01"}
71
+ {"message"=>"不正なJSON文字列です。",
72
+ "errors"=>{"item"=>{"messages"=>["不正なJSON文字列です。"]}},
73
+ "id"=>"1505999166-897850006",
74
+ "code"=>"CB_IJ01"}
72
75
  end
73
76
 
74
77
  it do
@@ -83,7 +86,7 @@ describe Kintone::Client do
83
86
 
84
87
  expect {
85
88
  client.record.post_json(request)
86
- }.to raise_error(Kintone::Error, [response['message'], 'record', 'post', request].join(' '))
89
+ }.to raise_error(Kintone::Error, [response['message'], response['errors'], 'record', 'post', request].join(' '))
87
90
  end
88
91
  end
89
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kintone-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
@@ -123,7 +123,7 @@ files:
123
123
  - spec/kintone/client/space_spec.rb
124
124
  - spec/spec_helper.rb
125
125
  - test.sh
126
- homepage: ''
126
+ homepage: https://github.com/tokubai/kintone-client
127
127
  licenses:
128
128
  - MIT
129
129
  metadata: {}