bitcoin2graphdb 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 97775dac9d763d98a35801248d774ebee804ad6f
4
- data.tar.gz: 0c9933f1ba43faa5d52c38935f2a7b32fb0e02a8
3
+ metadata.gz: d92ba9dc6248e68ac609afb938b1be277587d869
4
+ data.tar.gz: 7ca0e663bf652cdb4e86905cb91e7a87cf719d8b
5
5
  SHA512:
6
- metadata.gz: 1ce72cd04c90f55a7613e3e349f2291fc4cce5ee69bf5e9073e007a3a6df794e73e10993d6e417254509f4486d2b98697f6cec4fd40e8306bcd6d7d358277630
7
- data.tar.gz: 2e80a08a8f7b836611547d9019c4f3bdffcd5c3760bda8b5f39958a9a8765feb6ac4ee38a5256d6133980857c7b7e7e3e03921af3f8a1ddf14c2d177445d0776
6
+ metadata.gz: dae94d3ac46dec0d70d9f87bad72fa609849d3a0700b35b71aeebe5600b8dea8bb640c91c0bb83aff6bcb63afceb5dea126f1d01dcb9f907f98c16dc7f9e3331
7
+ data.tar.gz: 9f220916b617d592dfa800c8f40dbdfe3adbe1f3fa2ccf7a7204d732406b78d49ebf3ca5f73071b4c74d51ea2ca6f673646ad40eb08a7791414565b63f1af662
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency "openassets-ruby", ">= 0.4.9"
22
+ spec.add_runtime_dependency "openassets-ruby", ">= 0.5.0"
23
23
  spec.add_runtime_dependency "daemon-spawn"
24
24
  spec.add_runtime_dependency 'neo4j', '~> 5.0.0'
25
25
  spec.add_runtime_dependency "activesupport", ">= 4.0.2"
@@ -29,6 +29,17 @@ namespace :b2g do
29
29
  get_migration(args.config_path).import_tx(args.txid)
30
30
  end
31
31
 
32
+ desc 'Remove down to block specified from the latest block'
33
+ task :remove_until_block, [:block_height,:config_path] do |task, args|
34
+ target_block_height = args.block_height.to_i
35
+ puts "remove_until_block down to #{target_block_height}"
36
+ migration = get_migration(args.config_path)
37
+ current_height = Graphdb::Model::Block.latest.first.height
38
+ current_height.downto(target_block_height) do |height|
39
+ migration.remove_block(height)
40
+ end
41
+ end
42
+
32
43
  private
33
44
  def get_migration(config_path)
34
45
  config = YAML.load(File.read(config_path)).deep_symbolize_keys[:bitcoin2graphdb]
@@ -1,3 +1,3 @@
1
1
  module Bitcoin2Graphdb
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitcoin2graphdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: openassets-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.9
19
+ version: 0.5.0
20
20
  type: :runtime
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: 0.4.9
26
+ version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: daemon-spawn
29
29
  requirement: !ruby/object:Gem::Requirement