Skip to content

Commit f1c9472

Browse files
committed
drop ruby 1.9 hash syntax
1 parent 1019a6a commit f1c9472

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
v1.3.23
2+
- remove ruby 1.9 hash syntax
3+
14
v1.3.22
25
- Upgrade Faraday to 0.9

lib/spark_api/models/saved_search.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def listings(args = {})
6969

7070
def newsfeeds
7171
if @newsfeeds.nil?
72-
response = SparkApi.client.get("/savedsearches/#{@attributes["Id"]}", _expand: "NewsFeeds").first["NewsFeeds"]
72+
response = SparkApi.client.get("/savedsearches/#{@attributes["Id"]}", :_expand => "NewsFeeds").first["NewsFeeds"]
7373
# the response from the api is just a bunch of hashes, but we can turn them into Newsfeed instances
7474
@newsfeeds = response.map { |hash| Newsfeed.new(hash) }
7575
end

0 commit comments

Comments
 (0)