code-ruby 1.4.0 → 1.5.1

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.node-version +1 -1
  3. data/.npm-version +1 -1
  4. data/.rubocop.yml +8 -7
  5. data/.ruby-version +1 -1
  6. data/.tool-versions +2 -2
  7. data/Gemfile +1 -1
  8. data/Gemfile.lock +15 -15
  9. data/VERSION +1 -1
  10. data/bin/code +12 -8
  11. data/code-ruby.gemspec +2 -2
  12. data/lib/code/concerns/shared.rb +10 -59
  13. data/lib/code/node/code.rb +10 -0
  14. data/lib/code/node/dictionary.rb +34 -15
  15. data/lib/code/node/function_parameter.rb +1 -1
  16. data/lib/code/object/boolean.rb +2 -2
  17. data/lib/code/object/class.rb +2 -2
  18. data/lib/code/object/code.rb +2 -2
  19. data/lib/code/object/context.rb +1 -1
  20. data/lib/code/object/date.rb +3 -3
  21. data/lib/code/object/decimal.rb +3 -3
  22. data/lib/code/object/dictionary.rb +23 -7
  23. data/lib/code/object/duration.rb +3 -3
  24. data/lib/code/object/function.rb +2 -2
  25. data/lib/code/object/global.rb +1 -5
  26. data/lib/code/object/html.rb +4 -5
  27. data/lib/code/object/http.rb +0 -2
  28. data/lib/code/object/integer.rb +3 -3
  29. data/lib/code/object/list.rb +9 -2
  30. data/lib/code/object/nothing.rb +2 -2
  31. data/lib/code/object/parameter.rb +2 -2
  32. data/lib/code/object/range.rb +2 -2
  33. data/lib/code/object/string.rb +2 -2
  34. data/lib/code/object/time.rb +2 -6
  35. data/lib/code/object.rb +5 -5
  36. data/lib/code/parser/call.rb +7 -6
  37. data/lib/code/parser/dictionary.rb +7 -5
  38. data/lib/code/parser/equal.rb +0 -4
  39. data/lib/code/parser/function.rb +8 -2
  40. data/lib/code/parser/group.rb +20 -4
  41. data/lib/code/parser/if.rb +8 -2
  42. data/lib/code/parser/name.rb +4 -8
  43. data/lib/code/parser/while.rb +8 -2
  44. data/lib/code/type/sig.rb +2 -2
  45. data/lib/code/type.rb +1 -1
  46. data/lib/code.rb +7 -7
  47. data/package-lock.json +2 -2
  48. data/package.json +2 -2
  49. data/spec/code/object/http_spec.rb +70 -66
  50. data/spec/code_spec.rb +4 -2
  51. metadata +4 -6
  52. data/TODO +0 -219
  53. data/bin/console +0 -6
data/TODO DELETED
@@ -1,219 +0,0 @@
1
- to_query
2
- to_h
3
- include?
4
- &
5
- shelljoin
6
- *
7
- +
8
- blank?
9
- -
10
- present?
11
- from
12
- extract!
13
- at
14
- fetch
15
- union
16
- difference
17
- intersection
18
- intersect?
19
- push
20
- append
21
- pop
22
- shift
23
- unshift
24
- each_index
25
- join
26
- rotate
27
- rotate!
28
- sort!
29
- sort_by!
30
- collect!
31
- map!
32
- select!
33
- filter!
34
- keep_if
35
- values_at
36
- sort
37
- delete_if
38
- reject!
39
- delete_at
40
- count
41
- fill
42
- find_index
43
- rassoc
44
- select
45
- filter
46
- uniq!
47
- reject
48
- collect
49
- map
50
- compact!
51
- assoc
52
- flatten!
53
- permutation
54
- transpose
55
- flatten
56
- repeated_combination
57
- product
58
- combination
59
- repeated_permutation
60
- any?
61
- all?
62
- minmax
63
- bsearch_index
64
- none?
65
- one?
66
- bsearch
67
- reverse_each
68
- deconstruct
69
- |
70
- first
71
- zip
72
- take
73
- take_while
74
- drop
75
- drop_while
76
- cycle
77
- shuffle!
78
- shuffle
79
- sample
80
- <=>
81
- <<
82
- sum
83
- uniq
84
- compact
85
- ==
86
- second
87
- pack
88
- to
89
- []
90
- []=
91
- empty?
92
- eql?
93
- insert
94
- compact_blank!
95
- index
96
- rindex
97
- replace
98
- clear
99
- max
100
- min
101
- hash
102
- inspect
103
- including
104
- excluding
105
- length
106
- size
107
- third
108
- without
109
- each
110
- fourth
111
- fifth
112
- forty_two
113
- third_to_last
114
- second_to_last
115
- extract_options!
116
- in_groups_of
117
- reverse
118
- to_ary
119
- concat
120
- prepend
121
- reverse!
122
- in_groups
123
- to_a
124
- to_s
125
- split
126
- inquiry
127
- to_sentence
128
- as_json
129
- pretty_print
130
- delete
131
- to_formatted_s
132
- pretty_print_cycle
133
- to_xml
134
- to_fs
135
- slice
136
- slice!
137
- dig
138
- to_json
139
- chunk
140
- slice_before
141
- slice_after
142
- slice_when
143
- chunk_while
144
- maximum
145
- chain
146
- to_set
147
- lazy
148
- many?
149
- sole
150
- exclude?
151
- minimum
152
- pick
153
- index_by
154
- index_with
155
- pluck
156
- in_order_of
157
- compact_blank
158
- find
159
- entries
160
- sort_by
161
- grep
162
- grep_v
163
- detect
164
- find_all
165
- filter_map
166
- flat_map
167
- collect_concat
168
- inject
169
- reduce
170
- partition
171
- group_by
172
- tally
173
- min_by
174
- max_by
175
- minmax_by
176
- member?
177
- each_with_index
178
- each_entry
179
- each_slice
180
- each_cons
181
- each_with_object
182
- to_yaml
183
- duplicable?
184
- in?
185
- with
186
- presence_in
187
- presence
188
- acts_like?
189
- html_safe?
190
- with_options
191
- try!
192
- try
193
- pretty_print_inspect
194
- singleton_class
195
- dup
196
- itself
197
- kind_of?
198
- is_a?
199
- display
200
- class_eval
201
- extend
202
- clone
203
- frozen?
204
- then
205
- tap
206
- yield_self
207
- ===
208
- class
209
- !~
210
- nil?
211
- respond_to?
212
- freeze
213
- object_id
214
- to_enum
215
- enum_for
216
- pretty_inspect
217
- equal?
218
- !
219
- !=
data/bin/console DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative "../lib/code-ruby"
5
-
6
- binding.irb