cryptoprocessing 0.6.1

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.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +35 -0
  3. data/.coveralls.yml +1 -0
  4. data/.document +5 -0
  5. data/.editorconfig +12 -0
  6. data/.gemtest +0 -0
  7. data/.gitattributes +1 -0
  8. data/.gitignore +129 -0
  9. data/.hound.yml +5 -0
  10. data/.rspec +3 -0
  11. data/.rubocop.yml +65 -0
  12. data/.rubocop_todo.yml +0 -0
  13. data/.ruby-version +1 -0
  14. data/.simplecov +8 -0
  15. data/.travis.yml +11 -0
  16. data/.yardopts +10 -0
  17. data/CHANGELOG.md +12 -0
  18. data/CODE_OF_CONDUCT.md +74 -0
  19. data/Gemfile +6 -0
  20. data/Gemfile.lock +94 -0
  21. data/LICENSE.txt +21 -0
  22. data/NOTICE.txt +2 -0
  23. data/README.md +86 -0
  24. data/Rakefile +21 -0
  25. data/VERSION +1 -0
  26. data/bin/console +14 -0
  27. data/bin/setup +8 -0
  28. data/cryptoprocessing.gemspec +39 -0
  29. data/exe/cryptoprocessing +5 -0
  30. data/lib/cryptoprocessing.rb +37 -0
  31. data/lib/cryptoprocessing/adapters/em_http.rb +71 -0
  32. data/lib/cryptoprocessing/adapters/net_http.rb +6 -0
  33. data/lib/cryptoprocessing/authentication.rb +67 -0
  34. data/lib/cryptoprocessing/authentication/storages/file_token_store.rb +0 -0
  35. data/lib/cryptoprocessing/authentication/storages/redis_token_store.rb +0 -0
  36. data/lib/cryptoprocessing/authentication/token_store.rb +57 -0
  37. data/lib/cryptoprocessing/cli.rb +203 -0
  38. data/lib/cryptoprocessing/client.rb +108 -0
  39. data/lib/cryptoprocessing/client/accounts.rb +43 -0
  40. data/lib/cryptoprocessing/client/addresses.rb +56 -0
  41. data/lib/cryptoprocessing/client/api_errors.rb +7 -0
  42. data/lib/cryptoprocessing/client/api_response.rb +39 -0
  43. data/lib/cryptoprocessing/client/callbacks.rb +39 -0
  44. data/lib/cryptoprocessing/client/coinbase_wallet.rb +45 -0
  45. data/lib/cryptoprocessing/client/net_response.rb +100 -0
  46. data/lib/cryptoprocessing/client/trackers.rb +37 -0
  47. data/lib/cryptoprocessing/client/transactions.rb +90 -0
  48. data/lib/cryptoprocessing/configurable.rb +73 -0
  49. data/lib/cryptoprocessing/connection.rb +140 -0
  50. data/lib/cryptoprocessing/default.rb +78 -0
  51. data/lib/cryptoprocessing/error.rb +3 -0
  52. data/lib/cryptoprocessing/models/account.rb +39 -0
  53. data/lib/cryptoprocessing/models/address.rb +17 -0
  54. data/lib/cryptoprocessing/models/api_object.rb +14 -0
  55. data/lib/cryptoprocessing/models/callback.rb +4 -0
  56. data/lib/cryptoprocessing/models/tracker.rb +4 -0
  57. data/lib/cryptoprocessing/models/transaction.rb +6 -0
  58. data/lib/cryptoprocessing/models/user.rb +6 -0
  59. data/lib/cryptoprocessing/rails.rb +13 -0
  60. data/lib/cryptoprocessing/version.rb +17 -0
  61. data/script/bootstrap +5 -0
  62. data/script/cibuild +5 -0
  63. data/script/console +11 -0
  64. data/script/package +7 -0
  65. data/script/release +16 -0
  66. data/script/test +17 -0
  67. metadata +236 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1a33ba0ce9d1ab8be8da1fe299912fc2a7fced05
