my_chartkick 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: d965ea3f46cbc952e92745e17ceb9fd3b495749e
4
- data.tar.gz: 9bf11e7b7204a63ed00c8e679d5e5585dc015517
3
+ metadata.gz: '00946030a653d23697ffed1af871539d5a59f19e'
4
+ data.tar.gz: f05ece2a42e039d54458b549e89bc747ee5c2aaa
5
5
  SHA512:
6
- metadata.gz: 657a23ac3a345ca26a0f962de82842ddbbe319bff24150effa39b9bd26d9c2b2ff619f015fd9b23864b396ddda1553367df09c353bf001a206b8c3c427fc6483
7
- data.tar.gz: 7a8d19a8e14bfbcac9947b556fafcbaf9ee84919b8ca9f219d0ec6f6da68ed1ca9327334c693e88e84bdf6b57544a5b2fdb67986393dc221e14dfc4108d1e074
6
+ metadata.gz: 4d580eff20d00f085f85e619908bc5279b9067bf8652088547fc6cef63a94b62f24bd2b245937f0ddd5e3937b090f6fa774df2fea30670e8bbe4590539251877
7
+ data.tar.gz: f5bccf27b7f3ba82963532adf5e2ade62906145b62d534578237bd1a4ff6b9f78e402e82f6c611d727fd0bcd623108e3a6e8e5288d6a49dc528ee6b17bf7ed90
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # MyChartkick
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/my_chartkick`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A Chartkick wrapper works with non-activerecord
6
4
 
7
5
  ## Installation
8
6
 
data/lib/my_chartkick.rb CHANGED
@@ -19,9 +19,10 @@ module MyChartkick
19
19
  data_set = DataSet.create data, opt
20
20
  colorize! data_set, opt
21
21
  merge_default_opt! opt
22
+ title = opt.delete :title
22
23
  chart_block = send helper, data_set, opt
23
- return chart_block unless opt[:title]
24
- title_block(opt[:title]) + chart_block
24
+ return chart_block unless title
25
+ title_block(title) + chart_block
25
26
  end
26
27
  end
27
28
 
@@ -1,3 +1,3 @@
1
1
  module MyChartkick
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_chartkick
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-04-05 00:00:00.000000000 Z
11
+ date: 2017-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.5.2
139
+ rubygems_version: 2.6.8
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A Chartkick wrapper works with non-activerecord