yinx_st 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yinx_st/version.rb +1 -1
- data/lib/yinx_st.rb +6 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91b14bf4ca30477ec819c66bc87867798d178d04
|
4
|
+
data.tar.gz: cec528a451a3d023f22b017fef0da54347e7033b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0d6edf2393009286caf3a6faa7742f7aa10726e483c0206660df16c0f2acfa01136bf5ab57e854beb706dfa1c610b7162d93606993b4a577e41676cb7d4f6a
|
7
|
+
data.tar.gz: 49ac8e7ed3bccea336f62e62dd4f23a6aa1556566a535c29d438975edf2c5dd70de4386333ba252ff1ed7d8f9ab4741255cc044a2b898326027c141e80937c31
|
data/lib/yinx_st/version.rb
CHANGED
data/lib/yinx_st.rb
CHANGED
@@ -18,7 +18,7 @@ module YinxSt
|
|
18
18
|
batches = Batches.new n
|
19
19
|
duration = "最近#{n}日"
|
20
20
|
|
21
|
-
chart = MyChart.js do
|
21
|
+
@chart = MyChart.js do
|
22
22
|
material batches.all_notes
|
23
23
|
material batches.unwind_tags, name: :unwind_tags
|
24
24
|
|
@@ -70,12 +70,13 @@ module YinxSt
|
|
70
70
|
|
71
71
|
end
|
72
72
|
|
73
|
-
|
74
|
-
|
73
|
+
self
|
75
74
|
end
|
76
75
|
|
77
|
-
|
78
|
-
|
76
|
+
attr_reader :chart
|
77
|
+
|
78
|
+
def generate_html(erb_file=File.expand_path('../yinx_st/chart.erb', __FILE__))
|
79
|
+
template = File.read erb_file
|
79
80
|
html = ERB.new(template).result(binding)
|
80
81
|
end
|
81
82
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yinx_st
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.6.8
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Statistics for yinx_sql
|