togglv8 1.0.5 → 1.1.0

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: 22bb1bdda3a22f278bdf76e48502f61e7d912a33
4
- data.tar.gz: 0491588afd3dafa669ec03a96e2e67c06123c5ae
3
+ metadata.gz: 04a79328e6a07a58324e23cc86e3886bbb502d18
4
+ data.tar.gz: 5d3ef179fe12cda05f519915fb746ef0a8080fae
5
5
  SHA512:
6
- metadata.gz: 7c0d1955a24393a0dd861c06f3f3721630610569fa9a1c9eb376fc24d045929914b6fe042260b13443be2d6622843da21b82a1ba9a1fb0b4e5ad64a1a1a92037
7
- data.tar.gz: d2d0b75801710403184d2ac07e99faa407ce38bd3db5f37ee8a4406ac60bba8eb8b6895f1c30847d503a1a1b02e59075848169c1f05fbf6152128d75f139d351
6
+ metadata.gz: a3cdb34425ded4ff9496cb14948ea39d539db802cf07c664a29295d6b55a403034c98a4814470fa0f3e80126eed09d828d6e3f3308f022c8fa437839bff499eb
7
+ data.tar.gz: cec3ad2de4a51bcc5578ce64d8ea45abeadee7b8f43b7136059d959d64bde5811f08be4693b031d39f8388513114be74e7a793e93a5a3926227fde5ccf9b4470
@@ -1,4 +1,4 @@
1
1
  module TogglV8
2
2
  # :section:
3
- VERSION = "1.0.5"
3
+ VERSION = "1.1.0"
4
4
  end
@@ -36,6 +36,10 @@ module TogglV8
36
36
  get "workspaces/#{workspace_id}/tasks#{active}"
37
37
  end
38
38
 
39
+ def tags(workspace_id)
40
+ get "workspaces/#{workspace_id}/tags"
41
+ end
42
+
39
43
  def leave_workspace(workspace_id)
40
44
  delete "workspaces/#{workspace_id}/leave"
41
45
  end
@@ -24,6 +24,13 @@ describe 'Tags' do
24
24
  expect(@tag['notes']).to eq nil
25
25
  expect(@tag['wid']).to eq @workspace_id
26
26
  end
27
+
28
+ it 'returns tag associated with workspace_id' do
29
+ tags = @toggl.tags(@workspace_id)
30
+ expect(tags).not_to be_empty
31
+ expect(tags.first['name']).to eq 'new tag +1'
32
+ expect(tags.first['wid']).to eq @workspace_id
33
+ end
27
34
  end
28
35
 
29
36
  context 'updated tag' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: togglv8
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Kane