Skip to content

Commit 1f58868

Browse files
committed
Initial commit EGSuits and Eiffel library for Google Sheets API.
0 parents  commit 1f58868

File tree

8 files changed

+127
-0
lines changed

8 files changed

+127
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* linguist-vendored
2+
*.e linguist-vendored=false

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
EIFGENs
2+
*.swp
3+
*.rc
4+

Readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EGSuite
2+
EGSuite is an Eiffel collection of libraries to integrate with [G Suite](https://developers.google.com/gsuite)
3+
4+
5+
## Status
6+
7+
Work in progress
8+
9+
10+
## APIs
11+
12+
### [Google Sheets API](https://developers.google.com/sheets/api/reference/rest#rest-resource:-v4.spreadsheets): Reads and writes Google Sheets.

license.lic

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Eiffel Forum License, version 2
2+
3+
1. Permission is hereby granted to use, copy, modify and/or distribute
4+
this package, provided that:
5+
* copyright notices are retained unchanged,
6+
* any distribution of this package, whether modified or not,
7+
includes this license text.
8+
9+
2. Permission is hereby also granted to distribute binary programs which
10+
depend on this package. If the binary program depends on a modified
11+
version of this package, you are encouraged to publicly release the
12+
modified version of this package.
13+
14+
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT WARRANTY. ANY EXPRESS OR
15+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR
18+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19+
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS PACKAGE.

sheets/esheets.ecf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="esheets_api" uuid="9A3C9A41-8527-4C98-949C-3278C812E0C6" library_target="esheets_api">
3+
<target name="esheets_api">
4+
<root all_classes="true"/>
5+
<file_rule>
6+
<exclude>/CVS$</exclude>
7+
<exclude>/EIFGENs$</exclude>
8+
<exclude>/\.git$</exclude>
9+
<exclude>/\.svn$</exclude>
10+
</file_rule>
11+
<option warning="warning" manifest_array_type="mismatch_warning">
12+
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
13+
</option>
14+
<setting name="console_application" value="true"/>
15+
<setting name="total_order_on_reals" value="false"/>
16+
<setting name="dead_code_removal" value="feature"/>
17+
<capability>
18+
<concurrency support="none"/>
19+
</capability>
20+
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
21+
<library name="cypress_consumer" location="$ISE_LIBRARY\contrib\library\web\authentication\oauth\cypress\consumer\consumer.ecf" readonly="false"/>
22+
<library name="encoder" location="$ISE_LIBRARY\contrib\library\web\framework\ewf\text\encoder\encoder.ecf"/>
23+
<library name="json" location="$ISE_LIBRARY\contrib\library\text\parser\json\library\json.ecf" readonly="false"/>
24+
<library name="login_with_google" location="$ISE_LIBRARY\contrib\library\web\authentication\oauth\cypress\login_with\google\login_with_google.ecf" readonly="false"/>
25+
<library name="uri" location="$ISE_LIBRARY\library\text\uri\uri.ecf"/>
26+
<cluster name="esheets_api" location=".\src\" recursive="true"/>
27+
</target>
28+
</system>

sheets/src/eg_sheets_i.e

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
note
2+
description: "Sheets API Interface: specify how to read and write Google Sheets data."
3+
date: "$Date$"
4+
revision: "$Revision$"
5+
EIS: "name=Rest API GSheets", "src=https://developers.google.com/sheets/api/reference/rest?apix=true", "protocol=urihttps://developers.google.com/sheets/api/reference/rest?apix=true"
6+
7+
class
8+
EG_SHEETS_I
9+
10+
end

sheets/test/application.e

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
note
2+
description: "test application root class"
3+
date: "$Date: 2018-11-16 10:29:33 -0300 (Fri, 16 Nov 2018) $"
4+
revision: "$Revision: 102478 $"
5+
6+
class
7+
APPLICATION
8+
9+
inherit
10+
ARGUMENTS
11+
12+
create
13+
make
14+
15+
feature {NONE} -- Initialization
16+
17+
make
18+
-- Run application.
19+
do
20+
--| Add your code here
21+
print ("Hello Eiffel World!%N")
22+
end
23+
24+
end

sheets/test/test.ecf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="test" uuid="FFF1C49C-B57D-4C81-82B8-973528B4E630">
3+
<target name="test">
4+
<root class="APPLICATION" feature="make"/>
5+
<file_rule>
6+
<exclude>/CVS$</exclude>
7+
<exclude>/EIFGENs$</exclude>
8+
<exclude>/\.git$</exclude>
9+
<exclude>/\.svn$</exclude>
10+
</file_rule>
11+
<option warning="warning" manifest_array_type="mismatch_warning">
12+
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
13+
</option>
14+
<setting name="console_application" value="true"/>
15+
<setting name="total_order_on_reals" value="false"/>
16+
<setting name="dead_code_removal" value="feature"/>
17+
<capability>
18+
<catcall_detection support="none"/>
19+
<concurrency support="none"/>
20+
<void_safety support="all"/>
21+
</capability>
22+
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
23+
<library name="esheets_api" location="..\esheets.ecf" readonly="false"/>
24+
<library name="json" location="$ISE_LIBRARY\contrib\library\text\parser\json\library\json.ecf" readonly="false"/>
25+
<library name="testing" location="$ISE_LIBRARY\library\testing\testing.ecf"/>
26+
<cluster name="test" location=".\" recursive="true"/>
27+
</target>
28+
</system>

0 commit comments

Comments
 (0)