engrade 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/engrade.rb +4 -4
- data/lib/engrade/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c92acb35e8d8e6c1a87ef2cba66a22b56b67ad8b
|
4
|
+
data.tar.gz: 6c68ee50568679a39e654e48ef1c100aecffa7da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2109ffaa6fd9156ea20b6962287859eed578a30a43d67b2c73cd428ad6fc3fc915bc784eb6113c636645b1d5e498cbaca492f5671dca0292e734701dc288102c
|
7
|
+
data.tar.gz: 6e0dc7cde192e81ffe02e8bb9323f8c10b602b8b5c8d41cb3f1f52c3feddc355636975442ebc8ec7c392bbdf45d7f1d3e1005070965a2b76716204983dd26456
|
data/lib/engrade.rb
CHANGED
@@ -110,16 +110,16 @@ module Engrade
|
|
110
110
|
##################
|
111
111
|
|
112
112
|
def self.filter_classes(array=[], options={})
|
113
|
-
array.select! { |cl| cl.name.match options[:only]} if options[:only]
|
114
|
-
array.reject! { |cl| cl.name.match options[:except]} if options[:except]
|
113
|
+
array.select! { |cl| cl.name.to_s.match options[:only]} if options[:only]
|
114
|
+
array.reject! { |cl| cl.name.to_s.match options[:except]} if options[:except]
|
115
115
|
array.select! { |cl| cl.folder == options[:type] } if options[:type]
|
116
116
|
array.select! { |cl| cl.syr == options[:syr] } if options[:syr]
|
117
117
|
array
|
118
118
|
end
|
119
119
|
|
120
120
|
def self.filter_assignments(array=[], options={})
|
121
|
-
array.select! { |assn| assn.title.match options[:only]} if options[:only]
|
122
|
-
array.reject! { |assn| assn.title.match options[:except]} if options[:except]
|
121
|
+
array.select! { |assn| assn.title.to_s.match options[:only]} if options[:only]
|
122
|
+
array.reject! { |assn| assn.title.to_s.match options[:except]} if options[:except]
|
123
123
|
array
|
124
124
|
end
|
125
125
|
|
data/lib/engrade/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engrade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Thompson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|