checkoff 0.222.0 → 0.225.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/checkoff.gemspec +10 -5
- data/lib/checkoff/attachments.rb +1 -0
- data/lib/checkoff/cli.rb +1 -1
- data/lib/checkoff/clients.rb +2 -1
- data/lib/checkoff/custom_fields.rb +2 -1
- data/lib/checkoff/events.rb +2 -1
- data/lib/checkoff/internal/asana_event_enrichment.rb +1 -0
- data/lib/checkoff/internal/asana_event_filter.rb +1 -0
- data/lib/checkoff/internal/config_loader.rb +2 -2
- data/lib/checkoff/internal/logging.rb +6 -5
- data/lib/checkoff/internal/project_hashes.rb +1 -0
- data/lib/checkoff/internal/project_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/project_timing.rb +1 -0
- data/lib/checkoff/internal/search_url/custom_field_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url/custom_field_variant.rb +1 -0
- data/lib/checkoff/internal/search_url/date_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url/parser.rb +1 -0
- data/lib/checkoff/internal/search_url/results_merger.rb +1 -0
- data/lib/checkoff/internal/search_url/simple_param_converter.rb +1 -0
- data/lib/checkoff/internal/search_url.rb +1 -0
- data/lib/checkoff/internal/section_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/selector_classes/common/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/common.rb +1 -0
- data/lib/checkoff/internal/selector_classes/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/project/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/project.rb +1 -0
- data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -1
- data/lib/checkoff/internal/selector_classes/section.rb +1 -0
- data/lib/checkoff/internal/selector_classes/task/function_evaluator.rb +1 -0
- data/lib/checkoff/internal/selector_classes/task.rb +1 -0
- data/lib/checkoff/internal/selector_evaluator.rb +5 -4
- data/lib/checkoff/internal/task_hashes.rb +1 -0
- data/lib/checkoff/internal/task_selector_evaluator.rb +2 -1
- data/lib/checkoff/internal/task_timing.rb +1 -0
- data/lib/checkoff/internal/thread_local.rb +1 -0
- data/lib/checkoff/monkeypatches/resource_marshalling.rb +1 -0
- data/lib/checkoff/my_tasks.rb +2 -1
- data/lib/checkoff/portfolios.rb +12 -9
- data/lib/checkoff/project_selectors.rb +1 -0
- data/lib/checkoff/projects.rb +3 -1
- data/lib/checkoff/resources.rb +1 -0
- data/lib/checkoff/section_selectors.rb +1 -0
- data/lib/checkoff/sections.rb +4 -4
- data/lib/checkoff/subtasks.rb +1 -0
- data/lib/checkoff/tags.rb +67 -17
- data/lib/checkoff/task_searches.rb +1 -0
- data/lib/checkoff/task_selectors.rb +1 -0
- data/lib/checkoff/tasks.rb +2 -2
- data/lib/checkoff/timelines.rb +1 -0
- data/lib/checkoff/timing.rb +1 -0
- data/lib/checkoff/version.rb +2 -1
- data/lib/checkoff/workspaces.rb +2 -1
- data/lib/checkoff.rb +1 -0
- data/rbi/checkoff.rbi +4529 -0
- data/sig/checkoff.rbs +3749 -0
- metadata +4 -205
- data/.circleci/config.yml +0 -291
- data/.envrc +0 -9
- data/.git-hooks/pre_commit/circle_ci.rb +0 -25
- data/.git-hooks/pre_commit/punchlist.rb +0 -51
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -76
- data/.gitattributes +0 -6
- data/.gitignore +0 -61
- data/.markdownlint_style.rb +0 -3
- data/.mdlrc +0 -1
- data/.overcommit.yml +0 -114
- data/.rubocop.yml +0 -143
- data/.rubocop_todo.yml +0 -90
- data/.solargraph.yml +0 -35
- data/.yamllint.yml +0 -8
- data/CODE_OF_CONDUCT.md +0 -133
- data/CONTRIBUTING.rst +0 -75
- data/DEVELOPMENT.md +0 -69
- data/GLOSSARY.md +0 -16
- data/Gemfile +0 -66
- data/Gemfile.lock +0 -336
- data/LICENSE +0 -21
- data/Makefile +0 -121
- data/bin/brakeman +0 -27
- data/bin/bump +0 -29
- data/bin/checkoff +0 -29
- data/bin/console +0 -15
- data/bin/overcommit +0 -29
- data/bin/overcommit_branch +0 -114
- data/bin/rake +0 -29
- data/bin/rubocop +0 -27
- data/bin/setup +0 -8
- data/bin/solargraph +0 -27
- data/bin/sord +0 -27
- data/bin/spoom +0 -27
- data/bin/srb +0 -27
- data/bin/srb-rbi +0 -27
- data/bin/tapioca +0 -27
- data/bin/yard +0 -27
- data/config/annotations_asana.rb +0 -254
- data/config/annotations_misc.rb +0 -68
- data/config/env.1p +0 -2
- data/docs/.gitignore +0 -3
- data/docs/cookiecutter_input.json +0 -17
- data/docs/example_project.png +0 -0
- data/fix.sh +0 -534
- data/metrics/bigfiles_high_water_mark +0 -1
- data/metrics/brakeman_high_water_mark +0 -1
- data/metrics/bundle-audit_high_water_mark +0 -1
- data/metrics/cane_high_water_mark +0 -1
- data/metrics/eslint_high_water_mark +0 -1
- data/metrics/flake8_high_water_mark +0 -1
- data/metrics/flay_high_water_mark +0 -1
- data/metrics/flog_high_water_mark +0 -1
- data/metrics/jscs_high_water_mark +0 -1
- data/metrics/mdl_high_water_mark +0 -1
- data/metrics/pep8_high_water_mark +0 -1
- data/metrics/punchlist_high_water_mark +0 -1
- data/metrics/pycodestyle_high_water_mark +0 -1
- data/metrics/rails_best_practices_high_water_mark +0 -1
- data/metrics/rubocop_high_water_mark +0 -1
- data/metrics/scalastyle_high_water_mark +0 -1
- data/metrics/shellcheck_high_water_mark +0 -1
- data/package.json +0 -9
- data/rakelib/citest.rake +0 -4
- data/rakelib/clear_metrics.rake +0 -9
- data/rakelib/console.rake +0 -15
- data/rakelib/default.rake +0 -4
- data/rakelib/doc.rake +0 -6
- data/rakelib/gem_tasks.rake +0 -3
- data/rakelib/localtest.rake +0 -4
- data/rakelib/overcommit.rake +0 -6
- data/rakelib/quality.rake +0 -4
- data/rakelib/repl.rake +0 -4
- data/rakelib/test.rake +0 -10
- data/rakelib/trigger_next_builds.rake +0 -7
- data/rakelib/undercover.rake +0 -8
- data/requirements_dev.txt +0 -2
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activesupport.rbi +0 -453
- data/sorbet/rbi/annotations/faraday.rbi +0 -17
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/mocha.rbi +0 -34
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/annotations/webmock.rbi +0 -9
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +0 -78
- data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
- data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
- data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
- data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
- data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
- data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7061
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
- data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
- data/sorbet/rbi/gems/rugged@1.6.3.rbi +0 -1577
- data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
- data/sorbet/rbi/todo.rbi +0 -11
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
@@ -1,268 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `multi_json` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem multi_json`.
|
6
|
-
|
7
|
-
|
8
|
-
# source://multi_json//lib/multi_json/options.rb#1
|
9
|
-
module MultiJson
|
10
|
-
include ::MultiJson::Options
|
11
|
-
extend ::MultiJson::Options
|
12
|
-
extend ::MultiJson
|
13
|
-
|
14
|
-
# Get the current adapter class.
|
15
|
-
#
|
16
|
-
# source://multi_json//lib/multi_json.rb#70
|
17
|
-
def adapter; end
|
18
|
-
|
19
|
-
# Set the JSON parser utilizing a symbol, string, or class.
|
20
|
-
# Supported by default are:
|
21
|
-
#
|
22
|
-
# * <tt>:oj</tt>
|
23
|
-
# * <tt>:json_gem</tt>
|
24
|
-
# * <tt>:json_pure</tt>
|
25
|
-
# * <tt>:ok_json</tt>
|
26
|
-
# * <tt>:yajl</tt>
|
27
|
-
# * <tt>:nsjsonserialization</tt> (MacRuby only)
|
28
|
-
# * <tt>:gson</tt> (JRuby only)
|
29
|
-
# * <tt>:jr_jackson</tt> (JRuby only)
|
30
|
-
#
|
31
|
-
# source://multi_json//lib/multi_json.rb#90
|
32
|
-
def adapter=(new_adapter); end
|
33
|
-
|
34
|
-
# source://multi_json//lib/multi_json.rb#26
|
35
|
-
def cached_options(*_arg0); end
|
36
|
-
|
37
|
-
# source://multi_json//lib/multi_json.rb#129
|
38
|
-
def current_adapter(options = T.unsafe(nil)); end
|
39
|
-
|
40
|
-
# Decode a JSON string into Ruby.
|
41
|
-
#
|
42
|
-
# <b>Options</b>
|
43
|
-
#
|
44
|
-
# <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
|
45
|
-
# <tt>:adapter</tt> :: If set, the selected adapter will be used for this call.
|
46
|
-
#
|
47
|
-
# source://multi_json//lib/multi_json.rb#119
|
48
|
-
def decode(string, options = T.unsafe(nil)); end
|
49
|
-
|
50
|
-
# The default adapter based on what you currently
|
51
|
-
# have loaded and installed. First checks to see
|
52
|
-
# if any adapters are already loaded, then checks
|
53
|
-
# to see which are installed if none are loaded.
|
54
|
-
#
|
55
|
-
# source://multi_json//lib/multi_json.rb#46
|
56
|
-
def default_adapter; end
|
57
|
-
|
58
|
-
# The default adapter based on what you currently
|
59
|
-
# have loaded and installed. First checks to see
|
60
|
-
# if any adapters are already loaded, then checks
|
61
|
-
# to see which are installed if none are loaded.
|
62
|
-
#
|
63
|
-
# source://multi_json//lib/multi_json.rb#46
|
64
|
-
def default_engine; end
|
65
|
-
|
66
|
-
# source://multi_json//lib/multi_json.rb#18
|
67
|
-
def default_options; end
|
68
|
-
|
69
|
-
# source://multi_json//lib/multi_json.rb#11
|
70
|
-
def default_options=(value); end
|
71
|
-
|
72
|
-
# Encodes a Ruby object as JSON.
|
73
|
-
#
|
74
|
-
# source://multi_json//lib/multi_json.rb#138
|
75
|
-
def dump(object, options = T.unsafe(nil)); end
|
76
|
-
|
77
|
-
# Encodes a Ruby object as JSON.
|
78
|
-
#
|
79
|
-
# source://multi_json//lib/multi_json.rb#138
|
80
|
-
def encode(object, options = T.unsafe(nil)); end
|
81
|
-
|
82
|
-
# Get the current adapter class.
|
83
|
-
#
|
84
|
-
# source://multi_json//lib/multi_json.rb#70
|
85
|
-
def engine; end
|
86
|
-
|
87
|
-
# Set the JSON parser utilizing a symbol, string, or class.
|
88
|
-
# Supported by default are:
|
89
|
-
#
|
90
|
-
# * <tt>:oj</tt>
|
91
|
-
# * <tt>:json_gem</tt>
|
92
|
-
# * <tt>:json_pure</tt>
|
93
|
-
# * <tt>:ok_json</tt>
|
94
|
-
# * <tt>:yajl</tt>
|
95
|
-
# * <tt>:nsjsonserialization</tt> (MacRuby only)
|
96
|
-
# * <tt>:gson</tt> (JRuby only)
|
97
|
-
# * <tt>:jr_jackson</tt> (JRuby only)
|
98
|
-
#
|
99
|
-
# source://multi_json//lib/multi_json.rb#90
|
100
|
-
def engine=(new_adapter); end
|
101
|
-
|
102
|
-
# Decode a JSON string into Ruby.
|
103
|
-
#
|
104
|
-
# <b>Options</b>
|
105
|
-
#
|
106
|
-
# <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
|
107
|
-
# <tt>:adapter</tt> :: If set, the selected adapter will be used for this call.
|
108
|
-
#
|
109
|
-
# source://multi_json//lib/multi_json.rb#119
|
110
|
-
def load(string, options = T.unsafe(nil)); end
|
111
|
-
|
112
|
-
# source://multi_json//lib/multi_json.rb#98
|
113
|
-
def load_adapter(new_adapter); end
|
114
|
-
|
115
|
-
# source://multi_json//lib/multi_json.rb#26
|
116
|
-
def reset_cached_options!(*_arg0); end
|
117
|
-
|
118
|
-
# Set the JSON parser utilizing a symbol, string, or class.
|
119
|
-
# Supported by default are:
|
120
|
-
#
|
121
|
-
# * <tt>:oj</tt>
|
122
|
-
# * <tt>:json_gem</tt>
|
123
|
-
# * <tt>:json_pure</tt>
|
124
|
-
# * <tt>:ok_json</tt>
|
125
|
-
# * <tt>:yajl</tt>
|
126
|
-
# * <tt>:nsjsonserialization</tt> (MacRuby only)
|
127
|
-
# * <tt>:gson</tt> (JRuby only)
|
128
|
-
# * <tt>:jr_jackson</tt> (JRuby only)
|
129
|
-
#
|
130
|
-
# source://multi_json//lib/multi_json.rb#90
|
131
|
-
def use(new_adapter); end
|
132
|
-
|
133
|
-
# Executes passed block using specified adapter.
|
134
|
-
#
|
135
|
-
# source://multi_json//lib/multi_json.rb#144
|
136
|
-
def with_adapter(new_adapter); end
|
137
|
-
|
138
|
-
# Executes passed block using specified adapter.
|
139
|
-
#
|
140
|
-
# source://multi_json//lib/multi_json.rb#144
|
141
|
-
def with_engine(new_adapter); end
|
142
|
-
|
143
|
-
private
|
144
|
-
|
145
|
-
# source://multi_json//lib/multi_json.rb#155
|
146
|
-
def load_adapter_from_string_name(name); end
|
147
|
-
end
|
148
|
-
|
149
|
-
# source://multi_json//lib/multi_json.rb#31
|
150
|
-
MultiJson::ALIASES = T.let(T.unsafe(nil), Hash)
|
151
|
-
|
152
|
-
# source://multi_json//lib/multi_json/adapter_error.rb#2
|
153
|
-
class MultiJson::AdapterError < ::ArgumentError
|
154
|
-
# Returns the value of attribute cause.
|
155
|
-
#
|
156
|
-
# source://multi_json//lib/multi_json/adapter_error.rb#3
|
157
|
-
def cause; end
|
158
|
-
|
159
|
-
class << self
|
160
|
-
# source://multi_json//lib/multi_json/adapter_error.rb#5
|
161
|
-
def build(original_exception); end
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
# Legacy support
|
166
|
-
#
|
167
|
-
# source://multi_json//lib/multi_json/parse_error.rb#16
|
168
|
-
MultiJson::DecodeError = MultiJson::ParseError
|
169
|
-
|
170
|
-
# source://multi_json//lib/multi_json/parse_error.rb#16
|
171
|
-
MultiJson::LoadError = MultiJson::ParseError
|
172
|
-
|
173
|
-
# source://multi_json//lib/multi_json/options.rb#2
|
174
|
-
module MultiJson::Options
|
175
|
-
# source://multi_json//lib/multi_json/options.rb#25
|
176
|
-
def default_dump_options; end
|
177
|
-
|
178
|
-
# source://multi_json//lib/multi_json/options.rb#21
|
179
|
-
def default_load_options; end
|
180
|
-
|
181
|
-
# source://multi_json//lib/multi_json/options.rb#17
|
182
|
-
def dump_options(*args); end
|
183
|
-
|
184
|
-
# source://multi_json//lib/multi_json/options.rb#8
|
185
|
-
def dump_options=(options); end
|
186
|
-
|
187
|
-
# source://multi_json//lib/multi_json/options.rb#13
|
188
|
-
def load_options(*args); end
|
189
|
-
|
190
|
-
# source://multi_json//lib/multi_json/options.rb#3
|
191
|
-
def load_options=(options); end
|
192
|
-
|
193
|
-
private
|
194
|
-
|
195
|
-
# source://multi_json//lib/multi_json/options.rb#31
|
196
|
-
def get_options(options, *args); end
|
197
|
-
end
|
198
|
-
|
199
|
-
# source://multi_json//lib/multi_json/options_cache.rb#2
|
200
|
-
module MultiJson::OptionsCache
|
201
|
-
extend ::MultiJson::OptionsCache
|
202
|
-
|
203
|
-
# source://multi_json//lib/multi_json/options_cache.rb#10
|
204
|
-
def fetch(type, key, &block); end
|
205
|
-
|
206
|
-
# source://multi_json//lib/multi_json/options_cache.rb#5
|
207
|
-
def reset; end
|
208
|
-
|
209
|
-
private
|
210
|
-
|
211
|
-
# source://multi_json//lib/multi_json/options_cache.rb#24
|
212
|
-
def write(cache, key); end
|
213
|
-
end
|
214
|
-
|
215
|
-
# Normally MultiJson is used with a few option sets for both dump/load
|
216
|
-
# methods. When options are generated dynamically though, every call would
|
217
|
-
# cause a cache miss and the cache would grow indefinitely. To prevent
|
218
|
-
# this, we just reset the cache every time the number of keys outgrows
|
219
|
-
# 1000.
|
220
|
-
#
|
221
|
-
# source://multi_json//lib/multi_json/options_cache.rb#22
|
222
|
-
MultiJson::OptionsCache::MAX_CACHE_SIZE = T.let(T.unsafe(nil), Integer)
|
223
|
-
|
224
|
-
# source://multi_json//lib/multi_json/parse_error.rb#2
|
225
|
-
class MultiJson::ParseError < ::StandardError
|
226
|
-
# Returns the value of attribute cause.
|
227
|
-
#
|
228
|
-
# source://multi_json//lib/multi_json/parse_error.rb#3
|
229
|
-
def cause; end
|
230
|
-
|
231
|
-
# Returns the value of attribute data.
|
232
|
-
#
|
233
|
-
# source://multi_json//lib/multi_json/parse_error.rb#3
|
234
|
-
def data; end
|
235
|
-
|
236
|
-
class << self
|
237
|
-
# source://multi_json//lib/multi_json/parse_error.rb#5
|
238
|
-
def build(original_exception, data); end
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
# source://multi_json//lib/multi_json.rb#33
|
243
|
-
MultiJson::REQUIREMENT_MAP = T.let(T.unsafe(nil), Array)
|
244
|
-
|
245
|
-
# source://multi_json//lib/multi_json/version.rb#16
|
246
|
-
MultiJson::VERSION = T.let(T.unsafe(nil), String)
|
247
|
-
|
248
|
-
# source://multi_json//lib/multi_json/version.rb#2
|
249
|
-
class MultiJson::Version
|
250
|
-
class << self
|
251
|
-
# @return [String]
|
252
|
-
#
|
253
|
-
# source://multi_json//lib/multi_json/version.rb#10
|
254
|
-
def to_s; end
|
255
|
-
end
|
256
|
-
end
|
257
|
-
|
258
|
-
# source://multi_json//lib/multi_json/version.rb#3
|
259
|
-
MultiJson::Version::MAJOR = T.let(T.unsafe(nil), Integer)
|
260
|
-
|
261
|
-
# source://multi_json//lib/multi_json/version.rb#4
|
262
|
-
MultiJson::Version::MINOR = T.let(T.unsafe(nil), Integer)
|
263
|
-
|
264
|
-
# source://multi_json//lib/multi_json/version.rb#5
|
265
|
-
MultiJson::Version::PATCH = T.let(T.unsafe(nil), Integer)
|
266
|
-
|
267
|
-
# source://multi_json//lib/multi_json/version.rb#6
|
268
|
-
MultiJson::Version::PRE = T.let(T.unsafe(nil), T.untyped)
|
@@ -1,102 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `multi_xml` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem multi_xml`.
|
6
|
-
|
7
|
-
|
8
|
-
# source://multi_xml//lib/multi_xml.rb#8
|
9
|
-
module MultiXml
|
10
|
-
class << self
|
11
|
-
# The default parser based on what you currently
|
12
|
-
# have loaded and installed. First checks to see
|
13
|
-
# if any parsers are already loaded, then checks
|
14
|
-
# to see which are installed if none are loaded.
|
15
|
-
#
|
16
|
-
# @raise [NoParserError]
|
17
|
-
#
|
18
|
-
# source://multi_xml//lib/multi_xml.rb#87
|
19
|
-
def default_parser; end
|
20
|
-
|
21
|
-
# Parse an XML string or IO into Ruby.
|
22
|
-
#
|
23
|
-
# <b>Options</b>
|
24
|
-
#
|
25
|
-
# <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
|
26
|
-
#
|
27
|
-
# <tt>:disallowed_types</tt> :: Types to disallow from being typecasted. Defaults to `['yaml', 'symbol']`. Use `[]` to allow all types.
|
28
|
-
#
|
29
|
-
# <tt>:typecast_xml_value</tt> :: If true, won't typecast values for parsed document
|
30
|
-
#
|
31
|
-
# source://multi_xml//lib/multi_xml.rb#133
|
32
|
-
def parse(xml, options = T.unsafe(nil)); end
|
33
|
-
|
34
|
-
# Get the current parser class.
|
35
|
-
#
|
36
|
-
# source://multi_xml//lib/multi_xml.rb#77
|
37
|
-
def parser; end
|
38
|
-
|
39
|
-
# Set the XML parser utilizing a symbol, string, or class.
|
40
|
-
# Supported by default are:
|
41
|
-
#
|
42
|
-
# * <tt>:libxml</tt>
|
43
|
-
# * <tt>:nokogiri</tt>
|
44
|
-
# * <tt>:ox</tt>
|
45
|
-
# * <tt>:rexml</tt>
|
46
|
-
# * <tt>:oga</tt>
|
47
|
-
#
|
48
|
-
# source://multi_xml//lib/multi_xml.rb#112
|
49
|
-
def parser=(new_parser); end
|
50
|
-
|
51
|
-
private
|
52
|
-
|
53
|
-
# TODO: Add support for other encodings
|
54
|
-
#
|
55
|
-
# source://multi_xml//lib/multi_xml.rb#174
|
56
|
-
def parse_binary(binary, entity); end
|
57
|
-
|
58
|
-
# source://multi_xml//lib/multi_xml.rb#183
|
59
|
-
def parse_file(file, entity); end
|
60
|
-
|
61
|
-
# source://multi_xml//lib/multi_xml.rb#191
|
62
|
-
def symbolize_keys(params); end
|
63
|
-
|
64
|
-
# source://multi_xml//lib/multi_xml.rb#218
|
65
|
-
def typecast_xml_value(value, disallowed_types = T.unsafe(nil)); end
|
66
|
-
|
67
|
-
# source://multi_xml//lib/multi_xml.rb#204
|
68
|
-
def undasherize_keys(params); end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# source://multi_xml//lib/multi_xml.rb#27
|
73
|
-
MultiXml::CONTENT_ROOT = T.let(T.unsafe(nil), String)
|
74
|
-
|
75
|
-
# source://multi_xml//lib/multi_xml.rb#69
|
76
|
-
MultiXml::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
|
77
|
-
|
78
|
-
# source://multi_xml//lib/multi_xml.rb#67
|
79
|
-
MultiXml::DISALLOWED_XML_TYPES = T.let(T.unsafe(nil), Array)
|
80
|
-
|
81
|
-
# source://multi_xml//lib/multi_xml.rb#11
|
82
|
-
class MultiXml::DisallowedTypeError < ::StandardError
|
83
|
-
# @return [DisallowedTypeError] a new instance of DisallowedTypeError
|
84
|
-
#
|
85
|
-
# source://multi_xml//lib/multi_xml.rb#12
|
86
|
-
def initialize(type); end
|
87
|
-
end
|
88
|
-
|
89
|
-
# source://multi_xml//lib/multi_xml.rb#10
|
90
|
-
class MultiXml::NoParserError < ::StandardError; end
|
91
|
-
|
92
|
-
# source://multi_xml//lib/multi_xml.rb#33
|
93
|
-
MultiXml::PARSING = T.let(T.unsafe(nil), Hash)
|
94
|
-
|
95
|
-
# source://multi_xml//lib/multi_xml.rb#9
|
96
|
-
class MultiXml::ParseError < ::StandardError; end
|
97
|
-
|
98
|
-
# source://multi_xml//lib/multi_xml.rb#18
|
99
|
-
MultiXml::REQUIREMENT_MAP = T.let(T.unsafe(nil), Array)
|
100
|
-
|
101
|
-
# source://multi_xml//lib/multi_xml.rb#52
|
102
|
-
MultiXml::TYPE_NAMES = T.let(T.unsafe(nil), Hash)
|
@@ -1,234 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `multipart-post` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem multipart-post`.
|
6
|
-
|
7
|
-
|
8
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#72
|
9
|
-
CompositeIO = Multipart::Post::CompositeReadIO
|
10
|
-
|
11
|
-
# source://multipart-post//lib/multipart/post/version.rb#7
|
12
|
-
module Multipart; end
|
13
|
-
|
14
|
-
# source://multipart-post//lib/multipart/post/version.rb#8
|
15
|
-
module Multipart::Post; end
|
16
|
-
|
17
|
-
# Concatenate together multiple IO objects into a single, composite IO object
|
18
|
-
# for purposes of reading as a single stream.
|
19
|
-
#
|
20
|
-
# @example
|
21
|
-
# crio = CompositeReadIO.new(StringIO.new('one'),
|
22
|
-
# StringIO.new('two'),
|
23
|
-
# StringIO.new('three'))
|
24
|
-
# puts crio.read # => "onetwothree"
|
25
|
-
#
|
26
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#28
|
27
|
-
class Multipart::Post::CompositeReadIO
|
28
|
-
# Create a new composite-read IO from the arguments, all of which should
|
29
|
-
# respond to #read in a manner consistent with IO.
|
30
|
-
#
|
31
|
-
# @return [CompositeReadIO] a new instance of CompositeReadIO
|
32
|
-
#
|
33
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#31
|
34
|
-
def initialize(*ios); end
|
35
|
-
|
36
|
-
# Read from IOs in order until `length` bytes have been received.
|
37
|
-
#
|
38
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#37
|
39
|
-
def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end
|
40
|
-
|
41
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#54
|
42
|
-
def rewind; end
|
43
|
-
|
44
|
-
private
|
45
|
-
|
46
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#65
|
47
|
-
def advance_io; end
|
48
|
-
|
49
|
-
# source://multipart-post//lib/multipart/post/composite_read_io.rb#61
|
50
|
-
def current_io; end
|
51
|
-
end
|
52
|
-
|
53
|
-
# source://multipart-post//lib/multipart/post/multipartable.rb#23
|
54
|
-
module Multipart::Post::Multipartable
|
55
|
-
# source://multipart-post//lib/multipart/post/multipartable.rb#38
|
56
|
-
def initialize(path, params, headers = T.unsafe(nil), boundary = T.unsafe(nil)); end
|
57
|
-
|
58
|
-
# Returns the value of attribute boundary.
|
59
|
-
#
|
60
|
-
# source://multipart-post//lib/multipart/post/multipartable.rb#61
|
61
|
-
def boundary; end
|
62
|
-
|
63
|
-
private
|
64
|
-
|
65
|
-
# source://multipart-post//lib/multipart/post/multipartable.rb#66
|
66
|
-
def symbolize_keys(hash); end
|
67
|
-
|
68
|
-
class << self
|
69
|
-
# source://multipart-post//lib/multipart/post/multipartable.rb#24
|
70
|
-
def secure_boundary; end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# source://multipart-post//lib/multipart/post/parts.rb#26
|
75
|
-
module Multipart::Post::Parts; end
|
76
|
-
|
77
|
-
# Represents the epilogue or closing boundary.
|
78
|
-
#
|
79
|
-
# source://multipart-post//lib/multipart/post/parts.rb#138
|
80
|
-
class Multipart::Post::Parts::EpiloguePart
|
81
|
-
include ::Multipart::Post::Parts::Part
|
82
|
-
|
83
|
-
# @return [EpiloguePart] a new instance of EpiloguePart
|
84
|
-
#
|
85
|
-
# source://multipart-post//lib/multipart/post/parts.rb#141
|
86
|
-
def initialize(boundary); end
|
87
|
-
end
|
88
|
-
|
89
|
-
# Represents a part to be filled from file IO.
|
90
|
-
#
|
91
|
-
# source://multipart-post//lib/multipart/post/parts.rb#83
|
92
|
-
class Multipart::Post::Parts::FilePart
|
93
|
-
include ::Multipart::Post::Parts::Part
|
94
|
-
|
95
|
-
# @param boundary [String]
|
96
|
-
# @param name [#to_s]
|
97
|
-
# @param io [IO]
|
98
|
-
# @param headers [Hash]
|
99
|
-
# @return [FilePart] a new instance of FilePart
|
100
|
-
#
|
101
|
-
# source://multipart-post//lib/multipart/post/parts.rb#92
|
102
|
-
def initialize(boundary, name, io, headers = T.unsafe(nil)); end
|
103
|
-
|
104
|
-
# @param boundary [String]
|
105
|
-
# @param name [#to_s]
|
106
|
-
# @param filename [String]
|
107
|
-
# @param type [String]
|
108
|
-
# @param content_len [Integer]
|
109
|
-
# @param opts [Hash]
|
110
|
-
#
|
111
|
-
# source://multipart-post//lib/multipart/post/parts.rb#107
|
112
|
-
def build_head(boundary, name, filename, type, content_len, opts = T.unsafe(nil)); end
|
113
|
-
|
114
|
-
# Returns the value of attribute length.
|
115
|
-
#
|
116
|
-
# source://multipart-post//lib/multipart/post/parts.rb#86
|
117
|
-
def length; end
|
118
|
-
end
|
119
|
-
|
120
|
-
# Represents a parametric part to be filled with given value.
|
121
|
-
#
|
122
|
-
# source://multipart-post//lib/multipart/post/parts.rb#51
|
123
|
-
class Multipart::Post::Parts::ParamPart
|
124
|
-
include ::Multipart::Post::Parts::Part
|
125
|
-
|
126
|
-
# @param boundary [String]
|
127
|
-
# @param name [#to_s]
|
128
|
-
# @param value [String]
|
129
|
-
# @param headers [Hash] Content-Type and Content-ID are used, if present.
|
130
|
-
# @return [ParamPart] a new instance of ParamPart
|
131
|
-
#
|
132
|
-
# source://multipart-post//lib/multipart/post/parts.rb#58
|
133
|
-
def initialize(boundary, name, value, headers = T.unsafe(nil)); end
|
134
|
-
|
135
|
-
# @param boundary [String]
|
136
|
-
# @param name [#to_s]
|
137
|
-
# @param value [String]
|
138
|
-
# @param headers [Hash] Content-Type is used, if present.
|
139
|
-
#
|
140
|
-
# source://multipart-post//lib/multipart/post/parts.rb#71
|
141
|
-
def build_part(boundary, name, value, headers = T.unsafe(nil)); end
|
142
|
-
|
143
|
-
# source://multipart-post//lib/multipart/post/parts.rb#63
|
144
|
-
def length; end
|
145
|
-
end
|
146
|
-
|
147
|
-
# source://multipart-post//lib/multipart/post/parts.rb#27
|
148
|
-
module Multipart::Post::Parts::Part
|
149
|
-
# source://multipart-post//lib/multipart/post/parts.rb#41
|
150
|
-
def length; end
|
151
|
-
|
152
|
-
# source://multipart-post//lib/multipart/post/parts.rb#45
|
153
|
-
def to_io; end
|
154
|
-
|
155
|
-
class << self
|
156
|
-
# @return [Boolean]
|
157
|
-
#
|
158
|
-
# source://multipart-post//lib/multipart/post/parts.rb#37
|
159
|
-
def file?(value); end
|
160
|
-
|
161
|
-
# source://multipart-post//lib/multipart/post/parts.rb#28
|
162
|
-
def new(boundary, name, value, headers = T.unsafe(nil)); end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
# Convenience methods for dealing with files and IO that are to be uploaded.
|
167
|
-
#
|
168
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#9
|
169
|
-
class Multipart::Post::UploadIO
|
170
|
-
# Create an upload IO suitable for including in the params hash of a
|
171
|
-
# Net::HTTP::Post::Multipart.
|
172
|
-
#
|
173
|
-
# Can take two forms. The first accepts a filename and content type, and
|
174
|
-
# opens the file for reading (to be closed by finalizer).
|
175
|
-
#
|
176
|
-
# The second accepts an already-open IO, but also requires a third argument,
|
177
|
-
# the filename from which it was opened (particularly useful/recommended if
|
178
|
-
# uploading directly from a form in a framework, which often save the file to
|
179
|
-
# an arbitrarily named RackMultipart file in /tmp).
|
180
|
-
#
|
181
|
-
# @example
|
182
|
-
# UploadIO.new("file.txt", "text/plain")
|
183
|
-
# UploadIO.new(file_io, "text/plain", "file.txt")
|
184
|
-
# @return [UploadIO] a new instance of UploadIO
|
185
|
-
#
|
186
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#26
|
187
|
-
def initialize(filename_or_io, content_type, filename = T.unsafe(nil), opts = T.unsafe(nil)); end
|
188
|
-
|
189
|
-
# Returns the value of attribute content_type.
|
190
|
-
#
|
191
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#10
|
192
|
-
def content_type; end
|
193
|
-
|
194
|
-
# Returns the value of attribute io.
|
195
|
-
#
|
196
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#10
|
197
|
-
def io; end
|
198
|
-
|
199
|
-
# Returns the value of attribute local_path.
|
200
|
-
#
|
201
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#10
|
202
|
-
def local_path; end
|
203
|
-
|
204
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#52
|
205
|
-
def method_missing(*args); end
|
206
|
-
|
207
|
-
# Returns the value of attribute opts.
|
208
|
-
#
|
209
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#10
|
210
|
-
def opts; end
|
211
|
-
|
212
|
-
# Returns the value of attribute original_filename.
|
213
|
-
#
|
214
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#10
|
215
|
-
def original_filename; end
|
216
|
-
|
217
|
-
# @return [Boolean]
|
218
|
-
#
|
219
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#56
|
220
|
-
def respond_to?(meth, include_all = T.unsafe(nil)); end
|
221
|
-
|
222
|
-
class << self
|
223
|
-
# @raise [ArgumentError]
|
224
|
-
#
|
225
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#46
|
226
|
-
def convert!(io, content_type, original_filename, local_path); end
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
|
-
# source://multipart-post//lib/multipart/post/version.rb#9
|
231
|
-
Multipart::Post::VERSION = T.let(T.unsafe(nil), String)
|
232
|
-
|
233
|
-
# source://multipart-post//lib/multipart/post/upload_io.rb#63
|
234
|
-
UploadIO = Multipart::Post::UploadIO
|
@@ -1,97 +0,0 @@
|
|
1
|
-
# typed: false
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `mutex_m` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem mutex_m`.
|
6
|
-
|
7
|
-
|
8
|
-
# = mutex_m.rb
|
9
|
-
#
|
10
|
-
# When 'mutex_m' is required, any object that extends or includes Mutex_m will
|
11
|
-
# be treated like a Mutex.
|
12
|
-
#
|
13
|
-
# Start by requiring the standard library Mutex_m:
|
14
|
-
#
|
15
|
-
# require "mutex_m"
|
16
|
-
#
|
17
|
-
# From here you can extend an object with Mutex instance methods:
|
18
|
-
#
|
19
|
-
# obj = Object.new
|
20
|
-
# obj.extend Mutex_m
|
21
|
-
#
|
22
|
-
# Or mixin Mutex_m into your module to your class inherit Mutex instance
|
23
|
-
# methods --- remember to call super() in your class initialize method.
|
24
|
-
#
|
25
|
-
# class Foo
|
26
|
-
# include Mutex_m
|
27
|
-
# def initialize
|
28
|
-
# # ...
|
29
|
-
# super()
|
30
|
-
# end
|
31
|
-
# # ...
|
32
|
-
# end
|
33
|
-
# obj = Foo.new
|
34
|
-
# # this obj can be handled like Mutex
|
35
|
-
#
|
36
|
-
# source://mutex_m//lib/mutex_m.rb#41
|
37
|
-
module Mutex_m
|
38
|
-
# source://mutex_m//lib/mutex_m.rb#116
|
39
|
-
def initialize(*args, **_arg1); end
|
40
|
-
|
41
|
-
# source://mutex_m//lib/mutex_m.rb#69
|
42
|
-
def mu_extended; end
|
43
|
-
|
44
|
-
# See Thread::Mutex#lock
|
45
|
-
#
|
46
|
-
# source://mutex_m//lib/mutex_m.rb#96
|
47
|
-
def mu_lock; end
|
48
|
-
|
49
|
-
# See Thread::Mutex#locked?
|
50
|
-
#
|
51
|
-
# @return [Boolean]
|
52
|
-
#
|
53
|
-
# source://mutex_m//lib/mutex_m.rb#86
|
54
|
-
def mu_locked?; end
|
55
|
-
|
56
|
-
# See Thread::Mutex#synchronize
|
57
|
-
#
|
58
|
-
# source://mutex_m//lib/mutex_m.rb#81
|
59
|
-
def mu_synchronize(&block); end
|
60
|
-
|
61
|
-
# See Thread::Mutex#try_lock
|
62
|
-
#
|
63
|
-
# source://mutex_m//lib/mutex_m.rb#91
|
64
|
-
def mu_try_lock; end
|
65
|
-
|
66
|
-
# See Thread::Mutex#unlock
|
67
|
-
#
|
68
|
-
# source://mutex_m//lib/mutex_m.rb#101
|
69
|
-
def mu_unlock; end
|
70
|
-
|
71
|
-
# See Thread::Mutex#sleep
|
72
|
-
#
|
73
|
-
# source://mutex_m//lib/mutex_m.rb#106
|
74
|
-
def sleep(timeout = T.unsafe(nil)); end
|
75
|
-
|
76
|
-
private
|
77
|
-
|
78
|
-
# source://mutex_m//lib/mutex_m.rb#112
|
79
|
-
def mu_initialize; end
|
80
|
-
|
81
|
-
class << self
|
82
|
-
# source://mutex_m//lib/mutex_m.rb#59
|
83
|
-
def append_features(cl); end
|
84
|
-
|
85
|
-
# source://mutex_m//lib/mutex_m.rb#46
|
86
|
-
def define_aliases(cl); end
|
87
|
-
|
88
|
-
# source://mutex_m//lib/mutex_m.rb#64
|
89
|
-
def extend_object(obj); end
|
90
|
-
|
91
|
-
# source://mutex_m//lib/mutex_m.rb#54
|
92
|
-
def prepend_features(cl); end
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# source://mutex_m//lib/mutex_m.rb#43
|
97
|
-
Mutex_m::VERSION = T.let(T.unsafe(nil), String)
|