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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5352629a505e9557ca606f6860c053ec981d501d9cbc5ed5b9b06c3f10360e6f
4
- data.tar.gz: 62e2a031616ef835f0cb7abe1bd49d50dadac411e78756b5cfbf368cf167a85e
3
+ metadata.gz: 6dd0d2be97710eb6d9b84fa2ad2442b264bc66531f64a39035e56406b8f0710b
4
+ data.tar.gz: bb1e160ac90867e0e775cabe7fb5812b3fff624e768fd4beb8732ca142cc8676
5
5
  SHA512:
6
- metadata.gz: bd8d385a4f1900703350b6e00cd1a7ecc7e4dc6cf05b11f653a6f540fa2adcdf40d480a36a1b5e778bfe8a830a330e342e101ca0810c5b25bc2f74e820a2ba90
7
- data.tar.gz: 255bbc2741d5e516354beb9466b4d81e16db5adf5faddf02ab23c007d07dfa30dd138204740caf654a99b03527e6c99b2b716ebd889b2d0fbe2d5b88bd7c3ebc
6
+ metadata.gz: c4a040a5844c224ddd6de879c5a0e31bdb97c3a7f0c85f9b322087aab2159bb4e9fb2899bb416f2619a8e442cb5f153cefa5492e83ce7c3692d2a03db14d7cd1
7
+ data.tar.gz: bdd67da0e3abb284bf43ab4cf02970bb4e6f816acd7162d970acbe77662c7f6f457c73094f10be13278147eeb1bc2ddf37b86b3f651396b177f3c76c601270a5
data/Gemfile CHANGED
@@ -6,4 +6,7 @@ gemspec
6
6
  group :development, :test do
7
7
  gem 'pry', '~> 0.9.12'
8
8
  gem 'rspec', '>= 2.14'
9
- end
9
+ gem 'sorbet'
10
+ end
11
+
12
+ gem 'sorbet-runtime'
@@ -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
- URL = "http://eski.tbd.org.tr/index.php?sayfa=sozluk&mi1&tipi=ara&harf=A&arama=".freeze
9
- CSS_SELECTOR = "table tbody tr".freeze
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
 
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  module BilisimSozlugu
2
- VERSION = "1.3.0"
3
+ VERSION = "2.0.0"
3
4
  end
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: 1.3.0
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-08 00:00:00.000000000 Z
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
- rubyforge_project:
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.