g5_foundation_client 0.2.0 → 0.3.0

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: 3f1d9587c5bb0939c2ad30e79d2d4df91b703b47
4
- data.tar.gz: 77c5d7aba3a5eb56dbc4cf2547fe65840a7af797
3
+ metadata.gz: 378477dc68d0598df96ce7869c9d648627e41112
4
+ data.tar.gz: 6702b2ae0065c02b6114a655b670527af4fd26a4
5
5
  SHA512:
6
- metadata.gz: 5075193c43165d0da1e40039178edebe08c831868aaf3d7f756e52301cc259884e18f1ecd642055d6f925a48a63190c6cc61b9984a392713f86a6410bbf6ed4a
7
- data.tar.gz: ba35cc9dd496d5d35f714287be93b622e281ed75097ba0922078c06a9b989bb2b885e174b0214c7afaabfe84e3f8d7721839481e8978542b28fdc6c3a04b2e31
6
+ metadata.gz: 94c115364aa56aa95681cc3afb9d57b110637bf227c653b8952ac352c421e036e632fd25cddda4d83359738aaa290a5f0d6483e2aa58dbcc5785a5f6205e6313
7
+ data.tar.gz: d010abfee7a9067de43ce760f181702f062d18b202ac27c9bb0b84a0f88db166a14cfc6eaf47d47da6628a03403d23423dc1c57bd656f43f9df1346128ac95bd
@@ -4,13 +4,6 @@ require 'g5_authentication_client'
4
4
  require 'g5_foundation_client/version'
5
5
 
6
6
  module G5FoundationClient
7
- def self.access_token=(token)
8
- @access_token = token
9
- end
10
-
11
- def self.access_token
12
- @access_token ||= G5AuthenticationClient::Client.new.get_access_token
13
- end
14
7
  end
15
8
 
16
9
  require 'g5_foundation_client/error'
@@ -2,9 +2,7 @@ class G5FoundationClient::Fetcher
2
2
  def self.fetch_url(url, &block)
3
3
  response = HTTParty.get(
4
4
  url,
5
- {query: {access_token: G5FoundationClient::access_token},
6
- headers: {'Content-Type' => 'application/json', 'Accept' => 'application/json'}
7
- }
5
+ headers: {'Content-Type' => 'application/json', 'Accept' => 'application/json'}
8
6
  )
9
7
 
10
8
  case response.response.code.to_i
@@ -1,3 +1,3 @@
1
1
  module G5FoundationClient
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -163,22 +163,7 @@
163
163
  "apartment_amenity_1": "",
164
164
  "apartment_amenity_2": "",
165
165
  "community_amenity_1": "",
166
- "community_amenity_2": "",
167
- "locations_integration_settings": [
168
- {
169
- "location_id": 3,
170
- "vendor": "SiteLink",
171
- "vendor_action": "inventory",
172
- "id": 2,
173
- "strategy_name": "vsn",
174
- "vendor_user_name": "brusselsuname",
175
- "vendor_password": "vp",
176
- "vendor_endpoint": "ven",
177
- "created_at": "2014-10-08T20:28:26.154Z",
178
- "updated_at": "2014-10-08T20:28:26.154Z",
179
- "channel": "4"
180
- }
181
- ]
166
+ "community_amenity_2": ""
182
167
  }
183
168
  ]
184
169
  }}
@@ -165,8 +165,7 @@
165
165
  "apartment_amenity_1": "",
166
166
  "apartment_amenity_2": "",
167
167
  "community_amenity_1": "",
168
- "community_amenity_2": "",
169
- "locations_integration_settings": []
168
+ "community_amenity_2": ""
170
169
  },
171
170
  {
172
171
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sshwrc5-chateau-retirement-communities-llc/locations/g5-cl-1sshy11i-chateau-valley-center",
@@ -315,8 +314,7 @@
315
314
  "apartment_amenity_1": "",
316
315
  "apartment_amenity_2": "",
317
316
  "community_amenity_1": "",
318
- "community_amenity_2": "",
319
- "locations_integration_settings": []
317
+ "community_amenity_2": ""
320
318
  },
321
319
  {
322
320
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sshwrc5-chateau-retirement-communities-llc/locations/g5-cl-1sshwrd0-chateau-bothell-landing",
@@ -465,8 +463,7 @@
465
463
  "apartment_amenity_1": "",
466
464
  "apartment_amenity_2": "",
467
465
  "community_amenity_1": "",
468
- "community_amenity_2": "",
469
- "locations_integration_settings": []
466
+ "community_amenity_2": ""
470
467
  },
471
468
  {
472
469
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sshwrc5-chateau-retirement-communities-llc/locations/g5-cl-1sshy11h-chateau-pacific",
@@ -615,8 +612,7 @@
615
612
  "apartment_amenity_1": "",
616
613
  "apartment_amenity_2": "",
617
614
  "community_amenity_1": "",
618
- "community_amenity_2": "",
619
- "locations_integration_settings": []
615
+ "community_amenity_2": ""
620
616
  }
621
617
  ]
622
618
  },
@@ -786,8 +782,7 @@
786
782
  "apartment_amenity_1": "Stainless Steel Appliances ",
787
783
  "apartment_amenity_2": "Washer \u0026 Dryer Hook-ups",
788
784
  "community_amenity_1": "24-Hour Fitness Center",
789
- "community_amenity_2": "Swimming Pool",
790
- "locations_integration_settings": []
785
+ "community_amenity_2": "Swimming Pool"
791
786
  }
792
787
  ]
793
788
  },
@@ -957,8 +952,7 @@
957
952
  "apartment_amenity_1": "Washers and Dryers",
958
953
  "apartment_amenity_2": "",
959
954
  "community_amenity_1": "a Fitness Center",
960
- "community_amenity_2": "",
961
- "locations_integration_settings": []
955
+ "community_amenity_2": ""
962
956
  },
963
957
  {
964
958
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sjhz1kl-holland-residential/locations/g5-cl-1stsc2hw-the-frank-estate",
@@ -1107,8 +1101,7 @@
1107
1101
  "apartment_amenity_1": "Washer and Dryer in Unit",
1108
1102
  "apartment_amenity_2": "Granite Countertops",
1109
1103
  "community_amenity_1": "Swimming Pool",
1110
- "community_amenity_2": "BBQ Area",
1111
- "locations_integration_settings": []
1104
+ "community_amenity_2": "BBQ Area"
1112
1105
  },
1113
1106
  {
1114
1107
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sjhz1kl-holland-residential/locations/g5-cl-i0ziddla-montair-apartment-homes",
@@ -1257,8 +1250,7 @@
1257
1250
  "apartment_amenity_1": "Washer \u0026 Dryer in Unit",
1258
1251
  "apartment_amenity_2": "European Style Fixtures and Faucets",
1259
1252
  "community_amenity_1": "BBQ Area",
1260
- "community_amenity_2": "Tennis Court",
1261
- "locations_integration_settings": []
1253
+ "community_amenity_2": "Tennis Court"
1262
1254
  },
1263
1255
  {
1264
1256
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sjhz1kl-holland-residential/locations/g5-cl-1sscntyz-tabula-rasa",
@@ -1407,8 +1399,7 @@
1407
1399
  "apartment_amenity_1": "Washers and Dryers",
1408
1400
  "apartment_amenity_2": "",
1409
1401
  "community_amenity_1": "Furnished and Unfurnished Corporate Suites Available",
1410
- "community_amenity_2": "Washer and Dryer in every home",
1411
- "locations_integration_settings": []
1402
+ "community_amenity_2": "Washer and Dryer in every home"
1412
1403
  },
1413
1404
  {
1414
1405
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sjhz1kl-holland-residential/locations/g5-cl-1surxgr0-my-block-wash-park",
@@ -1557,8 +1548,7 @@
1557
1548
  "apartment_amenity_1": "Air Conditioning",
1558
1549
  "apartment_amenity_2": "",
1559
1550
  "community_amenity_1": "Rooftop Infinity Pool",
1560
- "community_amenity_2": "",
1561
- "locations_integration_settings": []
1551
+ "community_amenity_2": ""
1562
1552
  },
