string_in_path 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/lib/string_in_path/version.rb +1 -1
- data/string_in_path.gemspec +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d3497123bcdd095ad2bb1f6200777843862e270
|
4
|
+
data.tar.gz: 68d3b9f09a56140c62ec6c03d6ec3dfd6f93fd31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd0815d0791e127759e3db1286fa5b3df5e9c93ab526f60ba30c8710574e6e6227a79755cd8e66850344b15f5bafdcf767afa3112ae45d6e56004b00d76ee45a
|
7
|
+
data.tar.gz: 3dc8d4d715698691b11f6da8488dd69e6564fd40b0d7b7abbae10148464704398b51d5e8cceafdd0387a478d34546ef98bc5cd0a06bb8123ab888ec8010eb79a
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# StringInPath
|
2
2
|
|
3
|
-
|
3
|
+
This gem allows you to check every file in a given directory for the presence
|
4
|
+
of a given substring and to replace that substring with a different substring.
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -18,15 +19,17 @@ Or install it yourself as:
|
|
18
19
|
|
19
20
|
$ gem install string_in_path
|
20
21
|
|
21
|
-
##
|
22
|
+
## Examples
|
22
23
|
|
23
|
-
###
|
24
|
+
### StringInFile.present("Doppler", "/home/wbuffett/test")
|
25
|
+
Recursively check to see if the string "Doppler" is present in any files
|
24
26
|
in /home/wbuffett/test:
|
25
|
-
StringInFile.present("Doppler", "/home/wbuffett/test")
|
26
27
|
|
27
|
-
|
28
|
+
|
29
|
+
### StringInFile.replace("Doppler", "Next Generation", "/home/wbuffett/test")
|
30
|
+
Recursively replace every instance of "Doppler" with "Next Generation"
|
28
31
|
in all files in /home/wbuffett/test:
|
29
|
-
|
32
|
+
|
30
33
|
|
31
34
|
## Contributing
|
32
35
|
|
data/string_in_path.gemspec
CHANGED
@@ -21,5 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
|
-
|
24
|
+
|
25
|
+
spec.add_runtime_dependency "string_in_file"
|
25
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: string_in_path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Hsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
type: :
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|