youtrack 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/youtrack/resources/issue.rb +7 -1
- data/lib/youtrack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ae16faa99c26d4d859147855d9aca12d6b33c7c
|
4
|
+
data.tar.gz: 6d0b74bf5feb58aec3520338fdfd98d78706e5a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c7b6d37c7eb1d035a6e3a4960816980bbc73da74c6b869199fe77804143e54249f77939e3edbf555af2ea30c8271c02ce8625af97715188724adc519ec2178
|
7
|
+
data.tar.gz: 26aa99ba52b728ef4d77ff4f75dcc9f17326be6a3c752b5e67eb6edaa10fda8b70977dc23debc68453d3d9bdebc3ac72915014eea2ef8384948de5af565abd21
|
data/README.md
CHANGED
@@ -27,10 +27,21 @@ client = Youtrack::Client.new do |c|
|
|
27
27
|
c.url = "https://example.com"
|
28
28
|
c.login = "root"
|
29
29
|
c.password = "root"
|
30
|
+
|
31
|
+
# Hook into the Net::HTTP set_debug_output method for debugging HTTP Request/Response Cycles
|
32
|
+
c.debug = true
|
30
33
|
end
|
31
34
|
|
35
|
+
# Now connect to the server
|
36
|
+
# It sets the Cookies and returns the Connection response status code
|
37
|
+
client.connect!
|
38
|
+
|
32
39
|
```
|
33
40
|
|
41
|
+
## Examples
|
42
|
+
|
43
|
+
To get a feel for the API browse the [examples directory](https://github.com/jwaterfaucett/youtrack/tree/master/examples).
|
44
|
+
|
34
45
|
## Issues
|
35
46
|
|
36
47
|
Any issues or bugs should be well documented submit as many details as possible.
|
@@ -15,8 +15,14 @@ module Youtrack
|
|
15
15
|
# description string Description for the new issue.
|
16
16
|
# attachments file in "multipart/form-data" format One or several files in "multipart/form-data" format that should be attached to the new issue.
|
17
17
|
# permittedGroup string Set visibility for the new issue, that is: Specify a user group to which the issue will be visible.
|
18
|
+
#
|
19
|
+
# Hack: the body has to be set to empty so that HTTParty sends a Content-Length header, which Youtrack requires
|
20
|
+
#
|
21
|
+
# API-Success: Returns a 201 created wit hthe location header set
|
22
|
+
#
|
23
|
+
# Returns the response object
|
18
24
|
def create(attributes={})
|
19
|
-
put("issue", query: attributes)
|
25
|
+
put("issue", query: attributes, body: {})
|
20
26
|
response
|
21
27
|
end
|
22
28
|
|
data/lib/youtrack/version.rb
CHANGED