bitflyer 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b414a7e2a6dd054ca0aff1d217dc8c8e712f8969daa03d91dbf795e33111e94
4
- data.tar.gz: cb365b45701c9a23bf6d6f7b4818f04e6eeef1e709909802feca8d62779cb7f1
3
+ metadata.gz: 6f49b4a666d8df93717c072384a5be911359f9374c323e06ed7ee50cc3780b22
4
+ data.tar.gz: 719a1bc27381f6cf81a560050f306b7adc5946e36ddbd30da2f60686e34af652
5
5
  SHA512:
6
- metadata.gz: 66beabfdb8ba7893f44b16c41a6371b6eb0cfd131138055d6d72a02ac90af17ffa450a155c4dac0f19433705228319714111464af07159e56c7f0bd08f456b0e
7
- data.tar.gz: 56ac4fe5e16694a3c4d2b4049c4fefa9b1fa7a9412133ce9c5596d9ec53dd664ccd5d155af54df3645cfab655f790105b62c18c3e73e562bd44e481f68a687d6
6
+ metadata.gz: eb08f088aea6b006cef2f8b29c8d52c908653386909524cb3aed4057e1cba6f1a7992bc713b6726abb36c0f8a98d8581e13b712c6b665e69eda8565bb957bebc
7
+ data.tar.gz: 63a9357c4f45bd9f77604e9393d32c852daf682c6da54c8552b1eea4c3be22ab89b7abe9392f784e3cf6099e07a77b286f7583620ed008b8e44d405996fd3925
@@ -0,0 +1,33 @@
1
+ {
2
+ "files": [
3
+ "README.md"
4
+ ],
5
+ "imageSize": 100,
6
+ "commit": false,
7
+ "contributors": [
8
+ {
9
+ "login": "yemartin",
10
+ "name": "Yves-Eric Martin",
11
+ "avatar_url": "https://avatars.githubusercontent.com/u/139002?v=4",
12
+ "profile": "https://github.com/yemartin",
13
+ "contributions": [
14
+ "code"
15
+ ]
16
+ },
17
+ {
18
+ "login": "unhappychoice",
19
+ "name": "Yuji Ueki",
20
+ "avatar_url": "https://avatars.githubusercontent.com/u/5608948?v=4",
21
+ "profile": "http://blog.unhappychoice.com",
22
+ "contributions": [
23
+ "code"
24
+ ]
25
+ }
26
+ ],
27
+ "contributorsPerLine": 7,
28
+ "projectName": "bitflyer",
29
+ "projectOwner": "unhappychoice",
30
+ "repoType": "github",
31
+ "repoHost": "https://github.com",
32
+ "skipCi": true
33
+ }
data/.circleci/config.yml CHANGED
@@ -17,7 +17,7 @@ restore_bundle_cache: &restore_bundle_cache
17
17
  jobs:
18
18
  build:
19
19
  docker:
20
- - image: circleci/ruby
20
+ - image: circleci/ruby:2.7.2
21
21
  steps:
22
22
  - checkout
23
23
  - *restore_bundle_cache
@@ -29,7 +29,7 @@ jobs:
29
29
  - vendor/bundle
30
30
  rubocop:
31
31
  docker:
32
- - image: circleci/ruby
32
+ - image: circleci/ruby:2.7.2
33
33
  steps:
34
34
  - checkout
35
35
  - *restore_bundle_cache
@@ -38,7 +38,7 @@ jobs:
38
38
  - run: bundle exec rubocop
39
39
  rspec:
40
40
  docker:
41
- - image: circleci/ruby
41
+ - image: circleci/ruby:2.7.2
42
42
  steps:
43
43
  - checkout
44
44
  - *restore_bundle_cache
data/Gemfile.lock CHANGED
@@ -1,63 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitflyer (1.0.1)
5
- faraday (>= 0.14, < 1.2)
4
+ bitflyer (1.1.0)
5
+ faraday (>= 0.14, < 1.4)
6
6
  faraday_middleware (>= 0.12, < 1.1)
7
7
  websocket-client-simple (~> 0.3.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- ast (2.4.1)
12
+ ast (2.4.2)
13
13
  coderay (1.1.3)
14
14
  diff-lcs (1.4.4)
15
15
  event_emitter (0.2.6)
16
- faraday (1.1.0)
16
+ faraday (1.3.0)
17
+ faraday-net_http (~> 1.0)
17
18
  multipart-post (>= 1.2, < 3)
18
19
  ruby2_keywords
20
+ faraday-net_http (1.0.1)
19
21
  faraday_middleware (1.0.0)
20
22
  faraday (~> 1.0)
21
23
  method_source (1.0.0)
22
24
  multipart-post (2.1.1)
23
- parallel (1.19.2)
24
- parser (2.7.2.0)
25
+ parallel (1.20.1)
26
+ parser (3.0.0.0)
25
27
  ast (~> 2.4.1)
26
- pry (0.13.1)
28
+ pry (0.14.0)
27
29
  coderay (~> 1.1)
28
30
  method_source (~> 1.0)
29
31
  rainbow (3.0.0)
30
- rake (13.0.1)
31
- regexp_parser (1.8.2)
32
+ rake (13.0.3)
33
+ regexp_parser (2.0.3)
32
34
  rexml (3.2.4)
33
35
  rspec (3.10.0)
34
36
  rspec-core (~> 3.10.0)
35
37
  rspec-expectations (~> 3.10.0)
36
38
  rspec-mocks (~> 3.10.0)
37
- rspec-core (3.10.0)
39
+ rspec-core (3.10.1)
38
40
  rspec-support (~> 3.10.0)
39
- rspec-expectations (3.10.0)
41
+ rspec-expectations (3.10.1)
40
42
  diff-lcs (>= 1.2.0, < 2.0)
41
43
  rspec-support (~> 3.10.0)
42
- rspec-mocks (3.10.0)
44
+ rspec-mocks (3.10.2)
43
45
  diff-lcs (>= 1.2.0, < 2.0)
44
46
  rspec-support (~> 3.10.0)
45
- rspec-support (3.10.0)
46
- rubocop (1.2.0)
47
+ rspec-support (3.10.2)
48
+ rubocop (1.10.0)
47
49
  parallel (~> 1.10)
48
- parser (>= 2.7.1.5)
50
+ parser (>= 3.0.0.0)
49
51
  rainbow (>= 2.2.2, < 4.0)
50
- regexp_parser (>= 1.8)
52
+ regexp_parser (>= 1.8, < 3.0)
51
53
  rexml
52
- rubocop-ast (>= 1.0.1)
54
+ rubocop-ast (>= 1.2.0, < 2.0)
53
55
  ruby-progressbar (~> 1.7)
54
- unicode-display_width (>= 1.4.0, < 2.0)
55
- rubocop-ast (1.1.1)
56
+ unicode-display_width (>= 1.4.0, < 3.0)
57
+ rubocop-ast (1.4.1)
56
58
  parser (>= 2.7.1.5)
57
- ruby-progressbar (1.10.1)
58
- ruby2_keywords (0.0.2)
59
- unicode-display_width (1.7.0)
60
- websocket (1.2.8)
59
+ ruby-progressbar (1.11.0)
60
+ ruby2_keywords (0.0.4)
61
+ unicode-display_width (2.0.0)
62
+ websocket (1.2.9)
61
63
  websocket-client-simple (0.3.0)
62
64
  event_emitter
63
65
  websocket
@@ -74,4 +76,4 @@ DEPENDENCIES
74
76
  rubocop
75
77
 
76
78
  BUNDLED WITH
77
- 2.0.2
79
+ 2.2.4
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # bitflyer
2
+ <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3
+ [![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
4
+ <!-- ALL-CONTRIBUTORS-BADGE:END -->
2
5
  [![Gem Version](https://badge.fury.io/rb/bitflyer.svg)](https://badge.fury.io/rb/bitflyer)
3
6
  [![Circle CI](https://circleci.com/gh/unhappychoice/bitflyer.svg?style=shield)](https://circleci.com/gh/unhappychoice/bitflyer)
4
7
  [![Code Climate](https://codeclimate.com/github/unhappychoice/bitflyer/badges/gpa.svg)](https://codeclimate.com/github/unhappychoice/bitflyer)
@@ -57,3 +60,24 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/unhapp
57
60
 
58
61
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
59
62
 
63
+
64
+ ## Contributors ✨
65
+
66
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
67
+
68
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
69
+ <!-- prettier-ignore-start -->
70
+ <!-- markdownlint-disable -->
71
+ <table>
72
+ <tr>
73
+ <td align="center"><a href="http://blog.unhappychoice.com"><img src="https://avatars.githubusercontent.com/u/5608948?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yuji Ueki</b></sub></a><br /><a href="https://github.com/unhappychoice/bitflyer/commits?author=unhappychoice" title="Code">💻</a></td>
74
+ <td align="center"><a href="https://github.com/yemartin"><img src="https://avatars.githubusercontent.com/u/139002?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yves-Eric Martin</b></sub></a><br /><a href="https://github.com/unhappychoice/bitflyer/commits?author=yemartin" title="Code">💻</a></td>
75
+ </tr>
76
+ </table>
77
+
78
+ <!-- markdownlint-restore -->
79
+ <!-- prettier-ignore-end -->
80
+
81
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
82
+
83
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
data/bitflyer.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'faraday', '>= 0.14', '< 1.2'
20
+ spec.add_dependency 'faraday', '>= 0.14', '< 1.4'
21
21
  spec.add_dependency 'faraday_middleware', '>= 0.12', '< 1.1'
22
22
  spec.add_dependency 'websocket-client-simple', '~> 0.3.0'
23
23
  spec.add_development_dependency 'bundler', '~> 2.0'
@@ -24,8 +24,14 @@ module Bitflyer
24
24
  @connection.get('/v1/ticker', product_code: product_code).body
25
25
  end
26
26
 
27
- def executions(product_code: 'BTC_JPY')
28
- @connection.get('/v1/executions', product_code: product_code).body
27
+ def executions(product_code: 'BTC_JPY', count: nil, before: nil, after: nil)
28
+ query = {
29
+ product_code: product_code,
30
+ count: count,
31
+ before: before,
32
+ after: after
33
+ }.delete_if { |_, v| v.nil? }
34
+ @connection.get('/v1/executions', query).body
29
35
  end
30
36
 
31
37
  def chats(from_date: (Time.now - 5 * 24 * 60 * 60))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitflyer
4
- VERSION = '1.0.1'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitflyer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-07 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.14'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '1.2'
22
+ version: '1.4'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.14'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '1.2'
32
+ version: '1.4'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: faraday_middleware
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -141,6 +141,7 @@ executables: []
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
+ - ".all-contributorsrc"
144
145
  - ".circleci/config.yml"
145
146
  - ".rubocop.yml"
146
147
  - ".rubocop_todo.yml"