csv2hash:基于配置将 Csv 映射到 Hash 的库-源码

上传者: 42133969 | 上传时间: 2021-06-18 13:05:23 | 文件大小: 58KB | 文件类型: ZIP
Csv2Hash (特拉维斯CI) 它是一种用于验证 CSV 并将其映射到 Ruby 哈希的 DSL。 概括 定义数据的预期位置 样品 自动发现一般设置 [MAPPING] 以定义的精度验证单元格 映射中的自动发现位置功能 [COLLECTION] 集合的验证(常规 CSV) 收藏中的自动发现位置功能 结构验证规则 CSV 标头 解析器和配置 回复 配置 例外与否! 在BREAK_ON_FAILURE 模式下 在CSV 模式下 错误格式 样本 CSV数据 规则 错误 个人验证者规则 Yaml 配置文件加载器 类型转换 变化 升级 院子里的文件 贡献 安装 将此行添加到应用程序的 Gemfile 中: gem 'csv2hash' 然后执行: $ bundle 或者自己安装: $ gem install csv2hash 用法 解析基于规则,您应该为每个单元格定义规则

文件下载

资源详情

[{"title":"( 74 个子文件 58KB ) csv2hash:基于配置将 Csv 映射到 Hash 的库-源码","children":[{"title":"csv2hash-master","children":[{"title":".gitignore <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"UPGRADE.md <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"coverage","children":[{"title":".resultset.json.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":".rspec <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"csv2hash.gemspec <span style='color:#111;'> 979B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"launch_irb <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"load_rvm <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"generate_doc <span style='color:#111;'> 77B </span>","children":null,"spread":false}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":".yardoc","children":[{"title":"object_types <span style='color:#111;'> 5.04KB </span>","children":null,"spread":false},{"title":"objects","children":[{"title":"root.dat <span style='color:#111;'> 51.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"checksums <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"proxy_types <span style='color:#111;'> 4B </span>","children":null,"spread":false}],"spread":true},{"title":"CHANGELOG.md <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"spec","children":[{"title":"csv2hash","children":[{"title":"yaml_coercer_spec.rb <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"parser_spec.rb <span style='color:#111;'> 1011B </span>","children":null,"spread":false},{"title":"definition_spec.rb <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"structure_validator_spec.rb <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"validator","children":[{"title":"mapping_spec.rb <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"collection_spec.rb <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"parser","children":[{"title":"mapping_spec.rb <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"collection_spec.rb <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"yaml_loader_spec.rb <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"coniguration_spec.rb <span style='color:#111;'> 874B </span>","children":null,"spread":false},{"title":"type_coercer_spec.rb <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"validator_spec.rb <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"spec_helper.rb <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"generators","children":[{"title":"csv2hash","children":[{"title":"install_generator_spec.rb <span style='color:#111;'> 893B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"extra_validators","children":[{"title":"downcase_validator.rb <span style='color:#111;'> 195B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"csv2hash_spec.rb <span style='color:#111;'> 453B </span>","children":null,"spread":false},{"title":"generators_helper.rb <span style='color:#111;'> 172B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 16.32KB </span>","children":null,"spread":false},{"title":".coveralls.yml <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"config","children":[{"title":"rules.yml <span style='color:#111;'> 197B </span>","children":null,"spread":false},{"title":"rules.yml.erb <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"rules.extra_validator.yml.erb <span style='color:#111;'> 552B </span>","children":null,"spread":false},{"title":"example.csv <span style='color:#111;'> 127B </span>","children":null,"spread":false}],"spread":false},{"title":"lib","children":[{"title":"csv2hash","children":[{"title":"validator.rb <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false},{"title":"adapters","children":[{"title":"csv_adapter.rb <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"memory_adapter.rb <span style='color:#111;'> 251B </span>","children":null,"spread":false},{"title":"base.rb <span style='color:#111;'> 568B </span>","children":null,"spread":false},{"title":"abstract.rb <span style='color:#111;'> 133B </span>","children":null,"spread":false}],"spread":false},{"title":"structure_validator","children":[{"title":"min_columns.rb <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"max_columns.rb <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"deprecation.rb <span style='color:#111;'> 570B </span>","children":null,"spread":false}],"spread":false},{"title":"coercers","children":[{"title":"type_coercer.rb <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"yaml_coercer.rb <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"notifier.rb <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"validator","children":[{"title":"collection.rb <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"mapping.rb <span style='color:#111;'> 255B </span>","children":null,"spread":false}],"spread":false},{"title":"discover.rb <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"data_wrapper.rb <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"registry.rb <span style='color:#111;'> 228B </span>","children":null,"spread":false},{"title":"parser","children":[{"title":"collection.rb <span style='color:#111;'> 994B </span>","children":null,"spread":false},{"title":"mapping.rb <span style='color:#111;'> 824B </span>","children":null,"spread":false}],"spread":false},{"title":"configuration.rb <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"definition.rb <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"yaml_loader.rb <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"extra_validator.rb <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"csv_array.rb <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"version.rb <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"structure_validator.rb <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"errors.rb <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"railtie.rb <span style='color:#111;'> 76B </span>","children":null,"spread":false},{"title":"expectation.rb <span style='color:#111;'> 229B </span>","children":null,"spread":false},{"title":"parser.rb <span style='color:#111;'> 301B </span>","children":null,"spread":false},{"title":"cell.rb <span style='color:#111;'> 302B </span>","children":null,"spread":false}],"spread":false},{"title":"generators","children":[{"title":"csv2hash","children":[{"title":"install","children":[{"title":"templates","children":[{"title":"csh2hash.rb <span style='color:#111;'> 458B </span>","children":null,"spread":false}],"spread":false},{"title":"install_generator.rb <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"csv2hash.rb <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false}],"spread":false},{"title":"Gemfile <span style='color:#111;'> 241B </span>","children":null,"spread":false},{"title":"Rakefile <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"Gemfile.lock <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明