wunderlist-api 0.2.0 → 0.2.5

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: 2cb26a53734f6da2a78ca6e1bea9ad6e06524294
4
- data.tar.gz: fdc465df2c575bfc46a88d7d64eeb9183a39d196
3
+ metadata.gz: b6e8c4e044c6a77e24bb1403f1b1b44d494f5a72
4
+ data.tar.gz: 3f08269f1b0c35b0b6d0325e3dce265e7ea4a205
5
5
  SHA512:
6
- metadata.gz: 187c9c38c9bec96678f979d1981003943bf19f955ab8065af3d6690d6f807124e761276ca2c701ab67352306b2c2a2de3b1e383404cd5e75009d4c8629c811b6
7
- data.tar.gz: 21a12f8d4f6364d223e3e5f03dc4e19c9f6936845c025674061dc358b2af9ce705a851e0d857aa77aeb2bb2847a9033c5ccd94004b60ae9f9ebfce8aa1ca7687
6
+ metadata.gz: 12c1ba6b8283fefab1b2360f6cffceffd32f5c46ef794016d4ba7d30aa4701eb650fa5875cd52eb2a6d79ad2a8482e40ef31e20456c1e6fa70c9a26e092c4c1c
7
+ data.tar.gz: 7f9356c2259177a18554889f462d5028e1c445df9e43340121d2f36ef53598404411cf4a96e06a80e076d1292dd416c2c0d4f9b46f3592f7a2574d088a5e59d5
@@ -38,7 +38,7 @@ module Wunderlist
38
38
  private
39
39
 
40
40
  def get_plural_model_name
41
- self.class.to_s.gsub('Wunderlist::','').downcase.pluralize
41
+ self.class.to_s.gsub('Wunderlist::','').tableize
42
42
  end
43
43
 
44
44
  end
@@ -37,6 +37,16 @@ module Wunderlist
37
37
 
38
38
  end
39
39
 
40
+ def new_task_comment(attrs = {})
41
+ attrs.stringify_keys
42
+ t_c = Wunderlist::TaskComment.new(attrs)
43
+ t_c.api = self.api
44
+ t_c.task_id = self.id
45
+
46
+ t_c
47
+
48
+ end
49
+
40
50
  def note
41
51
  res = self.api.request :get, 'api/v1/notes', {:task_id => self.id}
42
52
  if !res[0].nil?
@@ -5,7 +5,7 @@ module Wunderlist
5
5
 
6
6
  include Wunderlist::Helper
7
7
 
8
- attr_accessor :text, :type, :id, :task_id, :revision, :created_at
8
+ attr_accessor :text, :type, :id, :api, :task_id, :revision, :created_at
9
9
 
10
10
  def initialize(options = {})
11
11
  @api = options['api']
@@ -1,3 +1,3 @@
1
1
  module Wunderlist
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wunderlist-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - shun3475