prayertimes 1.0.0 → 1.0.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: 56620c9087706a7cf2587e61a8c3520ccb59f3fb
4
- data.tar.gz: aa161d67cf5d43364f47387be41d8495afb68a37
3
+ metadata.gz: 2b63a51f886bd5ddf28b96d952fb2fe6f41e6259
4
+ data.tar.gz: d1ae4a34151307d0a8108a76144d5dc83fca1321
5
5
  SHA512:
6
- metadata.gz: f2bdec48edae509663daa91c5cc10bd6631e338d29bc5afd2eb2583084c9710b0ae6439d552acfbe1f6f6603e52a6e280e51d06513c0658691e8489f9046f654
7
- data.tar.gz: 80fe5afe07e86af212fa51954a0a1f6ca7f76292559a0632e3a5bcfc9873f3bb02851e4009cf70b88d3755499e4628e105d47b45c3e1f3660101a4ba7a979f65
6
+ metadata.gz: 4870a794f8f6114f49b30739265aad528cd7519f06fa8a3c7938347b35f2aaf832f496e8c80492b6224485829e86a938653dad0d6b6c0bf5783462d3e44b134d
7
+ data.tar.gz: 12a5111c8373dc4c2e0bf14d5decc028ffd9fbc5afda1884fb39f57ec960ee989a3edd094ea47352d16ee5322baf28b0b40fd313c7e1a86151f4c9aa6b139cc3
data/README.md CHANGED
@@ -19,8 +19,17 @@ Or install it yourself as:
19
19
  $ gem install prayertimes
20
20
 
21
21
  ## Usage
22
+ ```
23
+ pt = Prayertimes::Calculate.new(method_name)
24
+ # or
25
+ pt = Prayertimes::Calculate.new
26
+
27
+ # to get prayer times
28
+ pt.getTimes(Time.now.asctime, [43, -80], -5) #note that must use .asctime to convert the time into a string
22
29
 
23
- TODO: Write usage instructions here
30
+ # to change method
31
+ pt.setMethod(method)
32
+ ```
24
33
 
25
34
  ## Contributing
26
35
 
data/lib/prayertimes.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "prayertimes/version"
2
2
  require "date"
3
3
  module Prayertimes
4
- class Prayertimes
4
+ class Calculate
5
5
 
6
6
 
7
7
  # Names of the times
@@ -1,3 +1,3 @@
1
1
  module Prayertimes
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prayertimes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohamed El Mahallawy