strike-ruby 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
+ SHA1:
3
+ metadata.gz: 28abee578aa20697a967724cc355e2dede734381
4
+ data.tar.gz: 147dae48150828b776a44fca36f12503677d6960
5
+ SHA512:
6
+ metadata.gz: ca2928bb9e83b7dd4f13b6ca5b2c9aeb8ad9616189b8280961d56cf671f95b3bf91b18ac3e69c821695fb64a4ae72992525df9ae0af538235a12d15c1c97f2cd
7
+ data.tar.gz: 0e460a369e21bea2983ec0f57a4cb97e78be10961e986ddd64c734bac687f352b14afdf420b50d39f0088984344d95eee9c40819e2d30f3843e3d93c31171201
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/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.3
5
+ before_install: gem install bundler -v 1.16.1
@@ -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 ted.price@centro.net. 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 strike-ruby.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,42 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ strike-ruby (0.1.0)
5
+ faraday
6
+ json
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.5.2)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
+ crack (0.4.3)
14
+ safe_yaml (~> 1.0.0)
15
+ faraday (0.15.3)
16
+ multipart-post (>= 1.2, < 3)
17
+ hashdiff (0.3.5)
18
+ json (2.1.0)
19
+ minitest (5.11.3)
20
+ multipart-post (2.0.0)
21
+ public_suffix (3.0.3)
22
+ rake (10.5.0)
23
+ safe_yaml (1.0.4)
24
+ vcr (3.0.3)
25
+ webmock (2.3.2)
26
+ addressable (>= 2.3.6)
27
+ crack (>= 0.3.2)
28
+ hashdiff
29
+
30
+ PLATFORMS
31
+ ruby
32
+
33
+ DEPENDENCIES
34
+ bundler (~> 1.16)
35
+ minitest (~> 5.0)
36
+ rake (~> 10.0)
37
+ strike-ruby!
38
+ vcr
39
+ webmock
40
+
41
+ BUNDLED WITH
42
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Ted Price
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,89 @@
1
+ # Strike-Ruby
2
+
3
+ This is a Ruby API Wrapper for the [Strike](https://strike.acinq.co/) bitcoin
4
+ payments API.
5
+
6
+ ### Installing
7
+
8
+ System Gems:
9
+ ```
10
+ gem install strike-ruby
11
+ ```
12
+
13
+ or Gemfile:
14
+ ```
15
+ gem 'strike-ruby'
16
+
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```
22
+ # /path/to/config.rb
23
+ Strike::Client.strike_api_env="test" || "live"
24
+ Strike::Client.strike_api_key="key from strike"
25
+ ```
26
+ or
27
+ ```
28
+ # use ENV['STRIKE_API_KEY'] and ENV['STRIKE_API_ENV']
29
+ Strike::Client.use_environment_variables
30
+ ```
31
+
32
+ then use
33
+ ```
34
+ # /some/sweet/lightning/app.rb
35
+
36
+ require "strike" # notice this is "strike" not "strike-ruby"
37
+
38
+ Strike::Client.strike_api_key = "sk_foo"
39
+ Strike::Client.strike_api_env = "test"
40
+
41
+ # List first 30 charges
42
+ Strike::Charge.all # identical to Strike::Charge.all(page: 1, per_page: 30)
43
+ # => [#<Strike::Charge:0x00007fb231184300 @id="ch_1jSMVtGiDptw8NQKB6GXTVYA1YJZZ", @amount=42000, @amount_satoshi=42000, @currency="btc", @description="1%20Blockaccino", @customer_id="This is a random test field", @payment_request="lntb520u1pd75atvpp5ntvt72p326r8mhyxeteujsu0p968zu3zfmf6zpvuva8nkr477qaqdqcxyjnyvzzd3hkx6mpvd3kjmn0cqp2qn9cl9hzjjzck6czwrskd0etnq5cjhsjndvlckzvp0hkt02vlhzjxr3raak4jcdkude3v4g8zr4g2ukzkqfjz7n4zvgsqz6qyk7rqxcpa2la7x", @paid=false, @created=1542092140171, @updated=1542092140171, @code=nil, @message=nil>...]
44
+
45
+ # List 50 results on page 2
46
+ Strike::Charge.all(page: 2, per_page: 50)
47
+ [...]
48
+
49
+ # Find by id
50
+ Strike::Charge.find("ch_1jSMVtGiDptw8NQKB6GXTVYA1YJZZ")
51
+ # => #<Strike::Charge:0x00007fb243344300 @id="ch_1jSMVtGiDptw8NQKB6GXTVYA1YJZZ", @amount=42000, @amount_satoshi=42000, @currency="btc", @description="1%20Blockaccino", @customer_id="This is a random test field", @payment_request="lntb520u1pd75atvpp5ntvt72p326r8mhyxeteujsu0p968zu3zfmf6zpvuva8nkr477qaqdqcxyjnyvzzd3hkx6mpvd3kjmn0cqp2qn9cl9hzjjzck6czwrskd0etnq5cjhsjndvlckzvp0hkt02vlhzjxr3raak4jcdkude3v4g8zr4g2ukzkqfjz7n4zvgsqz6qyk7rqxcpa2la7x", @paid=false, @created=1542092140171, @updated=1542092140171, @code=nil, @message=nil>
52
+
53
+ # Create charge
54
+ Strike::Charge.create(amount: 42_000, currency: "btc", description: "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks", customer_id: "optional text for tracking")
55
+ # => #<Strike::Charge:0x00007fea209216e0 @id="ch_3vymhqec4RZQVfKQtCKH5j3R6yv7u", @amount=42000, @amount_satoshi=42000, @currency="btc", @description="The Times 03/Jan/2009 Chancellor on brink of second bailout for banks", @customer_id="option text for identifying user", @payment_request="lntb420u1pd7hgr4pp5lt8hz548pnutq0z0zcxfsj2j9yu9kn4crzvnhwj5r4228thuzwvsdr0235x2gz5d9kk2ueqxqej7jnpdchnyvps8ysyx6rpde3k2mrvdaezqmmwyp38y6twdvsx7e3qwdjkxmmwvssxyctfd3hh2apqvehhygrzv9hxkuccqp2ev87r57en5smqqjaztv6x6hyddmg8q6e7j4at9prz4w0uz9auymy9ry3jjf7k75h40njgzd7gj5z3rspr9qaq3jhgtyzjfqfep5fracq43wt30", @paid=false, @created=1542168693183, @updated=1542168693183, @code=nil, @message=nil>
56
+
57
+ # Error!
58
+ # Strike::Charge.find("foo")
59
+ # => #<Strike::Charge:0x00007ff7649cd368 @id=nil, @amount=nil, @amount_satoshi=nil, @currency=nil, @description=nil, @customer_id=nil, @payment_request=nil, @paid=nil, @created=nil, @updated=nil, @code=404, @message="not found">
60
+ ```
61
+
62
+ ## Built With
63
+
64
+ * [webmock](https://github.com/bblimke/webmock)
65
+ * [vcr](https://github.com/vcr/vcr)
66
+ * [faraday](https://github.com/lostisland/faraday)
67
+ * [json](https://github.com/flori/json)
68
+
69
+ ## Contributing
70
+
71
+ Make a pull request or fork and go!
72
+
73
+ ## Versioning
74
+
75
+ We use [SemVer](http://semver.org/) for versioning.
76
+
77
+ ## Authors
78
+
79
+ * **Ted Price ** - *Initial work* - [Stacksimple.io](https://github.com/stacksimple)
80
+
81
+ ## License
82
+
83
+ This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details
84
+
85
+ ## Acknowledgments
86
+
87
+ * Hat tip to anyone whose code was used
88
+ * Inspiration
89
+ * etc
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "strike/ruby"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ 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/lib/strike.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "strike/version"
2
+
3
+ module Strike
4
+ # Your code goes here...
5
+ autoload :Client, "strike/client.rb"
6
+ autoload :Charge, "strike/charge.rb"
7
+ end
@@ -0,0 +1,105 @@
1
+ require 'faraday'
2
+ require 'json'
3
+
4
+ module Strike
5
+ class Charge
6
+ PATH = "/api/v1/charges".freeze
7
+
8
+ def self.api_url
9
+ @api_url ||= PATH
10
+ end
11
+
12
+ def self.conn
13
+ Client.conn
14
+ end
15
+
16
+ attr_accessor :id, # String Unique identifier of the charge
17
+ :amount, # Integer Positive integer in the smallest unit in the currency used. If the currency is btc, the amount must be in satoshi.
18
+ :amount_satoshi, # Integer Amount in satoshi.
19
+ :currency, #String Currency code associated with the amount. Only btc is supported currently.
20
+ :description, #String Discretionary description of the charge.
21
+ :customer_id, #String Optional field, can be used to attach an identifier of your choice to the charge.
22
+ :payment_request, #String Lightning payment request corresponding to the charge. This needs to be sent to the user.
23
+ :paid, #Boolean Indicates whether the charge has been paid or not.
24
+ :created, #Integer Time at which the charge was created.
25
+ :updated, #String Time at which the charge was last updated.
26
+ :code,
27
+ :message
28
+
29
+ attr_reader :error
30
+
31
+ def initialize(options)
32
+ self.id = options["id"]
33
+ self.amount = options["amount"]
34
+ self.amount_satoshi = options["amount_satoshi"]
35
+ self.currency = options["currency"]
36
+ self.description = options["description"]
37
+ self.customer_id = options["customer_id"]
38
+ self.payment_request = options["payment_request"]
39
+ self.paid = options["paid"]
40
+ self.created = options["created"]
41
+ self.updated = options["updated"]
42
+ self.code = options["code"]
43
+ self.message = options["message"]
44
+ end
45
+
46
+ def success?
47
+ code.nil? || code == 200
48
+ end
49
+
50
+ def fail?
51
+ !success?
52
+ end
53
+
54
+ # Fetch a charge by id
55
+ #
56
+ # @param page [Integer] page of results to display
57
+ # @param per_page [Integer] number of results per page
58
+ #
59
+ # returns [Strike::Charge]
60
+ def self.all(page: 1, per_page: 30)
61
+ response =
62
+ conn.get do |req|
63
+ req.url api_url
64
+ req.params['page'] = (page - 1).to_i
65
+ req.params['size'] = per_page.to_i
66
+ end
67
+ JSON.parse(response.body).map { |attributes| new(attributes) }
68
+ end
69
+
70
+ # Fetch a charge by id
71
+ #
72
+ # @param id [String] ID of Strike charge record
73
+ #
74
+ # returns [Strike::Charge]
75
+ def self.find(id)
76
+ response = conn.get("#{api_url}/#{id}")
77
+ new(JSON.parse(response.body))
78
+ end
79
+
80
+ # Create a new Strike charge
81
+ #
82
+ # @param amount [Integer] Positive integer in the smallest unit in the currency used. If the currency is btc, the amount must be in satoshi, and the maximum amount is 4,294,967 satoshis.
83
+ # @param currency [String] Currency code associated with the amount. Only btc is supported currently.
84
+ # @param description [String] Discretionary description of the charge. Must not exceed 256 characters.
85
+ # @param customer_id [String] This field is optional and can be used to attach an identifier of your choice to the charge. Must not exceed 64 characters.
86
+ #
87
+ # returns [Strike::Charge]
88
+ def self.create(amount:, currency:, description:, customer_id:)
89
+ body = {
90
+ amount: amount,
91
+ currency: currency,
92
+ description: description,
93
+ customer_id: customer_id
94
+ }
95
+
96
+ response =
97
+ conn.post do |req|
98
+ req.url api_url
99
+ req.headers['Content-Type'] = 'application/json'
100
+ req.body = body.to_json
101
+ end
102
+ new(JSON.parse(response.body))
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,37 @@
1
+ require 'faraday'
2
+ require 'json'
3
+
4
+ module Strike
5
+
6
+ class Client
7
+ # Set live url, default anything else to test
8
+ API_URLS = {
9
+ live: "https://api.strike.acinq.co".freeze
10
+ }.tap { |hsh| hsh.default = "https://api.dev.strike.acinq.co".freeze }
11
+ .freeze
12
+
13
+ class << self
14
+ attr_accessor :strike_api_env, :strike_api_key
15
+
16
+ def use_environment_variables
17
+ self.strike_api_key = ENV['STRIKE_API_KEY']
18
+ self.strike_api_env = ENV['STRIKE_API_ENV'].downcase
19
+ end
20
+
21
+ def conn
22
+ return @conn if @conn
23
+
24
+ raise "Please set strike_api_key" if (strike_api_key || "").empty?
25
+
26
+ @conn = Faraday.new(url: api_url) do |builder|
27
+ builder.use Faraday::Request::BasicAuthentication, strike_api_key, nil
28
+ builder.use Faraday::Adapter::NetHttp
29
+ end
30
+ end
31
+
32
+ def api_url
33
+ API_URLS[strike_api_env.to_sym]
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,3 @@
1
+ module Strike
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,40 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "strike/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "strike-ruby"
7
+ spec.version = Strike::VERSION
8
+ spec.authors = ["Ted Price"]
9
+ spec.email = ["ted@stacksimple.io"]
10
+
11
+ spec.summary = %q{API Wrapper for Strike (Acinq) Lightning Network API}
12
+ spec.description = %q{API Wrapper for Strike (Acinq) Lightning Network API (https://strike.acinq.co/)}
13
+ spec.homepage = "https://github.com/stacksimple/strike-ruby"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
+ else
21
+ raise "RubyGems 2.0 or newer is required to protect against " \
22
+ "public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
+ 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
+
32
+ spec.add_development_dependency "bundler", "~> 1.16"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "minitest", "~> 5.0"
35
+ spec.add_development_dependency "vcr"
36
+ spec.add_development_dependency "webmock"
37
+
38
+ spec.add_dependency "faraday"
39
+ spec.add_dependency "json"
40
+ end
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: strike-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ted Price
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: vcr
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: faraday
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: json
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: API Wrapper for Strike (Acinq) Lightning Network API (https://strike.acinq.co/)
112
+ email:
113
+ - ted@stacksimple.io
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - Gemfile.lock
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - bin/console
127
+ - bin/setup
128
+ - lib/strike.rb
129
+ - lib/strike/charge.rb
130
+ - lib/strike/client.rb
131
+ - lib/strike/version.rb
132
+ - strike-ruby.gemspec
133
+ homepage: https://github.com/stacksimple/strike-ruby
134
+ licenses:
135
+ - MIT
136
+ metadata:
137
+ allowed_push_host: https://rubygems.org
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.6.14
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: API Wrapper for Strike (Acinq) Lightning Network API
158
+ test_files: []