zan_tools 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: b433c97caefb8d9cb0cf35ff8f32ada3677d6cdab08bbc26eaaf0135f3a04229
4
- data.tar.gz: 937dc277b1d5f842d316f6ccbd648d3c9b5c8e5d41db0f82fd419ffb0dcadc99
3
+ metadata.gz: 773dd788ce7fe090d927b4c2382aa90b919de8b8e87c948ac6c10c8ebf4aabb9
4
+ data.tar.gz: b96e41c83cdffaf83efc2a228e19168f4006024c61737a8bc6023657336d2bb2
5
5
  SHA512:
6
- metadata.gz: 6e5d2ac5cde35a010c4d9d687d028892b6f5f6e39c054a7cdf94521d902d76617b526497dfb61cede496bdfc1230e1a04172cc7e3852610bc63f049c0caee67e
7
- data.tar.gz: b86e356de92e63d0a34e1c248bf2abcfd4e50558000f02fb86ef292d666af5a07c6735b23e871b6be85ab5828b0950c9c0ddf66dca98924ace5cb5a60543814e
6
+ metadata.gz: 3871144e1d71c6e5acff9f4b81bca111afab61ec5a8433b6c253921c3983735522c11754bd05ceb704a2139510c1f891f39d00fe6e08607f08b7ccc783a47dc3
7
+ data.tar.gz: 36e001a58f93d2e78c9a578ebd9e4f6edee61eac68b2330f240f4b034034fd9a0bec5af0d1a5607e9b5db8f1c7b0f7d27d52d0dfade04fc5aee4918976f7dafd
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # ZanTools
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/zan_tools`. 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
6
3
 
7
4
  ## Installation
8
5
 
data/exe/zan_tools CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
3
  require 'zan_tools/command'
5
4
 
6
5
  ZanTools::Command.new.parse!
@@ -37,6 +37,8 @@ module ZanTools
37
37
 
38
38
  def field(name, conf = {})
39
39
  fields[name.to_s] = {'type'=>'String'}.merge(Hash[conf.map{|k, v| [k.to_s, v]}])
40
+ fields[name.to_s]['type'] = fields[name.to_s]['type'].to_s.upper_camel
41
+ fields[name.to_s]
40
42
  end
41
43
  end
42
44
 
@@ -1,3 +1,3 @@
1
1
  module ZanTools
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/zan_tools.rb CHANGED
@@ -2,5 +2,4 @@ require "zan_tools/version"
2
2
 
3
3
  module ZanTools
4
4
  class Error < StandardError; end
5
- # Your code goes here...
6
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zan_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zigu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-06 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler