cosgrove 0.0.1rc8 → 0.0.1rc9

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: 58000a80263e9eb3910eaf1fd713b9da5b5450f4
4
- data.tar.gz: f3be14ecc49996ece63386500f0da69edc56df3e
3
+ metadata.gz: 700a9b0197550bb9b546a781f5099a5e0f5ff60f
4
+ data.tar.gz: 0870c5e7886a7f90c8b13aaccfcf77ce4f617776
5
5
  SHA512:
6
- metadata.gz: 6111f7a45fdc1b9fb3f36563eb3e31835c3b95e62accfe2170cdda187a1846dccdce4a95d00059a18e446f5e01517689843435c7129bdf1f18199f3de8e73e87
7
- data.tar.gz: 28653a27fad89dccc66f0e9a4d15b3279953a023a07a9942f8c7b507f738fcb35f97b6fc11173a69cb94c71c1b3abd14b4ecd795dfc18f718b1116de4cef89c9
6
+ metadata.gz: 7548e147a3faa74678ba48c74fdeb4305b841ea5efe0cdf08ff33da9c651f1125558daa036292e0a10b3762b6defabdcb46aecfb5a57ef324556bd5df97e78d0
7
+ data.tar.gz: ce21995134edf4170ce27e68d3b4c5f9cdbcdc675279d4d30132d4a192b9096ccd2b4ac6fff77c2fa372f8b1df7d682db06a73406e47a4d34d0d863f69c2bd51
data/Gemfile.lock CHANGED
@@ -17,7 +17,7 @@ GIT
17
17
  PATH
18
18
  remote: .
19
19
  specs:
20
- cosgrove (0.0.1rc8)
20
+ cosgrove (0.0.1rc9)
21
21
  activesupport (~> 5.1, >= 5.1.1)
22
22
  ai4r (~> 1.13, >= 1.13)
23
23
  discordrb (~> 3.2, >= 3.2.1)
@@ -64,7 +64,7 @@ GEM
64
64
  bson (4.2.2)
65
65
  builder (3.2.3)
66
66
  byebug (9.1.0)
67
- coderay (1.1.1)
67
+ coderay (1.1.2)
68
68
  concurrent-ruby (1.0.5)
69
69
  crack (0.4.3)
70
70
  safe_yaml (~> 1.0.0)
@@ -122,7 +122,7 @@ GEM
122
122
  mongoid (6.2.1)
123
123
  activemodel (~> 5.1)
124
124
  mongo (>= 2.4.1, < 3.0.0)
125
- multi_json (1.12.1)
125
+ multi_json (1.12.2)
126
126
  multipart-post (2.0.0)
127
127
  net-http-digest_auth (1.4.1)
128
128
  net-http-persistent (2.9.4)
@@ -176,7 +176,7 @@ GEM
176
176
  simplecov-html (~> 0.10.0)
177
177
  simplecov-html (0.10.2)
178
178
  slop (3.6.0)
179
- steem-slap (0.0.2)
179
+ steem-slap (0.0.3)
180
180
  thor (0.20.0)
181
181
  thread_safe (0.3.6)
182
182
  typhoeus (1.3.0)
@@ -62,7 +62,28 @@ module Cosgrove
62
62
  end
63
63
 
64
64
  def steem_data_head_block_number
65
- [SteemData::Setting.last.last_block, SteemData::AccountOperation.last.block].min
65
+ latest_settings_block = begin
66
+ SteemData::Setting.last.last_block
67
+ rescue => e
68
+ ap e
69
+ -1
70
+ end
71
+
72
+ latest_account_op_block = begin
73
+ SteemData::AccountOperation.today.last.block
74
+ rescue => e
75
+ ap e
76
+ -1
77
+ end
78
+
79
+ latest_op_block = begin
80
+ SteemData::Operation.today.last.block_num
81
+ rescue => e
82
+ ap e
83
+ -1
84
+ end
85
+
86
+ [latest_settings_block, latest_account_op_block, latest_op_block].min
66
87
  end
67
88
 
68
89
  def properties(chain)
@@ -1,4 +1,4 @@
1
1
  module Cosgrove
2
- VERSION = '0.0.1rc8'
2
+ VERSION = '0.0.1rc9'
3
3
  AGENT_ID = "cosgrove/#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cosgrove
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1rc8
4
+ version: 0.0.1rc9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-02 00:00:00.000000000 Z
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler