ruby-lint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.asc +17 -0
- data.tar.gz.asc +14 -14
- data/.ruby-version +1 -0
- data/.travis.yml +0 -1
- data/.yardopts +1 -0
- data/CONTRIBUTING.md +41 -0
- data/MANIFEST +99 -66
- data/README.md +36 -10
- data/Rakefile +6 -0
- data/checksum/ruby-lint-0.0.4.gem.sha512 +1 -0
- data/doc/changelog.md +94 -0
- data/lib/ruby-lint.rb +18 -1
- data/lib/ruby-lint/analysis/argument_amount.rb +43 -10
- data/lib/ruby-lint/analysis/base.rb +23 -17
- data/lib/ruby-lint/analysis/pedantics.rb +3 -1
- data/lib/ruby-lint/analysis/undefined_methods.rb +48 -10
- data/lib/ruby-lint/analysis/unused_variables.rb +27 -5
- data/lib/ruby-lint/ast/node.rb +10 -0
- data/lib/ruby-lint/cli/analyze.rb +22 -4
- data/lib/ruby-lint/cli/base.rb +8 -2
- data/lib/ruby-lint/configuration.rb +43 -4
- data/lib/ruby-lint/definition/constant_proxy.rb +10 -1
- data/lib/ruby-lint/definition/ruby_method.rb +45 -31
- data/lib/ruby-lint/definition/ruby_object.rb +56 -15
- data/lib/ruby-lint/definition_builder/base.rb +4 -0
- data/lib/ruby-lint/definition_builder/primitive.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_array.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_block.rb +1 -0
- data/lib/ruby-lint/definition_builder/ruby_class.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_hash.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_module.rb +3 -1
- data/lib/ruby-lint/definition_generator.rb +15 -7
- 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 +8 -12
- 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 +30 -23
- 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 +113 -60
- 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/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 +39 -3
- 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/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/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_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 +3 -2
- data/lib/ruby-lint/definitions/core/stdin.rb +3 -2
- data/lib/ruby-lint/definitions/core/stdout.rb +3 -2
- 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/yaml.rb +2361 -0
- data/lib/ruby-lint/definitions/core/zero_division_error.rb +2 -2
- data/lib/ruby-lint/definitions/global_variables.rb +9 -0
- data/lib/ruby-lint/definitions/rails/abstract_controller.rb +174 -28
- data/lib/ruby-lint/definitions/rails/action_controller.rb +4959 -550
- data/lib/ruby-lint/definitions/rails/action_dispatch.rb +2489 -292
- data/lib/ruby-lint/definitions/rails/action_mailer.rb +1285 -42
- data/lib/ruby-lint/definitions/rails/action_pack.rb +14 -6
- data/lib/ruby-lint/definitions/rails/action_view.rb +6941 -445
- data/lib/ruby-lint/definitions/rails/active_model.rb +1212 -69
- data/lib/ruby-lint/definitions/rails/active_record.rb +10344 -1450
- data/lib/ruby-lint/definitions/rails/active_support.rb +4631 -573
- data/lib/ruby-lint/definitions/rails/arel.rb +3211 -319
- data/lib/ruby-lint/definitions/rails/rails.rb +2922 -84
- data/lib/ruby-lint/definitions/rails/sprockets.rb +3048 -277
- data/lib/ruby-lint/docstring/mapping.rb +55 -0
- data/lib/ruby-lint/docstring/param_tag.rb +29 -0
- data/lib/ruby-lint/docstring/parser.rb +133 -0
- data/lib/ruby-lint/docstring/return_tag.rb +24 -0
- data/lib/ruby-lint/file_loader.rb +96 -0
- data/lib/ruby-lint/file_scanner.rb +91 -0
- data/lib/ruby-lint/global_scope.rb +56 -0
- data/lib/ruby-lint/helper/constant_paths.rb +1 -1
- data/lib/ruby-lint/inspector.rb +11 -33
- data/lib/ruby-lint/iterator.rb +31 -4
- data/lib/ruby-lint/method_call/alias.rb +46 -0
- data/lib/ruby-lint/method_call/assign_member.rb +55 -0
- data/lib/ruby-lint/method_call/attribute.rb +102 -0
- data/lib/ruby-lint/method_call/base.rb +37 -0
- data/lib/ruby-lint/method_call/define_method.rb +17 -0
- data/lib/ruby-lint/method_call/include.rb +39 -0
- data/lib/ruby-lint/parser.rb +9 -4
- data/lib/ruby-lint/presenter/text.rb +2 -1
- data/lib/ruby-lint/report.rb +19 -42
- data/lib/ruby-lint/report/entry.rb +20 -17
- data/lib/ruby-lint/runner.rb +92 -11
- data/lib/ruby-lint/template/definition.erb +2 -2
- data/lib/ruby-lint/variable_predicates.rb +7 -10
- data/lib/ruby-lint/version.rb +1 -1
- data/lib/ruby-lint/virtual_machine.rb +265 -188
- data/ruby-lint.gemspec +4 -4
- data/ruby-lint.yml +7 -0
- data/spec/fixtures/associating.rb +7 -0
- data/spec/fixtures/file_scanner/lib/example/recursive/source.rb +6 -0
- data/spec/fixtures/file_scanner/lib/example/recursive/target.rb +8 -0
- data/spec/fixtures/file_scanner/lib/example/user.rb +6 -0
- data/spec/fixtures/file_scanner/lib/test-dashes/foo.rb +4 -0
- data/spec/fixtures/file_scanner/rails/app/models/example/user.rb +6 -0
- data/spec/fixtures/file_scanner/rails/app/models/user.rb +4 -0
- data/spec/fixtures/uses_external.rb +1 -0
- data/spec/fixtures/uses_external_invalid.rb +3 -0
- data/spec/fixtures/uses_external_namespace.rb +1 -0
- data/spec/ruby-lint/analysis/{argument_amount.rb → argument_amount_spec.rb} +33 -7
- data/spec/ruby-lint/analysis/base_spec.rb +12 -0
- data/spec/ruby-lint/analysis/{pedantics.rb → pedantics_spec.rb} +24 -4
- data/spec/ruby-lint/analysis/{shadowing_variables.rb → shadowing_variables_spec.rb} +6 -6
- data/spec/ruby-lint/analysis/undefined_methods_spec.rb +320 -0
- data/spec/ruby-lint/analysis/{undefined_variables.rb → undefined_variables_spec.rb} +33 -10
- data/spec/ruby-lint/analysis/{unused_variables.rb → unused_variables_spec.rb} +36 -9
- data/spec/ruby-lint/ast/{node.rb → node_spec.rb} +12 -6
- data/spec/ruby-lint/cli/{analyze.rb → analyze_spec.rb} +16 -5
- data/spec/ruby-lint/cli/{ast.rb → ast_spec.rb} +3 -3
- data/spec/ruby-lint/configuration_spec.rb +106 -0
- data/spec/ruby-lint/definition/constant_proxy_spec.rb +54 -0
- data/spec/ruby-lint/definition/{dsl.rb → dsl_spec.rb} +15 -15
- data/spec/ruby-lint/definition/{ruby_method.rb → ruby_method_spec.rb} +31 -17
- data/spec/ruby-lint/definition/{ruby_object.rb → ruby_object_spec.rb} +28 -23
- data/spec/ruby-lint/definition_builder/{primitive.rb → primitive_spec.rb} +9 -9
- data/spec/ruby-lint/definition_builder/{ruby_class.rb → ruby_class_spec.rb} +13 -13
- data/spec/ruby-lint/definition_builder/{ruby_method.rb → ruby_method_spec.rb} +9 -9
- data/spec/ruby-lint/definition_builder/{ruby_module.rb → ruby_module_spec.rb} +12 -10
- data/spec/ruby-lint/docstring/mapping.rb +27 -0
- data/spec/ruby-lint/docstring/parser_spec.rb +88 -0
- data/spec/ruby-lint/extensions/{string.rb → string_spec.rb} +3 -3
- data/spec/ruby-lint/file_loader_spec.rb +69 -0
- data/spec/ruby-lint/file_scanner_spec.rb +51 -0
- data/spec/ruby-lint/inspector_spec.rb +44 -0
- data/spec/ruby-lint/{iterator.rb → iterator_spec.rb} +39 -4
- data/spec/ruby-lint/{nested_stack.rb → nested_stack_spec.rb} +4 -4
- data/spec/ruby-lint/parser_spec.rb +31 -0
- data/spec/ruby-lint/presenter/json_spec.rb +58 -0
- data/spec/ruby-lint/presenter/text_spec.rb +49 -0
- data/spec/ruby-lint/report/entry_spec.rb +58 -0
- data/spec/ruby-lint/report_spec.rb +39 -0
- data/spec/ruby-lint/runner_spec.rb +52 -0
- data/spec/ruby-lint/virtual_machine/alias_spec.rb +55 -0
- data/spec/ruby-lint/virtual_machine/assignments/{arrays.rb → arrays_spec.rb} +7 -7
- data/spec/ruby-lint/virtual_machine/assignments/{hashes.rb → hashes_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/assignments/{optional.rb → optional_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/assignments/{return_values.rb → return_values_spec.rb} +11 -11
- data/spec/ruby-lint/virtual_machine/assignments/{variables.rb → variables_spec.rb} +38 -7
- data/spec/ruby-lint/virtual_machine/associate_nodes_spec.rb +59 -0
- data/spec/ruby-lint/virtual_machine/{autoloading.rb → autoloading_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/{blocks.rb → blocks_spec.rb} +30 -4
- data/spec/ruby-lint/virtual_machine/classes/{class_methods.rb → class_methods_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/classes/{extending.rb → extending_spec.rb} +20 -15
- data/spec/ruby-lint/virtual_machine/classes/{redefining.rb → redefining_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/classes/{sclass.rb → sclass_spec.rb} +7 -7
- data/spec/ruby-lint/virtual_machine/classes/{scoping.rb → scoping_spec.rb} +5 -5
- data/spec/ruby-lint/virtual_machine/complex/{rails.rb → rails_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/complex/{rcap.rb → rcap_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/complex/{slop.rb → slop_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/constants_spec.rb +31 -0
- data/spec/ruby-lint/virtual_machine/{for.rb → for_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/{freeze.rb → freeze_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/global_variables_spec.rb +12 -0
- data/spec/ruby-lint/virtual_machine/inherit_kernel_spec.rb +15 -0
- data/spec/ruby-lint/virtual_machine/{interpolation.rb → interpolation_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/methods/attr_spec.rb +116 -0
- data/spec/ruby-lint/virtual_machine/methods/define_method_spec.rb +41 -0
- data/spec/ruby-lint/virtual_machine/methods/{defining.rb → defining_spec.rb} +4 -4
- data/spec/ruby-lint/virtual_machine/methods/docstrings_spec.rb +69 -0
- data/spec/ruby-lint/virtual_machine/methods/{exporting.rb → exporting_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/methods/{parameters.rb → parameters_spec.rb} +17 -5
- data/spec/ruby-lint/virtual_machine/methods/{patching.rb → patching_spec.rb} +4 -4
- data/spec/ruby-lint/virtual_machine/methods/{scoping.rb → scoping_spec.rb} +5 -5
- data/spec/ruby-lint/virtual_machine/methods/{visibility.rb → visibility_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/{modules.rb → modules_spec.rb} +39 -9
- data/spec/ruby-lint/virtual_machine/reference_amount_spec.rb +61 -0
- data/spec/ruby-lint/virtual_machine/{unused.rb → unused_spec.rb} +4 -4
- data/spec/{helper.rb → spec_helper.rb} +6 -4
- data/spec/support/building.rb +10 -6
- data/spec/support/coveralls.rb +1 -1
- data/spec/support/parsing.rb +10 -1
- data/spec/support/simplecov.rb +1 -1
- data/spec/support/versions.rb +9 -0
- data/task/test.rake +2 -4
- data/task/travis.rake +1 -0
- metadata +144 -143
- metadata.gz.asc +14 -14
- data/.rubocop.yml +0 -59
- data/doc/contributing.md +0 -16
- data/lib/ruby-lint/analysis/confusing_variables.rb +0 -26
- data/lib/ruby-lint/definitions/core/main.rb +0 -25
- data/lib/ruby-lint/definitions/core/psych.rb +0 -2231
- data/lib/ruby-lint/definitions/core/rubinius.rb +0 -16637
- data/lib/ruby-lint/definitions/core/ruby_lint.rb +0 -93
- data/spec/ruby-lint/analysis/confusing_variables.rb +0 -46
- data/spec/ruby-lint/analysis/undefined_methods.rb +0 -174
- data/spec/ruby-lint/configuration.rb +0 -54
- data/spec/ruby-lint/definition/constant_proxy.rb +0 -31
- data/spec/ruby-lint/parser.rb +0 -14
- data/spec/ruby-lint/presenter/json.rb +0 -31
- data/spec/ruby-lint/presenter/text.rb +0 -22
- data/spec/ruby-lint/report.rb +0 -50
- data/spec/ruby-lint/report/entry.rb +0 -28
- data/spec/ruby-lint/runner.rb +0 -32
- data/spec/ruby-lint/virtual_machine/associate_nodes.rb +0 -17
- data/spec/ruby-lint/virtual_machine/reference_amount.rb +0 -33
- data/spec/support/bacon.rb +0 -33
- data/task/cop.rake +0 -11
@@ -14,6 +14,10 @@ module RubyLint
|
|
14
14
|
|
15
15
|
attr_reader :definitions, :node, :options
|
16
16
|
|
17
|
+
# Ensures compatibility with code that relies on either one of these
|
18
|
+
# methods. They are the same for definition builders anyway.
|
19
|
+
alias_method :current_scope, :definitions
|
20
|
+
|
17
21
|
##
|
18
22
|
# @param [RubyLint::AST::Node] node
|
19
23
|
# @param [RubyLint::Definition::RubyObject] definitions
|
@@ -32,7 +32,7 @@ module RubyLint
|
|
32
32
|
|
33
33
|
raise(ArgumentError, "The type #{type} is invalid") unless ruby_class
|
34
34
|
|
35
|
-
return
|
35
|
+
return GlobalScope.global_constant(ruby_class)
|
36
36
|
end
|
37
37
|
end # Primitive
|
38
38
|
end # DefinitionBuilder
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'fileutils'
|
2
1
|
require 'erb'
|
3
2
|
require_relative 'template/scope'
|
4
3
|
require_relative 'generated_constant'
|
@@ -78,16 +77,25 @@ module RubyLint
|
|
78
77
|
constants << constant
|
79
78
|
end
|
80
79
|
|
81
|
-
|
82
|
-
|
83
|
-
File.open(filepath, 'w') do |handle|
|
84
|
-
handle.write(erb)
|
85
|
-
end
|
80
|
+
render_template(filepath, template, constants)
|
86
81
|
end
|
87
82
|
end
|
88
83
|
|
89
84
|
private
|
90
85
|
|
86
|
+
##
|
87
|
+
# @param [String] path
|
88
|
+
# @param [String] template
|
89
|
+
# @param [Array] constants
|
90
|
+
#
|
91
|
+
def render_template(path, template, constants)
|
92
|
+
erb = render_erb(template, :constants => constants)
|
93
|
+
|
94
|
+
File.open(path, 'w') do |handle|
|
95
|
+
handle.write(erb)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
91
99
|
##
|
92
100
|
# Groups constants together based on the top level namespace segment.
|
93
101
|
#
|
@@ -165,7 +173,7 @@ module RubyLint
|
|
165
173
|
# @param [String] template
|
166
174
|
# @param [Hash] variables
|
167
175
|
#
|
168
|
-
def
|
176
|
+
def render_erb(template, variables = {})
|
169
177
|
scope = Template::Scope.new(variables)
|
170
178
|
erb = ERB.new(template, nil, '-').result(scope.get_binding)
|
171
179
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('ArgumentError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.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:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Array') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('[]') do |method|
|
10
10
|
method.define_rest_argument('args')
|
@@ -373,8 +373,8 @@ end
|
|
373
373
|
# Created: 2013-04-01 18:33:52 +0200
|
374
374
|
# Platform: rbx 2.0.0.rc1
|
375
375
|
#
|
376
|
-
RubyLint::
|
377
|
-
klass.inherits(RubyLint::
|
376
|
+
RubyLint::GlobalScope.definitions.define_constant('Array::SortedElement') do |klass|
|
377
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
378
378
|
|
379
379
|
klass.define_method('__class_init__')
|
380
380
|
|
@@ -397,8 +397,8 @@ end
|
|
397
397
|
# Created: 2013-04-01 18:33:52 +0200
|
398
398
|
# Platform: rbx 2.0.0.rc1
|
399
399
|
#
|
400
|
-
RubyLint::
|
401
|
-
klass.inherits(RubyLint::
|
400
|
+
RubyLint::GlobalScope.definitions.define_constant('Array::ValueGenerator') do |klass|
|
401
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
402
402
|
|
403
403
|
klass.define_method('__class_init__')
|
404
404
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Autoload') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -3,23 +3,19 @@
|
|
3
3
|
# Created: 2013-03-26 21:43:55 +0100
|
4
4
|
# Platform: rubinius 2.0.0.rc1 (1.9.3 cbee9a2d yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]
|
5
5
|
#
|
6
|
-
RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('BasicObject') do |klass|
|
7
7
|
klass.inherits(
|
8
|
-
RubyLint::
|
9
|
-
RubyLint::
|
8
|
+
RubyLint::GlobalScope.constant_proxy('Class'),
|
9
|
+
RubyLint::GlobalScope.constant_proxy('Kernel')
|
10
10
|
)
|
11
11
|
|
12
|
-
klass.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
klass.define_instance_method('!=') do |method|
|
17
|
-
method.define_argument('other')
|
12
|
+
klass.define_constructors do |method|
|
13
|
+
method.returns do |object|
|
14
|
+
object.instance
|
15
|
+
end
|
18
16
|
end
|
19
17
|
|
20
|
-
klass.
|
21
|
-
method.define_argument('other')
|
22
|
-
end
|
18
|
+
klass.define_method('__class_init__')
|
23
19
|
|
24
20
|
klass.define_instance_method('__id__')
|
25
21
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Bignum') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Integer'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Binding') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
RubyLint::
|
2
|
-
klass.inherits(RubyLint::
|
1
|
+
RubyLint::GlobalScope.definitions.define_constant('Class') do |klass|
|
2
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Module'))
|
3
3
|
|
4
4
|
klass.define_constructors do |method|
|
5
5
|
method.define_optional_argument('klass')
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Comparable') do |klass|
|
7
7
|
|
8
8
|
klass.define_method('__module_init__')
|
9
9
|
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Complex') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Numeric'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -140,7 +140,7 @@ end
|
|
140
140
|
# Created: 2013-04-01 18:33:52 +0200
|
141
141
|
# Platform: rbx 2.0.0.rc1
|
142
142
|
#
|
143
|
-
RubyLint::
|
143
|
+
RubyLint::GlobalScope.definitions.define_constant('Complex::FFI') do |klass|
|
144
144
|
|
145
145
|
klass.define_method('__module_init__')
|
146
146
|
|
@@ -191,5 +191,5 @@ end
|
|
191
191
|
# Created: 2013-04-01 18:33:52 +0200
|
192
192
|
# Platform: rbx 2.0.0.rc1
|
193
193
|
#
|
194
|
-
RubyLint::
|
194
|
+
RubyLint::GlobalScope.definitions.define_constant('Complex::I') do |klass|
|
195
195
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('ConditionVariable') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.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:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Continuation') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
end
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:52 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Data') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:53 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Date') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -379,7 +379,7 @@ end
|
|
379
379
|
# Created: 2013-04-01 18:33:53 +0200
|
380
380
|
# Platform: rbx 2.0.0.rc1
|
381
381
|
#
|
382
|
-
RubyLint::
|
382
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::ABBR_DAYNAMES') do |klass|
|
383
383
|
end
|
384
384
|
|
385
385
|
##
|
@@ -387,7 +387,7 @@ end
|
|
387
387
|
# Created: 2013-04-01 18:33:53 +0200
|
388
388
|
# Platform: rbx 2.0.0.rc1
|
389
389
|
#
|
390
|
-
RubyLint::
|
390
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::ABBR_MONTHNAMES') do |klass|
|
391
391
|
end
|
392
392
|
|
393
393
|
##
|
@@ -395,7 +395,7 @@ end
|
|
395
395
|
# Created: 2013-04-01 18:33:53 +0200
|
396
396
|
# Platform: rbx 2.0.0.rc1
|
397
397
|
#
|
398
|
-
RubyLint::
|
398
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::DAYNAMES') do |klass|
|
399
399
|
end
|
400
400
|
|
401
401
|
##
|
@@ -403,7 +403,7 @@ end
|
|
403
403
|
# Created: 2013-04-01 18:33:53 +0200
|
404
404
|
# Platform: rbx 2.0.0.rc1
|
405
405
|
#
|
406
|
-
RubyLint::
|
406
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::ENGLAND') do |klass|
|
407
407
|
end
|
408
408
|
|
409
409
|
##
|
@@ -411,7 +411,7 @@ end
|
|
411
411
|
# Created: 2013-04-01 18:33:53 +0200
|
412
412
|
# Platform: rbx 2.0.0.rc1
|
413
413
|
#
|
414
|
-
RubyLint::
|
414
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format') do |klass|
|
415
415
|
|
416
416
|
klass.define_method('__module_init__')
|
417
417
|
end
|
@@ -421,7 +421,7 @@ end
|
|
421
421
|
# Created: 2013-04-01 18:33:53 +0200
|
422
422
|
# Platform: rbx 2.0.0.rc1
|
423
423
|
#
|
424
|
-
RubyLint::
|
424
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::ABBR_DAYS') do |klass|
|
425
425
|
end
|
426
426
|
|
427
427
|
##
|
@@ -429,7 +429,7 @@ end
|
|
429
429
|
# Created: 2013-04-01 18:33:53 +0200
|
430
430
|
# Platform: rbx 2.0.0.rc1
|
431
431
|
#
|
432
|
-
RubyLint::
|
432
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::ABBR_MONTHS') do |klass|
|
433
433
|
end
|
434
434
|
|
435
435
|
##
|
@@ -437,8 +437,8 @@ end
|
|
437
437
|
# Created: 2013-04-01 18:33:53 +0200
|
438
438
|
# Platform: rbx 2.0.0.rc1
|
439
439
|
#
|
440
|
-
RubyLint::
|
441
|
-
klass.inherits(RubyLint::
|
440
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::Bag') do |klass|
|
441
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
442
442
|
|
443
443
|
klass.define_method('__class_init__')
|
444
444
|
|
@@ -507,7 +507,7 @@ end
|
|
507
507
|
# Created: 2013-04-01 18:33:53 +0200
|
508
508
|
# Platform: rbx 2.0.0.rc1
|
509
509
|
#
|
510
|
-
RubyLint::
|
510
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::Bag::Fast') do |klass|
|
511
511
|
end
|
512
512
|
|
513
513
|
##
|
@@ -515,7 +515,7 @@ end
|
|
515
515
|
# Created: 2013-04-01 18:33:53 +0200
|
516
516
|
# Platform: rbx 2.0.0.rc1
|
517
517
|
#
|
518
|
-
RubyLint::
|
518
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::DAYS') do |klass|
|
519
519
|
end
|
520
520
|
|
521
521
|
##
|
@@ -523,7 +523,7 @@ end
|
|
523
523
|
# Created: 2013-04-01 18:33:53 +0200
|
524
524
|
# Platform: rbx 2.0.0.rc1
|
525
525
|
#
|
526
|
-
RubyLint::
|
526
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::MONTHS') do |klass|
|
527
527
|
end
|
528
528
|
|
529
529
|
##
|
@@ -531,7 +531,7 @@ end
|
|
531
531
|
# Created: 2013-04-01 18:33:53 +0200
|
532
532
|
# Platform: rbx 2.0.0.rc1
|
533
533
|
#
|
534
|
-
RubyLint::
|
534
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Format::ZONES') do |klass|
|
535
535
|
end
|
536
536
|
|
537
537
|
##
|
@@ -539,7 +539,7 @@ end
|
|
539
539
|
# Created: 2013-04-01 18:33:53 +0200
|
540
540
|
# Platform: rbx 2.0.0.rc1
|
541
541
|
#
|
542
|
-
RubyLint::
|
542
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::GREGORIAN') do |klass|
|
543
543
|
end
|
544
544
|
|
545
545
|
##
|
@@ -547,7 +547,7 @@ end
|
|
547
547
|
# Created: 2013-04-01 18:33:53 +0200
|
548
548
|
# Platform: rbx 2.0.0.rc1
|
549
549
|
#
|
550
|
-
RubyLint::
|
550
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::HALF_DAYS_IN_DAY') do |klass|
|
551
551
|
end
|
552
552
|
|
553
553
|
##
|
@@ -555,7 +555,7 @@ end
|
|
555
555
|
# Created: 2013-04-01 18:33:53 +0200
|
556
556
|
# Platform: rbx 2.0.0.rc1
|
557
557
|
#
|
558
|
-
RubyLint::
|
558
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::HOURS_IN_DAY') do |klass|
|
559
559
|
end
|
560
560
|
|
561
561
|
##
|
@@ -563,7 +563,7 @@ end
|
|
563
563
|
# Created: 2013-04-01 18:33:53 +0200
|
564
564
|
# Platform: rbx 2.0.0.rc1
|
565
565
|
#
|
566
|
-
RubyLint::
|
566
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::ITALY') do |klass|
|
567
567
|
end
|
568
568
|
|
569
569
|
##
|
@@ -571,8 +571,8 @@ end
|
|
571
571
|
# Created: 2013-04-01 18:33:53 +0200
|
572
572
|
# Platform: rbx 2.0.0.rc1
|
573
573
|
#
|
574
|
-
RubyLint::
|
575
|
-
klass.inherits(RubyLint::
|
574
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::Infinity') do |klass|
|
575
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Numeric'))
|
576
576
|
|
577
577
|
klass.define_method('__class_init__')
|
578
578
|
|
@@ -606,7 +606,7 @@ end
|
|
606
606
|
# Created: 2013-04-01 18:33:53 +0200
|
607
607
|
# Platform: rbx 2.0.0.rc1
|
608
608
|
#
|
609
|
-
RubyLint::
|
609
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::JULIAN') do |klass|
|
610
610
|
end
|
611
611
|
|
612
612
|
##
|
@@ -614,7 +614,7 @@ end
|
|
614
614
|
# Created: 2013-04-01 18:33:53 +0200
|
615
615
|
# Platform: rbx 2.0.0.rc1
|
616
616
|
#
|
617
|
-
RubyLint::
|
617
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::LD_EPOCH_IN_CJD') do |klass|
|
618
618
|
end
|
619
619
|
|
620
620
|
##
|
@@ -622,7 +622,7 @@ end
|
|
622
622
|
# Created: 2013-04-01 18:33:53 +0200
|
623
623
|
# Platform: rbx 2.0.0.rc1
|
624
624
|
#
|
625
|
-
RubyLint::
|
625
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::MILLISECONDS_IN_DAY') do |klass|
|
626
626
|
end
|
627
627
|
|
628
628
|
##
|
@@ -630,7 +630,7 @@ end
|
|
630
630
|
# Created: 2013-04-01 18:33:53 +0200
|
631
631
|
# Platform: rbx 2.0.0.rc1
|
632
632
|
#
|
633
|
-
RubyLint::
|
633
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::MILLISECONDS_IN_SECOND') do |klass|
|
634
634
|
end
|
635
635
|
|
636
636
|
##
|
@@ -638,7 +638,7 @@ end
|
|
638
638
|
# Created: 2013-04-01 18:33:53 +0200
|
639
639
|
# Platform: rbx 2.0.0.rc1
|
640
640
|
#
|
641
|
-
RubyLint::
|
641
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::MINUTES_IN_DAY') do |klass|
|
642
642
|
end
|
643
643
|
|
644
644
|
##
|
@@ -646,7 +646,7 @@ end
|
|
646
646
|
# Created: 2013-04-01 18:33:53 +0200
|
647
647
|
# Platform: rbx 2.0.0.rc1
|
648
648
|
#
|
649
|
-
RubyLint::
|
649
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::MJD_EPOCH_IN_AJD') do |klass|
|
650
650
|
end
|
651
651
|
|
652
652
|
##
|
@@ -654,7 +654,7 @@ end
|
|
654
654
|
# Created: 2013-04-01 18:33:53 +0200
|
655
655
|
# Platform: rbx 2.0.0.rc1
|
656
656
|
#
|
657
|
-
RubyLint::
|
657
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::MJD_EPOCH_IN_CJD') do |klass|
|
658
658
|
end
|
659
659
|
|
660
660
|
##
|
@@ -662,7 +662,7 @@ end
|
|
662
662
|
# Created: 2013-04-01 18:33:53 +0200
|
663
663
|
# Platform: rbx 2.0.0.rc1
|
664
664
|
#
|
665
|
-
RubyLint::
|
665
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::MONTHNAMES') do |klass|
|
666
666
|
end
|
667
667
|
|
668
668
|
##
|
@@ -670,7 +670,7 @@ end
|
|
670
670
|
# Created: 2013-04-01 18:33:53 +0200
|
671
671
|
# Platform: rbx 2.0.0.rc1
|
672
672
|
#
|
673
|
-
RubyLint::
|
673
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::NANOSECONDS_IN_DAY') do |klass|
|
674
674
|
end
|
675
675
|
|
676
676
|
##
|
@@ -678,7 +678,7 @@ end
|
|
678
678
|
# Created: 2013-04-01 18:33:53 +0200
|
679
679
|
# Platform: rbx 2.0.0.rc1
|
680
680
|
#
|
681
|
-
RubyLint::
|
681
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::NANOSECONDS_IN_SECOND') do |klass|
|
682
682
|
end
|
683
683
|
|
684
684
|
##
|
@@ -686,7 +686,7 @@ end
|
|
686
686
|
# Created: 2013-04-01 18:33:53 +0200
|
687
687
|
# Platform: rbx 2.0.0.rc1
|
688
688
|
#
|
689
|
-
RubyLint::
|
689
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::SECONDS_IN_DAY') do |klass|
|
690
690
|
end
|
691
691
|
|
692
692
|
##
|
@@ -694,7 +694,7 @@ end
|
|
694
694
|
# Created: 2013-04-01 18:33:53 +0200
|
695
695
|
# Platform: rbx 2.0.0.rc1
|
696
696
|
#
|
697
|
-
RubyLint::
|
697
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::UNIX_EPOCH_IN_AJD') do |klass|
|
698
698
|
end
|
699
699
|
|
700
700
|
##
|
@@ -702,5 +702,5 @@ end
|
|
702
702
|
# Created: 2013-04-01 18:33:53 +0200
|
703
703
|
# Platform: rbx 2.0.0.rc1
|
704
704
|
#
|
705
|
-
RubyLint::
|
705
|
+
RubyLint::GlobalScope.definitions.define_constant('Date::UNIX_EPOCH_IN_CJD') do |klass|
|
706
706
|
end
|