vakit 0.1.2 → 0.1.3

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: 24e78fc931b1cba6879ab1dba2e20405e2d3aec8
4
- data.tar.gz: 4c623f54858a3471d5c1d78a35c68b3b6d085241
3
+ metadata.gz: 30d2c8850299007a34d50a8343c37b7284473b86
4
+ data.tar.gz: 8c983959fc5db11fd2236f8b7b60c0a7ffab4dd4
5
5
  SHA512:
6
- metadata.gz: a5a8268d5b4ae95a812a0815e0b4a37cd620e90e354d3ae9a054fc5499375eee7ec6c54593629c4c92f2eb32872818fcf3454e3f240ac8c892ca728ccffe2051
7
- data.tar.gz: e28efe44806fe337ee8605f62b1b25ed474d26b7e1e96198583225f775eec0244e73ec97a8fb21d5b17c1566fcad0aa1cf930be1e42d3b5655ffc27bc01092f3
6
+ metadata.gz: fc28694595181eb0b6831ba9d870f0f18817d5840dfc5f0cf70785528cea6f9ee7388336ee36014d8929bab1dcf23c1268092766a9af4305b534e197573d56b8
7
+ data.tar.gz: c27cceba3e945c6dfabb19bcb0183dd2457696dd6636fa4175655e550cdda484f411087e5abc84fd4e33c8896e8a089c837850f920ffc4129fa2f21a21efb072
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
- !https://badge.fury.io/rb/vakit.png!:http://badge.fury.io/rb/vakit
2
-
1
+ [![Gem Version](https://badge.fury.io/rb/vakit.png)](http://badge.fury.io/rb/vakit)
3
2
  # Vakit
4
3
  Vakit is a small tool which fetches prayer times for Turkey from www.samanyoluhaber.com and persists data in a Rails way. I plan to extend its capabilities to serve global prayer times for all nations.
5
4
 
data/lib/vakit.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "vakit/version"
2
2
  require 'vakit/connect'
3
- require 'Nokogiri'
3
+ require 'nokogiri'
4
4
  require 'open-uri'
5
5
 
6
6
  module Vakit
data/lib/vakit/connect.rb CHANGED
@@ -5,8 +5,8 @@ class Connect
5
5
  end
6
6
 
7
7
  def self.shaber
8
- doc = Nokogiri::HTML(open('http://www.samanyoluhaber.com/'))
9
- x = doc.css('#hnmzT')
8
+ @doc ||= Nokogiri::HTML(open('http://www.samanyoluhaber.com/'))
9
+ x = @doc.css('#hnmzT')
10
10
 
11
11
  times = []
12
12
  x.each do |vakit|
@@ -14,11 +14,10 @@ class Connect
14
14
  data_add = data.slice(0..data.length-2)
15
15
  times.push(data_add)
16
16
  end
17
- times
18
17
  vakit = {
19
18
 
20
- imsak: times[0],
21
- sabah: times[1],
19
+ imsak: "0"+times[0],
20
+ sabah: "0"+times[1],
22
21
  oglen: times[2],
23
22
  ikindi: times[3],
24
23
  aksam: times[4],
data/lib/vakit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vakit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vakit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soner CAN