fasterer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.fasterer.yml +17 -0
  3. data/.gitignore +15 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +8 -0
  6. data/.travis.yml +6 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +93 -0
  10. data/Rakefile +7 -0
  11. data/bin/fasterer +5 -0
  12. data/fasterer.gemspec +28 -0
  13. data/lib/fasterer.rb +7 -0
  14. data/lib/fasterer/analyzer.rb +99 -0
  15. data/lib/fasterer/binary_call.rb +4 -0
  16. data/lib/fasterer/cli.rb +10 -0
  17. data/lib/fasterer/file_traverser.rb +81 -0
  18. data/lib/fasterer/method_call.rb +138 -0
  19. data/lib/fasterer/method_definition.rb +51 -0
  20. data/lib/fasterer/offense.rb +69 -0
  21. data/lib/fasterer/offense_collector.rb +17 -0
  22. data/lib/fasterer/parse_error.rb +10 -0
  23. data/lib/fasterer/parser.rb +11 -0
  24. data/lib/fasterer/rescue_call.rb +36 -0
  25. data/lib/fasterer/scanners/method_call_scanner.rb +134 -0
  26. data/lib/fasterer/scanners/method_definition_scanner.rb +52 -0
  27. data/lib/fasterer/scanners/offensive.rb +25 -0
  28. data/lib/fasterer/scanners/rescue_call_scanner.rb +28 -0
  29. data/lib/fasterer/token.rb +27 -0
  30. data/lib/fasterer/version.rb +3 -0
  31. data/spec/lib/fasterer/analyzer/01_parallel_assignment_spec.rb +12 -0
  32. data/spec/lib/fasterer/analyzer/02_rescue_vs_respond_to_spec.rb +12 -0
  33. data/spec/lib/fasterer/analyzer/03_module_eval_spec.rb +12 -0
  34. data/spec/lib/fasterer/analyzer/04_find_vs_bsearch_spec.rb +12 -0
  35. data/spec/lib/fasterer/analyzer/06_shuffle_first_vs_sample_spec.rb +12 -0
  36. data/spec/lib/fasterer/analyzer/08_for_loop_vs_each_spec.rb +12 -0
  37. data/spec/lib/fasterer/analyzer/09_each_with_index_vs_while_spec.rb +12 -0
  38. data/spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb +12 -0
  39. data/spec/lib/fasterer/analyzer/11_reverse_each_vs_reverse_each_spec.rb +12 -0
  40. data/spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb +12 -0
  41. data/spec/lib/fasterer/analyzer/13_sort_vs_sort_by_spec.rb +12 -0
  42. data/spec/lib/fasterer/analyzer/14_fetch_with_argument_vs_block_spec.rb +12 -0
  43. data/spec/lib/fasterer/analyzer/15_keys_each_vs_each_key_spec.rb +12 -0
  44. data/spec/lib/fasterer/analyzer/16_hash_merge_bang_vs_hash_brackets_spec.rb +12 -0
  45. data/spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb +12 -0
  46. data/spec/lib/fasterer/analyzer/19_proc_call_vs_yield_spec.rb +12 -0
  47. data/spec/lib/fasterer/analyzer/24_gsub_vs_tr_spec.rb +12 -0
  48. data/spec/lib/fasterer/analyzer/98_misc_spec.rb +11 -0
  49. data/spec/lib/fasterer/analyzer/99_exceptional_files_spec.rb +11 -0
  50. data/spec/lib/fasterer/method_call_spec.rb +483 -0
  51. data/spec/lib/fasterer/method_definition_spec.rb +93 -0
  52. data/spec/lib/fasterer/rescue_call_spec.rb +76 -0
  53. data/spec/spec_helper.rb +99 -0
  54. data/spec/support/analyzer/01_parallel_assignment.rb +10 -0
  55. data/spec/support/analyzer/02_rescue_vs_respond_to.rb +36 -0
  56. data/spec/support/analyzer/03_module_eval.rb +11 -0
  57. data/spec/support/analyzer/04_find_vs_bsearch.rb +5 -0
  58. data/spec/support/analyzer/06_shuffle_first_vs_sample.rb +5 -0
  59. data/spec/support/analyzer/08_for_loop_vs_each.rb +8 -0
  60. data/spec/support/analyzer/09_each_with_index_vs_while.rb +3 -0
  61. data/spec/support/analyzer/10_map_flatten_vs_flat_map.rb +15 -0
  62. data/spec/support/analyzer/11_reverse_each_vs_reverse_each.rb +9 -0
  63. data/spec/support/analyzer/12_select_first_vs_detect.rb +7 -0
  64. data/spec/support/analyzer/13_sort_vs_sort_by.rb +9 -0
  65. data/spec/support/analyzer/14_fetch_with_argument_vs_block.rb +11 -0
  66. data/spec/support/analyzer/15_keys_each_vs_each_key.rb +15 -0
  67. data/spec/support/analyzer/16_hash_merge_bang_vs_hash_brackets.rb +21 -0
  68. data/spec/support/analyzer/18_block_vs_symbol_to_proc.rb +30 -0
  69. data/spec/support/analyzer/19_proc_call_vs_yield.rb +24 -0
  70. data/spec/support/analyzer/24_gsub_vs_tr.rb +14 -0
  71. data/spec/support/analyzer/98_misc.rb +15 -0
  72. data/spec/support/analyzer/99_exceptional_files.rb +7 -0
  73. data/spec/support/binary_call/simple_comparison.rb +0 -0
  74. data/spec/support/method_call/method_call_on_constant.rb +1 -0
  75. data/spec/support/method_call/method_call_on_integer.rb +1 -0
  76. data/spec/support/method_call/method_call_on_method_call.rb +1 -0
  77. data/spec/support/method_call/method_call_on_string.rb +1 -0
  78. data/spec/support/method_call/method_call_on_variable.rb +2 -0
  79. data/spec/support/method_call/method_call_with_a_block.rb +5 -0
  80. data/spec/support/method_call/method_call_with_a_integer_argument.rb +1 -0
  81. data/spec/support/method_call/method_call_with_a_regex_argument.rb +1 -0
  82. data/spec/support/method_call/method_call_with_an_argument_and_a_block.rb +2 -0
  83. data/spec/support/method_call/method_call_with_an_implicit_receiver.rb +1 -0
  84. data/spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets.rb +1 -0
  85. data/spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets_and_do_end.rb +3 -0
  86. data/spec/support/method_call/method_call_with_equals.rb +1 -0
  87. data/spec/support/method_call/method_call_with_one_argument.rb +1 -0
  88. data/spec/support/method_call/method_call_with_two_arguments.rb +2 -0
  89. data/spec/support/method_call/method_call_without_brackets.rb +1 -0
  90. data/spec/support/method_definition/method_with_argument_and_block.rb +3 -0
  91. data/spec/support/method_definition/method_with_block.rb +3 -0
  92. data/spec/support/method_definition/method_with_default_argument.rb +3 -0
  93. data/spec/support/method_definition/method_with_splat_and_block.rb +3 -0
  94. data/spec/support/method_definition/simple_method.rb +2 -0
  95. data/spec/support/method_definition/simple_method_omitted_parenthesis.rb +2 -0
  96. data/spec/support/method_definition/simple_method_with_argument.rb +3 -0
  97. data/spec/support/rescue_call/plain_rescue.rb +7 -0
  98. data/spec/support/rescue_call/rescue_with_class.rb +5 -0
  99. data/spec/support/rescue_call/rescue_with_class_and_variable.rb +5 -0
  100. data/spec/support/rescue_call/rescue_with_multiple_classes.rb +4 -0
  101. data/spec/support/rescue_call/rescue_with_multiple_classes_and_variable.rb +5 -0
  102. data/spec/support/rescue_call/rescue_with_variable.rb +6 -0
  103. metadata +303 -0
@@ -0,0 +1,30 @@
1
+ route_sets.each do |routes|
2
+
3
+ end
4
+
5
+ route_sets.each do |routes|
6
+ routes.finalize!
7
+ end
8
+
9
+ route_sets.each do |route|
10
+ route.finalize!
11
+ puts route.name
12
+ end
13
+
14
+ route_sets.each(&:finalize!)
15
+
16
+ route_sets.each(:oppa) do |route|
17
+ route.finalize!
18
+ end
19
+
20
+ route_sets.each do |routes|
21
+ routes.finalize!(1)
22
+ end
23
+
24
+ route_sets.each do |routes|
25
+ routes.finalize do
26
+ puts 'opp'
27
+ end
28
+ end
29
+
30
+ route_sets.each { |routes| routes.finalize! }
@@ -0,0 +1,24 @@
1
+ # Should detect only the block.call, not the others.
2
+ def call_me(number, zumba, &block)
3
+ 4.call
4
+ [1,2].call
5
+ block.call
6
+ b.call
7
+ abakus(:red).calling()
8
+ end
9
+
10
+ # Should detect only the first block call.
11
+ def call_meeee(number, zumba, &block)
12
+ block.call()
13
+ block.call
14
+ end
15
+
16
+ # Shouldn't detect the block call since it isn't in the arguments.
17
+ def call_meeee(number, zumba)
18
+ block.call
19
+ end
20
+
21
+ # Should detect the block call with arguments.
22
+ def call_meeee(number, zumba, &block)
23
+ block.call(number)
24
+ end
@@ -0,0 +1,14 @@
1
+ 'abcd abcd'.gsub(' ', '')
2
+
3
+ petar = 'petar'
4
+
5
+ petar.gsub('r', 'k')
6
+ petar.gsub(/abba/, 'k')
7
+
8
+ petar.gsub(/aab\//, 'k')
9
+
10
+ class Hello
11
+ def hihi
12
+ 'alfabet'.gsub('r', 'b'.gsub('a', 'z'))
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ 1.describe('method call with an argument and a block') do
2
+
3
+ let(:file_name) { 'method_call_with_an_argument_and_a_block.rb' }
4
+
5
+ let(:call_element) { ripper.drop(1).first.last }
6
+
7
+ it 'should detect argument and a block' do
8
+ expect(method_call.method_name).to eq('fetch')
9
+ expect(method_call.arguments.count).to eq(1)
10
+ expect(method_call.arguments.first.type).to eq(:symbol_literal)
11
+ expect(method_call.has_block?).to be
12
+ expect(method_call.receiver).to be_a(Fasterer::VariableReference)
13
+ end
14
+
15
+ end
@@ -0,0 +1,7 @@
1
+ class GeneralAlphabet < Alphabet
2
+
3
+ def self.letters
4
+ "AaBbCcČčĆćDdĐđEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsŠšTtUuVvWwXxYyZzŽž"
5
+ end
6
+
7
+ end
File without changes
@@ -0,0 +1 @@
1
+ User.hello()
@@ -0,0 +1 @@
1
+ 1.hello()
@@ -0,0 +1 @@
1
+ 1.hi(2).hello()
@@ -0,0 +1 @@
1
+ 'hello'.hello()
@@ -0,0 +1,2 @@
1
+ number_one = 1
2
+ number_one.hello()
@@ -0,0 +1,5 @@
1
+ number_one = 1
2
+ number_one.fetch do |el|
3
+ number_two = 2
4
+ number_three = 3
5
+ end
@@ -0,0 +1,2 @@
1
+ number_one = 1
2
+ number_one.fetch(:writing) { [*1..100] }
@@ -0,0 +1 @@
1
+ fetch(:writing, :listening)
@@ -0,0 +1 @@
1
+ downcase() == 'hombre'
@@ -0,0 +1 @@
1
+ {}.fetch(:writing)
@@ -0,0 +1,2 @@
1
+ number_one = 1
2
+ number_one.fetch(:writing, :zumba)
@@ -0,0 +1 @@
1
+ {}.fetch :writing, :listening
@@ -0,0 +1,3 @@
1
+ def hello(name, &block)
2
+ puts name
3
+ end
@@ -0,0 +1,3 @@
1
+ def hello(&block)
2
+ block.call
3
+ end
@@ -0,0 +1,3 @@
1
+ def hello(name = 'John')
2
+ puts name
3
+ end
@@ -0,0 +1,3 @@
1
+ def hello(name = 'John', surname = 'Doe', *other_names, &block)
2
+ puts name
3
+ end
@@ -0,0 +1,2 @@
1
+ def hello()
2
+ end
@@ -0,0 +1,3 @@
1
+ def hello(name)
2
+ puts name
3
+ end
@@ -0,0 +1,7 @@
1
+ begin
2
+ 'abakus'.to_a
3
+ rescue
4
+
5
+ end
6
+
7
+
@@ -0,0 +1,5 @@
1
+ begin
2
+ 'abakus'.to_a
3
+ rescue NoMethodError
4
+
5
+ end
@@ -0,0 +1,5 @@
1
+ begin
2
+ 'abakus'.to_a
3
+ rescue NoMethodError => e
4
+
5
+ end
@@ -0,0 +1,4 @@
1
+ begin
2
+ 'abakus'.to_a
3
+ rescue NoMethodError, StandardError
4
+ end
@@ -0,0 +1,5 @@
1
+ begin
2
+ 'abakus'.to_a
3
+ rescue NoMethodError, StandardError => e
4
+
5
+ end
@@ -0,0 +1,6 @@
1
+ begin
2
+ 'abakus'.to_a
3
+ rescue => e
4
+
5
+ end
6
+
metadata ADDED
@@ -0,0 +1,303 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fasterer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Damir Svrtan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby_parser
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.10'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.10'
97
+ description: Use Fasterer to check various places in your code that could be faster.
98
+ email:
99
+ - damir.svrtan@gmail.com
100
+ executables:
101
+ - fasterer
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".fasterer.yml"
106
+ - ".gitignore"
107
+ - ".rspec"
108
+ - ".rubocop.yml"
109
+ - ".travis.yml"
110
+ - Gemfile
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - bin/fasterer
115
+ - fasterer.gemspec
116
+ - lib/fasterer.rb
117
+ - lib/fasterer/analyzer.rb
118
+ - lib/fasterer/binary_call.rb
119
+ - lib/fasterer/cli.rb
120
+ - lib/fasterer/file_traverser.rb
121
+ - lib/fasterer/method_call.rb
122
+ - lib/fasterer/method_definition.rb
123
+ - lib/fasterer/offense.rb
124
+ - lib/fasterer/offense_collector.rb
125
+ - lib/fasterer/parse_error.rb
126
+ - lib/fasterer/parser.rb
127
+ - lib/fasterer/rescue_call.rb
128
+ - lib/fasterer/scanners/method_call_scanner.rb
129
+ - lib/fasterer/scanners/method_definition_scanner.rb
130
+ - lib/fasterer/scanners/offensive.rb
131
+ - lib/fasterer/scanners/rescue_call_scanner.rb
132
+ - lib/fasterer/token.rb
133
+ - lib/fasterer/version.rb
134
+ - spec/lib/fasterer/analyzer/01_parallel_assignment_spec.rb
135
+ - spec/lib/fasterer/analyzer/02_rescue_vs_respond_to_spec.rb
136
+ - spec/lib/fasterer/analyzer/03_module_eval_spec.rb
137
+ - spec/lib/fasterer/analyzer/04_find_vs_bsearch_spec.rb
138
+ - spec/lib/fasterer/analyzer/06_shuffle_first_vs_sample_spec.rb
139
+ - spec/lib/fasterer/analyzer/08_for_loop_vs_each_spec.rb
140
+ - spec/lib/fasterer/analyzer/09_each_with_index_vs_while_spec.rb
141
+ - spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
142
+ - spec/lib/fasterer/analyzer/11_reverse_each_vs_reverse_each_spec.rb
143
+ - spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb
144
+ - spec/lib/fasterer/analyzer/13_sort_vs_sort_by_spec.rb
145
+ - spec/lib/fasterer/analyzer/14_fetch_with_argument_vs_block_spec.rb
146
+ - spec/lib/fasterer/analyzer/15_keys_each_vs_each_key_spec.rb
147
+ - spec/lib/fasterer/analyzer/16_hash_merge_bang_vs_hash_brackets_spec.rb
148
+ - spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
149
+ - spec/lib/fasterer/analyzer/19_proc_call_vs_yield_spec.rb
150
+ - spec/lib/fasterer/analyzer/24_gsub_vs_tr_spec.rb
151
+ - spec/lib/fasterer/analyzer/98_misc_spec.rb
152
+ - spec/lib/fasterer/analyzer/99_exceptional_files_spec.rb
153
+ - spec/lib/fasterer/method_call_spec.rb
154
+ - spec/lib/fasterer/method_definition_spec.rb
155
+ - spec/lib/fasterer/rescue_call_spec.rb
156
+ - spec/spec_helper.rb
157
+ - spec/support/analyzer/01_parallel_assignment.rb
158
+ - spec/support/analyzer/02_rescue_vs_respond_to.rb
159
+ - spec/support/analyzer/03_module_eval.rb
160
+ - spec/support/analyzer/04_find_vs_bsearch.rb
161
+ - spec/support/analyzer/06_shuffle_first_vs_sample.rb
162
+ - spec/support/analyzer/08_for_loop_vs_each.rb
163
+ - spec/support/analyzer/09_each_with_index_vs_while.rb
164
+ - spec/support/analyzer/10_map_flatten_vs_flat_map.rb
165
+ - spec/support/analyzer/11_reverse_each_vs_reverse_each.rb
166
+ - spec/support/analyzer/12_select_first_vs_detect.rb
167
+ - spec/support/analyzer/13_sort_vs_sort_by.rb
168
+ - spec/support/analyzer/14_fetch_with_argument_vs_block.rb
169
+ - spec/support/analyzer/15_keys_each_vs_each_key.rb
170
+ - spec/support/analyzer/16_hash_merge_bang_vs_hash_brackets.rb
171
+ - spec/support/analyzer/18_block_vs_symbol_to_proc.rb
172
+ - spec/support/analyzer/19_proc_call_vs_yield.rb
173
+ - spec/support/analyzer/24_gsub_vs_tr.rb
174
+ - spec/support/analyzer/98_misc.rb
175
+ - spec/support/analyzer/99_exceptional_files.rb
176
+ - spec/support/binary_call/simple_comparison.rb
177
+ - spec/support/method_call/method_call_on_constant.rb
178
+ - spec/support/method_call/method_call_on_integer.rb
179
+ - spec/support/method_call/method_call_on_method_call.rb
180
+ - spec/support/method_call/method_call_on_string.rb
181
+ - spec/support/method_call/method_call_on_variable.rb
182
+ - spec/support/method_call/method_call_with_a_block.rb
183
+ - spec/support/method_call/method_call_with_a_integer_argument.rb
184
+ - spec/support/method_call/method_call_with_a_regex_argument.rb
185
+ - spec/support/method_call/method_call_with_an_argument_and_a_block.rb
186
+ - spec/support/method_call/method_call_with_an_implicit_receiver.rb
187
+ - spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets.rb
188
+ - spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets_and_do_end.rb
189
+ - spec/support/method_call/method_call_with_equals.rb
190
+ - spec/support/method_call/method_call_with_one_argument.rb
191
+ - spec/support/method_call/method_call_with_two_arguments.rb
192
+ - spec/support/method_call/method_call_without_brackets.rb
193
+ - spec/support/method_definition/method_with_argument_and_block.rb
194
+ - spec/support/method_definition/method_with_block.rb
195
+ - spec/support/method_definition/method_with_default_argument.rb
196
+ - spec/support/method_definition/method_with_splat_and_block.rb
197
+ - spec/support/method_definition/simple_method.rb
198
+ - spec/support/method_definition/simple_method_omitted_parenthesis.rb
199
+ - spec/support/method_definition/simple_method_with_argument.rb
200
+ - spec/support/rescue_call/plain_rescue.rb
201
+ - spec/support/rescue_call/rescue_with_class.rb
202
+ - spec/support/rescue_call/rescue_with_class_and_variable.rb
203
+ - spec/support/rescue_call/rescue_with_multiple_classes.rb
204
+ - spec/support/rescue_call/rescue_with_multiple_classes_and_variable.rb
205
+ - spec/support/rescue_call/rescue_with_variable.rb
206
+ homepage: https://github.com/DamirSvrtan/fasterer
207
+ licenses:
208
+ - MIT
209
+ metadata: {}
210
+ post_install_message:
211
+ rdoc_options: []
212
+ require_paths:
213
+ - lib
214
+ required_ruby_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ required_rubygems_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ requirements: []
225
+ rubyforge_project:
226
+ rubygems_version: 2.2.2
227
+ signing_key:
228
+ specification_version: 4
229
+ summary: Run Ruby more than fast. Fasterer
230
+ test_files:
231
+ - spec/lib/fasterer/analyzer/01_parallel_assignment_spec.rb
232
+ - spec/lib/fasterer/analyzer/02_rescue_vs_respond_to_spec.rb
233
+ - spec/lib/fasterer/analyzer/03_module_eval_spec.rb
234
+ - spec/lib/fasterer/analyzer/04_find_vs_bsearch_spec.rb
235
+ - spec/lib/fasterer/analyzer/06_shuffle_first_vs_sample_spec.rb
236
+ - spec/lib/fasterer/analyzer/08_for_loop_vs_each_spec.rb
237
+ - spec/lib/fasterer/analyzer/09_each_with_index_vs_while_spec.rb
238
+ - spec/lib/fasterer/analyzer/10_map_flatten_vs_flat_map_spec.rb
239
+ - spec/lib/fasterer/analyzer/11_reverse_each_vs_reverse_each_spec.rb
240
+ - spec/lib/fasterer/analyzer/12_select_first_vs_detect_spec.rb
241
+ - spec/lib/fasterer/analyzer/13_sort_vs_sort_by_spec.rb
242
+ - spec/lib/fasterer/analyzer/14_fetch_with_argument_vs_block_spec.rb
243
+ - spec/lib/fasterer/analyzer/15_keys_each_vs_each_key_spec.rb
244
+ - spec/lib/fasterer/analyzer/16_hash_merge_bang_vs_hash_brackets_spec.rb
245
+ - spec/lib/fasterer/analyzer/18_block_vs_symbol_to_proc_spec.rb
246
+ - spec/lib/fasterer/analyzer/19_proc_call_vs_yield_spec.rb
247
+ - spec/lib/fasterer/analyzer/24_gsub_vs_tr_spec.rb
248
+ - spec/lib/fasterer/analyzer/98_misc_spec.rb
249
+ - spec/lib/fasterer/analyzer/99_exceptional_files_spec.rb
250
+ - spec/lib/fasterer/method_call_spec.rb
251
+ - spec/lib/fasterer/method_definition_spec.rb
252
+ - spec/lib/fasterer/rescue_call_spec.rb
253
+ - spec/spec_helper.rb
254
+ - spec/support/analyzer/01_parallel_assignment.rb
255
+ - spec/support/analyzer/02_rescue_vs_respond_to.rb
256
+ - spec/support/analyzer/03_module_eval.rb
257
+ - spec/support/analyzer/04_find_vs_bsearch.rb
258
+ - spec/support/analyzer/06_shuffle_first_vs_sample.rb
259
+ - spec/support/analyzer/08_for_loop_vs_each.rb
260
+ - spec/support/analyzer/09_each_with_index_vs_while.rb
261
+ - spec/support/analyzer/10_map_flatten_vs_flat_map.rb
262
+ - spec/support/analyzer/11_reverse_each_vs_reverse_each.rb
263
+ - spec/support/analyzer/12_select_first_vs_detect.rb
264
+ - spec/support/analyzer/13_sort_vs_sort_by.rb
265
+ - spec/support/analyzer/14_fetch_with_argument_vs_block.rb
266
+ - spec/support/analyzer/15_keys_each_vs_each_key.rb
267
+ - spec/support/analyzer/16_hash_merge_bang_vs_hash_brackets.rb
268
+ - spec/support/analyzer/18_block_vs_symbol_to_proc.rb
269
+ - spec/support/analyzer/19_proc_call_vs_yield.rb
270
+ - spec/support/analyzer/24_gsub_vs_tr.rb
271
+ - spec/support/analyzer/98_misc.rb
272
+ - spec/support/analyzer/99_exceptional_files.rb
273
+ - spec/support/binary_call/simple_comparison.rb
274
+ - spec/support/method_call/method_call_on_constant.rb
275
+ - spec/support/method_call/method_call_on_integer.rb
276
+ - spec/support/method_call/method_call_on_method_call.rb
277
+ - spec/support/method_call/method_call_on_string.rb
278
+ - spec/support/method_call/method_call_on_variable.rb
279
+ - spec/support/method_call/method_call_with_a_block.rb
280
+ - spec/support/method_call/method_call_with_a_integer_argument.rb
281
+ - spec/support/method_call/method_call_with_a_regex_argument.rb
282
+ - spec/support/method_call/method_call_with_an_argument_and_a_block.rb
283
+ - spec/support/method_call/method_call_with_an_implicit_receiver.rb
284
+ - spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets.rb
285
+ - spec/support/method_call/method_call_with_an_implicit_receiver_and_no_brackets_and_do_end.rb
286
+ - spec/support/method_call/method_call_with_equals.rb
287
+ - spec/support/method_call/method_call_with_one_argument.rb
288
+ - spec/support/method_call/method_call_with_two_arguments.rb
289
+ - spec/support/method_call/method_call_without_brackets.rb
290
+ - spec/support/method_definition/method_with_argument_and_block.rb
291
+ - spec/support/method_definition/method_with_block.rb
292
+ - spec/support/method_definition/method_with_default_argument.rb
293
+ - spec/support/method_definition/method_with_splat_and_block.rb
294
+ - spec/support/method_definition/simple_method.rb
295
+ - spec/support/method_definition/simple_method_omitted_parenthesis.rb
296
+ - spec/support/method_definition/simple_method_with_argument.rb
297
+ - spec/support/rescue_call/plain_rescue.rb
298
+ - spec/support/rescue_call/rescue_with_class.rb
299
+ - spec/support/rescue_call/rescue_with_class_and_variable.rb
300
+ - spec/support/rescue_call/rescue_with_multiple_classes.rb
301
+ - spec/support/rescue_call/rescue_with_multiple_classes_and_variable.rb
302
+ - spec/support/rescue_call/rescue_with_variable.rb
303
+ has_rdoc: