curricula 0.0.2 → 0.0.3
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 +4 -4
- data/.gitignore +1 -0
- data/README.md +40 -1
- data/curricula.gemspec +1 -0
- data/lib/curricula/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 863a71fc9ec248e590f4547141a0b45d50b9add5
|
4
|
+
data.tar.gz: fa5d9dd1bf8e358283fdf1530eb4f3f4d3e9d62e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a9f4a9e105232abcd1946b4da42af625bc51d58d1b9762b7ca2ce33efd5dc9073ca87655d3bf0d2c7f5e80f891ef49ded01f2fbaa90296af38ad7e6b2f554a
|
7
|
+
data.tar.gz: d3b5812b29a0c9fbd191439f6a0f88daeb591c1a14e580ef40c790d747de8b0e7482ae9ec5483a21827d95e4d861669d5ebdf1b4e81d38ed04eae89e84a815b6
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,46 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
First, create your excel spreadsheet with the following format (NO HEADER). This
|
24
|
+
is two things in a single worksheet, this may be worked out later, but for now,
|
25
|
+
do this. Here's an example to get you going (leave out the header):
|
26
|
+
|
27
|
+
|Course|Prereq?|Hours|
|
28
|
+
|:----:|:-----:|:---:|
|
29
|
+
|MATH 162| |4|
|
30
|
+
|MATH 163| |4|
|
31
|
+
|MATH 264| |3|
|
32
|
+
|MATH 162|prereq|MATH 163|
|
33
|
+
|MATH 163|prereq|MATH 264|
|
34
|
+
|
35
|
+
Add an Excel spreadsheet to this:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
my_plan = Curricula::DegreePlan.new "worksheet.xls"
|
39
|
+
```
|
40
|
+
|
41
|
+
Then, compute the efficiency. Lower is better:
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
my_plan.efficiency
|
45
|
+
```
|
46
|
+
|
47
|
+
If you need a list of courses (as a hash), use `course_list`:
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
my_plan.course_list
|
51
|
+
```
|
52
|
+
|
53
|
+
To use this as part of a graph, use the following two methods:
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
my_plan.graph_nodes
|
57
|
+
my_plan.graph_edges
|
58
|
+
```
|
59
|
+
|
60
|
+
`graph_nodes` returns a list of strings, `graph_edges` returns a hash of edges,
|
61
|
+
with `:source` and `:destination` to mark the directionality of the
|
62
|
+
prerequisites.
|
24
63
|
|
25
64
|
## Contributing
|
26
65
|
|
data/curricula.gemspec
CHANGED
data/lib/curricula/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: curricula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Piro-Rael
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: spreadsheet
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Determines curricular efficiency of a degree plan.
|
42
56
|
email:
|
43
57
|
- fdisk@fdisk.co
|