blockchain-wallet 0.0.3 → 0.0.4

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: 019b1f67802cfea67ad6ddfa2471cdfa4c16ecd5
4
- data.tar.gz: 1b8f25e8f06291ed538c14b5989802eb62df5850
3
+ metadata.gz: 7ea53cebeb388e93903c1ff0011d99bad5028686
4
+ data.tar.gz: 7dfb920e51b110ae6d4dbf56e88b5713edcf0b34
5
5
  SHA512:
6
- metadata.gz: 8ff525a972e556a21d709bb2373bc36ea54491dee21da4ce35d897527b4c221b40d53a93805965e14fc74ac6c2e325d7a7f732d2b8d9d5bc7c110a63ccc57196
7
- data.tar.gz: 23948e25b1d802f9fa07c1fcfc83d1f2f54898f87b5807c233e9fcd4f7e1a0e6a67ce2222a818674e4f2f4c365b507b2fa0a9f9d0198067a71d9489812e0f37d
6
+ metadata.gz: 49daacb3283ddec9e4ec0948b916869db76474ddee478ef0367b9fbeef0bcb31986f5200390bfcdeec0714d876d8fa726f815b54f18cc926d76e6eb887292233
7
+ data.tar.gz: e041daa4817d5cfeed182c6f5fc969f11541b9318d9638cc3da34b6abb9ccb0fb48b865a0ac91690616e19d240ec33ff1e83b1a9352f8d5905f92313e5fc391f
data/README.md CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  First you need to create wallet object with your guid, password and second password:
22
22
 
23
- wallet = BlockchainWallet::Wallet.new("b14d36af-2fa6-4d76-91b5-ff70b8370ec7", "n$grJ74hAshfggnb6864%j78@#^hChttp://ya.ru@contentpurl", nil)
23
+ wallet = Blockchain::Wallet.new("b14d36af-2fa6-4d76-91b5-ff70b8370ec7", "n$grJ74hAshfggnb6864%j78@#^hChttp://ya.ru@contentpurl", nil)
24
24
 
25
25
  Then your can call any API method to invoke him. For example:
26
26
 
@@ -33,3 +33,8 @@ Then your can call any API method to invoke him. For example:
33
33
  3. Commit your changes (`git commit -am 'Add some feature'`)
34
34
  4. Push to the branch (`git push origin my-new-feature`)
35
35
  5. Create new Pull Request
36
+
37
+ ## License
38
+
39
+ CC-BY 3.0
40
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. Seriously, use it at your own risk.
@@ -5,7 +5,7 @@ require 'blockchain/wallet/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "blockchain-wallet"
8
- spec.version = BlockchainWallet::VERSION
8
+ spec.version = Blockchain::VERSION
9
9
  spec.authors = ["Sergey Tolmachev"]
10
10
  spec.email = ["tolsi.ru@gmail.com"]
11
11
  spec.description = "Provides access to all blockchain.info Wallet API functions ( https://blockchain.info/api/blockchain_wallet_api )"
@@ -4,7 +4,7 @@ require "json"
4
4
  require "oj"
5
5
  require "immutable_struct"
6
6
 
7
- module BlockchainWallet
7
+ module Blockchain
8
8
 
9
9
  class Wallet < WebAPI
10
10
  def initialize(guid, password, second_password)
@@ -1,3 +1,3 @@
1
- module BlockchainWallet
2
- VERSION = "0.0.3"
1
+ module Blockchain
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,16 +1,16 @@
1
1
  require File.expand_path("../../lib/blockchain/wallet", __FILE__)
2
2
 
3
- describe BlockchainWallet, ".addresses" do
3
+ describe Blockchain, ".addresses" do
4
4
  it "returns all addresses" do
5
- wallet = BlockchainWallet::Wallet.new("b14d36af-2fa6-4d76-91b5-ff70b8370ec7", "n$grJ74hAshfggnb6864%j78@#^hChttp://ya.ru@contentpurl", nil)
5
+ wallet = Blockchain::Wallet.new("b14d36af-2fa6-4d76-91b5-ff70b8370ec7", "n$grJ74hAshfggnb6864%j78@#^hChttp://ya.ru@contentpurl", nil)
6
6
  addresses=wallet.addresses
7
7
  addresses.should_not be_empty
8
8
  end
9
9
  end
10
10
 
11
- describe BlockchainWallet, ".address_balance" do
11
+ describe Blockchain, ".address_balance" do
12
12
  it "should return '1JX7FrBm4Y96Z8BN6m9fWLN3bWVrEZ7dVs' balance >=0" do
13
- wallet = BlockchainWallet::Wallet.new("b14d36af-2fa6-4d76-91b5-ff70b8370ec7", "n$grJ74hAshfggnb6864%j78@#^hChttp://ya.ru@contentpurl", nil)
13
+ wallet = Blockchain::Wallet.new("b14d36af-2fa6-4d76-91b5-ff70b8370ec7", "n$grJ74hAshfggnb6864%j78@#^hChttp://ya.ru@contentpurl", nil)
14
14
  address_balance=wallet.address_balance("1JX7FrBm4Y96Z8BN6m9fWLN3bWVrEZ7dVs")
15
15
  address_balance.balance.should >=(0)
16
16
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blockchain-wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Tolmachev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-18 00:00:00.000000000 Z
11
+ date: 2013-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: immutable_struct
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: oj
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Provides access to all blockchain.info Wallet API functions ( https://blockchain.info/api/blockchain_wallet_api
@@ -88,7 +88,7 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
91
+ - ".gitignore"
92
92
  - Gemfile
93
93
  - LICENSE
94
94
  - README.md
@@ -108,12 +108,12 @@ require_paths:
108
108
  - lib
109
109
  required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - '>='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []