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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29879c1b86289eca775977ea8d4d2cc7e0248c71f9c8a5cf6bbbeadeb5022d8e
4
- data.tar.gz: 45fe6db3a6547cb3b1b8fc4852220e3f2c4b13e9980b9fbcd26dd3b821377247
3
+ metadata.gz: 5e17d65c5f2e6d411c45766286bf6039fddad144fdc7efec6434baefa2a020bd
4
+ data.tar.gz: b378e9e8744b795af44d9ac22c44de8b3a800456aab8b3d8535969aa550087e8
5
5
  SHA512:
6
- metadata.gz: 8b074797ee53b90c459dc5a1aecea403d6b88d12d979ad64559555f534d5a6f021570e414cb3eda53b894d623e003a9077dc2e5b7694c69cce5aa49adb0488dc
7
- data.tar.gz: ce3843937219e0d0591d9d8f7dc3268855c7611b04752156cccc9deaf2c42646893c0e388a88e6ce1130842ebe8336d9b1d6eb50d6e130ced0cd6d7281ab6fe1
6
+ metadata.gz: 5f2da22d80b14f86adbe24d7ccdf7fa46ddea8a06b4a5c385e0468a579ca2a77cd977bc17c88eda3c30807d6df3f1e721bf7acb4647c7b376b148362c6044bec
7
+ data.tar.gz: 4f0938c6c90f014454dd64916abfe99d6fd986c20710bd2d718bce33285963c10b05efc566996e842d8ac4513a8ca7d89bd111cb99e62a7e27f581db3225ef5c
@@ -1,12 +1,12 @@
1
1
  module SchoolDigger
2
2
  class Api
3
- URL_ENDPOINT = ENV.fetch("SCHOOL_DIGGER_BASE_URL", "https://api.schooldigger.com")
4
- API_VERSION = ENV.fetch("SCHOOL_DIGGER_API_VERSION", "1.1")
5
- URL_BASE = "#{URL_ENDPOINT}/v#{API_VERSION}"
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(URL_BASE + path, query: modify_query(query), timeout: 30)
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")
@@ -1,3 +1,3 @@
1
1
  module SchoolDigger
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-03-07 00:00:00.000000000 Z
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
- rubyforge_project:
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