bilisim_sozlugu 1.0.0 → 2.0.1

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
- SHA1:
3
- metadata.gz: 3984ac925d7e3be93e6ca52df1d626f889ca3da4
4
- data.tar.gz: 415ae4b16edcfa5ab67612c78db9273c40096d48
2
+ SHA256:
3
+ metadata.gz: 061e41aadb70deaff1829d6194155e1e793eaaf2c240b1f351a579f94942e060
4
+ data.tar.gz: 73bd4a4de5cb7658e6719faba6fd590ea3fc200028e8a44a950d406b57ba0929
5
5
  SHA512:
6
- metadata.gz: 8bfe8737a9191b6c2784feff3378fdb8866fbf6f8cda7c39b049feccda9a868ad0ebe2659b29788ca1145b979b872e133c1006ba4f528cc7ef73c82c8432ca06
7
- data.tar.gz: b09027bd4b79374021ef081ac1dfdccf22106ed2bf54f9d73bccecf2f378fe49b6f9ddf1b4df95281673bfc870b542d979f089f99f5e944c1f6316a8c79d7436
6
+ metadata.gz: 6737bdffb87926884dcc9100bc182674f08913eec4a1ec1e4c707e8caf57f0c2440fbcb1538029f60087ea60f2610dba05e0cd772888546d72f675de9948baf5
7
+ data.tar.gz: e4d48254dcd502775d0922006bac8d8804a73b5bca0c23c1499ada18bb1f19c7332da859e064b8a9abc472f5eaf182963f135d916a50d9f3322578f96745570a
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'
data/README.md CHANGED
@@ -20,9 +20,7 @@ Or install it yourself as:
20
20
  ## Usage
21
21
 