1563
1553
  {
1564
1554
  "uid": "http://hub.g5dxm.com/clients/g5-c-1sjhz1kl-holland-residential/locations/g5-cl-1stcdt44-rock-creek-landing",
@@ -6638,27 +6628,7 @@
6638
6628
  "apartment_amenity_1": "Sauna",
6639
6629
  "apartment_amenity_2": "Live-in Maid",
6640
6630
  "community_amenity_1": "Swimming Pool",
6641
- "community_amenity_2": "Free Parking",
6642
- "locations_integration_settings": [
6643
- {
6644
- "location_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments",
6645
- "urn": "g5-lis-7",
6646
- "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments/locations_integration_settings/g5-lis-7",
6647
- "vendor": "Centershift",
6648
- "vendor_action": "lead",
6649
- "id": 15,
6650
- "strategy_name": "YardiVoyagerSeniorHousingLeadStrategy",
6651
- "vendor_user_name": "yardiuser",
6652
- "vendor_password": "yardi123",
6653
- "vendor_endpoint": "https://www.iyardiasp.com/9925seniorhousing/WebServices/GuestCardSenior.asmx",
6654
- "created_at": "2014-10-22T01:41:26.716Z",
6655
- "updated_at": "2014-10-22T01:41:26.716Z",
6656
- "database_platform": "SQL Server",
6657
- "server_name": "aspdb02",
6658
- "database_name": "adwgyos_convx",
6659
- "property_code": "a5s"
6660
- }
6661
- ]
6631
+ "community_amenity_2": "Free Parking"
6662
6632
  },
6663
6633
  {
6664
6634
  "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1spcif5s-1212-apartments",
@@ -8370,27 +8340,7 @@
8370
8340
  "apartment_amenity_1": "Dirt Floors",
8371
8341
  "apartment_amenity_2": "Bedroom Ceiling Mirrors",
8372
8342
  "community_amenity_1": "",
8373
- "community_amenity_2": "",
8374
- "locations_integration_settings": [
8375
- {
8376
- "location_uid": "http://hub.g5dxm.com/clients/g5-c-1skmeepf-clowns-monkeys-jokers/locations/g5-cl-1skmeept-blahblahblah",
8377
- "urn": "g5-lis-6",
8378
- "uid": "http://hub.g5dxm.com/clients/g5-c-1skmeepf-clowns-monkeys-jokers/locations/g5-cl-1skmeept-blahblahblah/locations_integration_settings/g5-lis-6",
8379
- "vendor": "SiteLink",
8380
- "vendor_action": "lead",
8381
- "id": 18,
8382
- "strategy_name": "SiteLinkLeadStrategy",
8383
- "vendor_user_name": "Administrator",
8384
- "vendor_password": "Demo",
8385
- "vendor_endpoint": "noneed",
8386
- "created_at": "2014-11-03T21:44:11.869Z",
8387
- "updated_at": "2014-11-03T21:44:11.869Z",
8388
- "location_code": "Demo3",
8389
- "charge_mode": "test",
8390
- "corporate_code": "CCTST",
8391
- "blah": "blahssssdogddd"
8392
- }
8393
- ]
8343
+ "community_amenity_2": ""
8394
8344
  },
