school_digger 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/school_digger/api.rb +4 -4
- data/lib/school_digger/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e17d65c5f2e6d411c45766286bf6039fddad144fdc7efec6434baefa2a020bd
|
4
|
+
data.tar.gz: b378e9e8744b795af44d9ac22c44de8b3a800456aab8b3d8535969aa550087e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f2da22d80b14f86adbe24d7ccdf7fa46ddea8a06b4a5c385e0468a579ca2a77cd977bc17c88eda3c30807d6df3f1e721bf7acb4647c7b376b148362c6044bec
|
7
|
+
data.tar.gz: 4f0938c6c90f014454dd64916abfe99d6fd986c20710bd2d718bce33285963c10b05efc566996e842d8ac4513a8ca7d89bd111cb99e62a7e27f581db3225ef5c
|
data/lib/school_digger/api.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module SchoolDigger
|
2
2
|
class Api
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
SCHOOL_DIGGER_URL_ENDPOINT = ENV.fetch("SCHOOL_DIGGER_BASE_URL", "https://api.schooldigger.com")
|
4
|
+
SCHOOL_DIGGER_API_VERSION = ENV.fetch("SCHOOL_DIGGER_API_VERSION", "1.1")
|
5
|
+
SCHOOL_DIGGER_URL_BASE = "#{SCHOOL_DIGGER_URL_ENDPOINT}/v#{SCHOOL_DIGGER_API_VERSION}"
|
6
6
|
include HTTParty
|
7
7
|
|
8
8
|
def get(path, query = {})
|
9
|
-
response = self.class.get(
|
9
|
+
response = self.class.get(SCHOOL_DIGGER_URL_BASE + path, query: modify_query(query), timeout: 30)
|
10
10
|
end
|
11
11
|
|
12
12
|
# # SchoolDigger::Api.new.autocomplete('San Die', st: "CA")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: school_digger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -206,8 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
|
210
|
-
rubygems_version: 2.7.8
|
209
|
+
rubygems_version: 3.0.3
|
211
210
|
signing_key:
|
212
211
|
specification_version: 4
|
213
212
|
summary: SchoolDigger API wrapper
|