ruby-lint 0.0.3 → 0.0.4
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.
- data.tar.gz.asc +14 -14
- data/.gitignore +1 -2
- data/.rubocop.yml +59 -0
- data/.travis.yml +3 -7
- data/.yardopts +2 -2
- data/Gemfile +4 -0
- data/MANIFEST +103 -67
- data/README.md +13 -31
- data/Rakefile +1 -6
- data/checksum/ruby-lint-0.0.3.gem.sha512 +1 -0
- data/debug/memory_usage.rb +14 -0
- data/debug/profile.rb +18 -0
- data/doc/architecture.md +14 -18
- data/doc/changelog.md +29 -0
- data/doc/code_analysis.md +12 -12
- data/doc/configuration.md +21 -50
- data/doc/graphviz/flow.dot +1 -1
- data/doc/images/flow.png +0 -0
- data/lib/ruby-lint.rb +33 -19
- data/lib/ruby-lint/analysis/argument_amount.rb +84 -0
- data/lib/ruby-lint/analysis/base.rb +132 -0
- data/lib/ruby-lint/analysis/confusing_variables.rb +26 -0
- data/lib/ruby-lint/analysis/pedantics.rb +36 -0
- data/lib/ruby-lint/analysis/shadowing_variables.rb +47 -0
- data/lib/ruby-lint/analysis/undefined_methods.rb +91 -0
- data/lib/ruby-lint/analysis/undefined_variables.rb +46 -0
- data/lib/ruby-lint/analysis/unused_variables.rb +49 -0
- data/lib/ruby-lint/ast/builder.rb +17 -0
- data/lib/ruby-lint/ast/node.rb +39 -0
- data/lib/ruby-lint/cli.rb +0 -19
- data/lib/ruby-lint/cli/analyze.rb +54 -28
- data/lib/ruby-lint/cli/ast.rb +21 -6
- data/lib/ruby-lint/cli/base.rb +0 -23
- data/lib/ruby-lint/configuration.rb +112 -42
- data/lib/ruby-lint/constant_loader.rb +10 -28
- data/lib/ruby-lint/default_names.rb +19 -0
- data/lib/ruby-lint/definition/constant_proxy.rb +56 -0
- data/lib/ruby-lint/definition/ruby_method.rb +21 -143
- data/lib/ruby-lint/definition/ruby_object.rb +142 -246
- data/lib/ruby-lint/definition_builder/base.rb +43 -0
- data/lib/ruby-lint/definition_builder/primitive.rb +39 -0
- data/lib/ruby-lint/definition_builder/ruby_array.rb +77 -0
- data/lib/ruby-lint/definition_builder/ruby_block.rb +34 -0
- data/lib/ruby-lint/definition_builder/ruby_class.rb +24 -0
- data/lib/ruby-lint/definition_builder/ruby_hash.rb +37 -0
- data/lib/ruby-lint/definition_builder/ruby_method.rb +84 -0
- data/lib/ruby-lint/definition_builder/ruby_module.rb +68 -0
- data/lib/ruby-lint/definition_generator.rb +41 -15
- data/lib/ruby-lint/definitions/core/arg0.rb +1 -1
- data/lib/ruby-lint/definitions/core/argf.rb +1 -1
- data/lib/ruby-lint/definitions/core/argument_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/argv.rb +1 -1
- data/lib/ruby-lint/definitions/core/array.rb +6 -6
- data/lib/ruby-lint/definitions/core/autoload.rb +2 -2
- data/lib/ruby-lint/definitions/core/basic_object.rb +3 -3
- data/lib/ruby-lint/definitions/core/bignum.rb +2 -2
- data/lib/ruby-lint/definitions/core/binding.rb +2 -2
- data/lib/ruby-lint/definitions/core/class.rb +2 -2
- data/lib/ruby-lint/definitions/core/comparable.rb +1 -1
- data/lib/ruby-lint/definitions/core/complex.rb +4 -4
- data/lib/ruby-lint/definitions/core/condition_variable.rb +2 -2
- data/lib/ruby-lint/definitions/core/continuation.rb +2 -2
- data/lib/ruby-lint/definitions/core/data.rb +2 -2
- data/lib/ruby-lint/definitions/core/date.rb +34 -34
- data/lib/ruby-lint/definitions/core/date_time.rb +26 -26
- data/lib/ruby-lint/definitions/core/default_record_separator.rb +1 -1
- data/lib/ruby-lint/definitions/core/digest.rb +14 -14
- data/lib/ruby-lint/definitions/core/dir.rb +34 -34
- data/lib/ruby-lint/definitions/core/encoding.rb +237 -237
- data/lib/ruby-lint/definitions/core/encoding_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/enumerable.rb +15 -15
- data/lib/ruby-lint/definitions/core/enumerator.rb +2 -2
- data/lib/ruby-lint/definitions/core/env.rb +1 -1
- data/lib/ruby-lint/definitions/core/eoferror.rb +2 -2
- data/lib/ruby-lint/definitions/core/erb.rb +22 -22
- data/lib/ruby-lint/definitions/core/errno.rb +525 -525
- data/lib/ruby-lint/definitions/core/etc.rb +6 -6
- data/lib/ruby-lint/definitions/core/exception.rb +2 -2
- data/lib/ruby-lint/definitions/core/false.rb +1 -1
- data/lib/ruby-lint/definitions/core/false_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/fatal_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/fiber.rb +2 -2
- data/lib/ruby-lint/definitions/core/fiber_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/file.rb +68 -68
- data/lib/ruby-lint/definitions/core/file_list.rb +2 -2
- data/lib/ruby-lint/definitions/core/file_test.rb +1 -1
- data/lib/ruby-lint/definitions/core/file_utils.rb +16 -16
- data/lib/ruby-lint/definitions/core/fixnum.rb +4 -4
- data/lib/ruby-lint/definitions/core/float.rb +16 -16
- data/lib/ruby-lint/definitions/core/float_domain_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/gc.rb +2 -2
- data/lib/ruby-lint/definitions/core/gem.rb +119 -119
- data/lib/ruby-lint/definitions/core/hash.rb +14 -14
- data/lib/ruby-lint/definitions/core/immediate_value.rb +1 -1
- data/lib/ruby-lint/definitions/core/index_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/integer.rb +2 -2
- data/lib/ruby-lint/definitions/core/interrupt.rb +2 -2
- data/lib/ruby-lint/definitions/core/io.rb +38 -38
- data/lib/ruby-lint/definitions/core/ioerror.rb +2 -2
- data/lib/ruby-lint/definitions/core/kernel.rb +3 -3
- data/lib/ruby-lint/definitions/core/key_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/load_error.rb +6 -6
- data/lib/ruby-lint/definitions/core/local_jump_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/main.rb +1 -1
- data/lib/ruby-lint/definitions/core/marshal.rb +35 -35
- data/lib/ruby-lint/definitions/core/match_data.rb +2 -2
- data/lib/ruby-lint/definitions/core/math.rb +7 -7
- data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/method.rb +2 -2
- data/lib/ruby-lint/definitions/core/module.rb +1 -1
- data/lib/ruby-lint/definitions/core/monitor.rb +4 -4
- data/lib/ruby-lint/definitions/core/monitor_mixin.rb +5 -5
- data/lib/ruby-lint/definitions/core/mutex.rb +2 -2
- data/lib/ruby-lint/definitions/core/name_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/nil.rb +1 -1
- data/lib/ruby-lint/definitions/core/nil_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/no_memory_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/no_method_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/not_implemented_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/numeric.rb +2 -2
- data/lib/ruby-lint/definitions/core/object.rb +2 -2
- data/lib/ruby-lint/definitions/core/object_space.rb +1 -1
- data/lib/ruby-lint/definitions/core/open_struct.rb +3 -3
- data/lib/ruby-lint/definitions/core/option_parser.rb +83 -83
- data/lib/ruby-lint/definitions/core/precision.rb +1 -1
- data/lib/ruby-lint/definitions/core/primitive_failure.rb +2 -2
- data/lib/ruby-lint/definitions/core/proc.rb +2 -2
- data/lib/ruby-lint/definitions/core/process.rb +29 -29
- data/lib/ruby-lint/definitions/core/psych.rb +149 -149
- data/lib/ruby-lint/definitions/core/queue.rb +2 -2
- data/lib/ruby-lint/definitions/core/rake.rb +117 -117
- data/lib/ruby-lint/definitions/core/rake_file_utils.rb +1 -1
- data/lib/ruby-lint/definitions/core/rakeversion.rb +1 -1
- data/lib/ruby-lint/definitions/core/random.rb +2 -2
- data/lib/ruby-lint/definitions/core/range.rb +4 -4
- data/lib/ruby-lint/definitions/core/range_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/rational.rb +2 -2
- data/lib/ruby-lint/definitions/core/rb_config.rb +3 -3
- data/lib/ruby-lint/definitions/core/regexp.rb +28 -28
- data/lib/ruby-lint/definitions/core/regexp_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/rubinius.rb +1057 -1057
- data/lib/ruby-lint/definitions/core/ruby_copyright.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_description.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_engine.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_lint.rb +9 -9
- data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_platform.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_release_date.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_version.rb +1 -1
- data/lib/ruby-lint/definitions/core/runtime_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/scan_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/script_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/security_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/shellwords.rb +1 -1
- data/lib/ruby-lint/definitions/core/signal.rb +3 -3
- data/lib/ruby-lint/definitions/core/signal_exception.rb +2 -2
- data/lib/ruby-lint/definitions/core/singleton.rb +2 -2
- data/lib/ruby-lint/definitions/core/sized_queue.rb +2 -2
- data/lib/ruby-lint/definitions/core/standard_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/stderr.rb +1 -1
- data/lib/ruby-lint/definitions/core/stdin.rb +1 -1
- data/lib/ruby-lint/definitions/core/stdout.rb +1 -1
- data/lib/ruby-lint/definitions/core/stop_iteration.rb +2 -2
- data/lib/ruby-lint/definitions/core/string.rb +21 -21
- data/lib/ruby-lint/definitions/core/string_io.rb +7 -7
- data/lib/ruby-lint/definitions/core/string_scanner.rb +4 -4
- data/lib/ruby-lint/definitions/core/struct.rb +20 -20
- data/lib/ruby-lint/definitions/core/syck.rb +4 -4
- data/lib/ruby-lint/definitions/core/symbol.rb +2 -2
- data/lib/ruby-lint/definitions/core/syntax_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_call_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_exit.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_stack_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/thread.rb +6 -6
- data/lib/ruby-lint/definitions/core/thread_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/thread_group.rb +2 -2
- data/lib/ruby-lint/definitions/core/time.rb +3 -3
- data/lib/ruby-lint/definitions/core/toplevel_binding.rb +1 -1
- data/lib/ruby-lint/definitions/core/true.rb +1 -1
- data/lib/ruby-lint/definitions/core/true_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/type_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/unbound_method.rb +2 -2
- data/lib/ruby-lint/definitions/core/unmarshalable.rb +1 -1
- data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/weak_ref.rb +4 -4
- data/lib/ruby-lint/definitions/core/zero_division_error.rb +2 -2
- data/lib/ruby-lint/definitions/rails.rb +12 -0
- data/lib/ruby-lint/definitions/rails/abstract_controller.rb +335 -0
- data/lib/ruby-lint/definitions/rails/action_controller.rb +1244 -0
- data/lib/ruby-lint/definitions/rails/action_dispatch.rb +741 -0
- data/lib/ruby-lint/definitions/rails/action_mailer.rb +502 -0
- data/lib/ruby-lint/definitions/rails/action_pack.rb +16 -0
- data/lib/ruby-lint/definitions/rails/action_view.rb +898 -0
- data/lib/ruby-lint/definitions/rails/active_model.rb +437 -0
- data/lib/ruby-lint/definitions/rails/active_record.rb +2901 -0
- data/lib/ruby-lint/definitions/rails/active_support.rb +1963 -0
- data/lib/ruby-lint/definitions/rails/arel.rb +665 -0
- data/lib/ruby-lint/definitions/rails/rails.rb +452 -0
- data/lib/ruby-lint/definitions/rails/sprockets.rb +968 -0
- data/lib/ruby-lint/generated_constant.rb +33 -0
- data/lib/ruby-lint/helper/constant_paths.rb +30 -21
- data/lib/ruby-lint/inspector.rb +20 -2
- data/lib/ruby-lint/iterator.rb +11 -171
- data/lib/ruby-lint/nested_stack.rb +46 -0
- data/lib/ruby-lint/parser.rb +24 -806
- data/lib/ruby-lint/report.rb +2 -30
- data/lib/ruby-lint/report/entry.rb +2 -2
- data/lib/ruby-lint/runner.rb +81 -0
- data/lib/ruby-lint/template/definition.erb +12 -8
- data/lib/ruby-lint/variable_predicates.rb +16 -58
- data/lib/ruby-lint/version.rb +1 -1
- data/lib/ruby-lint/virtual_machine.rb +1044 -0
- data/ruby-lint.gemspec +17 -7
- data/spec/fixtures/complex/rails/basic_controller.rb +9 -0
- data/spec/fixtures/complex/rcap.rb +38 -0
- data/spec/fixtures/complex/slop.rb +680 -0
- data/spec/fixtures/config.yml +8 -0
- data/spec/fixtures/invalid.rb +3 -0
- data/spec/fixtures/invalid_2.rb +3 -0
- data/spec/fixtures/syntax_error.rb +1 -0
- data/spec/fixtures/valid.rb +3 -0
- data/spec/helper.rb +6 -0
- data/spec/ruby-lint/{analyze → analysis}/argument_amount.rb +7 -7
- data/spec/ruby-lint/analysis/confusing_variables.rb +46 -0
- data/spec/ruby-lint/analysis/pedantics.rb +43 -0
- data/spec/ruby-lint/{analyze → analysis}/shadowing_variables.rb +5 -5
- data/spec/ruby-lint/{analyze → analysis}/undefined_methods.rb +18 -18
- data/spec/ruby-lint/{analyze → analysis}/undefined_variables.rb +19 -25
- data/spec/ruby-lint/{analyze → analysis}/unused_variables.rb +29 -16
- data/spec/ruby-lint/ast/node.rb +33 -0
- data/spec/ruby-lint/cli/analyze.rb +31 -0
- data/spec/ruby-lint/cli/ast.rb +23 -0
- data/spec/ruby-lint/configuration.rb +45 -6
- data/spec/ruby-lint/definition/constant_proxy.rb +31 -0
- data/spec/ruby-lint/definition/dsl.rb +13 -20
- data/spec/ruby-lint/definition/ruby_method.rb +65 -148
- data/spec/ruby-lint/definition/ruby_object.rb +60 -96
- data/spec/ruby-lint/definition_builder/primitive.rb +62 -0
- data/spec/ruby-lint/definition_builder/ruby_class.rb +108 -0
- data/spec/ruby-lint/definition_builder/ruby_method.rb +53 -0
- data/spec/ruby-lint/definition_builder/ruby_module.rb +50 -0
- data/spec/ruby-lint/iterator.rb +40 -16
- data/spec/ruby-lint/nested_stack.rb +23 -0
- data/spec/ruby-lint/parser.rb +14 -0
- data/spec/ruby-lint/report.rb +0 -10
- data/spec/ruby-lint/report/entry.rb +8 -4
- data/spec/ruby-lint/runner.rb +32 -0
- data/spec/ruby-lint/virtual_machine/assignments/arrays.rb +87 -0
- data/spec/ruby-lint/virtual_machine/assignments/hashes.rb +52 -0
- data/spec/ruby-lint/virtual_machine/assignments/optional.rb +41 -0
- data/spec/ruby-lint/{definitions_builder → virtual_machine}/assignments/return_values.rb +11 -11
- data/spec/ruby-lint/virtual_machine/assignments/variables.rb +85 -0
- data/spec/ruby-lint/virtual_machine/associate_nodes.rb +17 -0
- data/spec/ruby-lint/virtual_machine/autoloading.rb +31 -0
- data/spec/ruby-lint/virtual_machine/blocks.rb +64 -0
- data/spec/ruby-lint/virtual_machine/classes/class_methods.rb +21 -0
- data/spec/ruby-lint/virtual_machine/classes/extending.rb +104 -0
- data/spec/ruby-lint/virtual_machine/classes/redefining.rb +24 -0
- data/spec/ruby-lint/virtual_machine/classes/sclass.rb +94 -0
- data/spec/ruby-lint/virtual_machine/classes/scoping.rb +60 -0
- data/spec/ruby-lint/virtual_machine/complex/rails.rb +18 -0
- data/spec/ruby-lint/virtual_machine/complex/rcap.rb +15 -0
- data/spec/ruby-lint/virtual_machine/complex/slop.rb +16 -0
- data/spec/ruby-lint/{definitions_builder → virtual_machine}/for.rb +2 -2
- data/spec/ruby-lint/virtual_machine/freeze.rb +13 -0
- data/spec/ruby-lint/virtual_machine/interpolation.rb +12 -0
- data/spec/ruby-lint/virtual_machine/methods/defining.rb +40 -0
- data/spec/ruby-lint/virtual_machine/methods/exporting.rb +19 -0
- data/spec/ruby-lint/virtual_machine/methods/parameters.rb +77 -0
- data/spec/ruby-lint/virtual_machine/methods/patching.rb +26 -0
- data/spec/ruby-lint/virtual_machine/methods/scoping.rb +63 -0
- data/spec/ruby-lint/virtual_machine/methods/visibility.rb +64 -0
- data/spec/ruby-lint/{definitions_builder → virtual_machine}/modules.rb +16 -16
- data/spec/ruby-lint/virtual_machine/reference_amount.rb +33 -0
- data/spec/ruby-lint/virtual_machine/unused.rb +17 -0
- data/spec/support/bacon.rb +13 -13
- data/spec/support/building.rb +23 -16
- data/spec/support/coveralls.rb +5 -0
- data/spec/support/fixtures.rb +20 -0
- data/spec/support/parsing.rb +3 -5
- data/spec/support/simplecov.rb +5 -3
- data/task/build.rake +1 -1
- data/task/cop.rake +11 -0
- data/task/generate.rake +40 -2
- data/task/profile.rake +27 -0
- data/task/todo.rake +6 -0
- data/task/travis.rake +7 -0
- metadata +160 -75
- metadata.gz.asc +14 -14
- data/doc/build/.gitkeep +0 -0
- data/lib/ruby-lint/analyze/argument_amount.rb +0 -73
- data/lib/ruby-lint/analyze/shadowing_variables.rb +0 -32
- data/lib/ruby-lint/analyze/undefined_methods.rb +0 -68
- data/lib/ruby-lint/analyze/undefined_variables.rb +0 -72
- data/lib/ruby-lint/analyze/unused_variables.rb +0 -48
- data/lib/ruby-lint/base.rb +0 -85
- data/lib/ruby-lint/definitions_builder.rb +0 -692
- data/lib/ruby-lint/helper/conversion.rb +0 -33
- data/lib/ruby-lint/helper/current_scope.rb +0 -98
- data/lib/ruby-lint/helper/methods.rb +0 -91
- data/lib/ruby-lint/node.rb +0 -107
- data/lib/ruby-lint/parser_error.rb +0 -30
- data/spec/ruby-lint/constant_loader.rb +0 -32
- data/spec/ruby-lint/definition/method_calls.rb +0 -26
- data/spec/ruby-lint/definitions_builder/assignments/arrays.rb +0 -71
- data/spec/ruby-lint/definitions_builder/assignments/hashes.rb +0 -65
- data/spec/ruby-lint/definitions_builder/assignments/objects.rb +0 -23
- data/spec/ruby-lint/definitions_builder/assignments/optional.rb +0 -22
- data/spec/ruby-lint/definitions_builder/assignments/variables.rb +0 -71
- data/spec/ruby-lint/definitions_builder/associate_nodes.rb +0 -17
- data/spec/ruby-lint/definitions_builder/blocks.rb +0 -40
- data/spec/ruby-lint/definitions_builder/classes.rb +0 -230
- data/spec/ruby-lint/definitions_builder/methods.rb +0 -147
- data/spec/ruby-lint/definitions_builder/reference_amount.rb +0 -31
- data/spec/ruby-lint/definitions_builder/unused.rb +0 -15
- data/spec/ruby-lint/node.rb +0 -38
- data/spec/ruby-lint/parser/assignments.rb +0 -225
- data/spec/ruby-lint/parser/classes.rb +0 -110
- data/spec/ruby-lint/parser/errors.rb +0 -12
- data/spec/ruby-lint/parser/metadata.rb +0 -17
- data/spec/ruby-lint/parser/method_definitions.rb +0 -111
- data/spec/ruby-lint/parser/methods.rb +0 -217
- data/spec/ruby-lint/parser/modules.rb +0 -70
- data/spec/ruby-lint/parser/operators.rb +0 -40
- data/spec/ruby-lint/parser/statements/begin.rb +0 -55
- data/spec/ruby-lint/parser/statements/case.rb +0 -34
- data/spec/ruby-lint/parser/statements/defined.rb +0 -11
- data/spec/ruby-lint/parser/statements/for.rb +0 -34
- data/spec/ruby-lint/parser/statements/if.rb +0 -46
- data/spec/ruby-lint/parser/statements/return.rb +0 -14
- data/spec/ruby-lint/parser/statements/super.rb +0 -49
- data/spec/ruby-lint/parser/statements/unless.rb +0 -42
- data/spec/ruby-lint/parser/statements/until.rb +0 -25
- data/spec/ruby-lint/parser/statements/while.rb +0 -25
- data/spec/ruby-lint/parser/statements/yield.rb +0 -18
- data/spec/ruby-lint/parser/types/arrays.rb +0 -47
- data/spec/ruby-lint/parser/types/booleans.rb +0 -11
- data/spec/ruby-lint/parser/types/constants.rb +0 -32
- data/spec/ruby-lint/parser/types/hashes.rb +0 -55
- data/spec/ruby-lint/parser/types/nil.rb +0 -7
- data/spec/ruby-lint/parser/types/numbers.rb +0 -11
- data/spec/ruby-lint/parser/types/procs.rb +0 -11
- data/spec/ruby-lint/parser/types/ranges.rb +0 -11
- data/spec/ruby-lint/parser/types/regexp.rb +0 -27
- data/spec/ruby-lint/parser/types/strings.rb +0 -44
- data/spec/ruby-lint/parser/types/symbols.rb +0 -15
- data/task/stdlib.rake +0 -23
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('StringScanner') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('StringScanner') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -146,7 +146,7 @@ end
|
|
|
146
146
|
# Created: 2013-04-01 18:33:55 +0200
|
|
147
147
|
# Platform: rbx 2.0.0.rc1
|
|
148
148
|
#
|
|
149
|
-
RubyLint.global_scope.define_constant('StringScanner::Id') do |klass|
|
|
149
|
+
RubyLint::VirtualMachine.global_scope.define_constant('StringScanner::Id') do |klass|
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
##
|
|
@@ -154,5 +154,5 @@ end
|
|
|
154
154
|
# Created: 2013-04-01 18:33:55 +0200
|
|
155
155
|
# Platform: rbx 2.0.0.rc1
|
|
156
156
|
#
|
|
157
|
-
RubyLint.global_scope.define_constant('StringScanner::Version') do |klass|
|
|
157
|
+
RubyLint::VirtualMachine.global_scope.define_constant('StringScanner::Version') do |klass|
|
|
158
158
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('Struct') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -90,8 +90,8 @@ end
|
|
|
90
90
|
# Created: 2013-04-01 18:33:55 +0200
|
|
91
91
|
# Platform: rbx 2.0.0.rc1
|
|
92
92
|
#
|
|
93
|
-
RubyLint.global_scope.define_constant('Struct::Group') do |klass|
|
|
94
|
-
klass.inherits(RubyLint.
|
|
93
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Group') do |klass|
|
|
94
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Rubinius::FFI::Struct'))
|
|
95
95
|
|
|
96
96
|
klass.define_method('__class_init__')
|
|
97
97
|
|
|
@@ -109,7 +109,7 @@ end
|
|
|
109
109
|
# Created: 2013-04-01 18:33:55 +0200
|
|
110
110
|
# Platform: rbx 2.0.0.rc1
|
|
111
111
|
#
|
|
112
|
-
RubyLint.global_scope.define_constant('Struct::Group::FFI') do |klass|
|
|
112
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Group::FFI') do |klass|
|
|
113
113
|
|
|
114
114
|
klass.define_method('__module_init__')
|
|
115
115
|
|
|
@@ -160,8 +160,8 @@ end
|
|
|
160
160
|
# Created: 2013-04-01 18:33:55 +0200
|
|
161
161
|
# Platform: rbx 2.0.0.rc1
|
|
162
162
|
#
|
|
163
|
-
RubyLint.global_scope.define_constant('Struct::Group::InlineArray') do |klass|
|
|
164
|
-
klass.inherits(RubyLint.
|
|
163
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Group::InlineArray') do |klass|
|
|
164
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
165
165
|
|
|
166
166
|
klass.define_method('__class_init__')
|
|
167
167
|
|
|
@@ -193,8 +193,8 @@ end
|
|
|
193
193
|
# Created: 2013-04-01 18:33:55 +0200
|
|
194
194
|
# Platform: rbx 2.0.0.rc1
|
|
195
195
|
#
|
|
196
|
-
RubyLint.global_scope.define_constant('Struct::Group::InlineCharArray') do |klass|
|
|
197
|
-
klass.inherits(RubyLint.
|
|
196
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Group::InlineCharArray') do |klass|
|
|
197
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Rubinius::FFI::Struct::InlineArray'))
|
|
198
198
|
|
|
199
199
|
klass.define_method('__class_init__')
|
|
200
200
|
|
|
@@ -210,8 +210,8 @@ end
|
|
|
210
210
|
# Created: 2013-04-01 18:33:55 +0200
|
|
211
211
|
# Platform: rbx 2.0.0.rc1
|
|
212
212
|
#
|
|
213
|
-
RubyLint.global_scope.define_constant('Struct::Passwd') do |klass|
|
|
214
|
-
klass.inherits(RubyLint.
|
|
213
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Passwd') do |klass|
|
|
214
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Rubinius::FFI::Struct'))
|
|
215
215
|
|
|
216
216
|
klass.define_method('__class_init__')
|
|
217
217
|
|
|
@@ -235,8 +235,8 @@ end
|
|
|
235
235
|
# Created: 2013-04-01 18:33:55 +0200
|
|
236
236
|
# Platform: rbx 2.0.0.rc1
|
|
237
237
|
#
|
|
238
|
-
RubyLint.global_scope.define_constant('Struct::Passwd::InlineArray') do |klass|
|
|
239
|
-
klass.inherits(RubyLint.
|
|
238
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Passwd::InlineArray') do |klass|
|
|
239
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
240
240
|
|
|
241
241
|
klass.define_method('__class_init__')
|
|
242
242
|
|
|
@@ -268,8 +268,8 @@ end
|
|
|
268
268
|
# Created: 2013-04-01 18:33:55 +0200
|
|
269
269
|
# Platform: rbx 2.0.0.rc1
|
|
270
270
|
#
|
|
271
|
-
RubyLint.global_scope.define_constant('Struct::Passwd::InlineCharArray') do |klass|
|
|
272
|
-
klass.inherits(RubyLint.
|
|
271
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Passwd::InlineCharArray') do |klass|
|
|
272
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Rubinius::FFI::Struct::InlineArray'))
|
|
273
273
|
|
|
274
274
|
klass.define_method('__class_init__')
|
|
275
275
|
|
|
@@ -285,8 +285,8 @@ end
|
|
|
285
285
|
# Created: 2013-04-01 18:33:55 +0200
|
|
286
286
|
# Platform: rbx 2.0.0.rc1
|
|
287
287
|
#
|
|
288
|
-
RubyLint.global_scope.define_constant('Struct::SortedElement') do |klass|
|
|
289
|
-
klass.inherits(RubyLint.
|
|
288
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::SortedElement') do |klass|
|
|
289
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
290
290
|
|
|
291
291
|
klass.define_method('__class_init__')
|
|
292
292
|
|
|
@@ -309,8 +309,8 @@ end
|
|
|
309
309
|
# Created: 2013-04-01 18:33:55 +0200
|
|
310
310
|
# Platform: rbx 2.0.0.rc1
|
|
311
311
|
#
|
|
312
|
-
RubyLint.global_scope.define_constant('Struct::Tms') do |klass|
|
|
313
|
-
klass.inherits(RubyLint.
|
|
312
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Tms') do |klass|
|
|
313
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Struct'))
|
|
314
314
|
|
|
315
315
|
klass.define_method('[]') do |method|
|
|
316
316
|
method.define_rest_argument('args')
|
|
@@ -353,5 +353,5 @@ end
|
|
|
353
353
|
# Created: 2013-04-01 18:33:55 +0200
|
|
354
354
|
# Platform: rbx 2.0.0.rc1
|
|
355
355
|
#
|
|
356
|
-
RubyLint.global_scope.define_constant('Struct::Tms::STRUCT_ATTRS') do |klass|
|
|
356
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Struct::Tms::STRUCT_ATTRS') do |klass|
|
|
357
357
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('Syck') do |klass|
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Syck') do |klass|
|
|
7
7
|
|
|
8
8
|
klass.define_method('__module_init__')
|
|
9
9
|
end
|
|
@@ -13,8 +13,8 @@ end
|
|
|
13
13
|
# Created: 2013-04-01 18:33:55 +0200
|
|
14
14
|
# Platform: rbx 2.0.0.rc1
|
|
15
15
|
#
|
|
16
|
-
RubyLint.global_scope.define_constant('Syck::DefaultKey') do |klass|
|
|
17
|
-
klass.inherits(RubyLint.
|
|
16
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Syck::DefaultKey') do |klass|
|
|
17
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
18
18
|
|
|
19
19
|
klass.define_method('__class_init__')
|
|
20
20
|
|
|
@@ -26,5 +26,5 @@ end
|
|
|
26
26
|
# Created: 2013-04-01 18:33:55 +0200
|
|
27
27
|
# Platform: rbx 2.0.0.rc1
|
|
28
28
|
#
|
|
29
|
-
RubyLint.global_scope.define_constant('Syck::ENGINE') do |klass|
|
|
29
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Syck::ENGINE') do |klass|
|
|
30
30
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('Symbol') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Symbol') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('===') do |method|
|
|
10
10
|
method.define_argument('obj')
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('SyntaxError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('SyntaxError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('ScriptError'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('SystemCallError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('SystemCallError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('StandardError'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('SystemExit') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('SystemExit') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Exception'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('SystemStackError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('SystemStackError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Exception'))
|
|
8
8
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('Thread') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Thread') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -188,7 +188,7 @@ end
|
|
|
188
188
|
# Created: 2013-04-01 18:33:55 +0200
|
|
189
189
|
# Platform: rbx 2.0.0.rc1
|
|
190
190
|
#
|
|
191
|
-
RubyLint.global_scope.define_constant('Thread::Default') do |klass|
|
|
191
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Thread::Default') do |klass|
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
##
|
|
@@ -196,8 +196,8 @@ end
|
|
|
196
196
|
# Created: 2013-04-01 18:33:55 +0200
|
|
197
197
|
# Platform: rbx 2.0.0.rc1
|
|
198
198
|
#
|
|
199
|
-
RubyLint.global_scope.define_constant('Thread::InnerRecursionDetected') do |klass|
|
|
200
|
-
klass.inherits(RubyLint.
|
|
199
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Thread::InnerRecursionDetected') do |klass|
|
|
200
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Exception'))
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
##
|
|
@@ -205,5 +205,5 @@ end
|
|
|
205
205
|
# Created: 2013-04-01 18:33:55 +0200
|
|
206
206
|
# Platform: rbx 2.0.0.rc1
|
|
207
207
|
#
|
|
208
|
-
RubyLint.global_scope.define_constant('Thread::MUTEX_FOR_THREAD_EXCLUSIVE') do |klass|
|
|
208
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Thread::MUTEX_FOR_THREAD_EXCLUSIVE') do |klass|
|
|
209
209
|
end
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('ThreadError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('ThreadError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('StandardError'))
|
|
8
8
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('ThreadGroup') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('ThreadGroup') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('Time') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Time') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -229,5 +229,5 @@ end
|
|
|
229
229
|
# Created: 2013-04-01 18:33:55 +0200
|
|
230
230
|
# Platform: rbx 2.0.0.rc1
|
|
231
231
|
#
|
|
232
|
-
RubyLint.global_scope.define_constant('Time::MonthValue') do |klass|
|
|
232
|
+
RubyLint::VirtualMachine.global_scope.define_constant('Time::MonthValue') do |klass|
|
|
233
233
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('TrueClass') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('TrueClass') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('TypeError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('TypeError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('StandardError'))
|
|
8
8
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('UnboundMethod') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('UnboundMethod') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('UnsupportedLibraryError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('UnsupportedLibraryError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('StandardError'))
|
|
8
8
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('WeakRef') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('WeakRef') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('BasicObject'))
|
|
8
8
|
|
|
9
9
|
klass.define_method('__class_init__')
|
|
10
10
|
|
|
@@ -37,6 +37,6 @@ end
|
|
|
37
37
|
# Created: 2013-04-01 18:33:55 +0200
|
|
38
38
|
# Platform: rbx 2.0.0.rc1
|
|
39
39
|
#
|
|
40
|
-
RubyLint.global_scope.define_constant('WeakRef::RefError') do |klass|
|
|
41
|
-
klass.inherits(RubyLint.
|
|
40
|
+
RubyLint::VirtualMachine.global_scope.define_constant('WeakRef::RefError') do |klass|
|
|
41
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('RuntimeError'))
|
|
42
42
|
end
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# Created: 2013-04-01 18:33:55 +0200
|
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
|
5
5
|
#
|
|
6
|
-
RubyLint.global_scope.define_constant('ZeroDivisionError') do |klass|
|
|
7
|
-
klass.inherits(RubyLint.
|
|
6
|
+
RubyLint::VirtualMachine.global_scope.define_constant('ZeroDivisionError') do |klass|
|
|
7
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('StandardError'))
|
|
8
8
|
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require_relative 'rails/action_controller.rb'
|
|
2
|
+
require_relative 'rails/action_pack.rb'
|
|
3
|
+
require_relative 'rails/action_mailer.rb'
|
|
4
|
+
require_relative 'rails/abstract_controller.rb'
|
|
5
|
+
require_relative 'rails/active_record.rb'
|
|
6
|
+
require_relative 'rails/arel.rb'
|
|
7
|
+
require_relative 'rails/action_dispatch.rb'
|
|
8
|
+
require_relative 'rails/action_view.rb'
|
|
9
|
+
require_relative 'rails/rails.rb'
|
|
10
|
+
require_relative 'rails/sprockets.rb'
|
|
11
|
+
require_relative 'rails/active_support.rb'
|
|
12
|
+
require_relative 'rails/active_model.rb'
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
# This file was automatically generated, any manual changes will be lost the
|
|
2
|
+
# next time this file is generated.
|
|
3
|
+
#
|
|
4
|
+
# Created: 2013-07-07 17:54:57 +0200
|
|
5
|
+
# Platform: rbx 2.0.0.rc1
|
|
6
|
+
|
|
7
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController') do |klass|
|
|
8
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::AssetPaths') do |klass|
|
|
12
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Base') do |klass|
|
|
16
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
17
|
+
|
|
18
|
+
klass.define_method('abstract')
|
|
19
|
+
|
|
20
|
+
klass.define_method('abstract!')
|
|
21
|
+
|
|
22
|
+
klass.define_method('abstract?')
|
|
23
|
+
|
|
24
|
+
klass.define_method('action_methods')
|
|
25
|
+
|
|
26
|
+
klass.define_method('clear_action_methods!')
|
|
27
|
+
|
|
28
|
+
klass.define_method('controller_path')
|
|
29
|
+
|
|
30
|
+
klass.define_method('hidden_actions')
|
|
31
|
+
|
|
32
|
+
klass.define_method('inherited') do |method|
|
|
33
|
+
method.define_argument('klass')
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
klass.define_method('internal_methods')
|
|
37
|
+
|
|
38
|
+
klass.define_method('method_added') do |method|
|
|
39
|
+
method.define_argument('name')
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
klass.define_instance_method('action_methods')
|
|
43
|
+
|
|
44
|
+
klass.define_instance_method('action_name')
|
|
45
|
+
|
|
46
|
+
klass.define_instance_method('action_name=')
|
|
47
|
+
|
|
48
|
+
klass.define_instance_method('available_action?') do |method|
|
|
49
|
+
method.define_argument('action_name')
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
klass.define_instance_method('controller_path')
|
|
53
|
+
|
|
54
|
+
klass.define_instance_method('formats')
|
|
55
|
+
|
|
56
|
+
klass.define_instance_method('formats=')
|
|
57
|
+
|
|
58
|
+
klass.define_instance_method('process') do |method|
|
|
59
|
+
method.define_argument('action')
|
|
60
|
+
method.define_rest_argument('args')
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
klass.define_instance_method('response_body')
|
|
64
|
+
|
|
65
|
+
klass.define_instance_method('response_body=')
|
|
66
|
+
|
|
67
|
+
klass.define_instance_method('send_action') do |method|
|
|
68
|
+
method.define_argument('message')
|
|
69
|
+
method.define_rest_argument('args')
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Callbacks') do |klass|
|
|
74
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
75
|
+
|
|
76
|
+
klass.define_instance_method('process_action') do |method|
|
|
77
|
+
method.define_rest_argument('args')
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Collector') do |klass|
|
|
82
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
83
|
+
|
|
84
|
+
klass.define_method('generate_method_for_mime') do |method|
|
|
85
|
+
method.define_argument('mime')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
klass.define_instance_method('atom') do |method|
|
|
89
|
+
method.define_rest_argument('args')
|
|
90
|
+
method.define_block_argument('block')
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
klass.define_instance_method('bmp') do |method|
|
|
94
|
+
method.define_rest_argument('args')
|
|
95
|
+
method.define_block_argument('block')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
klass.define_instance_method('css') do |method|
|
|
99
|
+
method.define_rest_argument('args')
|
|
100
|
+
method.define_block_argument('block')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
klass.define_instance_method('csv') do |method|
|
|
104
|
+
method.define_rest_argument('args')
|
|
105
|
+
method.define_block_argument('block')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
klass.define_instance_method('gif') do |method|
|
|
109
|
+
method.define_rest_argument('args')
|
|
110
|
+
method.define_block_argument('block')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
klass.define_instance_method('html') do |method|
|
|
114
|
+
method.define_rest_argument('args')
|
|
115
|
+
method.define_block_argument('block')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
klass.define_instance_method('ics') do |method|
|
|
119
|
+
method.define_rest_argument('args')
|
|
120
|
+
method.define_block_argument('block')
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
klass.define_instance_method('jpeg') do |method|
|
|
124
|
+
method.define_rest_argument('args')
|
|
125
|
+
method.define_block_argument('block')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
klass.define_instance_method('js') do |method|
|
|
129
|
+
method.define_rest_argument('args')
|
|
130
|
+
method.define_block_argument('block')
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
klass.define_instance_method('json') do |method|
|
|
134
|
+
method.define_rest_argument('args')
|
|
135
|
+
method.define_block_argument('block')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
klass.define_instance_method('method_missing') do |method|
|
|
139
|
+
method.define_argument('symbol')
|
|
140
|
+
method.define_block_argument('block')
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
klass.define_instance_method('mpeg') do |method|
|
|
144
|
+
method.define_rest_argument('args')
|
|
145
|
+
method.define_block_argument('block')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
klass.define_instance_method('multipart_form') do |method|
|
|
149
|
+
method.define_rest_argument('args')
|
|
150
|
+
method.define_block_argument('block')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
klass.define_instance_method('pdf') do |method|
|
|
154
|
+
method.define_rest_argument('args')
|
|
155
|
+
method.define_block_argument('block')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
klass.define_instance_method('png') do |method|
|
|
159
|
+
method.define_rest_argument('args')
|
|
160
|
+
method.define_block_argument('block')
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
klass.define_instance_method('rss') do |method|
|
|
164
|
+
method.define_rest_argument('args')
|
|
165
|
+
method.define_block_argument('block')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
klass.define_instance_method('text') do |method|
|
|
169
|
+
method.define_rest_argument('args')
|
|
170
|
+
method.define_block_argument('block')
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
klass.define_instance_method('tiff') do |method|
|
|
174
|
+
method.define_rest_argument('args')
|
|
175
|
+
method.define_block_argument('block')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
klass.define_instance_method('url_encoded_form') do |method|
|
|
179
|
+
method.define_rest_argument('args')
|
|
180
|
+
method.define_block_argument('block')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
klass.define_instance_method('xml') do |method|
|
|
184
|
+
method.define_rest_argument('args')
|
|
185
|
+
method.define_block_argument('block')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
klass.define_instance_method('yaml') do |method|
|
|
189
|
+
method.define_rest_argument('args')
|
|
190
|
+
method.define_block_argument('block')
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
klass.define_instance_method('zip') do |method|
|
|
194
|
+
method.define_rest_argument('args')
|
|
195
|
+
method.define_block_argument('block')
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Helpers') do |klass|
|
|
200
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Layouts') do |klass|
|
|
204
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
205
|
+
|
|
206
|
+
klass.define_instance_method('_layout_conditions') do |method|
|
|
207
|
+
method.define_rest_argument('args')
|
|
208
|
+
method.define_block_argument('block')
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
klass.define_instance_method('_normalize_options') do |method|
|
|
212
|
+
method.define_argument('options')
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
klass.define_instance_method('action_has_layout=')
|
|
216
|
+
|
|
217
|
+
klass.define_instance_method('action_has_layout?')
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Logger') do |klass|
|
|
221
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Railties') do |klass|
|
|
225
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Rendering') do |klass|
|
|
229
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
230
|
+
|
|
231
|
+
klass.define_instance_method('_render_template') do |method|
|
|
232
|
+
method.define_argument('options')
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
klass.define_instance_method('process') do |method|
|
|
236
|
+
method.define_rest_argument('')
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
klass.define_instance_method('render') do |method|
|
|
240
|
+
method.define_rest_argument('args')
|
|
241
|
+
method.define_block_argument('block')
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
klass.define_instance_method('render_to_body') do |method|
|
|
245
|
+
method.define_optional_argument('options')
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
klass.define_instance_method('render_to_string') do |method|
|
|
249
|
+
method.define_rest_argument('args')
|
|
250
|
+
method.define_block_argument('block')
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
klass.define_instance_method('view_assigns')
|
|
254
|
+
|
|
255
|
+
klass.define_instance_method('view_context')
|
|
256
|
+
|
|
257
|
+
klass.define_instance_method('view_context_class')
|
|
258
|
+
|
|
259
|
+
klass.define_instance_method('view_context_class=')
|
|
260
|
+
|
|
261
|
+
klass.define_instance_method('view_renderer')
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::Translation') do |klass|
|
|
265
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
266
|
+
|
|
267
|
+
klass.define_instance_method('l') do |method|
|
|
268
|
+
method.define_rest_argument('args')
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
klass.define_instance_method('localize') do |method|
|
|
272
|
+
method.define_rest_argument('args')
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
klass.define_instance_method('t') do |method|
|
|
276
|
+
method.define_rest_argument('args')
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
klass.define_instance_method('translate') do |method|
|
|
280
|
+
method.define_rest_argument('args')
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::UrlFor') do |klass|
|
|
285
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
286
|
+
|
|
287
|
+
klass.define_instance_method('_routes')
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
RubyLint::VirtualMachine.global_scope.define_constant('AbstractController::ViewPaths') do |klass|
|
|
291
|
+
klass.inherits(RubyLint::VirtualMachine.constant_proxy('Object'))
|
|
292
|
+
|
|
293
|
+
klass.define_instance_method('_prefixes')
|
|
294
|
+
|
|
295
|
+
klass.define_instance_method('append_view_path') do |method|
|
|
296
|
+
method.define_argument('path')
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
klass.define_instance_method('details_for_lookup')
|
|
300
|
+
|
|
301
|
+
klass.define_instance_method('formats') do |method|
|
|
302
|
+
method.define_rest_argument('args')
|
|
303
|
+
method.define_block_argument('block')
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
klass.define_instance_method('formats=') do |method|
|
|
307
|
+
method.define_argument('arg')
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
klass.define_instance_method('locale') do |method|
|
|
311
|
+
method.define_rest_argument('args')
|
|
312
|
+
method.define_block_argument('block')
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
klass.define_instance_method('locale=') do |method|
|
|
316
|
+
method.define_argument('arg')
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
klass.define_instance_method('lookup_context')
|
|
320
|
+
|
|
321
|
+
klass.define_instance_method('prepend_view_path') do |method|
|
|
322
|
+
method.define_argument('path')
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
klass.define_instance_method('template_exists?') do |method|
|
|
326
|
+
method.define_rest_argument('args')
|
|
327
|
+
method.define_block_argument('block')
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
klass.define_instance_method('view_paths') do |method|
|
|
331
|
+
method.define_rest_argument('args')
|
|
332
|
+
method.define_block_argument('block')
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|