alquran 0.0.0 → 0.0.2

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: b0d4684603e83ea987b54a2bce6e433dc356f3f5b47e2808708f2fee109ea680
4
- data.tar.gz: 642d68cb747f4eb031683ea227f9f4fee91e22428860fe83e243b8789cc37bc4
3
+ metadata.gz: eabc38bdd39d87ec4ffcc5d091f79957a82438c4903bdc32eadda8d87cbcfa64
4
+ data.tar.gz: 2cf343a04689f4835a96517e8afe9ada52bba3ad0e863893130f5a80fb6ff5d7
5
5
  SHA512:
6
- metadata.gz: 7183f3d14f11371d041907989598293b9ebf3cb2033cacdaa8bcb15d2d5d1eceb34806e97575e8beb8795ac2c73d4f3a27efd6a5a7ff49d15eb3a7eaa265219d
7
- data.tar.gz: f57f0a15e00fbc48ecf64f4d565605531f9e6d44e09bc054435ee8f6be900076f9d0964148f22795c4e95f2aa6091835630f19345363359f4486fa081bf3c2d0
6
+ metadata.gz: 8cc56b630c3c8075e88d7b12968d27de37637eff0fdbf1fd1ed06e6cfcd9182714f37090233863460d7e09d4ef2f7d417827a75f5318a761f153a7b66266e6d5
7
+ data.tar.gz: 483b5910958a7ff3e26902162dcb2867a3a01cf5e94c6f1a035024cff69ee62de3a35f16a4b4da335a73c49cb5b83ebac9b1d34725271eb3d856211fb8d3d62f
@@ -27,11 +27,13 @@ module Alquran
27
27
  raise RuntimeApiError.new
28
28
  end
29
29
 
30
- extra_options = {
31
- offset: options[:offset],
32
- limit: options[:limit],
33
- sajdah: options[:sajdah]
34
- }.compact
30
+ extra_options = if action_option[:action] == :ayahs
31
+ {
32
+ offset: options[:offset],
33
+ limit: options[:limit],
34
+ sajdah: options[:sajdah]
35
+ }.compact
36
+ end
35
37
 
36
38
  options.slice(:number).merge(self.entity_option).merge(action_option).merge(extras: extra_options)
37
39
  end
@@ -1,7 +1,7 @@
1
1
  module Api
2
2
  module UrlParser
3
- # BASE_URL = 'http://api.alquranpak.com'
4
- BASE_URL = 'http://localhost:3001'
3
+ BASE_URL = 'http://api.alquranpak.com'
4
+
5
5
  RELATIVE_PARAH_PATH = 'parahs'
6
6
  RELATIVE_SURAH_PATH = 'surahs'
7
7
  RELATIVE_AYAH_PATH = 'ayahs'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alquran
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahsan Ellahi
@@ -54,8 +54,9 @@ files:
54
54
  - lib/api/client.rb
55
55
  - lib/api/url_parser.rb
56
56
  - lib/extensions.rb
57
- homepage:
58
- licenses: []
57
+ homepage: https://github.com/ahsanellahi/alquran
58
+ licenses:
59
+ - MIT
59
60
  metadata: {}
60
61
  post_install_message:
61
62
  rdoc_options: []