outlook_calendar 0.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bd913c1ef3123f172649b7f303641a663f9a1460
4
+ data.tar.gz: 27f4d8637453a431e4a00e2ea1688b24c9d3bc95
5
+ SHA512:
6
+ metadata.gz: 990363e468b358142c8c08faba4e4b3b779e41a9b4c34a2b2937a104586a80564c914bc07bd0a098c097c4116ff11bb37308f565927e841da87a641b61bd1794
7
+ data.tar.gz: 694665dad30614d1bc5c86c5322fb487ec5157f2a86625191ee74415cb01f97f4454415532452897bf385f4c083372807d94aece40f2189cd0c2e92b2df25568
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at hitendra1632@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in outlook_calendar.gemspec
6
+ gemspec
7
+ gem 'require_all'
8
+ gem 'byebug'
9
+ gem 'rest-client'
10
+ gem 'oauth2', '~> 1.4'
data/Gemfile.lock ADDED
@@ -0,0 +1,69 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ outlook_calendar (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ byebug (9.1.0)
10
+ diff-lcs (1.3)
11
+ domain_name (0.5.20170404)
12
+ unf (>= 0.0.5, < 1.0.0)
13
+ faraday (0.12.2)
14
+ multipart-post (>= 1.2, < 3)
15
+ http-cookie (1.0.3)
16
+ domain_name (~> 0.5)
17
+ jwt (1.5.6)
18
+ mime-types (3.1)
19
+ mime-types-data (~> 3.2015)
20
+ mime-types-data (3.2016.0521)
21
+ multi_json (1.13.1)
22
+ multi_xml (0.6.0)
23
+ multipart-post (2.0.0)
24
+ netrc (0.11.0)
25
+ oauth2 (1.4.0)
26
+ faraday (>= 0.8, < 0.13)
27
+ jwt (~> 1.0)
28
+ multi_json (~> 1.3)
29
+ multi_xml (~> 0.5)
30
+ rack (>= 1.2, < 3)
31
+ rack (2.0.3)
32
+ rake (10.5.0)
33
+ require_all (1.5.0)
34
+ rest-client (2.0.2)
35
+ http-cookie (>= 1.0.2, < 2.0)
36
+ mime-types (>= 1.16, < 4.0)
37
+ netrc (~> 0.8)
38
+ rspec (3.7.0)
39
+ rspec-core (~> 3.7.0)
40
+ rspec-expectations (~> 3.7.0)
41
+ rspec-mocks (~> 3.7.0)
42
+ rspec-core (3.7.1)
43
+ rspec-support (~> 3.7.0)
44
+ rspec-expectations (3.7.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.7.0)
47
+ rspec-mocks (3.7.0)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.7.0)
50
+ rspec-support (3.7.0)
51
+ unf (0.1.4)
52
+ unf_ext
53
+ unf_ext (0.0.7.4)
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ bundler (~> 1.16)
60
+ byebug
61
+ oauth2 (~> 1.4)
62
+ outlook_calendar!
63
+ rake (~> 10.0)
64
+ require_all
65
+ rest-client
66
+ rspec (~> 3.0)
67
+
68
+ BUNDLED WITH
69
+ 1.16.1
data/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # OutlookCalendar
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/outlook_calendar`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ A gem for outlook calendar connector
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'outlook_calendar'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install outlook_calendar
22
+
23
+ ## Usage
24
+
25
+ For getting a user access token call:
26
+ OutlookCalendar::AccessToken.new(code, app_id, app_secret_key, scope, redirect_uri).call
27
+
28
+ For getting a user refresh token
29
+ OutlookCalendar::RefreshToken.new(token, refresh_token, client_id, client_secret, redirect_uri).call
30
+
31
+ For getting a user calendar
32
+ OutlookCalendar::RefreshToken.new(token).call
33
+
34
+ For getting calendar based event
35
+ OutlookCalendar::RefreshToken.new(token, start_time, end_time, select, calendar_id).call
36
+
37
+ default value of select = 'Subject' but you can also pass your values.
38
+
39
+ For getting events
40
+ OutlookCalendar::RefreshToken.new(token, start_time, end_time, select).call
41
+
42
+ For creating a event
43
+ OutlookCalendar::CreateEvent.new(token, calendar_id, params, select).call
44
+ pass the select for response same like above
45
+ params = {title: '', start_time: '', end_time: '', timezone: '', content_type: '', content: '', Attendees: [{email: '', name: ''}]}
46
+
47
+ For deleting a event
48
+ OutlookCalendar::DeleteEvent.new(token, event_id).call
49
+
50
+
51
+ ## Development
52
+
53
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
54
+
55
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
56
+
57
+ ## Contributing
58
+
59
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Hitendra1632/outlook_calendar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
60
+
61
+ ## Code of Conduct
62
+
63
+ Everyone interacting in the OutlookCalendar project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Hitendra1632/outlook_calendar/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "outlook_calendar"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,34 @@
1
+ module OutlookCalendar
2
+ class Calenders
3
+ attr_reader :token
4
+
5
+ def initialize(token)
6
+ @token = token
7
+ end
8
+
9
+ def call
10
+ calenders
11
+ end
12
+
13
+ private
14
+
15
+ def calenders
16
+ ParseCalendarResponse.new(caller).call
17
+ end
18
+
19
+ def caller
20
+ RestCaller.new('get', url, headers).call
21
+ end
22
+
23
+ def headers
24
+ {
25
+ 'Authorization' => "Bearer #{token}",
26
+ 'Accept' => 'application/json'
27
+ }
28
+ end
29
+
30
+ def url
31
+ @url = 'https://outlook.office365.com/api/v2.0/me/calendars'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,56 @@
1
+ module OutlookCalendar
2
+ class ParseCalendarResponse
3
+ attr_reader :response
4
+
5
+ def initialize(response)
6
+ @response = response
7
+ end
8
+
9
+ def call
10
+ parse_response
11
+ end
12
+
13
+ private
14
+
15
+ def parse_response
16
+ attributes
17
+ end
18
+
19
+ def attributes
20
+ {
21
+ content: response['@odata.context'],
22
+ calendars: calendars
23
+ }
24
+ end
25
+
26
+ def values
27
+ response['value']
28
+ end
29
+
30
+ def calendars
31
+ calenders = []
32
+ values.to_a.each do |value|
33
+ calenders.push(calendar_attributes(value))
34
+ end
35
+ calenders
36
+ end
37
+
38
+ def calendar_attributes(value)
39
+ {
40
+ id: value['Id'],
41
+ url: value['@odata.id'],
42
+ name: value['Name'],
43
+ change_key: value['ChangeKey'],
44
+ color: value['Color'],
45
+ can_share: value['CanShare'],
46
+ can_view_private_items: value['CanViewPrivateItems'],
47
+ CanEdit: value['CanEdit'],
48
+ owner: owner(value['Owner'])
49
+ }
50
+ end
51
+
52
+ def owner(owner_value)
53
+ {name: owner_value['Name'], address: owner_value['Address']}
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,65 @@
1
+ module OutlookCalendar
2
+ class CreateEvent
3
+ attr_reader :token, :calendar_id, :params, :select
4
+
5
+ def initialize(token, calendar_id, params, select = {})
6
+ @token = token
7
+ @calendar_id = calendar_id
8
+ @params = params
9
+ @select = select
10
+ end
11
+
12
+ def call
13
+ create_event
14
+ end
15
+
16
+ private
17
+
18
+ def create_event
19
+ caller
20
+ end
21
+
22
+ def event_attributes
23
+ CreateEventParams.new(params).call
24
+ end
25
+
26
+ def caller
27
+ RestCaller.new('post', url, headers, event_attributes.to_json).call
28
+ end
29
+
30
+ def headers
31
+ {
32
+ 'Authorization' => "Bearer #{token}",
33
+ 'content-type' => 'application/json'
34
+ }
35
+ end
36
+
37
+ def calendar?
38
+ calendar_id.present?
39
+ end
40
+
41
+ def url
42
+ return create_calendar_event_url if calendar?
43
+ create_event_url
44
+ end
45
+
46
+ def select_params?
47
+ select.present?
48
+ end
49
+
50
+ def create_calendar_event_url
51
+ "https://outlook.office.com/api/v2.0/me/calendars/#{calendar_id}/events?#{select_attributes}" if select_params?
52
+ "https://outlook.office.com/api/v2.0/me/calendars/#{calendar_id}/events?"
53
+ end
54
+
55
+ def create_event_url
56
+ "https://outlook.office.com/api/v2.0/me/events?#{select_attributes}" if select_params?
57
+ 'https://outlook.office.com/api/v2.0/me/events?'
58
+ end
59
+
60
+ def select_attributes
61
+ "?$Select=#{select}"
62
+ end
63
+ end
64
+ end
65
+
@@ -0,0 +1,74 @@
1
+ module OutlookCalendar
2
+ class CreateEventParams
3
+ attr_reader :params
4
+
5
+ def initialize(params)
6
+ @params = params
7
+ end
8
+
9
+ def call
10
+ event_attributes
11
+ end
12
+
13
+ private
14
+
15
+ def event_attributes
16
+ {
17
+ Subject: params[:title],
18
+ Body: {
19
+ ContentType: params[:content_type],
20
+ Content: params[:content]
21
+ },
22
+ Start: {
23
+ DateTime: params[:start_time],
24
+ TimeZone: timezone
25
+ },
26
+ End: {
27
+ DateTime: params[:end_time],
28
+ TimeZone: timezone
29
+ },
30
+ Attendees: attendees
31
+ }
32
+ end
33
+
34
+ def timezone
35
+ return '' unless params[:content_type].present?
36
+ params[:timezone]
37
+ end
38
+
39
+ def content_type
40
+ return 'HTML' unless params[:content_type].present?
41
+ params[:content_type]
42
+ end
43
+
44
+ def content
45
+ return '' unless params[:content].present?
46
+ params[:content]
47
+ end
48
+
49
+ def type
50
+ return 'Required' unless params[:type].present?
51
+ params[:type]
52
+ end
53
+
54
+ def attendees
55
+ return [] unless params[:attendees].present?
56
+ attendees = []
57
+ params[:attendees].each do |attendee|
58
+ attendees.push(attendees_attributes(attendee))
59
+ end
60
+ end
61
+
62
+ def attendees_attributes(attendee)
63
+ {
64
+ EmailAddress: {
65
+ Address: attendee[:email],
66
+ Name: attendee[:name]
67
+ },
68
+ Type: 'Required'
69
+ }
70
+ end
71
+ end
72
+ end
73
+
74
+
@@ -0,0 +1,32 @@
1
+ module OutlookCalendar
2
+ class DeleteEvent
3
+ attr_reader :token, :event_id
4
+
5
+ def initialize(token, event_id)
6
+ @token = token
7
+ @event_id = event_id
8
+ end
9
+
10
+ def call
11
+ delete_event
12
+ end
13
+
14
+ private
15
+
16
+ def delete_event
17
+ caller
18
+ end
19
+
20
+ def caller
21
+ RestCaller.new('delete', url, headers).call
22
+ end
23
+
24
+ def headers
25
+ { 'Authorization' => "Bearer #{token}" }
26
+ end
27
+
28
+ def url
29
+ "https://outlook.office.com/api/v2.0/me/events/#{event_id}"
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,53 @@
1
+ module OutlookCalendar
2
+ class ParseEventResponse
3
+ attr_reader :response
4
+
5
+ def initialize(response)
6
+ @response = response
7
+ end
8
+
9
+ def call
10
+ parse_response
11
+ end
12
+
13
+ private
14
+
15
+ def parse_response
16
+ attributes
17
+ end
18
+
19
+ def attributes
20
+ {
21
+ content: response['@odata.context'],
22
+ events: events
23
+ }
24
+ end
25
+
26
+ def values
27
+ response['value']
28
+ end
29
+
30
+ def events
31
+ events = []
32
+ values.to_a.each do |value|
33
+ events.push(event_attributes(value))
34
+ end
35
+ events
36
+ end
37
+
38
+ def event_attributes(value)
39
+ {
40
+ id: value['Id'],
41
+ url: value['@odata.id'],
42
+ etag: value['@odata.etag'],
43
+ subject: value['Subject'],
44
+ start: parse_time(value['Start']),
45
+ end: parse_time(value['End'])
46
+ }
47
+ end
48
+
49
+ def parse_time(time_value)
50
+ {date_time: time_value['DateTime'], time_zone: time_value['TimeZone']}
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,44 @@
1
+ module OutlookCalendar
2
+ class UserEvents
3
+ attr_reader :token, :start_time, :end_time, :select, :calendar_id
4
+
5
+ def initialize(token, start_time, end_time, calendar_id = nil, select = 'Subject')
6
+ @token = token
7
+ @start_time = start_time
8
+ @end_time = end_time
9
+ @select = select
10
+ @calendar_id = calendar_id
11
+ end
12
+
13
+ def call
14
+ events
15
+ end
16
+
17
+ private
18
+
19
+ def events
20
+ ParseEventResponse.new(caller).call
21
+ end
22
+
23
+
24
+ def caller
25
+ RestCaller.new('get', url, headers).call
26
+ end
27
+
28
+ def headers
29
+ {
30
+ 'Authorization' => "Bearer #{token}",
31
+ 'Content-Type' => 'application/json'
32
+ }
33
+ end
34
+
35
+ def url
36
+ return "https://outlook.office.com/api/v2.0/me/calendars/#{calendar_id}/calendarview#{params}" if calendar_id.present?
37
+ "https://outlook.office.com/api/v2.0/me/calendarview#{params}"
38
+ end
39
+
40
+ def params
41
+ "?startDateTime=#{start_time}&endDateTime=#{end_time}&$select=#{select}"
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,39 @@
1
+ module OutlookCalendar
2
+ class RestCaller
3
+ attr_reader :method, :url, :headers, :params
4
+
5
+ def initialize(method, url, headers, params = {})
6
+ @method = method
7
+ @url = url
8
+ @headers = headers
9
+ @params = params
10
+ end
11
+
12
+ def call
13
+ parse_response
14
+ end
15
+
16
+ private
17
+
18
+ def parse_response
19
+ return nil unless response
20
+ JSON.parse(response)
21
+ end
22
+
23
+ def response
24
+ send(method.downcase)
25
+ end
26
+
27
+ def get
28
+ RestClient.get url, headers
29
+ end
30
+
31
+ def post
32
+ RestClient.post url, params, headers
33
+ end
34
+
35
+ def delete
36
+ RestClient.delete url, headers
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,35 @@
1
+ module OutlookCalendar
2
+ class AccessToken
3
+ attr_reader :code, :app_id, :app_secret_key, :scope, :redirect_uri
4
+
5
+ def initialize(code, app_id, app_secret_key, scope, redirect_uri)
6
+ @code = code
7
+ @app_id = app_id
8
+ @app_secret_key = app_secret_key
9
+ @scope = scope
10
+ @redirect_uri = redirect_uri
11
+ end
12
+
13
+ def call
14
+ access_token
15
+ end
16
+
17
+ private
18
+
19
+ def access_token
20
+ user_token_response
21
+ end
22
+
23
+ def oauth_client
24
+ @oauth_client = OAuth2::Client.new(app_id,
25
+ app_secret_key,
26
+ site: 'https://login.microsoftonline.com',
27
+ authorize_url: '/common/oauth2/v2.0/authorize',
28
+ token_url: '/common/oauth2/v2.0/token')
29
+ end
30
+
31
+ def user_token_response
32
+ @user_token_response = oauth_client.auth_code.get_token(code, redirect_uri: redirect_uri, scope: scope)
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,47 @@
1
+ module OutlookCalendar
2
+ class RefreshToken
3
+ attr_reader :token, :refresh_token, :client_id, :client_secret, :redirect_uri
4
+
5
+ def initialize(token, refresh_token, client_id, client_secret, redirect_uri)
6
+ @token = token
7
+ @refresh_token = refresh_token
8
+ @client_id = client_id
9
+ @client_secret = client_secret
10
+ @redirect_uri = redirect_uri
11
+ end
12
+
13
+ def call
14
+ response
15
+ end
16
+
17
+ private
18
+
19
+ def response
20
+ caller
21
+ end
22
+
23
+ def caller
24
+ RestCaller.new('post', url, headers, attributes).call
25
+ end
26
+
27
+ def headers
28
+ {
29
+ 'Content-Type' => 'application/x-www-form-urlencoded'
30
+ }
31
+ end
32
+
33
+ def attributes
34
+ {
35
+ refresh_token: refresh_token,
36
+ redirect_uri: redirect_uri,
37
+ client_id: client_id,
38
+ client_secret: client_secret,
39
+ grant_type: 'refresh_token'
40
+ }
41
+ end
42
+
43
+ def url
44
+ 'https://login.live.com/oauth20_token.srf'
45
+ end
46
+ end
47
+ end
File without changes
@@ -0,0 +1,3 @@
1
+ module OutlookCalendar
2
+ VERSION = '0.1.1'
3
+ end
@@ -0,0 +1,15 @@
1
+ require 'oauth2'
2
+ require 'json'
3
+ require 'rest-client'
4
+ require 'outlook_calendar/version'
5
+
6
+ require 'outlook_calendar/rest_caller'
7
+ require 'outlook_calendar/calender/parse_calendar_response'
8
+ require 'outlook_calendar/calender/calenders'
9
+ require 'outlook_calendar/event/parse_event_response'
10
+ require 'outlook_calendar/event/create_event_params'
11
+ require 'outlook_calendar/event/create_event'
12
+ require 'outlook_calendar/event/user_events'
13
+ require 'outlook_calendar/event/delete_event'
14
+ require 'outlook_calendar/user/access_token'
15
+ require 'outlook_calendar/user/refresh_token'
@@ -0,0 +1,26 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "outlook_calendar/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "outlook_calendar"
8
+ spec.version = OutlookCalendar::VERSION
9
+ spec.authors = ["hitendra"]
10
+ spec.email = ["hitendra1632@gmail.com"]
11
+
12
+ spec.summary = %q{A gem for outlook calendar}
13
+ spec.description = %q{A wapper for outlook calender }
14
+ spec.homepage = 'https://github.com/Hitendra1632/outlook_calendar'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.16"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
26
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: outlook_calendar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - hitendra
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: 'A wapper for outlook calender '
56
+ email:
57
+ - hitendra1632@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/outlook_calendar.rb
73
+ - lib/outlook_calendar/calender/calenders.rb
74
+ - lib/outlook_calendar/calender/parse_calendar_response.rb
75
+ - lib/outlook_calendar/event/create_event.rb
76
+ - lib/outlook_calendar/event/create_event_params.rb
77
+ - lib/outlook_calendar/event/delete_event.rb
78
+ - lib/outlook_calendar/event/parse_event_response.rb
79
+ - lib/outlook_calendar/event/user_events.rb
80
+ - lib/outlook_calendar/rest_caller.rb
81
+ - lib/outlook_calendar/user.rb
82
+ - lib/outlook_calendar/user/access_token.rb
83
+ - lib/outlook_calendar/user/refresh_token.rb
84
+ - lib/outlook_calendar/version.rb
85
+ - outlook_calendar.gemspec
86
+ homepage: https://github.com/Hitendra1632/outlook_calendar
87
+ licenses: []
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.6.13
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: A gem for outlook calendar
109
+ test_files: []