minered 0.0.5 → 0.0.6

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.
Files changed (3) hide show
  1. data/lib/minered.rb +10 -2
  2. data/minered.gemspec +1 -1
  3. metadata +1 -1
@@ -11,8 +11,16 @@ class Minered
11
11
  end
12
12
 
13
13
  def new_ticket(project_id, subject)
14
- issue = Minered::Issue.new(@host, @key, project_id, subject)
15
- get_response(issue)
14
+ response = Typhoeus.post(
15
+ "http://#{@host}/issues.xml?key=#{@key}",
16
+ body: {
17
+ issue: {
18
+ project_id: project_id,
19
+ subject: subject
20
+ }
21
+ }
22
+ )
23
+ get_response(response.body)
16
24
  end
17
25
 
18
26
  private
@@ -4,7 +4,7 @@ $:.push File.expand_path("../config", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "minered"
7
- s.version = '0.0.5'
7
+ s.version = '0.0.6'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Daniel Owen van Dommelen"]
10
10
  s.email = ["bunny.rabbit@igotish.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minered
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: