ruby-office365 0.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 +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +13 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +57 -0
- data/README.md +29 -0
- data/Rakefile +12 -0
- data/lib/office365/client.rb +7 -0
- data/lib/office365/config.rb +18 -0
- data/lib/office365/models/calendar.rb +8 -0
- data/lib/office365/models/directory.rb +8 -0
- data/lib/office365/models/mailbox.rb +8 -0
- data/lib/office365/models.rb +9 -0
- data/lib/office365/requests/mailbox.rb +8 -0
- data/lib/office365/version.rb +5 -0
- data/lib/office365.rb +16 -0
- data/ruby-office365.gemspec +38 -0
- data/sig/office365.rbs +4 -0
- metadata +65 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3d07710145d0950ccf59cbb228b1ad453d4f157e7dfb941f912c76338e859548
|
4
|
+
data.tar.gz: 7d62a6296186c5bb8813402890d911ff31e9c9f998e797932f1726a38b76751f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3fbea9fe5c09e3ea418f40dbb8fdb90126e0768cd47afd37a698aae0461fbf5d01efe885cd3cc96e55d220ef2067034b4e9cb1d1a1b54db041bd3aff794e20bf
|
7
|
+
data.tar.gz: ff15f4d0b53888a343b2c39f3bfe060816b7317155b2908bb7d52f341bc0235a7c1ebfcea1cf93a1d6d1a0d4e824b1b1a975bfeae8e36f7bf8092e0c30927823
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ruby-office365 (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
diff-lcs (1.5.0)
|
11
|
+
json (2.6.2)
|
12
|
+
parallel (1.22.1)
|
13
|
+
parser (3.1.2.1)
|
14
|
+
ast (~> 2.4.1)
|
15
|
+
rainbow (3.1.1)
|
16
|
+
rake (13.0.6)
|
17
|
+
regexp_parser (2.6.0)
|
18
|
+
rexml (3.2.5)
|
19
|
+
rspec (3.11.0)
|
20
|
+
rspec-core (~> 3.11.0)
|
21
|
+
rspec-expectations (~> 3.11.0)
|
22
|
+
rspec-mocks (~> 3.11.0)
|
23
|
+
rspec-core (3.11.0)
|
24
|
+
rspec-support (~> 3.11.0)
|
25
|
+
rspec-expectations (3.11.1)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.11.0)
|
28
|
+
rspec-mocks (3.11.1)
|
29
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
+
rspec-support (~> 3.11.0)
|
31
|
+
rspec-support (3.11.1)
|
32
|
+
rubocop (1.36.0)
|
33
|
+
json (~> 2.3)
|
34
|
+
parallel (~> 1.10)
|
35
|
+
parser (>= 3.1.2.1)
|
36
|
+
rainbow (>= 2.2.2, < 4.0)
|
37
|
+
regexp_parser (>= 1.8, < 3.0)
|
38
|
+
rexml (>= 3.2.5, < 4.0)
|
39
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
40
|
+
ruby-progressbar (~> 1.7)
|
41
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
42
|
+
rubocop-ast (1.22.0)
|
43
|
+
parser (>= 3.1.1.0)
|
44
|
+
ruby-progressbar (1.11.0)
|
45
|
+
unicode-display_width (2.3.0)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
x86_64-darwin-21
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
rake (~> 13.0)
|
52
|
+
rspec (~> 3.0)
|
53
|
+
rubocop (~> 1.21)
|
54
|
+
ruby-office365!
|
55
|
+
|
56
|
+
BUNDLED WITH
|
57
|
+
2.3.22
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Office 365
|
2
|
+
|
3
|
+
A simple ruby library to interact with Microsoft Graph and Office 365 API.
|
4
|
+
|
5
|
+
- https://developer.microsoft.com/en-us/graph/graph-explorer
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Install the gem and add to the application's Gemfile by executing:
|
10
|
+
|
11
|
+
$ bundle add ruby-office365
|
12
|
+
|
13
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
14
|
+
|
15
|
+
$ gem install ruby-office365
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
TODO: Write usage instructions here
|
20
|
+
|
21
|
+
## Development
|
22
|
+
|
23
|
+
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.
|
24
|
+
|
25
|
+
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ekohe/ruby-office365.
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "singleton"
|
4
|
+
|
5
|
+
# Should be config the client and secret first
|
6
|
+
module Office365
|
7
|
+
class Config
|
8
|
+
include Singleton
|
9
|
+
|
10
|
+
attr_accessor :client, :secret
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.config
|
14
|
+
yield Config.instance if block_given?
|
15
|
+
|
16
|
+
Config.instance
|
17
|
+
end
|
18
|
+
end
|
data/lib/office365.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "office365/version"
|
4
|
+
|
5
|
+
require "office365/config"
|
6
|
+
require "office365/client"
|
7
|
+
require "office365/models"
|
8
|
+
|
9
|
+
module Office365
|
10
|
+
API_DOMAIN = "https://graph.microsoft.com"
|
11
|
+
API_VERSION = "v1.0"
|
12
|
+
BASE_URI = "#{API_DOMAIN}/#{API_VERSION}/"
|
13
|
+
|
14
|
+
class Error < StandardError; end
|
15
|
+
# Your code goes here...
|
16
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/office365/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "ruby-office365"
|
7
|
+
spec.version = Office365::VERSION
|
8
|
+
spec.authors = ["Encore Shao"]
|
9
|
+
spec.email = ["encore@ekohe.com"]
|
10
|
+
|
11
|
+
spec.summary = "A simple ruby library to interact with Microsoft Graph and Office 365 API."
|
12
|
+
spec.description = "A simple ruby library to interact with Microsoft Graph and Office 365 API."
|
13
|
+
spec.homepage = "https://github.com/ekohe/ruby-office365"
|
14
|
+
spec.required_ruby_version = ">= 2.5.0"
|
15
|
+
|
16
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
17
|
+
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/ekohe/ruby-office365"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/ekohe/ruby-office365/blob/main/CHANGELOG.md"
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(__dir__) do
|
25
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
|
+
end
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
# Uncomment to register a new dependency of your gem
|
34
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
35
|
+
|
36
|
+
# For more information and examples about making a new gem, check out our
|
37
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
38
|
+
end
|
data/sig/office365.rbs
ADDED
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-office365
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Encore Shao
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple ruby library to interact with Microsoft Graph and Office 365
|
14
|
+
API.
|
15
|
+
email:
|
16
|
+
- encore@ekohe.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- ".rspec"
|
22
|
+
- ".rubocop.yml"
|
23
|
+
- CHANGELOG.md
|
24
|
+
- Gemfile
|
25
|
+
- Gemfile.lock
|
26
|
+
- README.md
|
27
|
+
- Rakefile
|
28
|
+
- lib/office365.rb
|
29
|
+
- lib/office365/client.rb
|
30
|
+
- lib/office365/config.rb
|
31
|
+
- lib/office365/models.rb
|
32
|
+
- lib/office365/models/calendar.rb
|
33
|
+
- lib/office365/models/directory.rb
|
34
|
+
- lib/office365/models/mailbox.rb
|
35
|
+
- lib/office365/requests/mailbox.rb
|
36
|
+
- lib/office365/version.rb
|
37
|
+
- ruby-office365.gemspec
|
38
|
+
- sig/office365.rbs
|
39
|
+
homepage: https://github.com/ekohe/ruby-office365
|
40
|
+
licenses: []
|
41
|
+
metadata:
|
42
|
+
allowed_push_host: https://rubygems.org
|
43
|
+
homepage_uri: https://github.com/ekohe/ruby-office365
|
44
|
+
source_code_uri: https://github.com/ekohe/ruby-office365
|
45
|
+
changelog_uri: https://github.com/ekohe/ruby-office365/blob/main/CHANGELOG.md
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.5.0
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubygems_version: 3.2.15
|
62
|
+
signing_key:
|
63
|
+
specification_version: 4
|
64
|
+
summary: A simple ruby library to interact with Microsoft Graph and Office 365 API.
|
65
|
+
test_files: []
|