casica 0.1.1 → 0.1.2

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: 6f316e388deb9a13a3b7ba94c3c0b98a2386c43f
4
- data.tar.gz: a4466781db3db1d2ade660fc4529634ddabeb3ae
3
+ metadata.gz: 4730ff4240480fc61fea7db4ca69c3404018ca70
4
+ data.tar.gz: 0e1c8216fd84076f07e4eb25a23692d67fe2ddf6
5
5
  SHA512:
6
- metadata.gz: 75e880d6fc989f2461f7267aca00e0feae20a136b6da6cdde0aa83b275d58de58f029082192c98fc740dd0194d1ce798e936c5785728138ae5d6d1e273c99f2a
7
- data.tar.gz: 3f17abb94f55b480d4ff84ae2fd87e8d110535207a4f1856995ad2a02d00a42d8b3528fbc9f30996cc265ce1946768a363a6c248bb86683d6591eaa4e13920c5
6
+ metadata.gz: 6a0ddf517dbefec237af3761c1c903d6dd1cecd39a062fe9c46c4a33c46ce14fc8714e3bd31fc73d11ff7245065fb4c1c6370561a12a0437de0b430ed73fbc38
7
+ data.tar.gz: db35d9dd072e578e3b799f5d3b90acfc0375bc64523f76dbcac71aa465cdbdd96f81d358c85893a82ba090d3db6b7599b87a5e0cf0246b9ebe1d1723105655d3
@@ -29,7 +29,7 @@ module Casica
29
29
  end
30
30
 
31
31
  def update_story_status(project_id:, from_status:, to_status:)
32
- api(:patch, "/projects/#{project_id}/stories/statuses", from_status: from_status, to_status: to_status)
32
+ api(:patch, "/projects/#{project_id}/stories/statuses", status: { from_status: from_status, to_status: to_status })
33
33
  end
34
34
 
35
35
  def create_task(project_id:, story_serial_num:, attributes: {})
@@ -45,13 +45,13 @@ module Casica
45
45
  end
46
46
 
47
47
  def update_task_status(project_id:, from_status:, to_status:)
48
- api(:patch, "/projects/#{project_id}/tasks/statuses", from_status: from_status, to_status: to_status)
48
+ api(:patch, "/projects/#{project_id}/tasks/statuses", status: { from_status: from_status, to_status: to_status })
49
49
  end
50
50
 
51
51
  private
52
52
 
53
- def api(method, path, *args)
54
- Casica::Response.new(request.send(:request, method, path, *args)).response
53
+ def api(method, path, args)
54
+ Casica::Response.new(request.send(:request, method, path, args)).response
55
55
  end
56
56
 
57
57
  def request
@@ -4,7 +4,7 @@ module Casica
4
4
  @token = token
5
5
  end
6
6
 
7
- def request(method, path, *args)
7
+ def request(method, path, args)
8
8
  connection.send(method, full_url(path), args, headers)
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Casica
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuta Igarashi