stellar-base 0.7.0 → 0.8.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/stellar/base/version.rb +1 -1
- data/lib/stellar/networks.rb +1 -1
- data/spec/lib/stellar/networks_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4cef3f6d9972583a5ceb97a6611cca77c2d01ed1
|
|
4
|
+
data.tar.gz: 4c3ebf486791dbeb335d66a4d6714ca37eedf66a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b988d06e8f45b43d9b6454f4762d2e47f0c6669b03d8d4a3d222077620ede8bc022d0682f7f9ab2140e284ff8bdec5ad3822d28c488697895181e37594ef7513
|
|
7
|
+
data.tar.gz: 99378da3a90dd973acd51fc692289e2176266b1ad2d1c0b2f1a62b9183c8dc1c8864246b8f46146d1fd49bfdf7a8ad121a217a791c5bdc71723873b6db7e33f4
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,13 @@ file. This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
6
6
|
As this project is pre 1.0, breaking changes may happen for minor version
|
|
7
7
|
bumps. A breaking change will get clearly notified in this log.
|
|
8
8
|
|
|
9
|
+
## [unreleased](https://github.com/stellar/ruby-stellar-base/compare/v0.7.0...master)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- BREAKING CHANGE: The default network for this library is now the stellar test network.
|
|
13
|
+
To enable this library for the production network use `Stellar.default_network = Stellar::Networks::PUBLIC`
|
|
14
|
+
at the head of your script or in your configuration function.
|
|
15
|
+
|
|
9
16
|
## [0.7.0](https://github.com/stellar/ruby-stellar-base/compare/v0.6.1...v0.7.0)
|
|
10
17
|
|
|
11
18
|
### Changed
|
data/lib/stellar/base/version.rb
CHANGED
data/lib/stellar/networks.rb
CHANGED
|
@@ -25,7 +25,7 @@ module Stellar
|
|
|
25
25
|
def self.current_network
|
|
26
26
|
Thread.current["stellar_network_passphrase"] ||
|
|
27
27
|
@default_network ||
|
|
28
|
-
Stellar::Networks::
|
|
28
|
+
Stellar::Networks::TESTNET
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Returns the id for the currently configured network, suitable for use in generating
|
|
@@ -16,7 +16,7 @@ describe Stellar, ".current_network" do
|
|
|
16
16
|
after(:each){ Stellar.default_network = nil }
|
|
17
17
|
|
|
18
18
|
it "returns the public network absent any other configuration" do
|
|
19
|
-
expect(Stellar.current_network).to eql(Stellar::Networks::
|
|
19
|
+
expect(Stellar.current_network).to eql(Stellar::Networks::TESTNET)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
it "returns the default network if configured and not within a call to on_network" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stellar-base
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Fleckenstein
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xdr
|