straight-server 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/README.md +10 -0
- data/VERSION +1 -1
- data/straight-server.gemspec +100 -0
- data/templates/config.yml +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34f009b0de8ffbad5c9cfb46cb3044cc69b61a65
|
4
|
+
data.tar.gz: cf3543fde03d50bdf382957f347638ec83193497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cc71b6d8ffd1fdd6b727db40a9a6c12687013119712b569c89ff39fdddf35f0420ed3617f0fc066de909f8bbb5fba77bba0040f4230dd6c7959f6488a8f4c4d
|
7
|
+
data.tar.gz: 043c4bae520c57ac0b9e3fa96ec212ab58dbe4affe83f85a85c5f3798810681857ec8e48a78094904c6d2d9ffcd6fe6278ae6c60fc63846ab0a941668616aea6
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -64,11 +64,11 @@ GEM
|
|
64
64
|
json (1.8.1)
|
65
65
|
jwt (1.0.0)
|
66
66
|
log4r (1.1.10)
|
67
|
-
logmaster (0.1.
|
67
|
+
logmaster (0.1.2)
|
68
68
|
pony
|
69
|
-
mail (2.6.
|
69
|
+
mail (2.6.3)
|
70
70
|
mime-types (>= 1.16, < 3)
|
71
|
-
mime-types (2.3)
|
71
|
+
mime-types (2.4.3)
|
72
72
|
mini_portile (0.6.0)
|
73
73
|
minitest (5.4.1)
|
74
74
|
money-tree (0.8.7)
|
@@ -129,7 +129,7 @@ DEPENDENCIES
|
|
129
129
|
goliath
|
130
130
|
hashie
|
131
131
|
jeweler (~> 2.0.1)
|
132
|
-
logmaster
|
132
|
+
logmaster (= 0.1.2)
|
133
133
|
rspec
|
134
134
|
ruby-hmac
|
135
135
|
satoshi-unit
|
data/README.md
CHANGED
@@ -22,6 +22,8 @@ Straight uses BIP32 pubkeys so that you and only you control your private keys.
|
|
22
22
|
If you're not sure what a BIP32 address and HD wallets are, read this article:
|
23
23
|
http://bitcoinmagazine.com/8396/deterministic-wallets-advantages-flaw/
|
24
24
|
|
25
|
+
You might also be interested in a stateless [Straight](https://github.com/snitko/straight) library that is the base for Straight server.
|
26
|
+
|
25
27
|
Installation
|
26
28
|
------------
|
27
29
|
I currently only tested it on Unix machines.
|
@@ -186,6 +188,14 @@ and then send the request to the callback url with that signature:
|
|
186
188
|
It is now up to your application to calculate that signature, compare it and
|
187
189
|
make sure that only one such request is allowed (that is, if signature was used, it cannot be used again).
|
188
190
|
|
191
|
+
Querying the blockchain
|
192
|
+
-----------------------
|
193
|
+
Straight currently uses third-party services, such as Blokchain.info and Helloblock.io to track
|
194
|
+
addresses and fetch transaction info. This means, you don't need to install bitcoind and store
|
195
|
+
the whole blockchain on your server. If one service is down, it will automatically switch to another one. I will be adding more adapters in the future. It will also be possible to implement a cross check where if one service is lying about a transaction, I can check with another. In the future, I will add bitcoind support too for those who do not trust third-party services.
|
196
|
+
|
197
|
+
To sum it up, there is nothing in the architecture of this software that says you should rely on third party services to query the blockchain.
|
198
|
+
|
189
199
|
Running in production
|
190
200
|
---------------------
|
191
201
|
Running in production usually assumes running server as daemon with a pid. Straight server
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: straight-server 0.1.2 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "straight-server"
|
9
|
+
s.version = "0.1.2"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Roman Snitko"]
|
14
|
+
s.date = "2015-01-07"
|
15
|
+
s.description = "Accepts orders via http, returns payment info via http or streams updates via websockets, stores orders in a DB"
|
16
|
+
s.email = "roman.snitko@gmail.com"
|
17
|
+
s.executables = ["straight-console", "straight-server"]
|
18
|
+
s.extra_rdoc_files = [
|
19
|
+
"LICENSE.txt",
|
20
|
+
"README.md"
|
21
|
+
]
|
22
|
+
s.files = [
|
23
|
+
".document",
|
24
|
+
".rspec",
|
25
|
+
"Gemfile",
|
26
|
+
"Gemfile.lock",
|
27
|
+
"LICENSE.txt",
|
28
|
+
"README.md",
|
29
|
+
"Rakefile",
|
30
|
+
"VERSION",
|
31
|
+
"bin/straight-console",
|
32
|
+
"bin/straight-server",
|
33
|
+
"db/migrations/001_create_orders.rb",
|
34
|
+
"db/migrations/002_create_gateways.rb",
|
35
|
+
"examples/client/client.dart",
|
36
|
+
"examples/client/client.html",
|
37
|
+
"lib/straight-server.rb",
|
38
|
+
"lib/straight-server/config.rb",
|
39
|
+
"lib/straight-server/gateway.rb",
|
40
|
+
"lib/straight-server/initializer.rb",
|
41
|
+
"lib/straight-server/logger.rb",
|
42
|
+
"lib/straight-server/order.rb",
|
43
|
+
"lib/straight-server/orders_controller.rb",
|
44
|
+
"lib/straight-server/server.rb",
|
45
|
+
"lib/straight-server/thread.rb",
|
46
|
+
"spec/.straight/config.yml",
|
47
|
+
"spec/factories.rb",
|
48
|
+
"spec/lib/gateway_spec.rb",
|
49
|
+
"spec/lib/order_spec.rb",
|
50
|
+
"spec/lib/orders_controller_spec.rb",
|
51
|
+
"spec/spec_helper.rb",
|
52
|
+
"spec/support/custom_matchers.rb",
|
53
|
+
"straight-server.gemspec",
|
54
|
+
"templates/config.yml"
|
55
|
+
]
|
56
|
+
s.homepage = "http://github.com/snitko/straight-server"
|
57
|
+
s.licenses = ["MIT"]
|
58
|
+
s.rubygems_version = "2.2.2"
|
59
|
+
s.summary = "A Bitcoin payment gateway server: a state server for the stateless Straight library"
|
60
|
+
|
61
|
+
if s.respond_to? :specification_version then
|
62
|
+
s.specification_version = 4
|
63
|
+
|
64
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
65
|
+
s.add_runtime_dependency(%q<straight>, [">= 0"])
|
66
|
+
s.add_runtime_dependency(%q<satoshi-unit>, [">= 0"])
|
67
|
+
s.add_runtime_dependency(%q<goliath>, [">= 0"])
|
68
|
+
s.add_runtime_dependency(%q<faye-websocket>, [">= 0"])
|
69
|
+
s.add_runtime_dependency(%q<sequel>, [">= 0"])
|
70
|
+
s.add_runtime_dependency(%q<logmaster>, ["= 0.1.2"])
|
71
|
+
s.add_runtime_dependency(%q<ruby-hmac>, [">= 0"])
|
72
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
73
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
74
|
+
s.add_development_dependency(%q<github_api>, ["= 0.11.3"])
|
75
|
+
else
|
76
|
+
s.add_dependency(%q<straight>, [">= 0"])
|
77
|
+
s.add_dependency(%q<satoshi-unit>, [">= 0"])
|
78
|
+
s.add_dependency(%q<goliath>, [">= 0"])
|
79
|
+
s.add_dependency(%q<faye-websocket>, [">= 0"])
|
80
|
+
s.add_dependency(%q<sequel>, [">= 0"])
|
81
|
+
s.add_dependency(%q<logmaster>, ["= 0.1.2"])
|
82
|
+
s.add_dependency(%q<ruby-hmac>, [">= 0"])
|
83
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
84
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
85
|
+
s.add_dependency(%q<github_api>, ["= 0.11.3"])
|
86
|
+
end
|
87
|
+
else
|
88
|
+
s.add_dependency(%q<straight>, [">= 0"])
|
89
|
+
s.add_dependency(%q<satoshi-unit>, [">= 0"])
|
90
|
+
s.add_dependency(%q<goliath>, [">= 0"])
|
91
|
+
s.add_dependency(%q<faye-websocket>, [">= 0"])
|
92
|
+
s.add_dependency(%q<sequel>, [">= 0"])
|
93
|
+
s.add_dependency(%q<logmaster>, ["= 0.1.2"])
|
94
|
+
s.add_dependency(%q<ruby-hmac>, [">= 0"])
|
95
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
96
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
97
|
+
s.add_dependency(%q<github_api>, ["= 0.11.3"])
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
data/templates/config.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: straight-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Snitko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: straight
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: logmaster
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.1.2
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 0.1.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: ruby-hmac
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,6 +191,7 @@ files:
|
|
191
191
|
- spec/lib/orders_controller_spec.rb
|
192
192
|
- spec/spec_helper.rb
|
193
193
|
- spec/support/custom_matchers.rb
|
194
|
+
- straight-server.gemspec
|
194
195
|
- templates/config.yml
|
195
196
|
homepage: http://github.com/snitko/straight-server
|
196
197
|
licenses:
|