Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby wrapper around YouTrack REST api
Ruby
branch: master

This branch is 17 commits ahead of jdhuntington:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
youtrack-rest-ruby-library.gemspec

README.md

YouTrack Rest Ruby Library

Ruby wrapper around YouTrack REST api

Usage

Now exists two ways to config a Connection, the first form such as below:

require 'rubygems'
require 'youtrack_api'

YouTrackAPI::Connection.login = "<login>"
YouTrackAPI::Connection.password = "<password>"
YouTrackAPI::Connection.youtrack_url = "http://<your_account>.myjetbrains.com/youtrack"

YouTrackAPI::Connection.authenticate!

projects = YouTrack::Project.all

projects.each do |p|
  puts p.name
end

And the second (new) form:

require 'rubygems'
require 'youtrack_api'
require 'yaml'

YouTrackAPI::Connection.load_config(YAML.load(File.open('youtrack.yml')))

YouTrackAPI::Connection.authenticate!

projects = YouTrack::Project.all

projects.each do |p|
  puts p.name
end

Additionally that form the youtrack.yml with config must be in that form:

youtrack_url: http://<your_account>.myjetbrains.com/youtrack
login: <login>
password: <password>
Something went wrong with that request. Please try again.