git-gsub-ruby 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e778d25da67553400aa27cd4b1592229a20daf2251cdf65b92e0c0d382f24aa7
4
- data.tar.gz: 96e15dffe75875c82b08f15fd8212972375b7803e11c6849b7cde648c06b4a79
3
+ metadata.gz: f7570c41ec58d0733f1fa5a2af3ca3bb14b6aea8bff9a0b44a58c58bccff3162
4
+ data.tar.gz: 0ffd19adbfbb24c0e188662af90a252495f063ab37d9a6cefa4309f97639c4ed
5
5
  SHA512:
6
- metadata.gz: 60d962bf4c22ec4809fb536f1afb8301cf8c2f5d62bb12531eb90aebdba133b791a687a9d0cecc2ac2914284a8b3b26b490cca6483079ed96565d7ce7157f261
7
- data.tar.gz: 40187fcaa6a732e2b37d00ff15fbf4e2a0fafe9c45a3c776a60204e470d053236167cf4aaf923ca1bc9e6bf9678724f174f409ac7dbb22dfaa72271f2dfd37c4
6
+ metadata.gz: 209ebe092abb70d0bbcdc5b244765f3d35828755449c92092ecaca6cb1b5a1b314c0109f6cca155166b94d74575a2fdeaf56f6c20d9fb41914192633553dcf8c
7
+ data.tar.gz: 801df11de6bb1dcac22c6ab94ddbbbe9b90106c39a3dda9393a8cea08e95f4a8a72061fbb406994d07bfdf4a44067f9ab0fc5145f35e02a88e4174605ba342a8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-gsub-ruby (0.1.0)
4
+ git-gsub-ruby (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,7 +1,12 @@
1
- git-gsub
1
+ git-gsub-ruby
2
2
  ========
3
3
 
4
- Evaluate ruby gsub script on git.
4
+ Replace text for all git controlled files by ruby gsub.
5
+
6
+ You can control the gsub replacement with the ruby script.
7
+
8
+ Inspired by [git-gsub](https://github.com/fujimura/git-gsub)
9
+
5
10
 
6
11
  ### Usage
7
12
 
@@ -22,11 +27,9 @@ Edit your .gitconfig file
22
27
  # add new line
23
28
  gsub = !git-gsub-ruby
24
29
  ```
25
- Or `git config`
30
+ Or use `git config`
26
31
 
27
- ``` bash
28
- git config --global alias.gs '!git-gsub-ruby'
29
- ```
32
+ $ git config --global alias.gsub '!git-gsub-ruby'
30
33
 
31
34
 
32
35
  ## Contributing
@@ -3,6 +3,7 @@
3
3
  require "open3"
4
4
  require 'optparse'
5
5
  require 'git/gsub/ruby'
6
+ require 'pathname'
6
7
 
7
8
  def text_file?(filename)
8
9
  file_type, status = Open3.capture2e("file", filename.to_s)
@@ -1,7 +1,7 @@
1
1
  module Git
2
2
  module Gsub
3
3
  module Ruby
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-gsub-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsusuke Shimizu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2020-08-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: You can control the gsub replacement with the ruby script.
14
14
  email: