NittResults 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -1
- data/lib/NittResults.rb +1 -1
- data/lib/NittResults/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -20,7 +20,12 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
1. Open irb
|
24
|
+
2. require 'NittResults'
|
25
|
+
3. include NittResults
|
26
|
+
4. self.fetch_results(205110001, 205110088)
|
27
|
+
|
28
|
+
Replace the range of roll numbers to match your needs.
|
24
29
|
|
25
30
|
## Contributing
|
26
31
|
|
@@ -29,3 +34,9 @@ TODO: Write usage instructions here
|
|
29
34
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
30
35
|
4. Push to the branch (`git push origin my-new-feature`)
|
31
36
|
5. Create new Pull Request
|
37
|
+
|
38
|
+
## Future Enhancements
|
39
|
+
Instead of creating raw textfiles the results would be stored in a
|
40
|
+
database with an ActiveRecord wrapper to easily query and play around
|
41
|
+
with.
|
42
|
+
|
data/lib/NittResults.rb
CHANGED
@@ -20,7 +20,7 @@ module NittResults
|
|
20
20
|
if valid_roll_no > 0
|
21
21
|
select = browser.find_element(:id,"Dt1")
|
22
22
|
select.find_elements(:tag_name, "option").each do |option|
|
23
|
-
option.click if option.text == "
|
23
|
+
option.click if option.text == "NOV-2012 (REGULAR EXAM)"
|
24
24
|
end
|
25
25
|
end
|
26
26
|
#get the data and store it in the database
|
data/lib/NittResults/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: NittResults
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.8.
|
66
|
+
rubygems_version: 1.8.23
|
67
67
|
signing_key:
|
68
68
|
specification_version: 3
|
69
69
|
summary: Uses the selenium-webdriver to fetch the result for the specified semester
|