txcatcher 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11084c5ac355e81c252a5151667475b65b925ea5
4
- data.tar.gz: c073483dda858480552bbea59f0d3fd5085d94d9
3
+ metadata.gz: 3fd747a3bda846af91c2534bc0170ede6ccd41bc
4
+ data.tar.gz: 2849aef39f88fc3dd6159f94ea799ecfae8d0602
5
5
  SHA512:
6
- metadata.gz: 3fffd79ad122d0390078dfaf8da77adf1c3582c2d36dcf8e451ca01633f140aefa2128e15ba90d728c2bb6224864578bf498610036969163ae4e83ad45beb54a
7
- data.tar.gz: 577dd7a92a5eaae75c8603a862a4d16a4e5979deb5d3e6126c4951e4b7dabe092bccfec741c11a00884d4ee6632ea302389b78f87bd537b9860aa993d40068e4
6
+ metadata.gz: 0ee52c055760b975089a3528111df91eb43e58f45d394608c063c79770978e6d0eef7be6cf195d3d693c4d238608a981f71bb461c45195723803c717f9df236a
7
+ data.tar.gz: f6d94267307547345040ae867430fe64d7ed83fbf5a184addcb70ba056bed7b04df5f2ea42295abaa34a075fa84e836d94b12f49b9b31bdae25c409ced4c8e0f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -17,6 +17,8 @@ module TxCatcher
17
17
  address(path)
18
18
  elsif path.start_with? "/tx/send"
19
19
  broadcast_tx(params["rawtx"])
20
+ elsif path == "/" || path.empty?
21
+ [200, {}, "TxCather server, #{TxCatcher::Config.rpcnode["name"]}, current_block_height: #{TxCatcher.current_block_height}"]
20
22
  else
21
23
  [404, {}, { error: "404, not found" }.to_json]
22
24
  end
data/txcatcher.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: txcatcher 0.1.2 ruby lib
5
+ # stub: txcatcher 0.1.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "txcatcher"
9
- s.version = "0.1.2"
9
+ s.version = "0.1.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Roman Snitko"]
14
- s.date = "2017-09-23"
14
+ s.date = "2017-09-24"
15
15
  s.description = "Ccurrently, the only job of this gem is to collect all new Bitcoin/Litecoin transactions, store them in a DB, index addresses."
16
16
  s.email = "roman.snitko@gmail.com"
17
17
  s.executables = ["goliath.log", "goliath_stdout.log", "txcatcher"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txcatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-23 00:00:00.000000000 Z
11
+ date: 2017-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: goliath