rippler 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm --create use ruby-1.9.3-p362@rippler
1
+ rvm --create use ruby-1.9.3@rippler
data/README.md CHANGED
@@ -14,7 +14,7 @@ Alternatively, you can install from source at Github:
14
14
  $ cd rippler
15
15
  $ bundle install
16
16
 
17
- ## Usage
17
+ ## Usage: Ripple API
18
18
 
19
19
  Rippler supports Ripple API commands (https://ripple.com/wiki/RPC_API). All parameters after command should be given in commandline JSON format, such as:
20
20
 
@@ -24,9 +24,13 @@ Rippler supports Ripple API commands (https://ripple.com/wiki/RPC_API). All para
24
24
 
25
25
  $ rippler account_tx account:evoorhees ledger_min:0 ledger_max:400000
26
26
 
27
- Ripple server replies are returned as JSON and printed to stdout. If you want to do some post-processing of the results, get source from Github and modify bin/rippler script.
27
+ $ rippler subscribe streams:[ledger]
28
28
 
29
- Rippler also provides additional commands print out human-readable output:
29
+ Ripple server replies are returned as JSON and printed to stdout. If you want to do some post-processing of the results, get the source from Github and modify bin/rippler script.
30
+
31
+ ## Usage: additional commands
32
+
33
+ Rippler also provides additional commands that print out human-readable output:
30
34
 
31
35
  $ rippler history account:molecular
32
36
 
@@ -25,6 +25,7 @@ module Rippler
25
25
  params = command_line.map {|p| p.split(':')}.flatten. # get json pairs
26
26
  map {|p| p =~ /\[.*\]/ ? p.gsub(/\[|\]/,'').split(',') : p} # get arrays
27
27
  params = Hash[*params]
28
+
28
29
  params['account'] = Account(params['account']).address if params['account']
29
30
 
30
31
  # p command, params
@@ -4,22 +4,33 @@ module Rippler
4
4
  OpenCoin-1 r3kmLJN5D28dHuH8vZNUZpMC43pEHpaocV
5
5
  ADDRESS_ONE rrrrrrrrrrrrrrrrrrrrBZbvji
6
6
 
7
- bitstamp rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B
8
- bitstamp_hotwallet rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1
9
- weex_btc rpvfJ4mR6QQAeogpXEKnuyGBx8mYCSnYZi
10
- weex_aud rBcYpuDT1aXNo4jnqczWJTytKGdBGufsre
11
- weex_cad r47RkFi1Ew3LvCNKT6ufw3ZCyj5AJiLHi9
12
- weex_usd r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X
13
-
7
+ X.FortKnox.1 rhWnKQ79moM7wkk2b9RpufDzhbHw7YLc6d
8
+ X.FortKnox.2 r9PbKbYisKN1DSwaZ7jp6ZsKmfk1yCFAAi
9
+ X.FortKnox.3 rJipRKjL3CNAvWWMNrbXW9sCvk66PBdyMv
10
+ X.FortKnox.4 rDyLzAzyniahxpPLkNsLDSPZki6HZk6wV5
11
+ X.FortKnox.5 rhXSetHpayrrnjVAzVgtP4EVmpqMpMFUBt
12
+ X.FortKnox.6 rn4o6i8BrwhwmyjLntKsW4DZnk76dZXocS
13
+ X.FortKnox.7 rNAbBQAd8zgfdRoUFvjeu582Nu7uQjsuhz
14
+ X.FortKnox.8 rNGWsgk1MGdW12SWQ67hRhnvGfZ1M3cMxB
15
+ X.FortKnox.9 rp7gaQch2fiNQHDPrnPk9pG65e9cnv7g6X
16
+ X.FortKnox.a rstKSeB2Qx7zrwSkyc7X9Xm5nYTJqtL3iM
17
+ X.FortKnox.b rJYMACXJd1eejwzZA53VncYmiK2kZSBxyD
14
18
  X.Veirou rhq5LEZSWHWY6H3raiC2KGe8TVeirou4BS
19
+ X.Wow rHD7Bs8Zk1oQeUhLjPrsFStFcRE2NWoWpe
15
20
  X.Reya rEyAJhMMi5WNzgdkY67vN7ivfiQnh3itXY
16
21
  X.Founder.1 rfbKLd1VLB3o6fpkhCJexckArjoMmBm2wG
17
- X.9billions rstKSeB2Qx7zrwSkyc7X9Xm5nYTJqtL3iM
18
22
  X.77millions rB5TihdPbKgMrkFqrqUC3yLdE8hhv4BdeY
19
23
  X.10millions rHrSTVSjMsZKeZMenkpeLgHGvY5svPkRvR
20
24
  X.001 rKdtD8YQXCJAnXoXQfmn645FybiaFWVghs
21
25
  X.002 ramJoEsBUHc299vFuMvn8NgLrF3Qrt3XV4
22
26
 
27
+ bitstamp rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B
28
+ bitstamp_hotwallet rrpNnNLKrartuEqfJGpqyDwPj1AFPg9vn1
29
+ weex_btc rpvfJ4mR6QQAeogpXEKnuyGBx8mYCSnYZi
30
+ weex_aud rBcYpuDT1aXNo4jnqczWJTytKGdBGufsre
31
+ weex_cad r47RkFi1Ew3LvCNKT6ufw3ZCyj5AJiLHi9
32
+ weex_usd r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X
33
+
23
34
  TTBit rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E
24
35
  BankOfZed ra88Lr8fyo9cUTuyjVFMTrvTSBU93erjyh
25
36
  AlanFromZed rhR5j5LXsujSuwG2bcn1P39utdTA79ceaW
@@ -77,7 +88,6 @@ module Rippler
77
88
  runlinux rsAMwJ4BjuEwb5dkd84XW9WM5KvauxcGAU
78
89
  nomnomnom rp3qwd4zb8Ywq8rFrxLgijvyYKMa68FbxW
79
90
  nealmcb r3NQyByq6KfvnD1PXu3jwGzdsVGn1HEJNq
80
- TTBit rGwUWgN5BEg3QGNY3RX2HfYowjUTZdid3E
81
91
  plummonkey r3PDtZSa5LiYp1Ysn1vMuMzB59RzV3W9QH
82
92
  magnebit rQrUJLNcjnaZJjqMjaiPHxGa7eipzyf7b
83
93
  mpfrank rnfLDQaxN7isxzWZuc6BM8jeiCb2WSGpdG
@@ -122,7 +132,15 @@ module Rippler
122
132
  Digigami rHCSeQNZZz7FWbxvLjB2RzF1CrBeUcDj7J
123
133
  jking rMpB2AsrDTdbynCB48hg8MwHLD4wtXJfRJ
124
134
  justusranvier rnZoz4R1o6GupernFX6bey34uj4g45scLZ
125
-
135
+ sron rNgfXZpCHQm4wT2CBoGpJeTnuEm1zKqD4x
136
+ Krax razxPYEPwt8JkH5RUkoTakMLEA9PJMuokT
137
+ PEDTrader r4nj4U8kwYZgXCUSQehPBW2QqbPPvcyGEV
138
+ thebankofbitcoins rKdxsLnSodtD4BJwxPM1WssTGLXBNK7oxb
139
+ abrkn rG4muW7MgLqFV1VgzJ7sJ6ADr3xAAPujVi
140
+ franky1 rJc889SGH2CAc69hV8ybHo79RRTuYBTPP7
141
+ rieneuf rLnPp15en31XUZXYhXcjJS9t2yM8po5icr
142
+ 001sonkit r2hqqo78t9yvSgJJH2g2uaBxgQDUK8Xnp
143
+ respcelasa r9Eupo97W5HayeDG5qryDehqauTDtxQAzW
126
144
 
127
145
  arvicco rnZoUopPFXRSVGdeDkgbqdft8SbXfJxKYh
128
146
  paysafecardbitcoin rN4kvobWCZVSzgLmo27B4kMjakAL31pMSr
@@ -189,13 +207,18 @@ module Rippler
189
207
  Ivica ra6FCgRD4Ye4PNcTRhmiXaSzpJKo1PQEzh
190
208
  DrG rQrnuAtfePuz2fsSDTakuDZn594fi9x7dP
191
209
  DrG-1 rJEZjBv27ZHCPAoDtTBJb9r82VnUdkRd77
210
+ DrG-2 rQNFxWVBxnjeF5gaFKwoj5nr3WansCtR19
192
211
  UnitClick rLKojeESeKi9mdBuPLkiQhCxs4wh8iKy2W
193
212
  saddambitcoin rMSEYpzcRtkiA5kkxYEWZtvLr8u3jnn385
194
213
  helloworld111 rwGAnUvzT5yrDz6dXxm6MWVhpV9abm39W3
195
214
  dykast rQfwn3GVHVEfTpjqU2Y3BoMGAGHrw43XnT
196
215
  BurbolGii rDYwnqGbUazEuMfebQwLprCQQXWbYgXTMa
197
216
  BC12345 rNy61KXKUYPMFf5fMV6ojo3u98dc5WhiVu
198
- Eegnylot rPKwrbDS6GC61QF1NuyTCohK926ns2vEG3
217
+ Eegnylot rPKwrbDS6GC61QF1NuyTCohK926ns2vEG3
218
+ CurbsideProphet rBgpempF56xEyJA9WV55NKZ9VZPJfwMQuZ
219
+ whitehawk501-1 r3bbiYhxHxseufw9UY5bqN1yCEdHVNKgM3
220
+ whitehawk501 r3qXCX9hdoFmTdPo7JvjQsbFUfE7UHUBhb
221
+ reefless r3sAGjHpBW1VN7zerJLxpHj86p9eyrBTqs
199
222
  ]]
200
223
 
201
224
  Addresses = Contacts.invert
@@ -4,7 +4,7 @@ module Rippler
4
4
  include Rippler::Utils
5
5
 
6
6
  def to_s
7
- "#{Time(self.ledger_time).strftime("%Y-%m-%d %H:%M:%S")} " +
7
+ "#{Time(self.ledger_time, :unix).strftime("%Y-%m-%d %H:%M:%S")} " +
8
8
  "Ledger ##{self.ledger_index}, txn: #{self.txn_count}"
9
9
  end
10
10
  end
@@ -4,8 +4,9 @@ module Rippler
4
4
  module Utils
5
5
  RIPPLE_TIME_OFFSET = 946684800 # Time.utc(2000,1,1,0,0,0).to_i
6
6
 
7
- def Time(ripple_seconds)
8
- Time.at(RIPPLE_TIME_OFFSET + ripple_seconds.to_i)
7
+ def Time(seconds, epoch=:ripple)
8
+ seconds = epoch == :ripple ? RIPPLE_TIME_OFFSET + seconds.to_i : seconds.to_i
9
+ Time.at(seconds)
9
10
  end
10
11
 
11
12
  def Money(data)
@@ -1,3 +1,3 @@
1
1
  module Rippler
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rippler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: