bitstamp_client 1.2.3 → 1.2.4

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: 8cd40bae0407669068df4b5a41644753dc5d3e03f104c06e9971ab7c3cb4ca21
4
- data.tar.gz: 55eaefa13988e589e6b641437e48b602eaf769899e6c2644208b9ac64038d36b
3
+ metadata.gz: 842c6304d1c9511f636ddcc56119b3d82e53f73587310a3ffcc919ce3a80313f
4
+ data.tar.gz: 760ff1f7f28357f5e58d99b1e23ba76baf655ac4da00e7ac788fa238ecdbaa60
5
5
  SHA512:
6
- metadata.gz: 70752c1724e1892564dce76258f14ef43f0526100a42389fcc0c616cb98df3072daa4572f33e843db67cc512ab14d77a936ec11fae2d6a119908cf9cdbf8e989
7
- data.tar.gz: fe5a68b9256ec7d0b0b61c1b59c7c2109f85dc2d4120b790cebb94fc5c65d09db924f843aa6171d7306294d9bd213434f8db7878d2681f5c947ed4bd8791fdc1
6
+ metadata.gz: 9526285249e1bfa7577ab7271d7be11904dae64c12b7afc5a4321a68c18984704d9648a03b89955579a0813ee98ba1dc917f911894a64a59bcc1ec775ed6043e
7
+ data.tar.gz: 16bcb843c59bbe8aa0e73346ae03b8ee30ca7a50b99e1f9da90947ef4cb98d71c55b7c8e2316edf424af4fa5ecaa814661782a85c0be59ccb12c2c691f468fe8
@@ -1,3 +1,3 @@
1
1
  KEY=changeme
2
2
  SECRET=changeme
3
- CUSTOMER=1234
3
+ CUSTOMER_ID=1234
@@ -1,23 +1,30 @@
1
- name: Ruby Tests
1
+ name: Ruby
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ $default-branch ]
5
+ branches: [ master ]
6
6
  pull_request:
7
- branches: [ $default-branch ]
7
+ branches: [ master ]
8
8
 
9
9
  jobs:
10
10
  test:
11
+
11
12
  runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ ruby-version: ['2.6', '2.7', '3.0']
16
+
12
17
  steps:
13
18
  - uses: actions/checkout@v2
14
19
  - name: Set up Ruby
15
20
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
16
21
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
17
22
  # uses: ruby/setup-ruby@v1
18
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
23
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
24
+ with:
25
+ ruby-version: ${{ matrix.ruby-version }}
26
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19
27
  - name: Install dependencies
20
28
  run: bundle install
21
29
  - name: Run tests
22
30
  run: bundle exec rspec spec
23
-
data/.gitignore CHANGED
@@ -12,5 +12,4 @@
12
12
  # rspec failure tracking
13
13
  .rspec_status
14
14
 
15
- .env
16
15
  .env.local
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.7.2
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.2.4] - 2021-02-01
8
+ ### Fixed
9
+ - Compatibility with Ruby 2.7+ (where `BigDecimal.new` has been removed)
10
+
7
11
  ## [1.2.3] - 2021-01-06
8
12
  ### Changed
9
13
  - `BalanceResponse#success?` first checks if `parsed_body` is present
data/README.md CHANGED
@@ -45,7 +45,7 @@ For more, see the files in `spec/acceptance`.
45
45
 
46
46
  ## Development
47
47
 
48
- - Setup `spec/config.yml` (see `spec/config.yml.sample`). Since Bitstamp does not have a test API, you'll need to put real credentials for the tests here. Best to create a subaccount that has a limited set of funds.
48
+ - Make a copy of `.env` and name it `.env.local`
49
49
  - Make changes
50
50
  - `rspec spec` to run the specs
51
51
 
@@ -35,7 +35,7 @@ module BitstampClient
35
35
  super if !parsed_body.has_key?(method_name.to_s)
36
36
 
37
37
  self.class.define_method(method_name) do
38
- BigDecimal.new(parsed_body[method_name.to_s])
38
+ BigDecimal(parsed_body[method_name.to_s])
39
39
  end
40
40
 
41
41
  self.send(method_name)
@@ -1,3 +1,3 @@
1
1
  module BitstampClient
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitstamp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-06 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_client_base
@@ -171,7 +171,7 @@ executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
- - ".env.sample"
174
+ - ".env"
175
175
  - ".github/workflows/tests.yml"
176
176
  - ".gitignore"
177
177
  - ".rspec"
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  requirements: []
228
- rubygems_version: 3.0.3
228
+ rubygems_version: 3.0.8
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Ruby wrapper for Bitstamp's API