22
22
  ```
23
-
24
- $ require 'bilisim_sozlugu'
25
- $ BilisimSozlugu.search('memory')
23
+ $ sozluk memory
26
24
 
27
25
  # +---------------------------+-----------------------------+
28
26
  # | belleği derleyip toplama | memory compaction |
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = BilisimSozlugu::VERSION
9
9
  spec.authors = ["Ender Ahmet Yurt"]
10
10
  spec.email = ["enderyurt@gmail.com"]
11
- spec.summary = "Translate the word from English to Turkish."
12
- spec.description = "Translating English words which are used in computer world to Turkish from Informatics Association of Turkey offical website."
11
+ spec.summary = "Translate Computer Terms from English to Turkish."
12
+ spec.description = "Translating English terms related to Computer Sciences to Turkish from Informatics Association of Turkey's offical website."
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_development_dependency "nokogiri", "~> 1.6.0"
23
+ spec.add_development_dependency "nokogiri", ">= 1.10.8"
24
24
  spec.add_development_dependency "terminal-table"
25
25
  end
@@ -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.0.0"
3
+ VERSION = "2.0.1"
3
4
  end
@@ -0,0 +1,2 @@
1
+ --dir
2
+ .
@@ -0,0 +1,285 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/coderay/all/coderay.rbi
9
+ #
10
+ # coderay-1.1.3
11
+
12
+ module CodeRay
13
+ def self.coderay_path(*path); end
14
+ def self.encode(code, lang, format, options = nil); end
15
+ def self.encode_file(filename, format, options = nil); end
16
+ def self.encode_tokens(tokens, format, options = nil); end
17
+ def self.encoder(format, options = nil); end
18
+ def self.get_scanner_options(options); end
19
+ def self.highlight(code, lang, options = nil, format = nil); end
20
+ def self.highlight_file(filename, options = nil, format = nil); end
21
+ def self.scan(code, lang, options = nil, &block); end
22
+ def self.scan_file(filename, lang = nil, options = nil, &block); end
23
+ def self.scanner(lang, options = nil, &block); end
24
+ end
25
+ module CodeRay::FileType
26
+ def self.[](filename, read_shebang = nil); end
27
+ def self.fetch(filename, default = nil, read_shebang = nil); end
28
+ def self.type_from_shebang(filename); end
29
+ end
30
+ class CodeRay::FileType::UnknownFileType < Exception
31
+ end
32
+ class CodeRay::Tokens < Array
33
+ def begin_group(kind); end
34
+ def begin_line(kind); end
35
+ def count; end
36
+ def encode(encoder, options = nil); end
37
+ def end_group(kind); end
38
+ def end_line(kind); end
39
+ def method_missing(meth, options = nil); end
40
+ def scanner; end
41
+ def scanner=(arg0); end
42
+ def split_into_parts(*sizes); end
43
+ def text_token(*arg0); end
44
+ def to_s; end
45
+ def tokens(*arg0); end
46
+ end
47
+ class CodeRay::TokensProxy
48
+ def block; end
49
+ def block=(arg0); end
50
+ def each(*args, &blk); end
51
+ def encode(encoder, options = nil); end
52
+ def initialize(input, lang, options = nil, block = nil); end
53
+ def input; end
54
+ def input=(arg0); end
55
+ def lang; end
56
+ def lang=(arg0); end
57
+ def method_missing(method, *args, &blk); end
58
+ def options; end
59
+ def options=(arg0); end
60
+ def scanner; end
61
+ def tokens; end
62
+ end
63
+ module CodeRay::PluginHost
64
+ def [](id, *args, &blk); end
65
+ def all_plugins; end
66
+ def const_missing(const); end
67
+ def default(id = nil); end
68
+ def list; end
69
+ def load(id, *args, &blk); end
70
+ def load_all; end
71
+ def load_plugin_map; end
72
+ def make_plugin_hash; end
73
+ def map(hash); end
74
+ def path_to(plugin_id); end
75
+ def plugin_hash; end
76
+ def plugin_path(*args); end
77
+ def register(plugin, id); end
78
+ def self.extended(mod); end
79
+ def validate_id(id); end
80
+ end
81
+ class CodeRay::PluginHost::PluginNotFound < LoadError
82
+ end
83
+ class CodeRay::PluginHost::HostNotFound < LoadError
84
+ end
85
+ module CodeRay::Plugin
86
+ def aliases; end
87
+ def plugin_host(host = nil); end
88
+ def plugin_id; end
89
+ def register_for(id); end
90
+ def title(title = nil); end
91
+ end
92
+ module CodeRay::Scanners
93
+ extend CodeRay::PluginHost
94
+ end
95
+ class CodeRay::Scanners::Scanner < StringScanner
96
+ def binary_string; end
97
+ def column(pos = nil); end
98
+ def each(&block); end
99
+ def file_extension; end
100
+ def initialize(code = nil, options = nil); end
101
+ def lang; end
102
+ def line(pos = nil); end
103
+ def raise_inspect(message, tokens, state = nil, ambit = nil, backtrace = nil); end
104
+ def raise_inspect_arguments(message, tokens, state, ambit); end
105
+ def reset; end
106
+ def reset_instance; end
107
+ def scan_rest; end
108
+ def scan_tokens(tokens, options); end
109
+ def scanner_state_info(state); end
110
+ def self.encode_with_encoding(code, target_encoding); end
111
+ def self.encoding(name = nil); end
112
+ def self.file_extension(extension = nil); end
113
+ def self.guess_encoding(s); end
114
+ def self.lang; end
115
+ def self.normalize(code); end
116
+ def self.to_unix(code); end
117
+ def set_string_from_source(source); end
118
+ def set_tokens_from_options(options); end
119
+ def setup; end
120
+ def state; end
121
+ def state=(arg0); end
122
+ def string=(code); end
123
+ def tokenize(source = nil, options = nil); end
124
+ def tokens; end
125
+ def tokens_last(tokens, n); end
126
+ def tokens_size(tokens); end
127
+ extend CodeRay::Plugin
128
+ include Enumerable
129
+ end
130
+ class CodeRay::Scanners::Scanner::ScanError < StandardError
131
+ end
132
+ class CodeRay::WordList < Hash
133
+ def add(words, value = nil); end
134
+ def initialize(default = nil); end
135
+ end
136
+ class CodeRay::WordList::CaseIgnoring < CodeRay::WordList
137
+ def [](key); end
138
+ def []=(key, value); end
139
+ end
140
+ module CodeRay::Scanners::Java::BuiltinTypes
141
+ end
142
+ class CodeRay::Scanners::Java < CodeRay::Scanners::Scanner
143
+ def scan_tokens(encoder, options); end
144
+ end
145
+ class CodeRay::Scanners::Ruby < CodeRay::Scanners::Scanner
146
+ def interpreted_string_state; end
147
+ def scan_tokens(encoder, options); end
148
+ def setup; end
149
+ end
150
+ module CodeRay::Scanners::Ruby::Patterns
151
+ end
152
+ class Anonymous_Struct_4 < Struct
153
+ def delim; end
154
+ def delim=(_); end
155
+ def heredoc; end
156
+ def heredoc=(_); end
157
+ def interpreted; end
158
+ def interpreted=(_); end
159
+ def next_state; end
160
+ def next_state=(_); end
161
+ def opening_paren; end
162
+ def opening_paren=(_); end
163
+ def paren_depth; end
164
+ def paren_depth=(_); end
165
+ def pattern; end
166
+ def pattern=(_); end
167
+ def self.[](*arg0); end
168
+ def self.inspect; end
169
+ def self.members; end
170
+ def self.new(*arg0); end
171
+ def type; end
172
+ def type=(_); end
173
+ end
174
+ class CodeRay::Scanners::Ruby::StringState < Anonymous_Struct_4
175
+ def heredoc_pattern(delim, interpreted, indented); end
176
+ def initialize(kind, interpreted, delim, heredoc = nil); end
177
+ def self.simple_key_pattern(delim); end
178
+ end
179
+ module CodeRay::Encoders
180
+ extend CodeRay::PluginHost
181
+ end
182
+ class CodeRay::Encoders::Encoder
183
+ def <<(token); end
184
+ def begin_group(kind); end
185
+ def begin_line(kind); end
186
+ def compile(tokens, options = nil); end
187
+ def encode(code, lang, options = nil); end
188
+ def encode_tokens(tokens, options = nil); end
189
+ def end_group(kind); end
190
+ def end_line(kind); end
191
+ def file_extension; end
192
+ def finish(options); end
193
+ def get_output(options); end
194
+ def highlight(code, lang, options = nil); end
195
+ def initialize(options = nil); end
196
+ def options; end
197
+ def options=(arg0); end
198
+ def output(data); end
199
+ def scanner; end
200
+ def scanner=(arg0); end
201
+ def self.const_missing(sym); end
202
+ def self.file_extension; end
203
+ def setup(options); end
204
+ def text_token(text, kind); end
205
+ def token(content, kind); end
206
+ def tokens(tokens, options = nil); end
207
+ extend CodeRay::Plugin
208
+ end
209
+ class CodeRay::Encoders::HTML < CodeRay::Encoders::Encoder
210
+ def begin_group(kind); end
211
+ def begin_line(kind); end
212
+ def break_lines(text, style); end
213
+ def check_group_nesting(name, kind); end
214
+ def check_options!(options); end
215
+ def close_span; end
216
+ def css; end
217
+ def css_class_for_kinds(kinds); end
218
+ def end_group(kind); end
219
+ def end_line(kind); end
220
+ def finish(options); end
221
+ def make_span_for_kinds(method, hint); end
222
+ def self.make_html_escape_hash; end
223
+ def self.token_path_to_hint(hint, kinds); end
224
+ def setup(options); end
225
+ def style_for_kinds(kinds); end
226
+ def text_token(text, kind); end
227
+ end
228
+ module CodeRay::Encoders::HTML::Output
229
+ def apply_title!(title); end
230
+ def css; end
231
+ def css=(arg0); end
232
+ def self.extended(o); end
233
+ def self.make_stylesheet(css, in_tag = nil); end
234
+ def self.page_template_for_css(css); end
235
+ def stylesheet(in_tag = nil); end
236
+ def wrap!(element, *args); end
237
+ def wrap_in!(template); end
238
+ def wrapped_in; end
239
+ def wrapped_in=(arg0); end
240
+ def wrapped_in?(element); end
241
+ end
242
+ class CodeRay::Encoders::HTML::Output::Template < String
243
+ def apply(target, replacement); end
244
+ def self.wrap!(str, template, target); end
245
+ end
246
+ class CodeRay::Encoders::HTML::CSS
247
+ def get_style_for_css_classes(css_classes); end
248
+ def initialize(style = nil); end
249
+ def parse(stylesheet); end
250
+ def self.load_stylesheet(style = nil); end
251
+ def stylesheet; end
252
+ end
253
+ module CodeRay::Encoders::HTML::Numbering
254
+ def self.number!(output, mode = nil, options = nil); end
255
+ end
256
+ module CodeRay::Styles
257
+ extend CodeRay::PluginHost
258
+ end
259
+ class CodeRay::Styles::Style
260
+ extend CodeRay::Plugin
261
+ end
262
+ class CodeRay::Duo
263
+ def call(code, options = nil); end
264
+ def encode(code, options = nil); end
265
+ def encoder; end
266
+ def format; end
267
+ def format=(arg0); end
268
+ def highlight(code, options = nil); end
269
+ def initialize(lang = nil, format = nil, options = nil); end
270
+ def lang; end
271
+ def lang=(arg0); end
272
+ def options; end
273
+ def options=(arg0); end
274
+ def scanner; end
275
+ def self.[](*arg0); end
276
+ end
277
+ class CodeRay::Encoders::Terminal < CodeRay::Encoders::Encoder
278
+ def begin_group(kind); end
279
+ def begin_line(kind); end
280
+ def end_group(kind); end
281
+ def end_line(kind); end
282
+ def open_token(kind); end
283
+ def setup(options); end
284
+ def text_token(text, kind); end
285
+ end
@@ -0,0 +1,64 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/method_source/all/method_source.rbi
9
+ #
10
+ # method_source-0.9.2
11
+
12
+ module MethodSource
13
+ def self.comment_helper(source_location, name = nil); end
14
+ def self.extract_code(source_location); end
15
+ def self.lines_for(file_name, name = nil); end
16
+ def self.source_helper(source_location, name = nil); end
17
+ def self.valid_expression?(str); end
18
+ extend MethodSource::CodeHelpers
19
+ end
20
+ module MethodSource::ReeSourceLocation
21
+ def source_location; end
22
+ end
23
+ module MethodSource::SourceLocation
24
+ end
25
+ module MethodSource::SourceLocation::MethodExtensions
26
+ def source_location; end
27
+ def trace_func(event, file, line, id, binding, classname); end
28
+ end
29
+ module MethodSource::SourceLocation::ProcExtensions
30
+ def source_location; end
31
+ end
32
+ module MethodSource::SourceLocation::UnboundMethodExtensions
33
+ def source_location; end
34
+ end
35
+ module MethodSource::CodeHelpers
36
+ def comment_describing(file, line_number); end
37
+ def complete_expression?(str); end
38
+ def expression_at(file, line_number, options = nil); end
39
+ def extract_first_expression(lines, consume = nil, &block); end
40
+ def extract_last_comment(lines); end
41
+ end
42
+ module MethodSource::CodeHelpers::IncompleteExpression
43
+ def self.===(ex); end
44
+ def self.rbx?; end
45
+ end
46
+ class MethodSource::SourceNotFoundError < StandardError
47
+ end
48
+ module MethodSource::MethodExtensions
49
+ def comment; end
50
+ def self.included(klass); end
51
+ def source; end
52
+ end
53
+ class Method
54
+ include MethodSource::MethodExtensions
55
+ include MethodSource::SourceLocation::MethodExtensions
56
+ end
57
+ class UnboundMethod
58
+ include MethodSource::MethodExtensions
59
+ include MethodSource::SourceLocation::UnboundMethodExtensions
60
+ end
61
+ class Proc
62
+ include MethodSource::MethodExtensions
63
+ include MethodSource::SourceLocation::ProcExtensions
64
+ end
@@ -0,0 +1,78 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/mini_portile2/all/mini_portile2.rbi
9
+ #
10
+ # mini_portile2-2.4.0
11
+
12
+ class MiniPortile
13
+ def activate; end
14
+ def apply_patch(patch_file); end
15
+ def archives_path; end
16
+ def compile; end
17
+ def computed_options; end
18
+ def configure; end
19
+ def configure_defaults; end
20
+ def configure_options; end
21
+ def configure_options=(arg0); end
22
+ def configure_prefix; end
23
+ def configured?; end
24
+ def cook; end
25
+ def detect_host; end
26
+ def download; end
27
+ def download_file(url, full_path, count = nil); end
28
+ def download_file_file(uri, full_path); end
29
+ def download_file_ftp(uri, full_path); end
30
+ def download_file_http(url, full_path, count = nil); end
31
+ def downloaded?; end
32
+ def execute(action, command, options = nil); end
33
+ def extract; end
34
+ def extract_file(file, target); end
35
+ def files; end
36
+ def files=(arg0); end
37
+ def files_hashs; end
38
+ def gcc_cmd; end
39
+ def host; end
40
+ def host=(arg0); end
41
+ def initialize(name, version); end
42
+ def install; end
43
+ def installed?; end
44
+ def log_file(action); end
45
+ def logger; end
46
+ def logger=(arg0); end
47
+ def make_cmd; end
48
+ def message(text); end
49
+ def name; end
50
+ def newer?(target, checkpoint); end
51
+ def original_host; end
52
+ def output(text = nil); end
53
+ def patch; end
54
+ def patch_files; end
55
+ def patch_files=(arg0); end
56
+ def path; end
57
+ def port_path; end
58
+ def self.windows?; end
59
+ def tar_compression_switch(filename); end
60
+ def tar_exe; end
61
+ def target; end
62
+ def target=(arg0); end
63
+ def tmp_path; end
64
+ def verify_file(file); end
65
+ def version; end
66
+ def which(cmd); end
67
+ def with_tempfile(filename, full_path); end
68
+ def work_path; end
69
+ end
70
+ class Net::HTTP < Net::Protocol
71
+ end
72
+ class MiniPortileCMake < MiniPortile
73
+ def configure; end
74
+ def configure_defaults; end
75
+ def configure_prefix; end
76
+ def configured?; end
77
+ def make_cmd; end
78
+ end