Kaynağa Gözat

add type check

Mehmet Aydoğdu 2 yıl önce
ebeveyn
işleme
127da5ddf8
5 değiştirilmiş dosya ile 71 ekleme ve 0 silme
  1. 1 0
      Gemfile
  2. 34 0
      Gemfile.lock
  3. 7 0
      README.md
  4. 28 0
      Steepfile
  5. 1 0
      payment.gemspec

+ 1 - 0
Gemfile

@@ -19,3 +19,4 @@ gem 'rubocop-minitest', require: false
 
 gem "activesupport", ">= 7.0"
 gem 'paratika', path: "../paratika" # payment gateway
+gem 'steep'

+ 34 - 0
Gemfile.lock

@@ -10,10 +10,12 @@ PATH
     payment (1.0.0)
       activesupport (>= 7.0)
       paratika (~> 1.0)
+      steep
 
 GEM
   remote: https://rubygems.org/
   specs:
+    abbrev (0.1.2)
     activesupport (7.1.3.2)
       base64
       bigdecimal
@@ -36,11 +38,18 @@ GEM
     builder (3.2.4)
     concurrent-ruby (1.2.3)
     connection_pool (2.4.1)
+    csv (3.3.0)
     drb (2.2.1)
+    ffi (1.16.3)
+    fileutils (1.7.2)
     i18n (1.14.4)
       concurrent-ruby (~> 1.0)
     json (2.7.1)
     language_server-protocol (3.17.0.3)
+    listen (3.9.0)
+      rb-fsevent (~> 0.10, >= 0.10.3)
+      rb-inotify (~> 0.9, >= 0.9.10)
+    logger (1.6.0)
     method_source (1.0.0)
     minitest (5.22.3)
     minitest-focus (1.4.0)
@@ -61,6 +70,11 @@ GEM
     rack (3.0.10)
     rainbow (3.1.1)
     rake (13.1.0)
+    rb-fsevent (0.11.2)
+    rb-inotify (0.10.1)
+      ffi (~> 1.0)
+    rbs (3.4.4)
+      abbrev
     regexp_parser (2.9.0)
     reverse_markdown (2.1.1)
       nokogiri
@@ -84,6 +98,25 @@ GEM
     rubocop-rake (0.6.0)
       rubocop (~> 1.0)
     ruby-progressbar (1.13.0)
+    securerandom (0.3.1)
+    steep (1.6.0)
+      activesupport (>= 5.1)
+      concurrent-ruby (>= 1.1.10)
+      csv (>= 3.0.9)
+      fileutils (>= 1.1.0)
+      json (>= 2.1.0)
+      language_server-protocol (>= 3.15, < 4.0)
+      listen (~> 3.0)
+      logger (>= 1.3.0)
+      parser (>= 3.1)
+      rainbow (>= 2.2.2, < 4.0)
+      rbs (>= 3.1.0)
+      securerandom (>= 0.1)
+      strscan (>= 1.0.0)
+      terminal-table (>= 2, < 4)
+    strscan (3.1.0)
+    terminal-table (3.0.2)
+      unicode-display_width (>= 1.1.1, < 3)
     tzinfo (2.0.6)
       concurrent-ruby (~> 1.0)
     unicode-display_width (2.5.0)
@@ -103,6 +136,7 @@ DEPENDENCIES
   rubocop
   rubocop-minitest
   rubocop-rake
+  steep
 
 BUNDLED WITH
    2.3.23

+ 7 - 0
README.md

@@ -32,6 +32,13 @@ require 'payment'
 rake test
 ```
 
+### Development
+
+```
+gem install steep
+steep check
+```
+
 ### Contributors
 [AKILLI BULUT](https://github.com/akillibulut/paratika)
 

+ 28 - 0
Steepfile

@@ -0,0 +1,28 @@
+# D = Steep::Diagnostic
+#
+target :lib do
+  signature "sig"
+  check "lib"
+#   check "Gemfile"                   # File name
+#   check "app/models/**/*.rb"        # Glob
+#   ignore "lib/templates/*.rb"
+#
+#   library "pathname"              # Standard libraries
+#   library "strong_json"           # Gems
+#
+#   configure_code_diagnostics(D::Ruby.default)      # `default` diagnostics setting (applies by default)
+#   configure_code_diagnostics(D::Ruby.strict)       # `strict` diagnostics setting
+#   configure_code_diagnostics(D::Ruby.lenient)      # `lenient` diagnostics setting
+#   configure_code_diagnostics(D::Ruby.silent)       # `silent` diagnostics setting
+#   configure_code_diagnostics do |hash|             # You can setup everything yourself
+#     hash[D::Ruby::NoMethod] = :information
+#   end
+end
+
+# target :test do
+#   signature "sig", "sig-private"
+#
+#   check "test"
+#
+#   # library "pathname"              # Standard libraries
+# end

+ 1 - 0
payment.gemspec

@@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
   # Uncomment to register a new dependency of your gem
   spec.add_dependency "activesupport", ">= 7.0"
   spec.add_dependency "paratika", "~> 1.0"
+  spec.add_dependency "steep"
 
   # For more information and examples about making a new gem, check out our
   # guide at: https://bundler.io/guides/creating_gem.html