bright 1.2 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c82ee5f6425fcb5502b799753f6c58748f13bba3cbb829c81c5b36f79986526e
4
- data.tar.gz: e220dad592f23ba583f75135f4ced2aa2f4c47a8cfa9fea89b7d32bcbb819245
3
+ metadata.gz: de7901ebf33e66211a693655cdc779ee6b83c16bff185346353223a4cd341bbc
4
+ data.tar.gz: 7ac84e02b7f1baa8f07e9fa535a301d80056e01a0aa990fcee59f30d4824178a
5
5
  SHA512:
6
- metadata.gz: 835186a8b148d9133b474af00ace4d9edbdb8e9a82e216f9f987ea164e8de78488664d6a5fcd6f16bdded954cc423e6f8cd24662222eddeb51831127dc2c6362
7
- data.tar.gz: 928d4a06cb9e335eabce0b18579909f000deb88aeba9ffd0d5433c0880fa848f5d586214f49f858d3cee90605905d9308a5d68e53e13644388706d5848a74523
6
+ metadata.gz: 2ed30fdd165dbd371110be06d19d572a5d993283c50e542b8e64dfb16d05199fa42007303fc2d528f7d29cb5fc52160e1971ffc3d8a3f4a125a15c2a46d36d92
7
+ data.tar.gz: 4e051f28636fba5f24bdbd5b0027a59e672fd2b40433098118ee4a85c1f61d1bdf9c24332b8baad0b1063551126df6ce253cd2d5bb315a23e3535cdcbf145200
data/bright.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["hello@arux.software"]
11
11
  spec.summary = "Framework and tools for dealing with Student Information Systems"
12
12
  spec.description = "Bright is a simple Student Information System API abstraction library used in and sponsored by Arux Software. It is written by Stephen Heuer, Steven Novotny, and contributors. The aim of the project is to abstract as many parts as possible away from the user to offer a consistent interface across all supported Student Information System APIs."
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/Arux-Software/Bright"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -10,6 +10,8 @@ module Bright
10
10
 
11
11
  attr_accessor :connection_options, :schools_cache, :school_years_cache
12
12
 
13
+ DEFAULT_NO_THREADS = 2
14
+
13
15
  DEMOGRAPHICS_CONVERSION = {
14
16
  "americanIndianOrAlaskaNative"=>"American Indian Or Alaska Native",
15
17
  "asian"=>"Asian",
@@ -66,7 +68,7 @@ module Bright
66
68
  :total => total_results,
67
69
  :per_page => params[:limit],
68
70
  :load_more_call => load_more_call,
69
- :no_threads => options[:no_threads]
71
+ :no_threads => options[:no_threads] || DEFAULT_NO_THREADS
70
72
  })
71
73
  else
72
74
  students
@@ -214,7 +214,7 @@ module Bright
214
214
  end
215
215
 
216
216
  ["PhoneNumber", "PhoneNumber2", "PhoneNumber3"].each do |phone_param|
217
- if !user_params[phone_param].blank?
217
+ if user_params[phone_param].present? && user_params["#{phone_param}Type"].present?
218
218
  user_data_hsh[:phone_numbers] ||= []
219
219
  user_data_hsh[:phone_numbers] << {
220
220
  :phone_number => user_params[phone_param],
@@ -1,3 +1,3 @@
1
1
  module Bright
2
- VERSION = "1.2"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bright
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arux Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpi
@@ -136,7 +136,7 @@ files:
136
136
  - lib/bright/sis_apis/tsis.rb
137
137
  - lib/bright/student.rb
138
138
  - lib/bright/version.rb
139
- homepage: ''
139
+ homepage: https://github.com/Arux-Software/Bright
140
140
  licenses:
141
141
  - MIT
142
142
  metadata: {}
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.3.7
158
+ rubygems_version: 3.3.26
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Framework and tools for dealing with Student Information Systems