reddit_api 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: e2c1a49844a77703602af21827434a0d54f4db28
4
- data.tar.gz: d59933c5bbeb7b06c38bf1319c99ed6e343317e8
3
+ metadata.gz: 7711c2f04b692818db5030e3f17129c777e1378a
4
+ data.tar.gz: e7c895bca02f24142693ada3510d7935d02975fd
5
5
  SHA512:
6
- metadata.gz: 6a631d30ae80980cab7ba975181c0e015da0abe7a98004f317f435fc99c92630c9cb93cddb063899f291cc4cd18b78cf032e64826c3f19a5506b9b012a1738d1
7
- data.tar.gz: 7ff3eda53055f62798f0344de7debca41da2e541806248d007ae0e9450f8a2ce0434c8872b5956909215ae0f186b132dc2c40c7634b193dab9982578ebc6c59e
6
+ metadata.gz: e66b99d8ad236885d92f87183056f5c1d996f98f64d03deed04809d0ef36412b173ef7ffd79cd45ed0dc87c5d9d329a3dba1ec9bb93b75c942fa96b07d3b5544
7
+ data.tar.gz: 4d4ccef23d3ede9e536837881927ed59d7647a35d71f4aa18c4b7a4003d2c6096cb2d85fa60493f2db7b943b76a2e2cf601530263f18e697d33b312b18d917fe
@@ -13,8 +13,8 @@ module RedditApi
13
13
  build_all_subreddits(subreddits_data)
14
14
  end
15
15
 
16
- def data_for(subreddit)
17
- query = build_singular_query(subreddit)
16
+ def data_for(subreddit_name)
17
+ query = build_singular_query(subreddit_name)
18
18
  client.get(query)
19
19
  build_subreddit(query.captured_records.first)
20
20
  end
@@ -35,8 +35,8 @@ module RedditApi
35
35
  resource: :subreddit)
36
36
  end
37
37
 
38
- def build_singular_query(subreddit)
39
- endpoint = "r/#{subreddit.name}/about.json"
38
+ def build_singular_query(subreddit_name)
39
+ endpoint = "r/#{subreddit_name}/about.json"
40
40
  query_factory.new(count: 1,
41
41
  endpoint: endpoint,
42
42
  resource: :subreddit)
@@ -1,3 +1,3 @@
1
1
  module RedditApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reddit_api
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
  - Anthony Fuentes