cita-sdk-ruby 0.24.0 → 20.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bf77ee83aea26ee7e2f49e4350724c11e2109dde6a8180aa2f85a2530840356
4
- data.tar.gz: 0a6f2346c1bdc19895e8f0e02546e8072b159fcf433ae079277f01fb9acccd24
3
+ metadata.gz: 63fab254939b8ed28925d112fa5c1104d082a47aaeb59ea679500c0fb9e1d496
4
+ data.tar.gz: d86b63ad8685e7ee6021b5c5b9c8ddffa573850f99bbcc85e50925597148b5ce
5
5
  SHA512:
6
- metadata.gz: 692ce2c43900030e44f15d2ec6481aa01d1f5cac6557428128cc258207ea64065b22a459db1da85bbafdc564914e699a3711658ccb5f46e331c8e6fb0a2d3bc0
7
- data.tar.gz: 01d28daf64b56add72372a1790f96042d0fd1ef3193070a10c07a014f4ecdfa92e3dbcd06aad37f4b6d86e950a6a6ef6463656bd0472be254008d156eeb0e0b1
6
+ metadata.gz: 7cf554cb241a4a712d51d18c875e368a017631c9cbca9104db32fe58b7efcdcb93fa1c3c1b38dedaa2610aed866481a83002f8683f86a9579eb54c27bf8b86a1
7
+ data.tar.gz: e36636fe7ee68b20b3d5a1ce1795a24efd1d1e8a6de41f9b73f5dda4e8eb2b1d544b72070dbb5dbb7d421c819f1e267504ff52846497e96243bffb7895980b0f
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
  *.gem
13
+ Gemfile.lock
@@ -1,6 +1,6 @@
1
1
  [submodule "cita-proto"]
2
2
  path = cita-proto
3
- url = https://github.com/cryptape/cita-proto.git
3
+ url = https://github.com/citahub/cita-proto.git
4
4
  [submodule "secp256k1"]
5
5
  path = secp256k1
6
6
  url = https://github.com/bitcoin-core/secp256k1.git
@@ -5,8 +5,10 @@ cache: bundler
5
5
  rvm:
6
6
  - 2.4.5
7
7
  - 2.5.3
8
- - 2.6.1
9
- before_install: gem install bundler -v 1.16.6
8
+ - 2.6.5
9
+ # FIXME: gem google-protobuf is not working with Ruby 2.7.0, ref: https://github.com/protocolbuffers/protobuf/issues/7070
10
+ # - 2.7.0
11
+ before_install: gem install bundler
10
12
  install:
11
13
  - cd secp256k1 && ./autogen.sh && ./configure --enable-module-recovery --enable-experimental --enable-module-ecdh && make && sudo make install && cd ..
12
14
  - bundle install
@@ -15,3 +17,18 @@ script:
15
17
 
16
18
  after_success:
