wcc-data 0.3.0 → 0.3.1

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: de49f3e6cc7c8a7fa683659f77a77937fb06056f
4
- data.tar.gz: 6114a2ecf6df061a1f3d8872564ee040c014c89d
3
+ metadata.gz: 27c7b33dc551ef4cfcf077dd1cd034a03b988000
4
+ data.tar.gz: 8328780be7f3b99ac8c14a9899e1e16fda22dca0
5
5
  SHA512:
6
- metadata.gz: ae688de645b149f2f823dc4f27dbc29eb530ecd79786962fd00ef8dd2936941d7d55178b71161145135672bb2b6fa8bd113db1613c786a362c501e6ed103f406
7
- data.tar.gz: 72e1bd40dd55541460679cf6af7a767f22662246dd615c8f6e1a487ce8da20860f2de05690dcf48399ebb587842232bf3cf1ddbe4b49232e7c316ceb61856a6b
6
+ metadata.gz: 7ec04ded3ce055bf9bc34dbc9cce85bb90bac2b6752a447b6f14ba2d7b383a4f837fa953e1da83c759a27038b5486d67b1e033b0ba25ee5f2a065668482b21ab
7
+ data.tar.gz: 7357cb8d975af17773b9c39986dc5590e950b9e5506b25afd89487221895815b7c8bacb03af2f614052ee0b44dfb51f0317e144b8134425ce1d4012493ccbd07
@@ -2,7 +2,7 @@
2
2
 
3
3
  module WCC::Data::Nucleus
4
4
  class Campus < WCC::Data::EnumeratedType
5
- attributes :id, :name, :key
5
+ attributes :id, :name, :key, :code
6
6
  attributes :street, :city, :state, :zip, :geo
7
7
 
8
8
  def matches?(value)
@@ -13,6 +13,7 @@ module WCC::Data::Nucleus
13
13
  [
14
14
  {
15
15
  id: 1,
16
+ code: 'DAL',
16
17
  name: 'Dallas',
17
18
  key: :dallas,
18
19
  street: '7540 LBJ Freeway',
@@ -23,6 +24,7 @@ module WCC::Data::Nucleus
23
24
  },
24
25
  {
25
26
  id: 2,
27
+ code: 'FTW',
26
28
  name: 'Fort Worth',
27
29
  key: :ft_worth,
28
30
  street: '3345 Winthrop Avenue',
@@ -33,6 +35,7 @@ module WCC::Data::Nucleus
33
35
  },
34
36
  {
35
37
  id: 3,
38
+ code: 'PLA',
36
39
  name: 'Plano',
37
40
  key: :plano,
38
41
  street: '6400 K Avenue',
@@ -43,6 +46,7 @@ module WCC::Data::Nucleus
43
46
  },
44
47
  {
45
48
  id: 4,
49
+ code: 'FRS',
46
50
  name: 'Frisco',
47
51
  key: :frisco,
48
52
  street: '6401 Parkwood Blvd',
@@ -1,5 +1,5 @@
1
1
  module WCC
2
2
  module Data
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
5
5
  end
@@ -28,6 +28,7 @@ describe WCC::Data::Nucleus::Campus do
28
28
  campus = described_class[:frisco]
29
29
  expect(campus).to be_a(described_class)
30
30
  expect(campus.name).to eq('Frisco')
31
+ expect(campus.code).to eq('FRS')
31
32
  end
32
33
  end
33
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2019-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday