zoukankan      html  css  js  c++  java
  • jira4r:使用Ruby操作JIRA

    jira4r是一个用来操作JIRA 问题跟踪系统的Ruby库。
    安装需求 (Windows下):
    1. Ruby
    2. soap4r (gem install soap4r)
    3. jira4r (gem install jira4r)

    如果(irb中) require 'jira4r' 后会出现‘XML processor module not found’的抱错提示,其解决办法是(windows下面)打开C:\Ruby193\lib\ruby\gems\1.9.1\gems\soap4r-1.5.8\lib\xsd\xmlparser.rb, 其中66行的 c.downcase == name 改为 c.to_s.downcase == name

    Sample Code:

    # Use gem('soap4r') to ensure that this package is loaded instead of the default implementation 
    # contained in the ruby interpreter.
    gem('soap4r')
    gem('jira4r')
    require 'jira4r'
    
    # 2 = the version of the WSDL interface. At present, only v2 is supported
    # "http://jira.atlassian.com" = The Base for your JIRA installation
    # The module is named Jira4R, not only Jira
    jira = Jira4R::JiraTool.new(2, "http://jira.yourdomain.com")
    
    # Login to the JIRA
    jira.login("username", "password")
    
    # Get that project
    puts jira.getProjectByKey("XYZ").inspect
  • 相关阅读:
    Linux学习总结(18)——Linux使用init命令关机、重启、切换模式
    iOS autorelease使用详解
    iOS xib的使用详解
    iOS ASI--缓存
    iOS ASI--其他用法
    iOS ASI--管理多个请求
    iOS ASI--文件上传
    iOS ASI--文件下载
    iOS ASI--POST请求
    iOS ASI--GET请求
  • 原文地址:https://www.cnblogs.com/bluescorpio/p/2993307.html
Copyright © 2011-2022 走看看