solargraph-rails 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: d858d4629536831435d33c60964333216d2e46e42599dcd601775aa318b01365
4
- data.tar.gz: 9bd2374250f08adbe776f83b8e65ccb44687fe711e1d8c504a75179c7c8c2a6f
3
+ metadata.gz: 136534eb40ae838dfcc2a78abb2e6e0bc0c9cf187c6b1d86095dda51e876aa24
4
+ data.tar.gz: d90e381a7a65f81900252347da41b2b2b46721e9f3e57930a90c9e00f0b480b4
5
5
  SHA512:
6
- metadata.gz: 3ceef9227e4ac62fe4d47546a5f0760c0844094239c81d6b5ba398ffad29194f5fb6e29f55a287d093ba356a7393db0793da764600a727d674409e854cf86701
7
- data.tar.gz: 1a12a01d7b6807e68afe580125f0abd11273362a54e24b3207921c870805c89636346dfe925ffbb94729b71313965dbbe0e8a777170eaed1fceac3e4c3350125
6
+ metadata.gz: 770b2ae68e6baa102d4474925394e05750580bed3726abb7e965a04f320d4ac14d3108dd8a0360ae340971b522579178dcf2fca6df15cbdab2d3ecc2bc0a488f
7
+ data.tar.gz: 641c7f310938d271bcaeb58dc4aefbca9d5d61aa53f4a33272c38025cbf5a6e2da469920441c2f22d17dbae7ebc926ec5aedbfae6feea0622a84968784cc009d
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## Changes
4
4
 
5
+ ### v1.1.2
6
+
7
+ Features / fixes:
8
+
9
+ - fix bad gemspec solargraph dependency
10
+ - additional pre-packaged Rails type definitions (Thanks, @grncdr!)
11
+
12
+ Internal improvements:
13
+
14
+ - Use normal ruby source for extra YARD annotations (Thanks, @grncdr!)
15
+ - Speed up CI for recent Solargraph version fresh builds
16
+ - spec reliability fixes
17
+ -
18
+
5
19
  ### v1.1.1
6
20
 
7
21
  New maintainer: @apiology
data/DEVELOPMENT.md CHANGED
@@ -84,10 +84,11 @@ Make sure to review the script and uncomment relevant parts
84
84
  ## Preparing a release (maintainers)
85
85
 
