my_api_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.jp.md +1 -1
- data/README.md +3 -1
- data/lib/generators/rails/templates/api_client.rb.erb +1 -1
- data/lib/generators/rspec/templates/api_client_spec.rb.erb +1 -1
- data/lib/my_api_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0782c6a53e16278b1889aa712648bc6d57275074cd55f629da388548f86463d
|
4
|
+
data.tar.gz: a8c2b67c92b061753b7be9537303a72819ac9df8890b7af21ffd6447923ab2d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd6d6080b1c7f7a88edf0660eb5d0b092435fcdf0d6b1572e5489df5bfa888928473765263e1f9d8d4ca78692d7d772039370fc7c7cda706cfcd3cb2452db7c6
|
7
|
+
data.tar.gz: 44de01550470430982e982bec4627e9370d0fa08f97b6d6f83324d5b923c0c52282d6a8214ad2d38f57d64653402895f46d396ba7c11446b0b27f80bc1b4ddc4
|
data/Gemfile.lock
CHANGED
data/README.jp.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![CircleCI](https://circleci.com/gh/ryz310/my_api_client.svg?style=svg)](https://circleci.com/gh/ryz310/my_api_client) [![Maintainability](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/maintainability)](https://codeclimate.com/github/ryz310/my_api_client/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/test_coverage)](https://codeclimate.com/github/ryz310/my_api_client/test_coverage)
|
1
|
+
[![CircleCI](https://circleci.com/gh/ryz310/my_api_client.svg?style=svg)](https://circleci.com/gh/ryz310/my_api_client) [![Gem Version](https://badge.fury.io/rb/my_api_client.svg)](https://badge.fury.io/rb/my_api_client) [![Maintainability](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/maintainability)](https://codeclimate.com/github/ryz310/my_api_client/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/test_coverage)](https://codeclimate.com/github/ryz310/my_api_client/test_coverage)
|
2
2
|
|
3
3
|
# MyApiClient
|
4
4
|
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
[![CircleCI](https://circleci.com/gh/ryz310/my_api_client.svg?style=svg)](https://circleci.com/gh/ryz310/my_api_client) [![Maintainability](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/maintainability)](https://codeclimate.com/github/ryz310/my_api_client/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/test_coverage)](https://codeclimate.com/github/ryz310/my_api_client/test_coverage)
|
1
|
+
[![CircleCI](https://circleci.com/gh/ryz310/my_api_client.svg?style=svg)](https://circleci.com/gh/ryz310/my_api_client) [![Gem Version](https://badge.fury.io/rb/my_api_client.svg)](https://badge.fury.io/rb/my_api_client) [![Maintainability](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/maintainability)](https://codeclimate.com/github/ryz310/my_api_client/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/861a2c8f168bbe995107/test_coverage)](https://codeclimate.com/github/ryz310/my_api_client/test_coverage)
|
2
|
+
|
3
|
+
日本語ドキュメントは [こちら](README.jp.md)
|
2
4
|
|
3
5
|
# MyApiClient
|
4
6
|
|
@@ -11,7 +11,7 @@ class <%= "#{class_name}ApiClient" %> < ::ApplicationApiClient
|
|
11
11
|
end
|
12
12
|
|
13
13
|
<% requests.each do |request| -%>
|
14
|
-
<% action, http_method, pathname = request.
|
14
|
+
<% action, http_method, pathname = request.separate(':') -%>
|
15
15
|
# <%= "#{http_method.upcase} #{endpoint}/#{pathname}" %>
|
16
16
|
#
|
17
17
|
# @return [Sawyer::Resource] Description of the API response
|
@@ -6,7 +6,7 @@ RSpec.describe <%= "#{class_name}ApiClient" %>, <%= type_metatag(:api_client) %>
|
|
6
6
|
let(:api_client) { described_class.new }
|
7
7
|
|
8
8
|
<% requests.each do |request| -%>
|
9
|
-
<% action, http_method, pathname = request.
|
9
|
+
<% action, http_method, pathname = request.separate(':') -%>
|
10
10
|
describe '#<%= action %>' do
|
11
11
|
end
|
12
12
|
<% end -%>
|