cgminer_api_client 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/.whitesource +8 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +188 -0
- data/Rakefile +7 -0
- data/bin/cgminer_api_client +22 -0
- data/cgminer_api_client.gemspec +20 -0
- data/config/miners.yml.example +2 -0
- data/lib/cgminer_api_client.rb +40 -0
- data/lib/cgminer_api_client/miner.rb +103 -0
- data/lib/cgminer_api_client/miner/commands.rb +201 -0
- data/lib/cgminer_api_client/miner_pool.rb +68 -0
- data/lib/cgminer_api_client/socket_with_timeout.rb +30 -0
- data/lib/cgminer_api_client/version.rb +3 -0
- data/spec/cgminer_api_client/miner/commands_spec.rb +501 -0
- data/spec/cgminer_api_client/miner_pool_spec.rb +134 -0
- data/spec/cgminer_api_client/miner_spec.rb +296 -0
- data/spec/cgminer_api_client_spec.rb +41 -0
- data/spec/spec_helper.rb +25 -0
- metadata +71 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.start
|
3
|
+
|
4
|
+
require 'cgminer_api_client'
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
config.filter_run :focus
|
8
|
+
config.run_all_when_everything_filtered = true
|
9
|
+
|
10
|
+
if config.files_to_run.one?
|
11
|
+
config.default_formatter = 'doc'
|
12
|
+
end
|
13
|
+
|
14
|
+
config.order = :random
|
15
|
+
Kernel.srand config.seed
|
16
|
+
|
17
|
+
config.expect_with :rspec do |expectations|
|
18
|
+
expectations.syntax = :expect
|
19
|
+
end
|
20
|
+
|
21
|
+
config.mock_with :rspec do |mocks|
|
22
|
+
mocks.syntax = :expect
|
23
|
+
mocks.verify_partial_doubles = true
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cgminer_api_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Ramos
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-12-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: ''
|
14
|
+
email:
|
15
|
+
- justin.ramos@gmail.com
|
16
|
+
executables:
|
17
|
+
- cgminer_api_client
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- ".gitignore"
|
22
|
+
- ".rspec"
|
23
|
+
- ".travis.yml"
|
24
|
+
- ".whitesource"
|
25
|
+
- Gemfile
|
26
|
+
- LICENSE.txt
|
27
|
+
- README.md
|
28
|
+
- Rakefile
|
29
|
+
- bin/cgminer_api_client
|
30
|
+
- cgminer_api_client.gemspec
|
31
|
+
- config/miners.yml.example
|
32
|
+
- lib/cgminer_api_client.rb
|
33
|
+
- lib/cgminer_api_client/miner.rb
|
34
|
+
- lib/cgminer_api_client/miner/commands.rb
|
35
|
+
- lib/cgminer_api_client/miner_pool.rb
|
36
|
+
- lib/cgminer_api_client/socket_with_timeout.rb
|
37
|
+
- lib/cgminer_api_client/version.rb
|
38
|
+
- spec/cgminer_api_client/miner/commands_spec.rb
|
39
|
+
- spec/cgminer_api_client/miner_pool_spec.rb
|
40
|
+
- spec/cgminer_api_client/miner_spec.rb
|
41
|
+
- spec/cgminer_api_client_spec.rb
|
42
|
+
- spec/spec_helper.rb
|
43
|
+
homepage: https://github.com/jramos/cgminer_api_client
|
44
|
+
licenses:
|
45
|
+
- MIT
|
46
|
+
metadata: {}
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
requirements: []
|
62
|
+
rubygems_version: 3.0.6
|
63
|
+
signing_key:
|
64
|
+
specification_version: 4
|
65
|
+
summary: A gem that allows sending API commands to a pool of cgminer instances
|
66
|
+
test_files:
|
67
|
+
- spec/cgminer_api_client/miner/commands_spec.rb
|
68
|
+
- spec/cgminer_api_client/miner_pool_spec.rb
|
69
|
+
- spec/cgminer_api_client/miner_spec.rb
|
70
|
+
- spec/cgminer_api_client_spec.rb
|
71
|
+
- spec/spec_helper.rb
|