8395
8345
  {
8396
8346
  "uid": "http://hub.g5dxm.com/clients/g5-c-1skmeepf-clowns-monkeys-jokers/locations/g5-cl-i1jllwev-integrations-test-site",
@@ -1 +1,150 @@
1
- {"location":{"id":3,"uid":"http://192.168.33.30:3000/clients/g5-c-6hng302-no-store/locations/g5-cl-6hng303-brussels","client_id":2,"client_uid":"http://192.168.33.30:3000/clients/g5-c-6hng302-no-store","name":"brussels","corporate":false,"created_at":"2014-10-08T20:27:36.011Z","updated_at":"2014-10-08T20:27:36.011Z","urn":"g5-cl-6hng303-brussels","street_address_1":"20270 W North Ave","street_address_2":"","city":"Brookfield","state":"WI","postal_code":"53045-4278","fax":"(262) 744-9458","email":"perry@hertler.org","hours":"","twitter_username":"","facebook_username":"","yelp_username":"","pinterest_username":"","foursquare_username":"","tumblr_username":"","instagram_username":"","vimeo_username":"","youtube_username":"","domain":"http://nostore.com/brussels","phone_number":"(262) 744-9458","neighborhood":"","boat_storage":false,"business_storage":false,"gate_access":false,"security_monitoring":false,"business_center":false,"climate_controlled":false,"heated_cooled":false,"friendly_staff":false,"covered_drivethru":false,"covered_loading":false,"rv_boat_storage":false,"outside_parking":false,"deliveries":false,"dollies_carts":false,"digital_surveillance":false,"drive_up_access":false,"electronic_gate":false,"uhaul_trucks":false,"budget_trucks":false,"moving_trucks":false,"free_truck":false,"fenced_lighted":false,"ground_level_units":false,"high_ceilings":false,"individual_alarmed_units":false,"mail_boxes":false,"major_credit_cards":false,"military_discounts":false,"student_discount":false,"senior_discount":false,"month_to_month":false,"no_admin_fee":false,"no_deposits":false,"no_late_fees":false,"online_bill_pay":false,"packing_moving_supplies":false,"boxes_locks":false,"tenant_insurance":false,"truck_rentals":false,"wide_driveways":false,"wine_storage":false,"other_features":"","rv_storage":false,"seven_day_access":false,"other_storage":"","specific_demographic":"","primary_offering":"","secondary_other":"","secondary_condo":false,"secondary_townhomes":false,"secondary_apartments":false,"floor_plans":"","nearby_schools":"","highrise_structure":false,"garden_structure":false,"townhome_structure":false,"modern_structure":false,"nearby_employers":"","dogs_allowed":false,"cats_allowed":false,"accessibility":"0","air_conditioned":false,"cable_included":false,"ceiling_fans":false,"custom_cabinetry":false,"dishwasher":false,"energy_efficient":false,"fireplace":false,"granite_counters":false,"hardwood_floors":false,"private_balcony":false,"private_patio":false,"refrigerator":false,"stainless_appliances":false,"smoke_free":false,"style_design":"","style_cost":"","walkin_closet":false,"washer_dryer":false,"has_view":false,"other_amenities":"","carport_parking":false,"club_house":false,"dog_park":false,"corporate_suites":false,"family_friendly":false,"fitness_center":false,"furnished_apartments":false,"garages":false,"gated_entrance":false,"laundry_facilities":false,"online_rental_payments":false,"onsite_management":false,"close_park":false,"pet_friendly":false,"playground":false,"recycling_center":false,"swimming_pool":false,"hot_tub":false,"storage_available":false,"tennis_court":false,"wifi_available":false,"other_community_amenities":"","primary_offering_other":null,"ga_tracking_id":"","ga_profile_id":"","landmark_1_type":"","landmark_1_name":"","landmark_2_type":"","landmark_2_name":"","property_feature_1":"","property_feature_2":"","property_feature_3":"","apartment_amenity_1":"","apartment_amenity_2":"","community_amenity_1":"","community_amenity_2":"","locations_integration_settings":[{"location_id":3,"vendor":"SiteLink","vendor_action":"inventory","id":2,"strategy_name":"vsn","vendor_user_name":"brusselsuname","vendor_password":"vp","vendor_endpoint":"ven","created_at":"2014-10-08T20:28:26.154Z","updated_at":"2014-10-08T20:28:26.154Z","channel":"4"}]}}
1
+ {
2
+ "location": {
3
+ "id": 3,
4
+ "uid": "http://192.168.33.30:3000/clients/g5-c-6hng302-no-store/locations/g5-cl-6hng303-brussels",
5
+ "client_id": 2,
6
+ "client_uid": "http://192.168.33.30:3000/clients/g5-c-6hng302-no-store",
7
+ "name": "brussels",
8
+ "corporate": false,
9
+ "created_at": "2014-10-08T20:27:36.011Z",
10
+ "updated_at": "2014-10-08T20:27:36.011Z",
11
+ "urn": "g5-cl-6hng303-brussels",
12
+ "street_address_1": "20270 W North Ave",
13
+ "street_address_2": "",
14
+ "city": "Brookfield",
15
+ "state": "WI",
16
+ "postal_code": "53045-4278",
17
+ "fax": "(262) 744-9458",
18
+ "email": "perry@hertler.org",
19
+ "hours": "",
20
+ "twitter_username": "",
21
+ "facebook_username": "",
22
+ "yelp_username": "",
23
+ "pinterest_username": "",
24
+ "foursquare_username": "",
25
+ "tumblr_username": "",
26
+ "instagram_username": "",
27
+ "vimeo_username": "",
28
+ "youtube_username": "",
29
+ "domain": "http://nostore.com/brussels",
30
+ "phone_number": "(262) 744-9458",
31
+ "neighborhood": "",
32
+ "boat_storage": false,
33
+ "business_storage": false,
34
+ "gate_access": false,
35
+ "security_monitoring": false,
36
+ "business_center": false,
37
+ "climate_controlled": false,
38
+ "heated_cooled": false,
39
+ "friendly_staff": false,
40
+ "covered_drivethru": false,
41
+ "covered_loading": false,
42
+ "rv_boat_storage": false,
43
+ "outside_parking": false,
44
+ "deliveries": false,
45
+ "dollies_carts": false,
46
+ "digital_surveillance": false,
47
+ "drive_up_access": false,
48
+ "electronic_gate": false,
49
+ "uhaul_trucks": false,
50
+ "budget_trucks": false,
51
+ "moving_trucks": false,
52
+ "free_truck": false,
53
+ "fenced_lighted": false,
54
+ "ground_level_units": false,
55
+ "high_ceilings": false,
56
+ "individual_alarmed_units": false,
57
+ "mail_boxes": false,
58
+ "major_credit_cards": false,
59
+ "military_discounts": false,
60
+ "student_discount": false,
61
+ "senior_discount": false,
62
+ "month_to_month": false,
63
+ "no_admin_fee": false,
64
+ "no_deposits": false,
65
+ "no_late_fees": false,
66
+ "online_bill_pay": false,
67
+ "packing_moving_supplies": false,
68
+ "boxes_locks": false,
69
+ "tenant_insurance": false,
70
+ "truck_rentals": false,
71
+ "wide_driveways": false,
72
+ "wine_storage": false,
73
+ "other_features": "",
74
+ "rv_storage": false,
75
+ "seven_day_access": false,
76
+ "other_storage": "",
77
+ "specific_demographic": "",
78
+ "primary_offering": "",
79
+ "secondary_other": "",
80
+ "secondary_condo": false,
81
+ "secondary_townhomes": false,
82
+ "secondary_apartments": false,
83
+ "floor_plans": "",
84
+ "nearby_schools": "",
85
+ "highrise_structure": false,
86
+ "garden_structure": false,
87
+ "townhome_structure": false,
88
+ "modern_structure": false,
89
+ "nearby_employers": "",
90
+ "dogs_allowed": false,
91
+ "cats_allowed": false,
92
+ "accessibility": "0",
93
+ "air_conditioned": false,
94
+ "cable_included": false,
95
+ "ceiling_fans": false,
96
+ "custom_cabinetry": false,
97
+ "dishwasher": false,
98
+ "energy_efficient": false,
99
+ "fireplace": false,
100
+ "granite_counters": false,
101
+ "hardwood_floors": false,
102
+ "private_balcony": false,
103
+ "private_patio": false,
104
+ "refrigerator": false,
105
+ "stainless_appliances": false,
106
+ "smoke_free": false,
107
+ "style_design": "",
108
+ "style_cost": "",
109
+ "walkin_closet": false,
110
+ "washer_dryer": false,
111
+ "has_view": false,
112
+ "other_amenities": "",
113
+ "carport_parking": false,
114
+ "club_house": false,
115
+ "dog_park": false,
116
+ "corporate_suites": false,
117
+ "family_friendly": false,
118
+ "fitness_center": false,
119
+ "furnished_apartments": false,
120
+ "garages": false,
121
+ "gated_entrance": false,
122
+ "laundry_facilities": false,
123
+ "online_rental_payments": false,
124
+ "onsite_management": false,
125
+ "close_park": false,
126
+ "pet_friendly": false,
127
+ "playground": false,
128
+ "recycling_center": false,
129
+ "swimming_pool": false,
130
+ "hot_tub": false,
131
+ "storage_available": false,
132
+ "tennis_court": false,
133
+ "wifi_available": false,
134
+ "other_community_amenities": "",
135
+ "primary_offering_other": null,
136
+ "ga_tracking_id": "",
137
+ "ga_profile_id": "",
138
+ "landmark_1_type": "",
139
+ "landmark_1_name": "",
140
+ "landmark_2_type": "",
141
+ "landmark_2_name": "",
142
+ "property_feature_1": "",
143
+ "property_feature_2": "",
144
+ "property_feature_3": "",
145
+ "apartment_amenity_1": "",
146
+ "apartment_amenity_2": "",
147
+ "community_amenity_1": "",
148
+ "community_amenity_2": ""
149
+ }
150
+ }
@@ -1,10 +1,9 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe G5FoundationClient::Fetcher do
4
- before { G5FoundationClient.access_token = "token" }
5
4
 
6
5
  describe ".fetch_url" do
7
- let(:url) { "http://example.com/?access_token=token" }
6
+ let(:url) { "http://example.com/" }
8
7
  subject(:fetch) do
9
8
  yielded_markup = nil
10
9
  G5FoundationClient::Fetcher.fetch_url(url) do |markup|
@@ -1,7 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe G5FoundationClient::Client do
4
- before { G5FoundationClient.access_token = "token" }
5
4
 
6
5
  describe "instantiating with a hash" do
7
6
  subject do
@@ -50,7 +49,7 @@ describe G5FoundationClient::Client do
50
49
  describe :all_client_uids do
51
50
  let(:clients_url) { 'http://the-hub-clients-url' }
52
51
  let(:response) { fixture('hub-clients.json') }
53
- before { stub_json(clients_url + '?access_token=token', response) }
52
+ before { stub_json(clients_url, response) }
54
53
  subject(:all_client_uids) { G5FoundationClient::Client.all_client_uids(clients_url) }
55
54
  let(:expected) do
56
55
  %w(http://hub.g5dxm.com/clients/g5-c-1sshwrc5-chateau-retirement-communities-llc http://hub.g5dxm.com/clients/g5-c-1skckws2-case-and-associates-properties-inc http://hub.g5dxm.com/clients/g5-c-1sjhz1kl-holland-residential http://hub.g5dxm.com/clients/g5-c-1szcnbet-berkshire-communities http://hub.g5dxm.com/clients/g5-c-1soj8z7v-g5-selfstorage http://hub.g5dxm.com/clients/g5-c-1suhzvye-demo-client-senior-living http://hub.g5dxm.com/clients/g5-c-1t08o5vy-default-yaml-test http://hub.g5dxm.com/clients/g5-c-1szs3551-passco-companies-llc http://hub.g5dxm.com/clients/g5-c-1sze0wlk-legacy-ptla http://hub.g5dxm.com/clients/g5-c-1szn2ho0-spinup-test-4 http://hub.g5dxm.com/clients/g5-c-1stn8mua-blue-ridge-companies http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily http://hub.g5dxm.com/clients/g5-c-1szcsfqz-animal-farm http://hub.g5dxm.com/clients/g5-c-6d4gqkl-demo http://hub.g5dxm.com/clients/g5-c-1skmeepf-clowns-monkeys-jokers http://hub.g5dxm.com/clients/g5-c-1slhp2tc-compass-rock-real-estate http://hub.g5dxm.com/clients/g5-c-1svnc06g-deploy-test http://hub.g5dxm.com/clients/g5-c-1sve69nj-brian-url-test http://hub.g5dxm.com/clients/g5-c-1su8sbx5-brian-reader-test http://hub.g5dxm.com/clients/g5-c-1su76sgw-brian-test-cms http://hub.g5dxm.com/clients/g5-c-1strrmif-cke-properties http://hub.g5dxm.com/clients/g5-c-1sojmghc-g5-multifamily2 http://hub.g5dxm.com/clients/g5-c-1so8p6u9-mj-storage http://hub.g5dxm.com/clients/g5-c-1sbdk8wp-bb-self-storage http://hub.g5dxm.com/clients/g5-c-1sf7t8z8-jls-single-domain-client http://hub.g5dxm.com/clients/g5-c-1servrzr-luxe-apartment-company http://hub.g5dxm.com/clients/g5-c-6d4u4sc-madrona http://hub.g5dxm.com/clients/g5-c-1sbmayxa-bb-properties http://hub.g5dxm.com/clients/g5-c-1s9v57wo-jls-inc http://hub.g5dxm.com/clients/g5-c-1s3t3hh2-omni-consumer-products)
@@ -63,7 +62,7 @@ describe G5FoundationClient::Client do
63
62
  describe ".find_by_uid" do
64
63
  let(:uid) { 'http://example.com/clients/g5-c-1234-client' }
65
64
  let(:response) { fixture('hub-client.json') }
66
- before { stub_json(uid + '?access_token=token', response) }
65
+ before { stub_json(uid, response) }
67
66
  subject(:find) { G5FoundationClient::Client.find_by_uid(uid) }
68
67
 
69
68
  its(:name) { should eq('no store') }
@@ -1,7 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe G5FoundationClient::Location do
4
- before { G5FoundationClient.access_token = "token" }
5
4
 
6
5
  describe "instantiating with a hash" do
7
6
  let(:client) { G5FoundationClient::Client.new(uid: 'myclient') }
@@ -61,7 +60,7 @@ describe G5FoundationClient::Location do
61
60
  'http://example.com/clients/g5-c-1234-client/locations/g5-cl-1234-location'
62
61
  end
63
62
  let(:response) { fixture('hub-location.json') }
64
- before { stub_json(uid + '?access_token=token', response) }
63
+ before { stub_json(uid, response) }
65
64
  subject(:find) { G5FoundationClient::Location.find_by_uid(uid) }
66
65
 
67
66
  its(:name) { should eq('brussels') }
@@ -42,5 +42,4 @@ end
42
42
  RSpec.configure do |config|
43
43
  config.include Webmockery
44
44
  config.include FixturesHelper
45
- config.after { G5FoundationClient.access_token = nil }
46
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_foundation_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-22 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -154,7 +154,6 @@ files:
154
154
  - spec/lib/g5_foundation_client/fetcher_spec.rb
155
155
  - spec/lib/g5_foundation_client/models/client_spec.rb
156
156
  - spec/lib/g5_foundation_client/models/location_spec.rb
157
- - spec/lib/g5_foundation_client_spec.rb
158
157
  - spec/spec_helper.rb
159
158
  homepage: https://github.com/g5/g5_foundation_client
160
159
  licenses:
@@ -187,6 +186,4 @@ test_files:
187
186
  - spec/lib/g5_foundation_client/fetcher_spec.rb
188
187
  - spec/lib/g5_foundation_client/models/client_spec.rb
189
188
  - spec/lib/g5_foundation_client/models/location_spec.rb
190
- - spec/lib/g5_foundation_client_spec.rb
191
189
  - spec/spec_helper.rb
192
- has_rdoc:
@@ -1,23 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe G5FoundationClient do
4
- describe ".access_token" do
5
- subject { G5FoundationClient.access_token }
6
-
7
- context "when it has not been set" do
8
- before do
9
- G5AuthenticationClient::Client.stub_chain(
10
- :new,
11
- get_access_token: "fetched access token"
12
- )
13
- end
14
-
15
- it { should eql("fetched access token") }
16
- end
17
-
18
- context "when it has beeen set" do
19
- before { G5FoundationClient.access_token = "set access token" }
20
- it { should eql("set access token") }
21
- end
22
- end
23
- end