ruby宝石区块链最新消息_Ruby宝石| Ruby工具

ruby宝石区块链最新消息

Ruby宝石 (Ruby Gems)

Every language has its package manager which helps it by providing libraries and a standard format to distribute Ruby program. It is a type of tool which is developed to easily facilitate the installation of Gems. The command-line tool is the interface used by Ruby gems which provide service in installing and managing libraries.

每种语言都有其包管理器,可通过提供库和标准格式来分发Ruby程序来帮助它。 它是一种开发用于轻松安装Gems的工具。 命令行工具是Ruby gem使用的界面,可在安装和管理库时提供服务。

宝石的结构 (Structure of Gems)

Every gem is identical by a version, platform and obviously, a name. The architecture of CPU, Type of Operating System and version are few of the factors which decide the working criteria of Gem.

每个宝石在版本,平台和名称上都是相同的。 CPU的体系结构,操作系统的类型和版本是决定Gem工作标准的因素很少。

Each gem comprises of:

每个宝石包括:

  • Documentation

    文献资料

  • Code

  • Gemspec i.e. Gem specification

    Gemspec,即Gem规范

The organisation of code follows the structure which is mentioned below:

代码的组织遵循以下结构:

Ruby Gems | Ruby Tools

Now let us understand each term in a single line.

现在让我们在一行中了解每个术语。

  • The bin directory contains the binary file.

    bin目录包含二进制文件。

  • The code for the gem is being stored by lib directory.

    gem的代码由lib目录存储。

  • The testing is conducted by the test directory.

    测试由测试目录执行。

  • Generation of code and automation of test id done by Rake which used Rakefile.

    使用Rakefile的Rake完成代码的生成和测试ID的自动化。

  • README simply comprises documentation for most of the gems.

    自述文件仅包含大多数宝石的文档。

  • Information like the purpose of the gem, the time gem was created, author gem belongs to, is contained by Gem specification also known as gemspec.

    诸如宝石的目的,宝石的创建时间,作者的宝石所属之类的信息包含在宝石规范(也称为gemspec)中。

使用宝石 (Using Gems)

Gem contains files to install along with package information. The practice of building gems directly is known as Rake. The gems are generally built from ".gemspec" files. Let us understand the following gem commands for various purposes listed below:

宝石包含要安装的文件以及软件包信息。 直接建造宝石的做法被称为 。 宝石通常是从“ .gemspec”文件构建的。 让我们了解以下出于各种目的列出的gem命令:

For installation, type the following in the terminal,

要进行安装,请在终端中键入以下内容:

 gem install mygem

For uninstallation, use the following command,

要卸载,请使用以下命令,

 gem uninstall mygem

For listing installed gems, type the following,

要列出已安装的宝石,请键入以下内容,

 gem list

For listing available gem, write the following,

要列出可用的宝石,请输入以下内容:

 gem list -r

In order to create RDoc documentation for all gems, type the following,

为了为所有gem创建RDoc文档,请键入以下内容,

 gem rdoc -all

For adding a trusted certificate, type the following command,

要添加受信任的证书,请键入以下命令,

 gem cert -a

If you want to download but you do not want to install the downloaded gem at that instant, for meeting that purpose type the following,

如果您要下载但不想在那一刻安装已下载的gem,为达到该目的,请键入以下内容,

 gem fetch mygem

If you want to search the gems which are available for use, type the following command,

如果要搜索可用的宝石,请键入以下命令,

 gem search (STRING)  --remote

We have got a gem command which is available to provide help in building and maintaining ".gemspec" or ".gem" files. This process is known by the name of package building. If you want to build a .gem file from .gemspec file, use the following command on the gem terminal,

我们有一个gem命令,该命令可用来帮助构建和维护“ .gemspec”“ .gem”文件。 此过程称为打包构建的名称。 如果你想从.gemspec文件建立一个.gem文件,宝石终端上使用以下命令,

 gem build (gem_name).gemspec 

翻译自: https://www.includehelp.com/ruby/gems-ruby-tools.aspx

ruby宝石区块链最新消息

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/543748.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

CMake入门(二)

CMake入门(二) 最后更新日期:2014-04-25 by kagula 阅读前提:《CMake入门(一)》、Linux的基本操作 环境: Windows 8.1 64bit英文版。Visual Studio 203 Update1英文版。CMake 2.8.12.2、 Cent OS 6.5。内容…

Scala中的评论

Scala评论 (Scala comments) Comments are things that are readable by the programmer. They are added to the code to add an explanation about the source code. Commenting on a program to make it easier to understand by the programmer. 注释是程序员可以读取的东西…

最小生成树prim (c++ 已大改)

2019独角兽企业重金招聘Python工程师标准>>> #include <iostream> #include <vector> #include <set> #include <map> #include <initializer_list> #include <memory> template<typename T> class Graph{private:std::m…

assoc_Ruby assoc()函数

assocRuby中的assoc()函数 (assoc() function in Ruby) We have studied functions to process single dimensional array so far but if we talk about assoc() function, it does not work for single dimensional arrays. assoc() function only works on Array of Arrays o…

前端接入HTTP协议浅析

