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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25f7e0fd657799e3fb4a1871fc8a88f8bab0737c7a24720d2bd58e9da7cd2d80
4
- data.tar.gz: 1acb400b517ab4b5e68dd931639eb1916638951c745fff49823d6b6cb9aa7e09
3
+ metadata.gz: c8acf0aec31914d5a9819f27ea422d293702e5f2bdeee36ae2d0bebcc8fc37b1
4
+ data.tar.gz: b0b5b4fcf5a2aa3e8138acd7ffc8ba0ce6799aabd7dd9d88fc51ae5f5e2308e9
5
5
  SHA512:
6
- metadata.gz: 8302eeefd5df60556bc07db2724d45f02325b02e7c8edb1f5cdf2ccb26a2e88fcdfe0bf01b4bbe3bb3959c5571ffb63ecf6c8d97794a36421188c24bdb439a01
7
- data.tar.gz: 4cbb366fb6be3c0e8be305922b286154524337b504d42f43098641359ad2916f4e3a64f5c3982099f5a0660a01fac0b218f26019bbdf2f104ce8f33ce2f5a4ba
6
+ metadata.gz: 4f6027ca24d6b1107957c7b09ffe7ccadf34c0121aabbfd8d0b374bf72801bcbf65f418fe4f78cefb18c4415c4315b5bdf01f11c6b60d3c73698afa4c6feebe0
7
+ data.tar.gz: 48fc1cf1b6d4c821cfd8910b0d1c24ece46194376d0c5d88023cfc29808e558956a3cdb589ae28a2f714ec0da380c041a92527201786bad05cbdd59090c130ca
@@ -4,7 +4,7 @@ env:
4
4
  global:
5
5
  - CC_TEST_REPORTER_ID=cf3977cb8c335147723d765c91877e0506ba43e56a22a0dc5b83d7fb969cf5e4
6
6
  rvm:
7
- - 2.5.0
7
+ - 2.6.3
8
8
  before_install:
9
9
  gem install bundler -v 1.16.1
10
10
  before_script:
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
- assignment = nil
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
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  end
22
22
 
23
23
  spec.bindir = 'bin'
24
- spec.executables = ['fast', 'fast-experiment']
24
+ spec.executables = %w[fast fast-experiment]
25
25
  spec.require_paths = %w[lib experiments]
26
26
 
27
27
  spec.add_dependency 'astrolabe'
@@ -81,7 +81,7 @@ module Fast
81
81
  @help = true
82
82
  end
83
83
 
84
- @pattern, @files = args.reject { |arg| arg.start_with? '-' }
84
+ @pattern, *@files = args.reject { |arg| arg.start_with? '-' }
85
85
  end
86
86
  @opt.parse! args
87
87
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fast
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
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.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-05-23 00:00:00.000000000 Z
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
- rubyforge_project:
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.'