86
86
  1. Look up [most recent release](https://rubygems.org/gems/solargraph-rails)
87
- [done to here]
88
- 2. Open up [commit list](https://github.com/iftheshoefritz/solargraph-rails/compare/v1.1.0...main)a
87
+ 2. Open up commit list(https://github.com/iftheshoefritz/solargraph-rails/compare/v1.1.1...main)
89
88
  3. Update [CHANGELOG.md](./CHANGELOG.md)
90
89
  4. Flip to 'files changed view' and refine updates
91
90
  5. Bump [version](./lib/solargraph/rails/version.rb) appropriately
92
91
  6. Create branch, commit and merge changes - "Prepare for vX.Y.Z release", branch: prepare_vX.Y.Z_release
93
- 7. `git checkout master && git pull && bundle exec rake release`
92
+ 7. `git config branch.main.remote`
93
+ 8. Ensure your local main branch is directly from iftheshoefritz:
94
+ 9. `git checkout main && git pull && bundle exec rake release`
data/Gemfile CHANGED
@@ -7,10 +7,23 @@ source 'https://rubygems.org'
7
7
  #
8
8
  # So if we just install the rails deps at the same time, we have a single cache and a single
9
9
  # directory for gems.
10
- plugin 'auto_yard', path: './ci/auto_yard'
11
10
  rails_version = ENV['MATRIX_RAILS_VERSION'] || '7'
12
11
  instance_eval File.read(File.expand_path("spec/rails#{rails_version}/Gemfile", __dir__))
13
12
 
13
+ solargraph_version = (ENV['CI'] && ENV['MATRIX_SOLARGRAPH_VERSION'])
14
+
15
+ # ensure that YARD docs get cached by ruby/setup-ruby in GitHub
16
+ # Actions if using an older version of solargraph that needs user to
17
+ # run `yard gems` manually
18
+ if solargraph_version
19
+ solargraph_minor_version = solargraph_version.split('.')[1].to_i
20
+ solargraph_major_version = solargraph_version.split('.')[0].to_i
21
+ if solargraph_version && solargraph_major_version == 0 && solargraph_minor_version < 53
22
+ plugin 'auto_yard', path: File.expand_path('ci/auto_yard', __dir__)
23
+ STDERR.puts("Using auto_yard plugin at #{File.expand_path('ci/auto_yard', __dir__)}")
24
+ end
25
+ end
26
+
14
27
  group :development, :test do
15
28
  gem 'bundler-audit'
16
29
  gem 'debug'
@@ -1,3 +1,11 @@
1
1
  Bundler::Plugin.add_hook('after-install-all') do
2
2
  system('bundle exec yard gems')
3
+ cmd = 'bundle exec yard gems --plugin solargraph'
4
+ STDERR.puts("Installing yard info using #{cmd.inspect}")
5
+ # Attempt to run yard, and if it fails, try again - sometimes YARD gets indigestion on a given gem
6
+ system(cmd + ' || ' + cmd)
7
+ STDERR.puts("Installed yard info using #{cmd.inspect}")
8
+ rescue StandardError => e
9
+ STDERR.puts("Error running yard gems: #{e.message}")
10
+ STDERR.puts("Backtrace:\n#{e.backtrace}")
3
11
  end
@@ -0,0 +1,5 @@
1
+ # annotations
2
+
3
+ Code in this directory is _not_ loaded or evaluated at runtime, either by solargraph or your application.
4
+
5
+ The code in [rails_api.rb](../rails_api.rb) loads each of these files inside a YARD `@!parse` directive.
@@ -0,0 +1,29 @@
1
+ class ActionController::Base
2
+ include ActionController::MimeResponds
3
+ include ActionController::Redirecting
4
+ include ActionController::Cookies
5
+ include AbstractController::Rendering
6
+ extend ActiveSupport::Callbacks::ClassMethods
7
+ extend ActiveSupport::Rescuable::ClassMethods
8
+ extend AbstractController::Callbacks::ClassMethods
9
+ extend ActionController::RequestForgeryProtection::ClassMethods
10
+
11
+ # @return [ActionDispatch::Response]
12
+ def response; end
13
+ # @return [ActionDispatch::Request]
14
+ def request; end
15
+ # @return [ActionDispatch::Request::Session]
16
+ def session; end
17
+ # @return [ActionDispatch::Flash::FlashHash]
18
+ def flash; end
19
+ end
20
+
21
+ class ActionController::Metal
22
+ # @return [ActionController::Parameters]
23
+ def params; end
24
+ end
25
+
26
+ class ActionController::Cookies
27
+ # @return [ActionDispatch::Cookies::CookieJar]
28
+ def cookies; end
29
+ end
@@ -0,0 +1,26 @@
1
+ module ActionDispatch
2
+ module Flash
3
+ class FlashHash
4
+ # @return [ActionDispatch::Flash::FlashNow]
5
+ def now; end
6
+ end
7
+ end
8
+
9
+ module Routing
10
+ class Mapper
11
+ include ActionDispatch::Routing::Mapper::Base
12
+ include ActionDispatch::Routing::Mapper::HttpHelpers
13
+ include ActionDispatch::Routing::Mapper::Redirection
14
+ include ActionDispatch::Routing::Mapper::Scoping
15
+ include ActionDispatch::Routing::Mapper::Concerns
16
+ include ActionDispatch::Routing::Mapper::Resources
17
+ include ActionDispatch::Routing::Mapper::CustomUrls
18
+ end
19
+
20
+ class RouteSet
21
+ # @yieldself [ActionDispatch::Routing::Mapper]
22
+ # @yieldreceiver [ActionDispatch::Routing::Mapper]
23
+ def draw; end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,7 @@
1
+ class ActionMailer::Base
2
+ # @return [self]
3
+ def self.with(**params); end
4
+ #
5
+ # @return [ActionMailer::MessageDelivery]
6
+ def mail(**params); end
7
+ end
@@ -0,0 +1,54 @@
1
+ class ActiveRecord::ConnectionAdapters::SchemaStatements
2
+ # @yieldparam [ActiveRecord::ConnectionAdapters::TableDefinition]
3
+ def create_table; end
4
+ # @yieldparam [ActiveRecord::ConnectionAdapters::TableDefinition]
5
+ def create_join_table; end
6
+ # @yieldparam [ActiveRecord::ConnectionAdapters::Table]
7
+ def change_table; end
8
+ end
9
+
10
+ # this module doesn't really exist, it's here to avoid repeating these mixins
11
+ module ActiveRecord::RelationMethods
12
+ include Enumerable
13
+ include ActiveRecord::QueryMethods
14
+ include ActiveRecord::FinderMethods
15
+ include ActiveRecord::Calculations
16
+ include ActiveRecord::Batches
17
+ end
18
+
19
+ class ActiveRecord::Relation
20
+ include ActiveRecord::RelationMethods
21
+ end
22
+
23
+ class ActiveRecord::Base
24
+ extend Enumerable
25
+ extend ActiveRecord::QueryMethods
26
+ extend ActiveRecord::FinderMethods
27
+ extend ActiveRecord::Calculations
28
+ extend ActiveRecord::Batches
29
+ extend ActiveRecord::Associations::ClassMethods
30
+ extend ActiveRecord::Inheritance::ClassMethods
31
+ extend ActiveRecord::ModelSchema::ClassMethods
32
+ extend ActiveRecord::Transactions::ClassMethods
33
+ extend ActiveRecord::Scoping::Named::ClassMethods
34
+ extend ActiveRecord::RelationMethods
35
+ include ActiveRecord::Persistence
36
+ end
37
+
38
+ # @!override ActiveRecord::Batches#find_each
39
+ # @yieldparam_single_parameter
40
+
41
+ # @!override ActiveRecord::Calculations#count
42
+ # @return [Integer, Hash]
43
+ # @!override ActiveRecord::Calculations#pluck
44
+ # @overload pluck(one)
45
+ # @return [Array]
46
+ # @overload pluck(one, two, *more)
47
+ # @return [Array<Array>]
48
+
49
+ # @!override ActiveRecord::QueryMethods::WhereChain#not
50
+ # @return_single_parameter
51
+ # @!override ActiveRecord::QueryMethods::WhereChain#missing
52
+ # @return_single_parameter
53
+ # @!override ActiveRecord::QueryMethods::WhereChain#associated
54
+ # @return_single_parameter
@@ -0,0 +1,5 @@
1
+ # @!override ActiveSupport::Rescuable::ClassMethods#rescue_from
2
+ # @return [void]
3
+
4
+ # @!override ActiveSupport::DescendantsTracker#subclasses
5
+ # @return [Array<Class>]
@@ -0,0 +1,31 @@
1
+ require 'date'
2
+ require 'active_support/core_ext'
3
+
4
+ class Date
5
+ # @param form [Symbol]
6
+ # @return [Time]
7
+ def to_time(form = :local); end
8
+
9
+ # @return [Rational, self]
10
+ def -(other); end
11
+
12
+ # @return [self]
13
+ def +(other); end
14
+
15
+ # @return [String]
16
+ def readable_inspect; end
17
+
18
+ # @return [-1, 0, 1, nil]
19
+ def compare_with_coercion(other); end
20
+
21
+ # @return [-1, 0, 1, nil]
22
+ def <=>(other); end
23
+
24
+ # @return [::Time]
25
+ def to_time; end
26
+ end
27
+
28
+ class DateTime
29
+ # @return [String]
30
+ def readable_inspect; end
31
+ end
@@ -0,0 +1,7 @@
1
+ class Object
2
+ # @return [self, nil]
3
+ def presence; end
4
+
5
+ # @return [self, nil]
6
+ def presence_in(x); end
7
+ end
@@ -0,0 +1,14 @@
1
+ class Rails
2
+ # @return [Rails::Application]
3
+ def self.application; end
4
+ end
5
+
6
+ class Rails::Engine
7
+ # @return [ActionDispatch::Routing::RouteSet]
8
+ def routes; end
9
+ end
10
+
11
+ class Rails::Application
12
+ # @return [ActionDispatch::Routing::RouteSet]
13
+ def routes; end
14
+ end
@@ -0,0 +1,66 @@
1
+ # See issue #54
2
+ class Object
3
+ require 'abbrev'
4
+ require 'base64'
5
+ require 'benchmark'
6
+ require 'bigdecimal'
7
+ require 'bundler'
8
+ require 'cgi'
9
+ require 'coverage'
10
+ require 'csv'
11
+ require 'date'
12
+ require 'delegate'
13
+ require 'did_you_mean'
14
+ require 'digest'
15
+ require 'drb'
16
+ require 'English'
17
+ require 'erb'
18
+ require 'error_highlight'
19
+ require 'expect'
20
+ require 'fiddle'
21
+ require 'fileutils'
22
+ require 'find'
23
+ require 'forwardable'
24
+ require 'getoptlong'
25
+ require 'ipaddr'
26
+ require 'irb'
27
+ require 'json'
28
+ require 'kconv'
29
+ require 'logger'
30
+ require 'mkmf'
31
+ require 'monitor'
32
+ require 'mutex_m'
33
+ require 'objspace'
34
+ require 'observer'
35
+ require 'open3'
36
+ require 'openssl'
37
+ require 'open-uri'
38
+ require 'optionparser'
39
+ require 'optparse'
40
+ require 'ostruct'
41
+ require 'pathname'
42
+ require 'prettyprint'
43
+ require 'pstore'
44
+ require 'psych'
45
+ require 'racc'
46
+ require 'rdoc'
47
+ require 'readline'
48
+ require 'reline'
49
+ require 'resolv'
50
+ require 'resolv-replace'
51
+ require 'ripper'
52
+ require 'rubygems'
53
+ require 'securerandom'
54
+ require 'shellwords'
55
+ require 'singleton'
56
+ require 'socket'
57
+ require 'tempfile'
58
+ require 'timeout'
59
+ require 'time'
60
+ require 'tmpdir'
61
+ require 'tsort'
62
+ require 'un'
63
+ require 'uri'
64
+ require 'weakref'
65
+ require 'yaml'
66
+ end
@@ -0,0 +1,30 @@
1
+ require 'time'
2
+
3
+ class Time
4
+ # @return [Boolean]
5
+ def eql_with_coercion(other); end
6
+
7
+ # @return [-1, 0, 1, nil]
8
+ def compare_with_coercion(other); end
9
+
10
+ # @return [-1, 0, 1, nil]
11
+ def compare_without_coercion(other); end
12
+
13
+ # @return [-1, 0, 1, nil]
14
+ def <=>(other); end
15
+
16
+ # @return [Time]
17
+ def +(other); end
18
+
19
+ # @param seconds [Integer, Float]
20
+ # @param microseconds [Integer]
21
+ # @param utc [Boolean]
22
+ # @return [Time]
23
+ def self.at(seconds, microseconds = 0, utc = false); end
24
+
25
+ # @return [Time]
26
+ def to_time; end
27
+
28
+ # @return [Time]
29
+ def +(other); end
30
+ end
@@ -5,70 +5,18 @@ module Solargraph
5
5
  @instance ||= self.new
6
6
  end
7
7
 
8
- def global(yard_map)
9
- return [] if yard_map.required.empty?
10
-
11
- ann = File.read(File.dirname(__FILE__) + '/annotations.rb')
12
- source = Solargraph::Source.load_string(ann, 'annotations.rb')
13
- map = Solargraph::SourceMap.map(source)
14
-
15
- Solargraph.logger.debug(
16
- "[Rails][Rails] found #{map.pins.size} pins in annotations"
17
- )
18
-
19
- overrides =
20
- YAML
21
- .load_file(File.dirname(__FILE__) + '/types.yml')
22
- .map do |meth, data|
23
- if data['return']
24
- Util.method_return(meth, data['return'])
25
- elsif data['yieldself']
26
- Solargraph::Pin::Reference::Override.from_comment(
27
- meth,
28
- "@yieldself [#{data['yieldself'].join(',')}]"
29
- )
30
- elsif data['yieldparam']
31
- Solargraph::Pin::Reference::Override.from_comment(
32
- meth,
33
- "@yieldparam [#{data['yieldparam'].join(',')}]"
34
- )
35
- end
36
- end
37
-
38
- ns =
39
- Solargraph::Pin::Namespace.new(
40
- name: 'ActionController::Base',
41
- gates: ['ActionController::Base']
42
- )
43
-
44
- definitions = [
45
- Util.build_public_method(
46
- ns,
47
- 'response',
48
- types: ['ActionDispatch::Response'],
49
- location: Util.dummy_location('whatever.rb')
50
- ),
51
- Util.build_public_method(
52
- ns,
53
- 'request',
54
- types: ['ActionDispatch::Request'],
55
- location: Util.dummy_location('whatever.rb')
56
- ),
57
- Util.build_public_method(
58
- ns,
59
- 'session',
60
- types: ['ActionDispatch::Request::Session'],
61
- location: Util.dummy_location('whatever.rb')
62
- ),
63
- Util.build_public_method(
64
- ns,
65
- 'flash',
66
- types: ['ActionDispatch::Flash::FlashHash'],
67
- location: Util.dummy_location('whatever.rb')
68
- )
69
- ]
8
+ def extra_source_maps
9
+ @extra_source_maps ||= Dir[File.join(__dir__, 'annotations', '*.rb')].to_h do |path|
10
+ code = File.read(path)
11
+ source = Solargraph::Source.load_string(code, path)
12
+ map = Solargraph::SourceMap.map(source)
13
+ [File.basename(path, '.rb'), map]
14
+ end
15
+ end
70
16
 
71
- map.pins + definitions + overrides
17
+ # @param yard_map [YardMap]
18
+ def global(_yard_map)
19
+ extra_source_maps.values.flat_map(&:pins)
72
20
  end
73
21
 
74
22
  def local(source_map, ns)
@@ -1,5 +1,5 @@
1
1
  module Solargraph
2
2
  module Rails
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
@@ -3,18 +3,18 @@ require 'logger'
3
3
  require 'active_support'
4
4
  require 'active_support/core_ext/string/inflections'
5
5
 
6
- require_relative 'solargraph/rails/util.rb'
7
- require_relative 'solargraph/rails/schema.rb'
8
- require_relative 'solargraph/rails/annotate.rb'
9
- require_relative 'solargraph/rails/autoload.rb'
10
- require_relative 'solargraph/rails/model.rb'
11
- require_relative 'solargraph/rails/devise.rb'
12
- require_relative 'solargraph/rails/walker.rb'
13
- require_relative 'solargraph/rails/rails_api.rb'
14
- require_relative 'solargraph/rails/delegate.rb'
15
- require_relative 'solargraph/rails/storage.rb'
16
- require_relative 'solargraph/rails/debug.rb'
17
- require_relative 'solargraph/rails/version.rb'
6
+ require_relative 'solargraph/rails/util'
7
+ require_relative 'solargraph/rails/schema'
8
+ require_relative 'solargraph/rails/annotate'
9
+ require_relative 'solargraph/rails/autoload'
10
+ require_relative 'solargraph/rails/model'
11
+ require_relative 'solargraph/rails/devise'
12
+ require_relative 'solargraph/rails/walker'
13
+ require_relative 'solargraph/rails/rails_api'
14
+ require_relative 'solargraph/rails/delegate'
15
+ require_relative 'solargraph/rails/storage'
16
+ require_relative 'solargraph/rails/debug'
17
+ require_relative 'solargraph/rails/version'
18
18
 
19
19
  module Solargraph
20
20
  module Rails
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fritz Meissner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-28 00:00:00.000000000 Z
11
+ date: 2025-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: solargraph
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.48.0
62
+ - - "<"
60
63
  - !ruby/object:Gem::Version
61
- version: 0.54.6.alpha
64
+ version: 0.53.0
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - '='
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 0.48.0
72
+ - - "<"
67
73
  - !ruby/object:Gem::Version
68
- version: 0.54.6.alpha
74
+ version: 0.53.0
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: activesupport
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +114,17 @@ files:
108
114
  - ci/auto_yard/plugins.rb
109
115
  - lib/solargraph-rails.rb
110
116
  - lib/solargraph/rails/annotate.rb
111
- - lib/solargraph/rails/annotations.rb
117
+ - lib/solargraph/rails/annotations/README.md
118
+ - lib/solargraph/rails/annotations/action_controller.rb
119
+ - lib/solargraph/rails/annotations/action_dispatch.rb
120
+ - lib/solargraph/rails/annotations/action_mailer.rb
121
+ - lib/solargraph/rails/annotations/active_record.rb
122
+ - lib/solargraph/rails/annotations/active_support.rb
123
+ - lib/solargraph/rails/annotations/date.rb
124
+ - lib/solargraph/rails/annotations/object.rb
125
+ - lib/solargraph/rails/annotations/rails.rb
126
+ - lib/solargraph/rails/annotations/stdlib_requires.rb
127
+ - lib/solargraph/rails/annotations/time.rb
112
128
  - lib/solargraph/rails/autoload.rb
113
129
  - lib/solargraph/rails/debug.rb
114
130
  - lib/solargraph/rails/delegate.rb
@@ -117,7 +133,6 @@ files:
117
133
  - lib/solargraph/rails/rails_api.rb
118
134
  - lib/solargraph/rails/schema.rb
119
135
  - lib/solargraph/rails/storage.rb
120
- - lib/solargraph/rails/types.yml
121
136
  - lib/solargraph/rails/util.rb
122
137
  - lib/solargraph/rails/version.rb
123
138
  - lib/solargraph/rails/walker.rb
@@ -1,70 +0,0 @@
1
- # The following comments fill some of the gaps in Solargraph's understanding of
2
- # Rails apps. Since they're all in YARD, they get mapped in Solargraph but
3
- # ignored at runtime.
4
- #
5
- # You can put this file anywhere in the project, as long as it gets included in
6
- # the workspace maps. It's recommended that you keep it in a standalone file
7
- # instead of pasting it into an existing one.
8
- #
9
- # @!parse
10
- # class ActionController::Base
11
- # include ActionController::MimeResponds
12
- # include ActionController::Redirecting
13
- # include ActionController::Cookies
14
- # include AbstractController::Rendering
15
- # extend ActiveSupport::Callbacks::ClassMethods
16
- # extend ActiveSupport::Rescuable::ClassMethods
17
- # extend ActionController::AllowBrowser::ClassMethods
18
- # extend AbstractController::Callbacks::ClassMethods
19
- # extend ActionController::RequestForgeryProtection::ClassMethods
20
- # end
21
- # class ActionDispatch::Routing::Mapper
22
- # include ActionDispatch::Routing::Mapper::Base
23
- # include ActionDispatch::Routing::Mapper::HttpHelpers
24
- # include ActionDispatch::Routing::Mapper::Redirection
25
- # include ActionDispatch::Routing::Mapper::Scoping
26
- # include ActionDispatch::Routing::Mapper::Concerns
27
- # include ActionDispatch::Routing::Mapper::Resources
28
- # include ActionDispatch::Routing::Mapper::CustomUrls
29
- # end
30
- # class ActionMailer::Base
31
- # extend ActionView::Layouts::ClassMethods
32
- # end
33
- # class Rails::Railtie
34
- # # @yieldself [Rails::Application]
35
- # # @return [void]
36
- # def configure(&block); end
37
- # end
38
- # class Rails
39
- # # @return [Rails::Application]
40
- # def self.application; end
41
- # end
42
- # class Rails::Application
43
- # # @return [ActionDispatch::Routing::RouteSet]
44
- # def routes; end
45
- # extend Rails::Application
46
- # end
47
- # class ActionDispatch::Routing::RouteSet
48
- # # @yieldself [ActionDispatch::Routing::Mapper]
49
- # # @return [void]
50
- # def draw; end
51
- # end
52
- # class ActiveRecord::Base
53
- # extend Enumerable
54
- # extend ActiveRecord::QueryMethods
55
- # extend ActiveRecord::FinderMethods
56
- # extend ActiveRecord::Calculations
57
- # extend ActiveRecord::Batches
58
- # extend ActiveRecord::Associations::ClassMethods
59
- # extend ActiveRecord::Inheritance::ClassMethods
60
- # extend ActiveRecord::ModelSchema::ClassMethods
61
- # extend ActiveRecord::Transactions::ClassMethods
62
- # extend ActiveRecord::Scoping::Named::ClassMethods
63
- # include ActiveRecord::Persistence
64
- # end
65
- # @!override Time#to_time
66
- # @return [Time]
67
- # @!override Time.at
68
- # @return [Time]
69
- # @!override Time#+
70
- # @return [Time]
@@ -1,24 +0,0 @@
1
- ActionController::Metal#params:
2
- return: ["ActionController::Parameters"]
3
- ActiveRecord::FinderMethods#find:
4
- return: ["self", "Array<self>"]
5
- ActionController::Cookies#cookies:
6
- return: ["ActionDispatch::Cookies::CookieJar"]
7
- ActionDispatch::Flash::FlashHash#now:
8
- return: ["ActionDispatch::Flash::FlashNow"]
9
- ActiveRecord::QueryMethods#where:
10
- return: ["self", "ActiveRecord::Relation", "ActiveRecord::QueryMethods::WhereChain"]
11
- ActiveRecord::QueryMethods#not:
12
- return: ["ActiveRecord::QueryMethods::WhereChain"]
13
- ActiveRecord::FinderMethods#find_by:
14
- return: ["self", "nil"]
15
- Rails.application:
16
- return: ["Rails::Application"]
17
- ActionDispatch::Routing::RouteSet#draw:
18
- yieldself: ["ActionDispatch::Routing::Mapper"]
19
- ActiveRecord::ConnectionAdapters::SchemaStatements#create_table:
20
- yieldparam: ["ActiveRecord::ConnectionAdapters::TableDefinition"]
21
- ActiveRecord::ConnectionAdapters::SchemaStatements#create_join_table:
22
- yieldparam: ["ActiveRecord::ConnectionAdapters::TableDefinition"]
23
- ActiveRecord::ConnectionAdapters::SchemaStatements#change_table:
24
- yieldparam: ["ActiveRecord::ConnectionAdapters::Table"]