bright 1.2.1 → 1.2.3

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: ed9189d57c0583da9fe8c388390b5fdfe7d1219ec1aa7f705c8d5bdcb86a380d
4
- data.tar.gz: 114e30a3f065134cd467aeb5186662cc0b296dff3b35ea276d790661bfc3ed58
3
+ metadata.gz: b40a86733b8e9731616433228146a6c4c8f05ae6ea9a3e6c5674bc5e217bfa56
4
+ data.tar.gz: a99d79f1a3d472e2c53cb2a6bdaf541d75f75435791d1af99b4b3a428278dc6b
5
5
  SHA512:
6
- metadata.gz: bcf315c80eb63fa3c4b27e92255721f92d79ed1bc1593cddb75c635e59b8d77d01ddf4e95a6dd4184524e174c2a5f9e2ad310f66c3228fad779bd8c94d8de73b
7
- data.tar.gz: 764e099470d73800e6ee90fdbc8cd38e20aac97e65226a8caee377d306f959870637e7e7526bbc54bcd7ff644d3e343a580c805ef299a3cfbcf88d968c696b4d
6
+ metadata.gz: c1e360e8df79dbfbeb06b2a3746a841932fd6e969739f4e4d76b50964952479fbf58833e26280cb230fb4f07c5d209272fdb62aab3bbe72c13f64caff71c3b6d
7
+ data.tar.gz: 5a654e27949c09573c0024c543363c50e512249a6ea8078c14c8301fb9a426fe7639dd2f439aa75af36df8166f418b2308da68322382362bb32fe71f543630c5
@@ -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
@@ -247,7 +247,10 @@ module Bright
247
247
  end
248
248
 
249
249
  if !attrs.dig("ethnicity_race", "federal_ethnicity").nil?
250
- cattrs[:hispanic_ethnicity] = attrs.dig("ethnicity_race", "federal_ethnicity").to_bool
250
+ begin
251
+ cattrs[:hispanic_ethnicity] = attrs.dig("ethnicity_race", "federal_ethnicity").to_bool
252
+ rescue
253
+ end
251
254
  end
252
255
  end
253
256
 
@@ -1,3 +1,3 @@
1
1
  module Bright
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.3"
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.1
4
+ version: 1.2.3
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-10-10 00:00:00.000000000 Z
11
+ date: 2024-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpi