用于测量 gem 的 Rails 适配器,在 Ruby 和 Rails 中封装测量值及其单位_Ruby_代码_相关文件_下载

上传者: 38334677 | 上传时间: 2022-07-12 09:07:50 | 文件大小: 22KB | 文件类型: ZIP
这个 gem 是用于测量gem 的 Rails 集成。 它提供了 ActiveRecord 适配器,用于保存和检索测量值及其单位和模型验证。 用法 活动记录 列应具有_valueand_unit后缀,并且是DECIMALand VARCHAR,并且接受默认值。支持自定义用于保存单位的列,详细信息见下文。 更多详情、使用方法,请下载后阅读README.md文件

文件下载

资源详情

[{"title":"( 32 个子文件 22KB ) 用于测量 gem 的 Rails 适配器,在 Ruby 和 Rails 中封装测量值及其单位_Ruby_代码_相关文件_下载\n\n","children":[{"title":"measured-rails-main","children":[{"title":"Rakefile <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"ci.yml <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"validation_test.rb <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"test_helper.rb <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"support","children":[{"title":"models","children":[{"title":"validated_thing.rb <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"thing_with_custom_unit_accessor.rb <span style='color:#111;'> 614B </span>","children":null,"spread":false},{"title":"thing.rb <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"thing_with_custom_value_accessor.rb <span style='color:#111;'> 697B </span>","children":null,"spread":false}],"spread":true},{"title":"schema.rb <span style='color:#111;'> 6.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"active_record_test.rb <span style='color:#111;'> 15.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"gemfiles","children":[{"title":"rails-6.1.gemfile <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"rails-edge.gemfile <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"rails-7.0.gemfile <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"rails-5.2.gemfile <span style='color:#111;'> 73B </span>","children":null,"spread":false},{"title":"rails-6.0.gemfile <span style='color:#111;'> 73B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"measured-rails.gemspec <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"Gemfile <span style='color:#111;'> 52B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 134B </span>","children":null,"spread":false},{"title":"dev.yml <span style='color:#111;'> 307B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"measured","children":[{"title":"rails","children":[{"title":"validations.rb <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"base.rb <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"version.rb <span style='color:#111;'> 93B </span>","children":null,"spread":false},{"title":"active_record.rb <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"railtie.rb <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"units","children":[{"title":"volume.rb <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"length.rb <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"weight.rb <span style='color:#111;'> 345B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"measured-rails.rb <span style='color:#111;'> 175B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"shipit.rubygems.yml <span style='color:#111;'> 1B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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