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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 004fb8c213bb456dc746437b13dbb0113463b431
4
- data.tar.gz: 2128ed59d4b2cf51141315e238393c79bd011ea1
3
+ metadata.gz: 91b14bf4ca30477ec819c66bc87867798d178d04
4
+ data.tar.gz: cec528a451a3d023f22b017fef0da54347e7033b
5
5
  SHA512:
6
- metadata.gz: 6c7526dc4ffddcca843b247ec75b7b1a275ea63c2e405c3007b5638efaeb3516463b7326e3eb55f0c1649c1d22cdffee2a0d91a25b33bfd08942361e54477867
7
- data.tar.gz: d11b7aeaaafa209855ae2e0a8b9f3b27ff6ebb6247a2b8a79adac139e8774ea7578cf09ef0fe559ccb74cb0cdc49a0f7af7b9bc3c269d86b4eb3cfae40796a90
6
+ metadata.gz: 2a0d6edf2393009286caf3a6faa7742f7aa10726e483c0206660df16c0f2acfa01136bf5ab57e854beb706dfa1c610b7162d93606993b4a577e41676cb7d4f6a
7
+ data.tar.gz: 49ac8e7ed3bccea336f62e62dd4f23a6aa1556566a535c29d438975edf2c5dd70de4386333ba252ff1ed7d8f9ab4741255cc044a2b898326027c141e80937c31
@@ -1,3 +1,3 @@
1
1
  module YinxSt
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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
- generate_html chart
74
-
73
+ self
75
74
  end
76
75
 
77
- def generate_html chart
78
- template = File.read File.expand_path('../yinx_st/chart.erb', __FILE__)
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.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-02-28 00:00:00.000000000 Z
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.5.2
153
+ rubygems_version: 2.6.8
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Statistics for yinx_sql