engrade 1.2.2 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01060e456960dbf18b803f7a8e6a319ee8badeaf
4
- data.tar.gz: f44e0131e536d8727af32c21a6eaec9150e7e357
3
+ metadata.gz: c92acb35e8d8e6c1a87ef2cba66a22b56b67ad8b
4
+ data.tar.gz: 6c68ee50568679a39e654e48ef1c100aecffa7da
5
5
  SHA512:
6
- metadata.gz: ef7cfbdf2e503240cca8a73d99d29c766f3912acf024ce1634cab061887a6cff3cbc3eb4c099786cffe1e160f9fa9ece3108d7b7ebeac11be52da2c27e66afb1
7
- data.tar.gz: eb90bef36b02a1cbf764aa100406baf973aa5593d7129c5dd7b80f5ad2b77c121baaa18d04b63c236ea03ec88254d19e40c88afcb2cebf1c4fb46de6461ed9fb
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
 
@@ -1,3 +1,3 @@
1
1
  module Engrade
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
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.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-10-20 00:00:00.000000000 Z
11
+ date: 2013-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client