ytterb 0.2.156.224221 → 0.2.160.214302
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/.gitignore +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +1 -0
- data/README.md +1 -0
- data/Rakefile +9 -0
- data/lib/ytterb/util/data_persist_helper.rb +4 -4
- metadata +3 -4
- data/lib/ytterb/.cache/local_settings/settings.yaml +0 -4
- data/lib/ytterb/.cache/local_settings/settings/.yaml +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c79db6a6c928c9cc1be2d4eb3d591316af88dd8
|
|
4
|
+
data.tar.gz: 338a059bc60c8ac9c8d7f5fd5678a6164a8c2604
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a7b9742dfa5fbea3ebd9994d2734be5135bebdcc3a13acaaee45b5e6461a8a454cfb77ed8d6487983aa8306caee350a07a71469805892fe3bb9c9dfc83fa2c3
|
|
7
|
+
data.tar.gz: 8f527907abf900b007fdc3f99905a3b9217020eb082a741ddbe31925fba142a360b48a7af28adff0e8111ac458601f5cd9a9342ea9a0ae2a23243fe9bd5654b2
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
ytterb
|
|
2
2
|
======
|
|
3
3
|
[](http://badge.fury.io/rb/ytterb)
|
|
4
|
+
[](https://travis-ci.org/thext/ytterb)
|
|
4
5
|
|
|
5
6
|
* (HomePage)[https://rubygems.org/gems/ytterb]
|
|
6
7
|
* (Documentation)[http://rubydoc.info/gems/ytterb/frames]
|
data/Rakefile
CHANGED
|
@@ -46,3 +46,12 @@ task :generate_freshness_report do
|
|
|
46
46
|
require_relative 'lib/ytterb'
|
|
47
47
|
Ytterb::StockSymbol::Report.new(:type => :freshness).generate
|
|
48
48
|
end
|
|
49
|
+
|
|
50
|
+
desc "message pack test"
|
|
51
|
+
task :msg_pack_test do
|
|
52
|
+
require 'msgpack'
|
|
53
|
+
msg = [1,2,3].to_msgpack #=> "\x93\x01\x02\x03"
|
|
54
|
+
puts msg.inspect
|
|
55
|
+
demsg = MessagePack.unpack(msg) #=> [1,2,3]
|
|
56
|
+
puts demsg.inspect
|
|
57
|
+
end
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'msgpack'
|
|
2
2
|
|
|
3
3
|
module Ytterb
|
|
4
4
|
module Util
|
|
5
5
|
class DataPersistHelper
|
|
6
6
|
def self.save(file, value)
|
|
7
|
-
File.open(file,"w") {|f| f.write(
|
|
7
|
+
File.open(file,"w") {|f| f.write(value.to_msgpack) }
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def self.load(file)
|
|
11
|
-
File.open(file,"r") {|f|
|
|
11
|
+
File.open(file,"r") {|f| MessageUnpack.unpack(f.read()) }
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def self.get_extension
|
|
15
|
-
return ".
|
|
15
|
+
return ".mpack"
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ytterb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.160.214302
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thext
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-06-
|
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -88,6 +88,7 @@ extra_rdoc_files: []
|
|
|
88
88
|
files:
|
|
89
89
|
- ".gitignore"
|
|
90
90
|
- ".rspec"
|
|
91
|
+
- ".travis.yml"
|
|
91
92
|
- Gemfile
|
|
92
93
|
- LICENSE
|
|
93
94
|
- README.md
|
|
@@ -96,8 +97,6 @@ files:
|
|
|
96
97
|
- lib/ytterb/.cache/cached_symbol_data/.keepme
|
|
97
98
|
- lib/ytterb/.cache/cached_symbol_data/clean.sh
|
|
98
99
|
- lib/ytterb/.cache/cached_symbol_data/nuke.sh
|
|
99
|
-
- lib/ytterb/.cache/local_settings/settings.yaml
|
|
100
|
-
- lib/ytterb/.cache/local_settings/settings/.yaml
|
|
101
100
|
- lib/ytterb/.cache/raw_symbol_data/companylist_amex.csv
|
|
102
101
|
- lib/ytterb/.cache/raw_symbol_data/companylist_nasdaq.csv
|
|
103
102
|
- lib/ytterb/.cache/raw_symbol_data/companylist_nyse.csv
|