17
19
  - bash <(curl -s https://codecov.io/bash)
20
+
21
+ # automatically release Ruby gem to RubyGems after a successful build with `git push --tags`
22
+ # refs: https://docs.travis-ci.com/user/deployment/rubygems/
23
+ # 1. how to get your api_key: https://rubygems.org/profile/edit
24
+ # 2. install `travis` cli: $ gem install travis
25
+ # 3. get encrypted api_key secure: $ travis setup rubygems
26
+ # below is generated by travis gem:
27
+ deploy:
28
+ provider: rubygems
29
+ api_key:
30
+ secure: qEW15uLo0DVTRAZOkAY035aoPbjHalZhPB3/dEFvBYcnru8gS1Vco3pZrBlk/i5j8LGRs/zq1XSe4u+savuzPcMDlmugLhj0wIvfcrzSm9DiQ6Tej44lYXLgqNrAkXo8sc1jX92vZ7Kp8wae+xzgRD9wckzbrfJd7fFGyPzv1SFpUN0lT+XHvsQuKRP89qIvSykKn26ubnVotUSI9HmDx/fvsNJ23MAgcO0WZut1vPNPLQiVHhIOkHhjjeWrpCUx7bxaxLx41d3zaH61YtiZ8deNvQmsPyx0wndnxxeuOfg3x9McGKTkSHihyv1qAPI8ZxAUPdVjlcl+PjrQdHYymleh/EhjLbIv2XJHnVA7MnrdjjtfDnDSHB0lgaWd70A57+HkuGtX4cwzvBXWJXAuys+mX8s2i98UtcGEpF9AVRGLQ3f9z82i02CVR6YhYQ1sZQDNeS5RNair/YdLfEsbljD3bkU3dSaFxCr64Ii1Z20+QmgMQYx8doTQMzGPFNreVAweL77ZXHliO33tYrEtc1hUHKrh9qQVsipb2A/7x3NN22+zjKDGNGt+B6Q6flClbljH00sKZezjUzGh3NkmABnJ4m0yd4bFmdvUz76x2teugENjxSudJvoeyIJUGj3ZYK2lYNrdURn1OMZUT5YgZc9WmZyEx/8FNUfQLRvYtmY=
31
+ gem: cita-sdk-ruby
32
+ on:
33
+ tags: true
34
+ repo: citahub/cita-sdk-ruby
@@ -0,0 +1,44 @@
1
+ # CHANGELOG
2
+
3
+ ### v20.2.0
4
+
5
+ * change version naming style to `YY.MM.X` since CITA has changed it's version naming rule(https://github.com/citahub/cita/releases/tag/v20.2.0)
6
+ * add Makefile and update README, move changelog to CHANGELOG.md
7
+ * Bump rake from 10.5.0 to 12.3.3 fixes security vulnerability CVE-2020-8130
8
+ * migrate repo to citahub
9
+ * refactor codes with suggestion from make lint-ruby-code
10
+
11
+
12
+ ### v0.24.0
13
+
14
+ * support transaction version = 2
15
+ * set default transaction version to 2
16
+
17
+ ### v0.23.0
18
+
19
+ * add `getVersion` and `peersInfo` RPC methods
20
+
21
+ ### v0.22.0
22
+
23
+ * support CITA v0.22
24
+
25
+ ### v0.21.0
26
+
27
+ * add `recover` option for decode transaction, for CITA v0.21 provide `from` in `getTransaction` rpc call
28
+ * rename protobuf `Crypto` enum
29
+
30
+ ### v0.20.0
31
+
32
+ * rename to `cita-sdk-ruby`
33
+ * rename top module name to `CITA`
34
+
35
+ ### v0.2
36
+
37
+ * supports CITA 0.20 and 0.19
38
+ * set default transaction version to 1
39
+ * update TransactionSinger.decode output type to hash with symbol keys
40
+ * parse TransactionSinger.decode hash value to hex string if it's bytes.
41
+
42
+ ### v0.1
43
+
44
+ * supports CITA 0.19
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Cryptape
3
+ Copyright (c) 2018 Rivtower
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,145 @@
1
+ .DEFAULT_GOAL:=help
2
+ SHELL = /bin/sh
3
+
4
+ # main receipts
5
+ .PHONY: deps build clean help
6
+ # receipts for Code Quality
7
+ .PHONY: code-quality lint-ruby-code format-ruby-code
8
+ # receipts for Testing
9
+ .PHONY: test test-unit test-intergration
10
+
11
+ .SILENT: help
12
+
13
+ # DEFINE FUNCTIONS
14
+
15
+ define get_current_version
16
+ sed -nE '/VERSION = /s/(.+)"(.+)"/\2/p' lib/cita/version.rb
17
+ endef
18
+
19
+ ##@ Helpers
20
+
21
+ help: ## Display help message.
22
+ @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-24s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
23
+
24
+
25
+ ##@ Dependencies
26
+
27
+ deps: ## Download the depenedencies.
28
+ $(info Checking and getting dependencies)
29
+ bundle install
30
+ make update-submodule
31
+
32
+ update-submodule: ## Download codes configured in .gitmodules.
33
+ git submodule update --init --recursive
34
+
35
+
36
+ ##@ Cleanup
37
+ clean: ## Clean up.
38
+ $(info Cleaning up things)
39
+ @echo Nothing to do here.
40
+
41
+
42
+ ##@ Building
43
+
44
+ build: clean deps ## Compile binary targets.
45
+ $(info Building the project)
46
+ make build-secp256k1
47
+
48
+ build-secp256k1: ## Compile secp256k1
49
+ cd secp256k1 && ./autogen.sh && ./configure --enable-module-recovery --enable-experimental --enable-module-ecdh && make && make install && cd ..
50
+
51
+
52
+ ##@ Testing
53
+
54
+ test: ## Run the unit and intergration testsuites.
55
+ test: test-unit test-intergration
56
+
57
+ test-unit: ## Run the unit testsuite.
58
+ $(info Run the unit testsuite)
59
+ bundle exec rake spec
60
+
61
+ test-intergration: ## Run the intergration testsuite.
62
+ $(info Run the intergration testsuite)
63
+ @echo "TODO: run intergration test against with a CITA test chain"
64
+
65
+
66
+ ##@ Code Quality
67
+ code-quality: ## Run linter & formatter.
68
+ $(info Run linter & formatter)
69
+ make lint-ruby-code
70
+ make format-ruby-code
71
+
72
+ lint-ruby-code: ## Run linter for ruby codes
73
+ $(info Run linter for ruby codes)
74
+ bundle exec rubocop
75
+
76
+ format-ruby-code: ## Run formatter for ruby codes.
77
+ $(info Run formatter for ruby codes)
78
+ # cat .rubocop.yml
79
+ bundle exec rubocop -x
80
+
81
+
82
+ ##@ Continuous Integration
83
+
84
+ ci: ## Run recipes for CI.
85
+ ci: build test code-quality
86
+
87
+
88
+ # receipts for Release
89
+ .PHONY: changelog changelog-check generate-build-version show-full-version
90
+ ##@ Release
91
+ changelog-check:
92
+ # check local branch
93
+ @git_tags_count=$(shell git log --oneline --decorate | grep "tag:" | wc -l | bc) ; \
94
+ if [ $${git_tags_count} == 0 ]; then \
95
+ echo "No git tags found on current branch, please follow these steps:" ;\
96
+ echo "1. $$ git checkout master" ;\
97
+ echo "2. $$ git checkout -b update-changelog" ;\
98
+ echo "3. $$ git merge develop --no-edit" ;\
99
+ echo "4. $$ make changelog" ;\
100
+ echo "or just run $$ make changelog-auto" ;\
101
+ exit 1 ;\
102
+ fi
103
+
104
+ changelog: changelog-check ## Generate CHANGELOG.md from git logs.
105
+ $(info How do I make a good changelog? https://keepachangelog.com)
106
+ # auto install git-changelog
107
+ @git-changelog -v || pip3 install git-changelog
108
+ @OUTPUT=CHANGELOG.md ;\
109
+ git-changelog -s basic -t keepachangelog -o $${OUTPUT} . ;\
110
+ git diff $${OUTPUT} ;\
111
+ open $${OUTPUT} ;\
112
+ echo "Edit $${OUTPUT} to keep notable changes"
113
+
114
+ changelog-auto: ## Auto generate CHANGELOG.md
115
+ $(info Generate CHANGELOG.md in one step)
116
+ git checkout master
117
+ if git show-ref --verify --quiet "refs/heads/update-changelog"; then \
118
+ echo "Found update-changelog, auto delete it." ;\
119
+ git branch -D update-changelog ;\
120
+ fi
121
+ git checkout -b update-changelog
122
+ git merge develop --no-edit
123
+ make changelog
124
+
125
+ make commit-release-notes: ## Commit lib/cita/version.rb and CHANGELOG.md
126
+ @eval current_version=`$(get_current_version)` ;\
127
+ git add lib/cita/version.rb CHANGELOG.md ;\
128
+ git commit -m "bump version to v$${current_version}" ;\
129
+ git log -n 1
130
+
131
+ current-version: ## Show current version number in lib/cita/version.rb file
132
+ @$(call get_current_version)
133
+
134
+ bump-version: ## Update version number in lib/cita/version.rb file, e.g.: bump-version v=1.2.0
135
+ $(info Update version number)
136
+ @eval current_version=`$(get_current_version)` ;\
137
+ if [ "$${v}" == "" ]; then \
138
+ echo "usage:$$ make bump-version v=x.y.z" ;\
139
+ else \
140
+ echo "Previous version: $${current_version}" ;\
141
+ echo "Update to new version: $${v}" ;\
142
+ sed -i '' "s/$${current_version}/$${v}/" lib/cita/version.rb ;\
143
+ new_version=`make current-version` ;\
144
+ echo "Now current version: $${new_version}" ;\
145
+ fi
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # cita-sdk-ruby
2
2
 
3
- [![Build Status](https://travis-ci.org/cryptape/cita-sdk-ruby.svg?branch=master)](https://travis-ci.org/cryptape/cita-sdk-ruby)
4
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](https://www.rubydoc.info/github/cryptape/cita-sdk-ruby/master)
3
+ [![Build Status](https://travis-ci.org/citahub/cita-sdk-ruby.svg?branch=master)](https://travis-ci.org/citahub/cita-sdk-ruby)
4
+ [![License: MIT](https://img.shields.io/github/license/citahub/cita-sdk-ruby.svg)](https://github.com/citahub/cita-sdk-ruby/blob/master/LICENSE.txt)
5
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](https://www.rubydoc.info/github/citahub/cita-sdk-ruby/master)
6
+ ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/citahub/cita-sdk-ruby.svg)
5
7
 
6
8
  CITA Ruby SDK
7
9
 
@@ -26,6 +28,7 @@ Or install it yourself as:
26
28
  See `keccak256`, `to_hex` and other utils methods in `CITA::Utils` module
27
29
 
28
30
  RPC calls [RPC list](https://docs.nervos.org/cita/#/rpc_guide/rpc)
31
+
29
32
  ```ruby
30
33
  cita = CITA::Client.new("your url")
31
34
 
@@ -36,6 +39,7 @@ cita.rpc.getBlockByNumber("0x0", true)
36
39
  ```
37
40
 
38
41
  sign and unsign
42
+
39
43
  ```ruby
40
44
  # make a Transaction object first
41
45
  transaction = CITA::Transaction.new(
@@ -59,16 +63,19 @@ CITA::TransactionSigner.decode(content, recover: false)
59
63
  ```
60
64
 
61
65
  send transaction
66
+
62
67
  ```ruby
63
68
  cita.rpc.send_transaction(transaction, private_key)
64
69
  ```
65
70
 
66
71
  transfer tokens
72
+
67
73
  ```ruby
68
74
  cita.rpc.transfer(to: "to address", value: 1000, private_key: "your private key")
69
75
  ```
70
76
 
71
77
  contract
78
+
72
79
  ```ruby
73
80
  contract = cita.contract_at(abi, contract_address)
74
81
  # for RPC call (constant functions)
@@ -77,45 +84,64 @@ response = contract.call_func(method: :symbol)
77
84
  response = contract.send_func(tx: tx, private_key: private_key, method: :transfer, params: [address, tokens])
78
85
  ```
79
86
 
80
- ## CHANGELOG
87
+ ## Contributing
88
+
89
+ ### Bug Report
90
+
91
+ Bug reports and pull requests are welcome on GitHub at https://github.com/citahub/cita-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
92
+
93
+ ### Develop
94
+
95
+ get source code:
81
96
 
82
- ### v0.24.0
97
+ ```
98
+ $ git clone git@github.com:citahub/cita-sdk-ruby.git
99
+ ```
100
+
101
+ update submodules, see `.gitmodules`:
83
102
 
84
- * support transaction version = 2
85
- * set default transaction version to 2
103
+ ```
104
+ $ git submodule update --init --recursive
105
+ ```
86
106
 
87
- ### v0.23.0
107
+ build secp256k1:
88
108
 
89
- * add `getVersion` and `peersInfo` RPC methods
109
+ ```
110
+ $ cd secp256k1 && ./autogen.sh && ./configure --enable-module-recovery --enable-experimental --enable-module-ecdh && make && make install && cd ..
111
+ ```
90
112
 
91
- ### v0.22.0
113
+ Run `$ make` to see all available tasks.
92
114
 
93
- * support CITA v0.22
115
+ ### Testing
94
116
 
95
- ### v0.21.0
117
+ #### Write test
96
118
 
97
- * add `recover` option for decode transaction, for CITA v0.21 provide `from` in `getTransaction` rpc call
98
- * rename protobuf `Crypto` enum
119
+ This project is using [spec](https://github.com/rspec/rspec) as testing framework, find test cases in `spec/` dir.
99
120
 
100
- ### v0.20.0
121
+ #### Run test
101
122
 
102
- * rename to `cita-sdk-ruby`
103
- * rename top module name to `CITA`
123
+ ```
124
+ $ bundle exec rake spec
125
+ ```
104
126
 
105
- ### v0.2
127
+ ### Code Quality
106
128
 
107
- * supports CITA 0.20 and 0.19
108
- * set default transaction version to 1
109
- * update TransactionSinger.decode output type to hash with symbol keys
110
- * parse TransactionSinger.decode hash value to hex string if it's bytes.
129
+ * Linter tool: `$ rubocop`
130
+ * Coding Style Guide: TBD
131
+ * Coding Style config: `.rubocop.yml`
132
+ * Code formatter: `$ rubocop -x`
111
133
 
112
- ### v0.1
134
+ ### Collaborate Workflow
113
135
 
114
- * supports CITA 0.19
136
+ * [GitHub Flow](https://help.github.com/en/articles/github-flow), [Understanding the GitHub flow](https://guides.github.com/introduction/flow/)
137
+ * use "develop" for feature/bugfix/refactor
138
+ * use "master" for release
115
139
 
116
- ## Contributing
140
+ ## Versioning
117
141
 
118
- Bug reports and pull requests are welcome on GitHub at https://github.com/cryptape/cita-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
142
+ - format: `vx.y.z`
143
+ - `x.y` Follow the version number of CITA
144
+ - `z` Defined by SDK itself:changed by fixing or adding features
119
145
 
120
146
  ## License
121
147
 
@@ -123,4 +149,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
123
149
 
124
150
  ## Code of Conduct
125
151
 
126
- Everyone interacting in the cita-sdk-ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cryptape/cita-sdk-ruby/blob/master/CODE_OF_CONDUCT.md).
152
+ Everyone interacting in the cita-sdk-ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/citahub/cita-sdk-ruby/blob/master/CODE_OF_CONDUCT.md).
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Ruby CITA SDK}
13
13
  spec.description = %q{Ruby CITA SDK for signature and rpc call}
14
- spec.homepage = "https://github.com/cryptape/cita-sdk-ruby"
14
+ spec.homepage = "https://github.com/citahub/cita-sdk-ruby"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -32,8 +32,8 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ["lib"]
34
34
 
35
- spec.add_development_dependency "bundler", "~> 1.16"
36
- spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "bundler"
36
+ spec.add_development_dependency "rake", ">= 12.3.3"
37
37
  spec.add_development_dependency "rspec", "~> 3.0"
38
38
  spec.add_development_dependency "pry", "~> 0.11"
39
39
  spec.add_development_dependency "awesome_print", "~> 1.8"
@@ -102,7 +102,7 @@ module CITA
102
102
  if version == 0 # rubocop:disable Style/NumericPredicate
103
103
  tx.delete(:to_v1)
104
104
  tx.delete(:chain_id_v1)
105
- elsif version == 1 || version == 2
105
+ elsif [1, 2].include? version
106
106
  tx[:to] = tx.delete(:to_v1)
107
107
  tx[:chain_id] = tx.delete(:chain_id_v1)
108
108
  else
@@ -132,7 +132,7 @@ module CITA
132
132
  tx.delete(:to_v1)
133
133
  tx.delete(:chain_id_v1)
134
134
  tx[:to] = Utils.add_prefix_for_not_blank(tx[:to])
135
- elsif version == 1 || version == 2
135
+ elsif [1, 2].include? version
136
136
  tx[:to] = Utils.from_bytes(tx[:to])
137
137
  tx[:chain_id] = Utils.from_bytes(tx[:chain_id])
138
138
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CITA
4
- VERSION = "0.24.0"
4
+ VERSION = "20.2.0"
5
5
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cita-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 20.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - classicalliu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-01 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -177,15 +177,16 @@ files:
177
177
  - ".rspec"
178
178
  - ".rubocop.yml"
179
179
  - ".travis.yml"
180
+ - CHANGELOG.md
180
181
  - CODE_OF_CONDUCT.md
181
182
  - Gemfile
182
- - Gemfile.lock
183
183
  - LICENSE.txt
184
+ - Makefile
184
185
  - README.md
185
186
  - Rakefile
186
187
  - bin/console
187
188
  - bin/setup
188
- - cita.gemspec
189
+ - cita-sdk-ruby.gemspec
189
190
  - lib/cita.rb
190
191
  - lib/cita/address.rb
191
192
  - lib/cita/client.rb
@@ -198,7 +199,7 @@ files:
198
199
  - lib/cita/utils.rb
199
200
  - lib/cita/version.rb
200
201
  - lib/web3_eth/contract.rb
201
- homepage: https://github.com/cryptape/cita-sdk-ruby
202
+ homepage: https://github.com/citahub/cita-sdk-ruby
202
203
  licenses:
203
204
  - MIT
204
205
  metadata:
@@ -218,7 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
219
  - !ruby/object:Gem::Version
219
220
  version: '0'
220
221
  requirements: []
221
- rubygems_version: 3.0.3
222
+ rubyforge_project:
223
+ rubygems_version: 2.7.7
222
224
  signing_key:
223
225
  specification_version: 4
224
226
  summary: Ruby CITA SDK
@@ -1,95 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- cita-sdk-ruby (0.24.0)
5
- activesupport (~> 5.2.1)
6
- ciri-crypto (= 0.1.1)
7
- faraday (~> 0.15.3)
8
- google-protobuf (~> 3.7)
9
- web3-eth (= 0.2.18)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- activesupport (5.2.3)
15
- concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- ast (2.4.0)
20
- awesome_print (1.8.0)
21
- bitcoin-secp256k1 (0.4.0)
22
- ffi (>= 1.9.10)
23
- ciri-crypto (0.1.1)
24
- bitcoin-secp256k1 (~> 0.4.0)
25
- ciri-utils (~> 0.2.0)
26
- ciri-utils (0.2.2)
27
- digest-sha3 (~> 1.1.0)
28
- coderay (1.1.2)
29
- concurrent-ruby (1.1.5)
30
- diff-lcs (1.3)
31
- digest-sha3 (1.1.0)
32
- faraday (0.15.4)
33
- multipart-post (>= 1.2, < 3)
34
- ffi (1.11.1)
35
- google-protobuf (3.7.1)
36
- i18n (1.6.0)
37
- concurrent-ruby (~> 1.0)
38
- jaro_winkler (1.5.1)
39
- method_source (0.9.0)
40
- minitest (5.11.3)
41
- multipart-post (2.1.1)
42
- parallel (1.12.1)
43
- parser (2.5.1.2)
44
- ast (~> 2.4.0)
45
- powerpack (0.1.2)
46
- pry (0.11.3)
47
- coderay (~> 1.1.0)
48
- method_source (~> 0.9.0)
49
- rainbow (3.0.0)
50
- rake (10.5.0)
51
- rlp (0.7.3)
52
- rspec (3.8.0)
53
- rspec-core (~> 3.8.0)
54
- rspec-expectations (~> 3.8.0)
55
- rspec-mocks (~> 3.8.0)
56
- rspec-core (3.8.0)
57
- rspec-support (~> 3.8.0)
58
- rspec-expectations (3.8.1)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.8.0)
61
- rspec-mocks (3.8.0)
62
- diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.8.0)
64
- rspec-support (3.8.0)
65
- rubocop (0.59.2)
66
- jaro_winkler (~> 1.5.1)
67
- parallel (~> 1.10)
68
- parser (>= 2.5, != 2.5.1.1)
69
- powerpack (~> 0.1)
70
- rainbow (>= 2.2.2, < 4.0)
71
- ruby-progressbar (~> 1.7)
72
- unicode-display_width (~> 1.0, >= 1.0.1)
73
- ruby-progressbar (1.10.0)
74
- thread_safe (0.3.6)
75
- tzinfo (1.2.5)
76
- thread_safe (~> 0.1)
77
- unicode-display_width (1.4.0)
78
- web3-eth (0.2.18)
79
- digest-sha3 (~> 1.1.0)
80
- rlp (~> 0.7.3)
81
-
82
- PLATFORMS
83
- ruby
84
-
85
- DEPENDENCIES
86
- awesome_print (~> 1.8)
87
- bundler (~> 1.16)
88
- cita-sdk-ruby!
89
- pry (~> 0.11)
90
- rake (~> 10.0)
91
- rspec (~> 3.0)
92
- rubocop (~> 0.59)
93
-
94
- BUNDLED WITH
95
- 1.17.3