【摘要】&#xff1a;本文整理并简要分析了HTTP协议的交互过程和内容格式&#xff0c;包括HTTP请求、HTTP应答的头域和实体内容&#xff0c;HTTP 1.0与HTTP 1.1的差异&#xff0c;并举例说明了Chunked编码的工作过程原理。1、HTTP协议简介浏览器和Web服务器之间一问一答的交互过…

互联网传真 传真指令_传真的完整形式是什么?

互联网传真 传真指令传真&#xff1a;传真 (FAX: Facsimile) FAX is an abbreviation of "Facsimile". 传真是“传真”的缩写 。 It is commonly written and spoken as FAX. It is a telephonic transmission of a scanned copy of text and images printed on a p…

C#使用七牛云存储上传下载文件、自定义回调

项目需要将音视频文件上传服务器&#xff0c;考虑并发要求高&#xff0c;通过七牛来实现。 做了一个简易的压力测试&#xff0c;同时上传多个文件&#xff0c;七牛自己应该有队列处理并发请求&#xff0c;我无论同时提交多少个文件&#xff0c;七牛是批量一个个排队处理了。 一…

netfilter que_QUE的完整形式是什么?

netfilter que问题&#xff1a;问题 (QUE: Questions) QUE is an abbreviation of "Questions". QUE是“ Questions”的缩写 。 It is an expression, which is commonly used in the Gmail platform. It is written in the body or the subject of the email to te…

mysqld_multi stop 不能停掉mysql

使用mysqld_multi start 启动了多个mysql&#xff0c;但是mysqld_multi stop 却不能停止原因&#xff1a;因为你还没有授权/usr/local/mysql/bin/mysqld_multi stop 但是默认是停不掉的&#xff0c;需要我们做一个授权grant shutdown on *.* to usernamelocalhost identified…

热冗余冷冗余_冗余支架

热冗余冷冗余Problem statement: 问题陈述&#xff1a; Given a string of balanced expression, find if it contains a redundant parenthesis or not. A set of parentheses is redundant if the same sub-expression is surrounded by unnecessary or multiple brackets. …

对称树

Problem statement: 问题陈述&#xff1a; Given a binary Tree, check whether the tree is symmetric or not. 给定二叉树 &#xff0c; 检查树是否对称 。 Input Example: 输入示例&#xff1a; For example1/ \2 2/ \ / \3 4 4 3The above tree is symmetric1/ \2 …

unity, undo

如果在操作一个Object之前调用Undo.RecordObject(Object)&#xff0c;且操作确实造成Object某些属性的改变&#xff0c;则会产生一个undo记录。 如果我们的架构不是直接操作Object&#xff0c;而是操作一个ui&#xff0c;并在某些时机通过ui.save(Object)将数据回写到Object&am…

ajax应用_AJAX的应用

ajax应用AJAX has several benefits that can be utilized inside a web application. In this article, well explore some advantages of AJAX and see some of its applications. AJAX具有可在Web应用程序内部使用的多个优点。 在本文中&#xff0c;我们将探讨AJAX的一些优势…

Linux下DRBD配置

一、什么是DRBD1、简介 Distributed Replicated Block Device(DRBD)是一个用软件实现的、无共享的、服务器之间镜像块设备内容的存储复制解决方案。数据镜像&#xff1a;实时、透明、同步&#xff08;所有服务器都成功后返回&#xff09;、异步&#xff08;本地服务器成功后返回…

键盘特殊_特殊键盘

键盘特殊Problem statement: 问题陈述&#xff1a; Imagine you have a special keyboard with four types of keys: 想象一下&#xff0c;您有一个特殊的键盘&#xff0c;其中包含四种类型的键&#xff1a; Key 1: Prints I on screen 按键1&#xff1a;在屏幕上打印“ I”…

【C++入门】简单的日期类操作

//--------------------------------------------------------------------------/***名称&#xff1a;日期的简单操作******类函数&#xff1a;构造函数&#xff0c;拷贝构造函数&#xff0c;析构函数&#xff0c;操作符重载函数****日期类操作函数&#xff1a; 1&#xff1a;…

Scala山脉

Scala Range Scala山脉 A Range is a bounded series with a uniform interval with an upper and lower limit. The range literal is a numerical sequence of number ranging with a certain limit. 范围是一个有上限且下限均匀的有界序列。 范围文字是具有一定限制的范围…

黑客经验谈:跳板攻击入侵技术实例解析

网络入侵&#xff0c;安全第一,一个高明的入侵者&#xff0c;不会冒然实行动. 他们在入侵时前会做足功课&#xff0c;入侵时会通过各种技术手段保护自己&#xff0c;以防被对方发现&#xff0c;引火烧身. 其中&#xff0c;跳板技术是攻击者通常采用的技术. 下面笔者结合实例&am…

dom属性和html属性_HTML属性

dom属性和html属性Attributes are used to provide additional information of a tag such as it’s alignments, color, size of the text and other. The attributes are given with the tag that is between the angular brackets after the tag name. The attributes have …

科普:UTF-8 GBK UTF8 GB2312 之间的区别和关系

UTF-8&#xff1a;Unicode TransformationFormat-8bit&#xff0c;允许含BOM&#xff0c;但通常不含BOM。是用以解决国际上字符的一种多字节编码&#xff0c;它对英文使用8位&#xff08;即一个字节&#xff09;&#xff0c;中文使用24为&#xff08;三个字节&#xff09;来编码…