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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34b0cfe1c85c133c97760e028aa473f91b6cc488
4
- data.tar.gz: 572a1ca3ceb3344a48f942c2bad07eca3e6927ee
3
+ metadata.gz: 1ae16faa99c26d4d859147855d9aca12d6b33c7c
4
+ data.tar.gz: 6d0b74bf5feb58aec3520338fdfd98d78706e5a5
5
5
  SHA512:
6
- metadata.gz: 63ea5521cde76e24d6e797cf472384fb6ad64fa3d0a3e0ac6f3c3fd6f676090773b6200c4a1c926651b21c30f4b2899f3cd3cead6224c8618c9b30464c707c47
7
- data.tar.gz: 517d918c6111abb1e4f25b90a386487008034b7074fef3da85d49b2b0b20326e689e6696c9e78cab9837eb2f583d8b247fa993345883df0f14302db017511edf
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
 
@@ -1,3 +1,3 @@
1
1
  module Youtrack
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Faucett