ffast 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +3 -1
- data/fast.gemspec +1 -1
- data/lib/fast/cli.rb +1 -1
- data/lib/fast/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8acf0aec31914d5a9819f27ea422d293702e5f2bdeee36ae2d0bebcc8fc37b1
|
4
|
+
data.tar.gz: b0b5b4fcf5a2aa3e8138acd7ffc8ba0ce6799aabd7dd9d88fc51ae5f5e2308e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6027ca24d6b1107957c7b09ffe7ccadf34c0121aabbfd8d0b374bf72801bcbf65f418fe4f78cefb18c4415c4315b5bdf01f11c6b60d3c73698afa4c6feebe0
|
7
|
+
data.tar.gz: 48fc1cf1b6d4c821cfd8910b0d1c24ece46194376d0c5d88023cfc29808e558956a3cdb589ae28a2f714ec0da380c041a92527201786bad05cbdd59090c130ca
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -350,14 +350,16 @@ and we decide to inline the contents of the `message` variable right after
|
|
350
350
|
puts ["good", "bye"].join(' ')
|
351
351
|
end
|
352
352
|
|
353
|
+
|
353
354
|
To refactor and reach the proposed example, follow a few steps:
|
354
355
|
|
355
356
|
1. Remove the local variable assignment
|
356
357
|
2. Store the now-removed variable's value
|
357
358
|
3. Substitute the value where the variable was used before
|
358
359
|
|
359
|
-
|
360
|
+
#### Entire example
|
360
361
|
|
362
|
+
assignment = nil
|
361
363
|
Fast.replace_file 'sample.rb', '({ lvasgn lvar } message )', -> (node, _) {
|
362
364
|
# Find a variable assignment
|
363
365
|
if node.type == :lvasgn
|
data/fast.gemspec
CHANGED
data/lib/fast/cli.rb
CHANGED
data/lib/fast/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jônatas Davi Paganini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: astrolabe
|
@@ -286,8 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
286
|
- !ruby/object:Gem::Version
|
287
287
|
version: '0'
|
288
288
|
requirements: []
|
289
|
-
|
290
|
-
rubygems_version: 2.7.6.2
|
289
|
+
rubygems_version: 3.0.3
|
291
290
|
signing_key:
|
292
291
|
specification_version: 4
|
293
292
|
summary: 'FAST: Find by AST.'
|