uclapi 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/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +184 -0
- data/Rakefile +10 -0
- data/lib/uclapi/booking.rb +8 -0
- data/lib/uclapi/client/roombookings.rb +26 -0
- data/lib/uclapi/client/search.rb +12 -0
- data/lib/uclapi/client.rb +86 -0
- data/lib/uclapi/equipment.rb +8 -0
- data/lib/uclapi/people.rb +2 -0
- data/lib/uclapi/room.rb +18 -0
- data/lib/uclapi/version.rb +3 -0
- data/lib/uclapi.rb +8 -0
- data/uclapi.gemspec +28 -0
- metadata +119 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 716074106efd9792d163ac49f318fcaf3857c6e0
|
4
|
+
data.tar.gz: 0da5d447127341afc94a7c56259a49e722bb43af
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 99739a426c9483c75369184425c535994b9168c5222113ed883f81b5efe7adf57aded07b8d99fc521e6db388d9a69c295b63fb269367c60119373be28fee42f2
|
7
|
+
data.tar.gz: 7daba28081ab1a022db89ca93dbf8745bfdd8aa441c0190425dda5c010bd698598a11fd6004a4ac6598db72fc3c00feefa20b5353d0df31189fc795bcfbbbd88
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 cristiano@betta.io. 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
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
uclapi (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
awesome_print (1.8.0)
|
10
|
+
diff-lcs (1.3)
|
11
|
+
rake (10.5.0)
|
12
|
+
rspec (3.6.0)
|
13
|
+
rspec-core (~> 3.6.0)
|
14
|
+
rspec-expectations (~> 3.6.0)
|
15
|
+
rspec-mocks (~> 3.6.0)
|
16
|
+
rspec-core (3.6.0)
|
17
|
+
rspec-support (~> 3.6.0)
|
18
|
+
rspec-expectations (3.6.0)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.6.0)
|
21
|
+
rspec-mocks (3.6.0)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.6.0)
|
24
|
+
rspec-support (3.6.0)
|
25
|
+
|
26
|
+
PLATFORMS
|
27
|
+
ruby
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
awesome_print (~> 1.8.0)
|
31
|
+
bundler (~> 1.16.a)
|
32
|
+
rake (~> 10.0)
|
33
|
+
rspec (~> 3.0)
|
34
|
+
uclapi!
|
35
|
+
|
36
|
+
BUNDLED WITH
|
37
|
+
1.16.0.pre.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Cristiano Betta
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
# Ruby API library for the UCL API
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/uclapi) [](https://travis-ci.org/cbetta/uclapi)
|
4
|
+
|
5
|
+
A wrapper for the [UCL API](https://uclapi.com/). Specification is as described in the the [developer documentation](https://docs.uclapi.com/).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Either install directly or via bundler.
|
10
|
+
|
11
|
+
```rb
|
12
|
+
gem 'uclapi'
|
13
|
+
```
|
14
|
+
|
15
|
+
## Getting started
|
16
|
+
|
17
|
+
The client will accept the app token either as a parameter on initialization,
|
18
|
+
or as an environment variable. Additionally a `debug` parameter can be set to enable verbose debugging.
|
19
|
+
|
20
|
+
```rb
|
21
|
+
require 'uclapi'
|
22
|
+
|
23
|
+
# using parameters
|
24
|
+
client = UCLAPI::Client.new(token: '...')
|
25
|
+
|
26
|
+
# using environment variables:
|
27
|
+
# * UCLAPI_TOKEN
|
28
|
+
client = UCLAPI::Client.new
|
29
|
+
```
|
30
|
+
|
31
|
+
The client provides with direct access to every API call as documented in the
|
32
|
+
developer documentation. Additionally it also provides some convenience methods.
|
33
|
+
|
34
|
+
```rb
|
35
|
+
# get a room
|
36
|
+
room = client.roombookings.rooms.first
|
37
|
+
# get the bookings for a room
|
38
|
+
bookings = room.bookings
|
39
|
+
# get the equipment for a room
|
40
|
+
equipment = room.equipment
|
41
|
+
```
|
42
|
+
|
43
|
+
## Convenience methods
|
44
|
+
|
45
|
+
### `room.bookings`
|
46
|
+
|
47
|
+
Maps to `client.roombookings.bookings` and passes along all the
|
48
|
+
same parameters while automatically setting the `roomid` and `siteid`.
|
49
|
+
|
50
|
+
### `room.equipment`
|
51
|
+
|
52
|
+
Maps to `client.roombookings.equipment` and passes along all the
|
53
|
+
same parameters while automatically setting the `roomid` and `siteid`.
|
54
|
+
|
55
|
+
### `booking.room`
|
56
|
+
|
57
|
+
Maps to `client.roombookings.room` and passes along the `roomid` and `siteid`.
|
58
|
+
|
59
|
+
### `equipment.room`
|
60
|
+
|
61
|
+
Maps to `client.roombookings.room` and passes along the `roomid` and `siteid`.
|
62
|
+
|
63
|
+
|
64
|
+
## API
|
65
|
+
|
66
|
+
### `GET /roombookings/rooms`
|
67
|
+
|
68
|
+
This endpoint returns rooms and information about them. If you don’t specify any query parameters besides the token, all rooms will be returned.
|
69
|
+
|
70
|
+
More: [Documentation](https://docs.uclapi.com/#get-rooms)
|
71
|
+
|
72
|
+
```rb
|
73
|
+
> rooms = client.roombookings.rooms
|
74
|
+
[#<UCLAPI::Room siteid="123" ....>, #<UCLAPI::Room siteid="123" ....>]
|
75
|
+
> rooms.first
|
76
|
+
UCLAPI::Room {
|
77
|
+
:siteid => "123",
|
78
|
+
:location => {
|
79
|
+
"coordinates" => {
|
80
|
+
"lat" => "51.523504",
|
81
|
+
"lng" => "-0.134937"
|
82
|
+
},
|
83
|
+
"address" => [
|
84
|
+
[0] "74 Huntley Street",
|
85
|
+
[1] "London",
|
86
|
+
[2] "WC1E 6AU",
|
87
|
+
[3] ""
|
88
|
+
]
|
89
|
+
|
90
|
+
},
|
91
|
+
:roomid => "234",
|
92
|
+
:sitename => "Medical School Building",
|
93
|
+
:roomname => "Rockefeller Building 335",
|
94
|
+
:automated => "P",
|
95
|
+
:capacity => 20,
|
96
|
+
:classification => "CR"
|
97
|
+
}
|
98
|
+
# optional provide any extra parameters
|
99
|
+
> rooms = client.roombookings.rooms(siteid: 123)
|
100
|
+
```
|
101
|
+
|
102
|
+
### `GET /roombookings/bookings`
|
103
|
+
|
104
|
+
This endpoint shows the results to a bookings or space availability query. It returns a paginated list of bookings.
|
105
|
+
|
106
|
+
More: [Documentation](https://docs.uclapi.com/#get-bookings)
|
107
|
+
|
108
|
+
```rb
|
109
|
+
> bookings = client.roombookings.bookings
|
110
|
+
[#<UCLAPI::Booking slotid="1234567" ....>, ...]
|
111
|
+
> bookings.first
|
112
|
+
UCLAPI::Booking {
|
113
|
+
:siteid => "123",
|
114
|
+
:end_time => "2018-02-01T12:00:00+00:00",
|
115
|
+
:roomid => "456",
|
116
|
+
:slotid => 1234567,
|
117
|
+
:phone => nil,
|
118
|
+
:roomname => "IOE - Bedford Way (20) - 790",
|
119
|
+
:start_time => "2018-02-01T11:00:00+00:00",
|
120
|
+
:contact => "Mr John Doe",
|
121
|
+
:description => "Introduction to The UCL API",
|
122
|
+
:weeknumber => 23.0
|
123
|
+
}
|
124
|
+
# optional provide any extra parameters
|
125
|
+
> rooms = client.roombookings.bookings(siteid: 374)
|
126
|
+
```
|
127
|
+
|
128
|
+
### `GET /roombookings/equipment`
|
129
|
+
|
130
|
+
This endpoint returns any equipment/feature information about a specific room. So, for example whether there is a Whiteboard or a DVD Player in the room.
|
131
|
+
|
132
|
+
More: [Documentation](https://docs.uclapi.com/#get-equipment)
|
133
|
+
|
134
|
+
```rb
|
135
|
+
> equipment = client.roombookings.equipment(siteid: 123, roomid: 345)
|
136
|
+
[#<UCLAPI::Equipment description="White Board" ....>, ...]
|
137
|
+
> equipment.first
|
138
|
+
UCLAPI::Equipment {
|
139
|
+
:description => "White Board",
|
140
|
+
:type => "FF",
|
141
|
+
:units => 1,
|
142
|
+
:roomid => "335",
|
143
|
+
:siteid => "374"
|
144
|
+
}
|
145
|
+
```
|
146
|
+
|
147
|
+
### `GET /search/people`
|
148
|
+
|
149
|
+
This endpoint returns matching people and information about them.
|
150
|
+
More: [Documentation](https://docs.uclapi.com/#get-people)
|
151
|
+
|
152
|
+
```rb
|
153
|
+
> people = client.search.people(query: 'John')
|
154
|
+
[#<UCLAPI::People name="John Doe" ....>, ...]
|
155
|
+
> people.first
|
156
|
+
UCLAPI::People {
|
157
|
+
:status => "Staff",
|
158
|
+
:name => "John Doe",
|
159
|
+
:email => "j.doe@ucl.ac.uk",
|
160
|
+
:department => "UCL API Development"
|
161
|
+
}
|
162
|
+
```
|
163
|
+
|
164
|
+
## Contributing
|
165
|
+
|
166
|
+
1. **Fork** the repo on GitHub
|
167
|
+
2. **Clone** the project to your own machine
|
168
|
+
3. **Commit** changes to your own branch
|
169
|
+
4. **Push** your work back up to your fork
|
170
|
+
5. Submit a **Pull request** so that we can review your changes
|
171
|
+
|
172
|
+
### Development
|
173
|
+
|
174
|
+
* `bundle install` to get dependencies
|
175
|
+
* `rake` to run tests
|
176
|
+
* `rake console` to run a local console with the library loaded
|
177
|
+
|
178
|
+
## License
|
179
|
+
|
180
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
181
|
+
|
182
|
+
## Code of Conduct
|
183
|
+
|
184
|
+
Everyone interacting in this project is expected to follow the [code of conduct](https://github.com/cbetta/uclapi/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
class UCLAPI::Client::Roombookings
|
2
|
+
def initialize client
|
3
|
+
@client = client
|
4
|
+
end
|
5
|
+
|
6
|
+
def rooms(params = {})
|
7
|
+
@client.get('/roombookings/rooms', params)['rooms'].map do |room|
|
8
|
+
room[:client] = @client
|
9
|
+
UCLAPI::Room.new(room)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def bookings(params = {})
|
14
|
+
@client.get('/roombookings/bookings', params)['bookings'].map do |booking|
|
15
|
+
booking[:client] = @client
|
16
|
+
UCLAPI::Booking.new(booking)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def equipment(params = {})
|
21
|
+
@client.get('/roombookings/equipment', params)['equipment'].map do |equipment|
|
22
|
+
equipment[:client] = @client
|
23
|
+
UCLAPI::Equipment.new(equipment)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'net/https'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module UCLAPI
|
5
|
+
class Client
|
6
|
+
class ServerError < StandardError; end
|
7
|
+
class NotFoundError < StandardError; end
|
8
|
+
class BadRequestError < StandardError; end
|
9
|
+
class UnauthorizedError < StandardError; end
|
10
|
+
|
11
|
+
ENDPOINT = 'uclapi.com'.freeze
|
12
|
+
|
13
|
+
attr_accessor :token, :http, :debug
|
14
|
+
|
15
|
+
def initialize(options = {})
|
16
|
+
@token = options.fetch(:token) do
|
17
|
+
ENV['UCLAPI_TOKEN'] || raise(KeyError, "Missing required argument: token")
|
18
|
+
end
|
19
|
+
|
20
|
+
@debug = options.fetch(:debug) do
|
21
|
+
ENV['UCLAPI_DEBUG']
|
22
|
+
end
|
23
|
+
|
24
|
+
@http = Net::HTTP.new(ENDPOINT, Net::HTTP.https_default_port)
|
25
|
+
http.use_ssl = true
|
26
|
+
|
27
|
+
http.set_debug_output $stderr if debug
|
28
|
+
end
|
29
|
+
|
30
|
+
def roombookings
|
31
|
+
UCLAPI::Client::Roombookings.new(self)
|
32
|
+
end
|
33
|
+
|
34
|
+
def search
|
35
|
+
UCLAPI::Client::Search.new(self)
|
36
|
+
end
|
37
|
+
|
38
|
+
def get(path, params = {})
|
39
|
+
uri = uri_for(path, params)
|
40
|
+
message = Net::HTTP::Get.new(uri.request_uri)
|
41
|
+
transmit(message)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def uri_for(path, params = {})
|
47
|
+
uri = URI("https://#{ENDPOINT}#{path}")
|
48
|
+
uri.query = URI.encode_www_form(params.merge({
|
49
|
+
token: token
|
50
|
+
}))
|
51
|
+
uri
|
52
|
+
end
|
53
|
+
|
54
|
+
def transmit(message)
|
55
|
+
parse(http.request(message))
|
56
|
+
end
|
57
|
+
|
58
|
+
def parse response
|
59
|
+
data = json?(response) ? JSON.parse(response.body) : response.body
|
60
|
+
|
61
|
+
case response
|
62
|
+
when Net::HTTPSuccess
|
63
|
+
data
|
64
|
+
when Net::HTTPNotFound
|
65
|
+
raise NotFoundError, "Record not found (404)"
|
66
|
+
when Net::HTTPBadRequest
|
67
|
+
raise BadRequestError, data
|
68
|
+
when Net::HTTPUnauthorized
|
69
|
+
raise UnauthorizedError, "Access Denied (401)"
|
70
|
+
else
|
71
|
+
if json?(response)
|
72
|
+
raise ServerError, "HTTP #{response.code}: #{JSON.parse(response.body)}"
|
73
|
+
else
|
74
|
+
raise ServerError, "HTTP #{response.code}: #{response.body}"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def json?(response)
|
80
|
+
content_type = response['Content-Type']
|
81
|
+
json_header = content_type && content_type.split(';').first == 'application/json'
|
82
|
+
has_body = response.body && response.body.length > 0
|
83
|
+
json_header && has_body
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
data/lib/uclapi/room.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
class UCLAPI::Room < OpenStruct
|
2
|
+
def bookings
|
3
|
+
client.roombookings.bookings(
|
4
|
+
roomid: roomid
|
5
|
+
)
|
6
|
+
end
|
7
|
+
|
8
|
+
def equipment
|
9
|
+
client.roombookings.equipment(
|
10
|
+
roomid: roomid,
|
11
|
+
siteid: siteid
|
12
|
+
).map do |equipment|
|
13
|
+
equipment.roomid = roomid
|
14
|
+
equipment.siteid = siteid
|
15
|
+
equipment
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/uclapi.rb
ADDED
data/uclapi.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "uclapi/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "uclapi"
|
8
|
+
spec.version = UCLAPI::VERSION
|
9
|
+
spec.authors = ["Cristiano Betta"]
|
10
|
+
spec.email = ["cristiano@betta.io"]
|
11
|
+
|
12
|
+
spec.summary = "A wrapper for the UCL API"
|
13
|
+
spec.description = "A wrapper for the UCL API"
|
14
|
+
spec.homepage = "https://uclapi.com"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.16.a"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "awesome_print", "~> 1.8.0"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: uclapi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cristiano Betta
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-07 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.a
|
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.a
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: awesome_print
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.8.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.8.0
|
69
|
+
description: A wrapper for the UCL API
|
70
|
+
email:
|
71
|
+
- cristiano@betta.io
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- Gemfile.lock
|
82
|
+
- LICENSE.txt
|
83
|
+
- README.md
|
84
|
+
- Rakefile
|
85
|
+
- lib/uclapi.rb
|
86
|
+
- lib/uclapi/booking.rb
|
87
|
+
- lib/uclapi/client.rb
|
88
|
+
- lib/uclapi/client/roombookings.rb
|
89
|
+
- lib/uclapi/client/search.rb
|
90
|
+
- lib/uclapi/equipment.rb
|
91
|
+
- lib/uclapi/people.rb
|
92
|
+
- lib/uclapi/room.rb
|
93
|
+
- lib/uclapi/version.rb
|
94
|
+
- uclapi.gemspec
|
95
|
+
homepage: https://uclapi.com
|
96
|
+
licenses:
|
97
|
+
- MIT
|
98
|
+
metadata: {}
|
99
|
+
post_install_message:
|
100
|
+
rdoc_options: []
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
requirements: []
|
114
|
+
rubyforge_project:
|
115
|
+
rubygems_version: 2.6.13
|
116
|
+
signing_key:
|
117
|
+
specification_version: 4
|
118
|
+
summary: A wrapper for the UCL API
|
119
|
+
test_files: []
|