lbd_sdk 0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2fe4cd4a5ba5159dccfe1e54b289334b53a641389d39e3c396cb619504a0c78f
4
+ data.tar.gz: 05626e0d48fe8d95ea6fe696b21ea33331e96e2355a6b60940fdab98931983da
5
+ SHA512:
6
+ metadata.gz: e692f8fd463489b26b01f4c0d69c8fb5f88b33bd6d3534c364f5fcf371d9fe662ed9c18772cc00c2dcbfbe806d7ca470b8fe3f80a08995b434ba44321171c279
7
+ data.tar.gz: 866721319f5fd52693cb1a2933f834bf255f5c6bcc35626887589bc0fb22d7d922973ca2d38db19127bc0fba1bd8a44fbb44d7958d9521c7efa35647a8cfa3ef
@@ -0,0 +1,20 @@
1
+ name: Pull Request CI
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby: ["2.5", "2.6", "2.7", "3.0"]
11
+ name: Ruby v${{ matrix.ruby }}
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ matrix.ruby }}
17
+ - run: gem install bundler
18
+ - run: bundle install
19
+ - run: bundle exec rubocop
20
+ - run: bundle exec rspec
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,20 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+ DisabledByDefault: true
4
+ Exclude:
5
+ - "gems/**/*"
6
+ NewCops: enable
7
+
8
+ Bundler:
9
+ Enabled: true
10
+
11
+ Gemspec:
12
+ Enabled: true
13
+
14
+ Lint:
15
+ Enabled: true
16
+
17
+ Style/TrailingCommaInArguments:
18
+ EnforcedStyleForMultiline: consistent_comma
19
+ Style/StringLiterals:
20
+ EnforcedStyle: single_quotes
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.4
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,6 @@
1
+ {
2
+ "ruby.useLanguageServer": true,
3
+ "ruby.useBundler": true,
4
+ "ruby.format": "rubocop",
5
+ "ruby.lint": { "rubocop": true }
6
+ }
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 0.1.0(2021-12-03)
2
+
3
+ - Implemented all LINE Blockchain Developer API client.
@@ -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 yuhei.nakasaka@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 [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in lbd_sdk.gemspec
4
+ gemspec
5
+
6
+ group :development, :test do
7
+ gem 'rake', '~> 12.0'
8
+ gem 'rspec', '~> 3.0'
9
+ gem 'rubocop', '~> 1.12.1', require: false
10
+ gem 'webmock', '~> 3.8'
11
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,66 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lbd_sdk (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ addressable (2.8.0)
10
+ public_suffix (>= 2.0.2, < 5.0)
11
+ ast (2.4.2)
12
+ crack (0.4.5)
13
+ rexml
14
+ diff-lcs (1.4.4)
15
+ hashdiff (1.0.1)
16
+ parallel (1.21.0)
17
+ parser (3.0.3.1)
18
+ ast (~> 2.4.1)
19
+ public_suffix (4.0.6)
20
+ rainbow (3.0.0)
21
+ rake (12.3.3)
22
+ regexp_parser (2.1.1)
23
+ rexml (3.2.5)
24
+ rspec (3.10.0)
25
+ rspec-core (~> 3.10.0)
26
+ rspec-expectations (~> 3.10.0)
27
+ rspec-mocks (~> 3.10.0)
28
+ rspec-core (3.10.1)
29
+ rspec-support (~> 3.10.0)
30
+ rspec-expectations (3.10.1)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.10.0)
33
+ rspec-mocks (3.10.2)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.10.0)
36
+ rspec-support (3.10.3)
37
+ rubocop (1.12.1)
38
+ parallel (~> 1.10)
39
+ parser (>= 3.0.0.0)
40
+ rainbow (>= 2.2.2, < 4.0)
41
+ regexp_parser (>= 1.8, < 3.0)
42
+ rexml
43
+ rubocop-ast (>= 1.2.0, < 2.0)
44
+ ruby-progressbar (~> 1.7)
45
+ unicode-display_width (>= 1.4.0, < 3.0)
46
+ rubocop-ast (1.14.0)
47
+ parser (>= 3.0.1.1)
48
+ ruby-progressbar (1.11.0)
49
+ unicode-display_width (2.1.0)
50
+ webmock (3.14.0)
51
+ addressable (>= 2.8.0)
52
+ crack (>= 0.3.2)
53
+ hashdiff (>= 0.4.0, < 2.0.0)
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ lbd_sdk!
60
+ rake (~> 12.0)
61
+ rspec (~> 3.0)
62
+ rubocop (~> 1.12.1)
63
+ webmock (~> 3.8)
64
+
65
+ BUNDLED WITH
66
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 YuheiNakasaka
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,162 @@
1
+ # LbdSdk
2
+
3
+ **Unofficial** LINE Blockchain API Client for Ruby.
4
+
5
+ - [LINE Blockchain](https://docs-blockchain.line.biz/overview/)
6
+ - [API overview](https://docs-blockchain.line.biz/api-guide/API-Reference)
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'lbd_sdk'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle install
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install lbd_sdk
23
+
24
+ ## Usage
25
+
26
+ ```ruby
27
+ client = LbdSdk::Client.new do |config|
28
+ config.endpoint = 'https://test-api.blockchain.line.me/'
29
+ config.api_key = 'your_api_key'
30
+ config.api_secret_key = 'your_secret_key'
31
+ end
32
+
33
+ client.time()
34
+
35
+ client.user_detail("<your-user-id>")
36
+
37
+ client.user_transactions("<your-user-id>", {page: 1, limit: 1})
38
+
39
+ client.create_non_fungible_token("<contract_id>", {
40
+ owner_address: "owner_address",
41
+ owner_secret: "owner_secret",
42
+ name: "SampleToken",
43
+ })
44
+
45
+ client.mint_non_fungible_token("contract_id", "token_type", {
46
+ owner_address: "owner_address",
47
+ owner_secret: "owner_secret",
48
+ name: "SampleToken",
49
+ to_user_id: "yout-user-id"
50
+ })
51
+
52
+ client.update_non_fungible_token("contract_id", "token_type", "token_index", {
53
+ owner_address: "owner_address",
54
+ owner_secret: "owner_secret",
55
+ name: "SampleToken2",
56
+ })
57
+
58
+ client.burn_non_fungible_token("contract_id", "token_type", "token_index", {
59
+ owner_address: "owner_address",
60
+ owner_secret: "owner_secret",
61
+ from_user_id: "yout-user-id"
62
+ })
63
+ ```
64
+
65
+ ## TODO
66
+
67
+ - [x] GET /v1/services/{serviceId}
68
+ - [x] GET /v1/service-tokens/
69
+ - [x] GET /v1/service-tokens/{contractId}
70
+ - [x] PUT /v1/service-tokens/{contractId}
71
+ - [x] POST /v1/service-tokens/{contractId}/mint
72
+ - [x] POST /v1/service-tokens/{contractId}/burn-from
73
+ - [x] GET /v1/service-tokens/{contractId}/holders
74
+ - [x] GET /v1/item-tokens/{contractId}
75
+ - [x] GET /v1/item-tokens/{contractId}/fungibles
76
+ - [x] GET /v1/item-tokens/{contractId}/fungibles/{tokenType}
77
+ - [x] GET /v1/item-tokens/{contractId}/fungibles/{tokenType}/holders
78
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles
79
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}
80
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}
81
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/holders
82
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/holder
83
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/children
84
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/parent
85
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/root
86
+ - [x] GET /v1/item-tokens/{contractId}/fungibles/icon/{request-id}/status
87
+ - [x] GET /v1/item-tokens/{contractId}/non-fungibles/icon/{request-id}/status
88
+ - [x] PUT /v1/item-tokens/{contractId}/fungibles/{tokenType}
89
+ - [x] PUT /v1/item-tokens/{contractId}/fungibles/icon
90
+ - [x] PUT /v1/item-tokens/{contractId}/non-fungibles/{tokenType}
91
+ - [x] PUT /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}
92
+ - [x] PUT /v1/item-tokens/{contractId}/non-fungibles/icon
93
+ - [x] POST /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/parent
94
+ - [x] DELETE /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/parent
95
+ - [x] POST /v1/item-tokens/{contractId}/fungibles
96
+ - [x] POST /v1/item-tokens/{contractId}/fungibles/{tokenType}/mint
97
+ - [x] POST /v1/item-tokens/{contractId}/fungibles/{tokenType}/burn
98
+ - [x] POST /v1/item-tokens/{contractId}/non-fungibles
99
+ - [x] POST /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/mint
100
+ - [x] POST /v1/item-tokens/{contractId}/non-fungibles/multi-mint
101
+ - [x] POST /v1/item-tokens/{contractId}/non-fungibles/multi-recipients/multi-mint
102
+ - [x] POST /v1/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/burn
103
+ - [x] GET /v1/users/{userId}
104
+ - [x] GET /v1/users/{userId}/transactions
105
+ - [x] GET /v1/users/{userId}/base-coin
106
+ - [x] GET /v1/users/{userId}/service-tokens
107
+ - [x] GET /v1/users/{userId}/service-tokens/{contractId}
108
+ - [x] GET /v1/users/{userId}/item-tokens/{contractId}/fungibles
109
+ - [x] GET /v1/users/{userId}/item-tokens/{contractId}/fungibles/{tokenType}
110
+ - [x] GET /v1/users/{userId}/item-tokens/{contractId}/non-fungibles
111
+ - [x] GET /v1/users/{userId}/item-tokens/{contractId}/non-fungibles/{tokenType}
112
+ - [x] GET /v1/users/{userId}/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}
113
+ - [x] GET /v1/user-requests/{requestSessionToken}
114
+ - [x] GET /v1/users/{userId}/service-tokens/{contractId}/proxy
115
+ - [x] GET /v1/users/{userId}/item-tokens/{contractId}/proxy
116
+ - [x] POST /v1/users/{userId}/base-coin/request-transfer
117
+ - [x] POST /v1/users/{userId}/service-tokens/{contractId}/request-transfer
118
+ - [x] POST /v1/users/{userId}/service-tokens/{contractId}/request-proxy
119
+ - [x] POST /v1/users/{userId}/item-tokens/{contractId}/request-proxy
120
+ - [x] POST /v1/user-requests/{requestSessionToken}/commit
121
+ - [x] POST /v1/users/{userId}/service-tokens/{contractId}/transfer
122
+ - [x] POST /v1/users/{userId}/item-tokens/{contractId}/fungibles/{tokenType}/transfer
123
+ - [x] POST /v1/users/{userId}/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/transfer
124
+ - [x] POST /v1/users/{userId}/item-tokens/{contractId}/non-fungibles/batch-transfer
125
+ - [x] GET /v1/wallets
126
+ - [x] GET /v1/wallets/{walletAddress}
127
+ - [x] GET /v1/wallets/{walletAddress}/transactions
128
+ - [x] GET /v1/wallets/{walletAddress}/base-coin
129
+ - [x] GET /v1/wallets/{walletAddress}/service-tokens
130
+ - [x] GET /v1/wallets/{walletAddress}/service-tokens/{contractId}
131
+ - [x] GET /v1/wallets/{walletAddress}/item-tokens/{contractId}/fungibles
132
+ - [x] GET /v1/wallets/{walletAddress}/item-tokens/{contractId}/fungibles/{tokenType}
133
+ - [x] GET /v1/wallets/{walletAddress}/item-tokens/{contractId}/non-fungibles
134
+ - [x] GET /v1/wallets/{walletAddress}/item-tokens/{contractId}/non-fungibles/{tokenType}
135
+ - [x] GET /v1/wallets/{walletAddress}/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}
136
+ - [x] POST /v1/wallets/{walletAddress}/base-coin/transfer
137
+ - [x] POST /v1/wallets/{walletAddress}/service-tokens/{contractId}/transfer
138
+ - [x] POST /v1/wallets/{walletAddress}/item-tokens/{contractId}/fungibles/{tokenType}/transfer
139
+ - [x] POST /v1/wallets/{walletAddress}/item-tokens/{contractId}/non-fungibles/{tokenType}/{tokenIndex}/transfer
140
+ - [x] POST /v1/wallets/{walletAddress}/item-tokens/{contractId}/non-fungibles/batch-transfer
141
+ - [x] POST /v1/memos
142
+ - [x] GET /v1/memos/{txHash}
143
+ - [x] GET /v1/time
144
+ - [x] GET /v1/transactions/{txHash}
145
+
146
+ ## Development
147
+
148
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
149
+
150
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
151
+
152
+ ## Contributing
153
+
154
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lbd_sdk. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/YuheiNakasaka/lbd_sdk_rb/blob/main/CODE_OF_CONDUCT.md).
155
+
156
+ ## License
157
+
158
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
159
+
160
+ ## Code of Conduct
161
+
162
+ Everyone interacting in the LbdSdk project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/YuheiNakasaka/lbd_sdk_rb/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'lbd_sdk'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+
16
+ def reload!
17
+ files = $LOADED_FEATURES.select { |feat| feat =~ %r{/lbd_sdk/} }
18
+ files.each { |file| load file }
19
+ end
20
+
21
+ ARGV.clear
22
+
23
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lbd_sdk.gemspec ADDED
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/lbd_sdk/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'lbd_sdk'
7
+ spec.version = LbdSdk::VERSION
8
+ spec.authors = ['YuheiNakasaka']
9
+ spec.email = ['yuhei.nakasaka@gmail.com']
10
+
11
+ spec.summary = 'Unofficial LINE Blockchain Developer SDK for Ruby'
12
+ spec.description = 'LINE Blockchain Developer SDK for Ruby. This SDK is not official LINE SDK.'
13
+ spec.homepage = 'https://github.com/YuheiNakasaka/lbd_sdk_rb'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
16
+
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
+
19
+ spec.metadata['homepage_uri'] = spec.homepage
20
+ spec.metadata['source_code_uri'] = 'https://github.com/YuheiNakasaka/lbd_sdk_rb'
21
+ spec.metadata['changelog_uri'] = 'https://github.com/YuheiNakasaka/lbd_sdk_rb/blob/main/CHANGELOG.md'
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+ spec.metadata = {
32
+ 'rubygems_mfa_required' => 'true'
33
+ }
34
+ end