timetree 0.1.0 → 0.1.1

This diff has not been reviewed by any users.
Log in in order to be able to vote.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6acdee0d0822340b25b56705ae9ffb72e031a831c44755b87004471bb015c65
4
- data.tar.gz: cf2be6cc1d35cdb59d686b6caed4fd967919369eafceb3867bd0cf5f0459d37a
3
+ metadata.gz: e2dae80734f5e01b46019848d001a7e7b0033c0e994be55bb6ecffc55a3db52e
4
+ data.tar.gz: aea19d34752f6b3e54787aa591cba2dd6b0792e22f59072910a41db919387002
5
5
  SHA512:
6
- metadata.gz: f10a43690969abeae928366c13face88ed28fd3507e6fcd1b708e8bca0d61bc7772dbeaf9d9bff92d3bd24ac55e122aa5a6d84595aa7f8aa312581f682b8d491
7
- data.tar.gz: 91a90869f53fde95f56cd7d0f987d7b376fb5db7ddcff15cbf86b66e1b6bedf90110f158ec4a9eb8b0893934d825c07af1a73f24e8f460f5488fe331fc7682af
6
+ metadata.gz: c1cd756a8842af55f31f2b1e02c424ad07f05a002aa7428319146448000b5b89a53f59ca5c30656f52b2c8e3819bfcfbac62933595afcd9169ace00f587d045c
7
+ data.tar.gz: 8a3d6e2fe00a922ad000eeaaa4e623f037c1fa587b3f2199cf2fd87d31bb7c856248829de5c8161af9c703c21ea92d52b5c28b63517c918bedc818565bffd992
@@ -1,3 +1,14 @@
1
+ # 0.1.1
2
+
3
+ - set current version on this gem's documentation_uri.
4
+ - fixed typo on README.
5
+
6
+ # 0.1.0
7
+
8
+ - did refactor and wrote comments.
9
+ - started to use zeitwerk.
10
+ - wrote README.
11
+
1
12
  # 0.0.1
2
13
 
3
14
  - Initial release
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Simple TimeTree apis client
1
+ # Simple TimeTree APIs client
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/timetree.svg)](http://badge.fury.io/rb/timetree)
4
4
 
@@ -24,61 +24,60 @@ Or install it yourself as:
24
24
 
25
25
  ## Usage
26
26
 
27
- The Api client needs access token.
28
- Set `access_token` to the value you got by above:
27
+ The APIs client needs access token.
28
+ Set a `token` variable to the value you got by above:
29
29
 
30
30
  ```ruby
31
- # using configure
31
+ # set token by TimeTree.configure methods.
32
32
  TimeTree.configure do |config|
33
33
  config.token = '<YOUR_ACCESS_TOKEN>'
34
34
  end
35
35
  client = TimeTree::Client.new
36
36
 
37
- # using initializer
37
+ # set token by TimeTree::Client initializer.
38
38
  client = TimeTree::Client.new('<YOUR_ACCESS_TOKEN>')
39
39
 
40
- # get a current user's information
40
+ # get a current user's information.
41
41
  user = client.current_user
42
42
  => #<TimeTree::User id:xxx_u001>
43
43
  user.name
44
- => "USER Name 001"
44
+ => "USER Name"
45
45
 
46
- # get current user's calendars
46
+ # get current user's calendars.
47
47
  cals = client.calendars
48
48
  => [#<TimeTree::Calendar id:xxx_cal001>, #<TimeTree::Calendar id:xxx_cal002>, ...]
49
-
50
49
  cal = cals.first
51
50
  cal.name
52
- => "Calendar Name 001"
51
+ => "Calendar Name"
53
52
 
54
- # get upcoming events on the calendar
53
+ # get upcoming events on the calendar.
55
54
  evs = cal.upcoming_events
56
55
  => [#<TimeTree::Event id:xxx_ev001>, #<TimeTree::Event id:xxx_ev002>, ...]
57
56
  ev = evs.first
58
57
  ev.title
59
- => "Event Name 001"
58
+ => "Event Title"
60
59
 
61
- # updates an event
60
+ # updates an event.
62
61
  ev.title += ' Updated'
63
62
  ev.start_at = Time.parse('2020-06-20 09:00 +09:00')
64
63
  ev.end_at = Time.parse('2020-06-20 10:00 +09:00')
65
64
  ev.update
66
65
  => #<TimeTree::Event id:xxx_ev001>
67
66
 
68
- # creates an event
67
+ # creates an event.
69
68
  copy_ev = ev.dup
70
69
  new_ev = copy_ev.create
71
- => #<TimeTree::Event id:xxx_newev001>
70
+ => #<TimeTree::Event id:xxx_new_ev001>
72
71
 
73
- # deletes an event
72
+ # deletes an event.
74
73
  ev.delete
75
74
  => true
76
75
 
77
- # creates comment to an event
78
- ev.create_comment 'HOGE HOGE message.'
76
+ # creates a comment to an event.
77
+ ev.create_comment 'Hi there!'
79
78
  => #<TimeTree::Activity id:xxx_act001>
80
79
 
81
- # check apis error response
80
+ # handles APIs error.
82
81
  begin
83
82
  ev.delete
84
83
  ev.delete # 404 Error occured.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TimeTree
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = 'https://github.com/koshilife/timetree-api-ruby-client'
19
19
  spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/master/CHANGELOG.md"
20
- spec.metadata['documentation_uri'] = 'https://www.rubydoc.info/gems/timetree/'
20
+ spec.metadata['documentation_uri'] = "https://www.rubydoc.info/gems/timetree/#{spec.version}"
21
21
 
22
22
  # Specify which files should be added to the gem when it is released.
23
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timetree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Koshikawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -160,7 +160,7 @@ metadata:
160
160
  homepage_uri: https://github.com/koshilife/timetree-api-ruby-client
161
161
  source_code_uri: https://github.com/koshilife/timetree-api-ruby-client
162
162
  changelog_uri: https://github.com/koshilife/timetree-api-ruby-client/blob/master/CHANGELOG.md
163
- documentation_uri: https://www.rubydoc.info/gems/timetree/
163
+ documentation_uri: https://www.rubydoc.info/gems/timetree/0.1.1
164
164
  post_install_message:
165
165
  rdoc_options: []
166
166
  require_paths: