bilisim_sozlugu 1.3.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -1
- data/lib/bilisim_sozlugu.rb +8 -3
- data/lib/bilisim_sozlugu/version.rb +2 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dd0d2be97710eb6d9b84fa2ad2442b264bc66531f64a39035e56406b8f0710b
|
4
|
+
data.tar.gz: bb1e160ac90867e0e775cabe7fb5812b3fff624e768fd4beb8732ca142cc8676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4a040a5844c224ddd6de879c5a0e31bdb97c3a7f0c85f9b322087aab2159bb4e9fb2899bb416f2619a8e442cb5f153cefa5492e83ce7c3692d2a03db14d7cd1
|
7
|
+
data.tar.gz: bdd67da0e3abb284bf43ab4cf02970bb4e6f816acd7162d970acbe77662c7f6f457c73094f10be13278147eeb1bc2ddf37b86b3f651396b177f3c76c601270a5
|
data/Gemfile
CHANGED
data/lib/bilisim_sozlugu.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
1
3
|
require "rubygems"
|
2
4
|
require "open-uri"
|
3
5
|
require "nokogiri"
|
@@ -5,11 +7,14 @@ require 'terminal-table'
|
|
5
7
|
require "bilisim_sozlugu/version"
|
6
8
|
|
7
9
|
module BilisimSozlugu
|
8
|
-
|
9
|
-
|
10
|
+
extend T::Sig
|
11
|
+
|
12
|
+
URL = T.let("http://eski.tbd.org.tr/index.php?sayfa=sozluk&mi1&tipi=ara&harf=A&arama=".freeze, String)
|
13
|
+
CSS_SELECTOR = T.let("table tbody tr".freeze, String)
|
10
14
|
|
15
|
+
sig {params(word: String).void}
|
11
16
|
def self.search(word)
|
12
|
-
call_url = URL + word
|
17
|
+
call_url = T.let(URL + word, String)
|
13
18
|
page = Nokogiri::HTML(open(call_url))
|
14
19
|
rows = page.css(CSS_SELECTOR)
|
15
20
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bilisim_sozlugu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ender Ahmet Yurt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
|
-
|
107
|
-
rubygems_version: 2.7.10
|
106
|
+
rubygems_version: 3.1.4
|
108
107
|
signing_key:
|
109
108
|
specification_version: 4
|
110
109
|
summary: Translate Computer Terms from English to Turkish.
|