4
+ data.tar.gz: 3b5bbb4ca7f0e093f2098e97027eb99d419adf94
5
+ SHA512:
6
+ metadata.gz: 02ee3370eb78f397fcfad011335d449f1ccb7e6633311b3d5c88e6db98135bb04462f89358b68818912a52161bdced01d015814387a74b9e14b125817e7e5085
7
+ data.tar.gz: 8dcf67722cb8ccc82d455c8dd1bab6b422b8a649f2ff45417ddb2c04a704559f22040c09e3e5e9ec0e19452985db1b2082f2c28ceb0f5957f2b49e10f10f30e0
data/.codeclimate.yml ADDED
@@ -0,0 +1,35 @@
1
+ engines:
2
+ bundler-audit:
3
+ enabled: true
4
+ duplication:
5
+ enabled: true
6
+ config:
7
+ languages:
8
+ - ruby
9
+ fixme:
10
+ enabled: true
11
+ rubocop:
12
+ enabled: true
13
+ plugins:
14
+ bundler-audit:
15
+ enabled: true
16
+ rubocop:
17
+ enabled: true
18
+ fixme:
19
+ enabled: true
20
+ config:
21
+ strings:
22
+ - FIXME
23
+ - BUG
24
+ ratings:
25
+ paths:
26
+ - "**.rb"
27
+ exclude_paths:
28
+ - "ext/"
29
+ - "ports/"
30
+ - "test/"
31
+ - "tmp/"
32
+ exclude_patterns:
33
+ - "features/"
34
+ - "script/"
35
+ - "**/vendor/"
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ features/**/*.feature
4
+ -
5
+ LICENSE.md
data/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
data/.gemtest ADDED
File without changes
data/.gitattributes ADDED
@@ -0,0 +1 @@
1
+ CHANGELOG.md merge=union
data/.gitignore ADDED
@@ -0,0 +1,129 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ ### Ruby template
13
+ *.gem
14
+ *.rbc
15
+ /.config
16
+ /InstalledFiles
17
+ /spec/examples.txt
18
+ /test/tmp/
19
+ /test/version_tmp/
20
+
21
+ # Used by dotenv library to load environment variables.
22
+ # .env
23
+
24
+ ## Specific to RubyMotion:
25
+ .dat*
26
+ .repl_history
27
+ build/
28
+ *.bridgesupport
29
+ build-iPhoneOS/
30
+ build-iPhoneSimulator/
31
+
32
+ ## Specific to RubyMotion (use of CocoaPods):
33
+ #
34
+ # We recommend against adding the Pods directory to your .gitignore. However
35
+ # you should judge for yourself, the pros and cons are mentioned at:
36
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
37
+ #
38
+ # vendor/Pods/
39
+
40
+ ## Documentation cache and generated files:
41
+ /.yardoc/
42
+ /rdoc/
43
+
44
+ ## Environment normalization:
45
+ /vendor/bundle
46
+ /lib/bundler/man/
47
+
48
+ # for a library or gem, you might want to ignore these files since the code is
49
+ # intended to run in multiple environments; otherwise, check them in:
50
+ # Gemfile.lock
51
+ # .ruby-version
52
+ # .ruby-gemset
53
+
54
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
55
+ .rvmrc
56
+ ### JetBrains template
57
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
58
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
59
+
60
+ # User-specific stuff:
61
+ .idea/**/workspace.xml
62
+ .idea/**/tasks.xml
63
+ .idea/dictionaries
64
+
65
+ # Sensitive or high-churn files:
66
+ .idea/**/dataSources/
67
+ .idea/**/dataSources.ids
68
+ .idea/**/dataSources.xml
69
+ .idea/**/dataSources.local.xml
70
+ .idea/**/sqlDataSources.xml
71
+ .idea/**/dynamic.xml
72
+ .idea/**/uiDesigner.xml
73
+
74
+ # Gradle:
75
+ .idea/**/gradle.xml
76
+ .idea/**/libraries
77
+
78
+ # CMake
79
+ cmake-build-debug/
80
+ cmake-build-release/
81
+
82
+ # Mongo Explorer plugin:
83
+ .idea/**/mongoSettings.xml
84
+
85
+ ## File-based project format:
86
+ *.iws
87
+
88
+ ## Plugin-specific files:
89
+
90
+ # IntelliJ
91
+ out/
92
+
93
+ # mpeltonen/sbt-idea plugin
94
+ .idea_modules/
95
+
96
+ # JIRA plugin
97
+ atlassian-ide-plugin.xml
98
+
99
+ # Cursive Clojure plugin
100
+ .idea/replstate.xml
101
+
102
+ # Crashlytics plugin (for Android Studio and IntelliJ)
103
+ com_crashlytics_export_strings.xml
104
+ crashlytics.properties
105
+ crashlytics-build.properties
106
+ fabric.properties
107
+ ### Windows template
108
+ # Windows thumbnail cache files
109
+ Thumbs.db
110
+ ehthumbs.db
111
+ ehthumbs_vista.db
112
+
113
+ # Dump file
114
+ *.stackdump
115
+
116
+ # Folder config file
117
+ [Dd]esktop.ini
118
+
119
+ # Recycle Bin used on file shares
120
+ $RECYCLE.BIN/
121
+
122
+ # Windows Installer files
123
+ *.cab
124
+ *.msi
125
+ *.msm
126
+ *.msp
127
+
128
+ # Windows shortcuts
129
+ *.lnk
data/.hound.yml ADDED
@@ -0,0 +1,5 @@
1
+ rubocop:
2
+ enabled: true
3
+ config_file: .rubocop.yml
4
+
5
+ fail_on_violations: true
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,65 @@
1
+ # This is the configuration used to check the cryptoprocessing.rb source code.
2
+
3
+ require:
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ Exclude:
8
+ - 'vendor/**/*'
9
+ - 'spec/fixtures/**/*'
10
+ - 'tmp/**/*'
11
+ TargetRubyVersion: 2.4
12
+
13
+
14
+ Naming/PredicateName:
15
+ # Method define macros for dynamically generated method.
16
+ MethodDefinitionMacros:
17
+ - define_method
18
+ - define_singleton_method
19
+ - def_node_matcher
20
+ - def_node_search
21
+
22
+ # Metrics
23
+
24
+ Metrics/AbcSize:
25
+ Max: 25
26
+
27
+ Metrics/BlockLength:
28
+ Exclude:
29
+ - 'cryptoprocessing-api-client.gemspec'
30
+
31
+ Metrics/CyclomaticComplexity:
32
+ Max: 8
33
+
34
+ Metrics/MethodLength:
35
+ Max: 20
36
+
37
+ Metrics/ClassLength:
38
+ Enabled: false
39
+
40
+
41
+ # Style
42
+
43
+ Style/IndentHeredoc:
44
+ Enabled: false
45
+
46
+ Style/FormatString:
47
+ Enabled: false
48
+
49
+ Style/GuardClause:
50
+ Enabled: false
51
+
52
+ Style/PercentLiteralDelimiters:
53
+ Enabled: false
54
+
55
+ Style/SymbolArray:
56
+ Enabled: false
57
+
58
+
59
+ # RSpec
60
+
61
+ RSpec/PredicateMatcher:
62
+ EnforcedStyle: explicit
63
+
64
+ RSpec/NestedGroups:
65
+ Max: 7
data/.rubocop_todo.yml ADDED
File without changes
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.4.1
data/.simplecov ADDED
@@ -0,0 +1,8 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5
+ SimpleCov.start do
6
+ add_filter 'lib/cryptoprocessing/idna'
7
+ add_filter 'lib/cryptoprocessing/idna.rb'
8
+ end
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.4.1
5
+
6
+ sudo: false
7
+
8
+ before_install: gem install bundler -v 1.16.1
9
+
10
+ notifications:
11
+ email: false
data/.yardopts ADDED
@@ -0,0 +1,10 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --markup=markdown
4
+ --markup-provider=redcarpet
5
+ --verbose
6
+ lib/**/*.rb
7
+ -
8
+ README.md
9
+ CODE_OF_CONDUCT.md
10
+ LICENSE.txt
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.6.0] - 2018-04-18
9
+
10
+ ### Added
11
+
12
+ * Collateral and integration services reorganization
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at actuosus@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in cryptoprocessing.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,94 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cryptoprocessing (0.6.1)
5
+ logging (~> 2.0)
6
+ thor (~> 0.19)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.5.2)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
+ concurrent-ruby (1.0.5)
14
+ coveralls (0.7.1)
15
+ multi_json (~> 1.3)
16
+ rest-client
17
+ simplecov (>= 0.7)
18
+ term-ansicolor
19
+ thor
20
+ crack (0.4.3)
21
+ safe_yaml (~> 1.0.0)
22
+ diff-lcs (1.3)
23
+ docile (1.1.5)
24
+ domain_name (0.5.20170404)
25
+ unf (>= 0.0.5, < 1.0.0)
26
+ faker (1.8.7)
27
+ i18n (>= 0.7)
28
+ hashdiff (0.3.7)
29
+ http-cookie (1.0.3)
30
+ domain_name (~> 0.5)
31
+ i18n (1.0.0)
32
+ concurrent-ruby (~> 1.0)
33
+ json (2.1.0)
34
+ little-plugger (1.1.4)
35
+ logging (2.2.2)
36
+ little-plugger (~> 1.1)
37
+ multi_json (~> 1.10)
38
+ mime-types (3.1)
39
+ mime-types-data (~> 3.2015)
40
+ mime-types-data (3.2016.0521)
41
+ multi_json (1.13.1)
42
+ netrc (0.11.0)
43
+ public_suffix (3.0.2)
44
+ rake (10.5.0)
45
+ rest-client (2.0.2)
46
+ http-cookie (>= 1.0.2, < 2.0)
47
+ mime-types (>= 1.16, < 4.0)
48
+ netrc (~> 0.8)
49
+ rspec (3.7.0)
50
+ rspec-core (~> 3.7.0)
51
+ rspec-expectations (~> 3.7.0)
52
+ rspec-mocks (~> 3.7.0)
53
+ rspec-core (3.7.1)
54
+ rspec-support (~> 3.7.0)
55
+ rspec-expectations (3.7.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.7.0)
58
+ rspec-mocks (3.7.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.7.0)
61
+ rspec-support (3.7.1)
62
+ safe_yaml (1.0.4)
63
+ simplecov (0.15.1)
64
+ docile (~> 1.1.0)
65
+ json (>= 1.8, < 3)
66
+ simplecov-html (~> 0.10.0)
67
+ simplecov-html (0.10.2)
68
+ term-ansicolor (1.6.0)
69
+ tins (~> 1.0)
70
+ thor (0.20.0)
71
+ tins (1.16.3)
72
+ unf (0.1.4)
73
+ unf_ext
74
+ unf_ext (0.0.7.5)
75
+ webmock (3.3.0)
76
+ addressable (>= 2.3.6)
77
+ crack (>= 0.3.2)
78
+ hashdiff
79
+
80
+ PLATFORMS
81
+ ruby
82
+
83
+ DEPENDENCIES
84
+ bundler (~> 1.16)
85
+ coveralls
86
+ cryptoprocessing!
87
+ faker
88
+ rake (~> 10.0)
89
+ rspec (~> 3.0)
90
+ simplecov
91
+ webmock
92
+
93
+ BUNDLED WITH
94
+ 1.16.1