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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43d4d1f8b75994a0b9932acd1bd002616c599edf
4
- data.tar.gz: 76929c5ba769472edb8cf8db6dd33cccfc090858
3
+ metadata.gz: 9d3497123bcdd095ad2bb1f6200777843862e270
4
+ data.tar.gz: 68d3b9f09a56140c62ec6c03d6ec3dfd6f93fd31
5
5
  SHA512:
6
- metadata.gz: 50b85075a5d3675775fc97d6152e80176146df8b95d09061d4bba1b25d4e61ea91c66b9996ab01388195a35604381a2c8bce93a82d2f0892d65877f6e04ce664
7
- data.tar.gz: 73c37a9104bc62e1c63c04d03ed206469c7713b8f2cf3d71be42eafdfaf27d7a60d24e0c556722db1a766a7c82f72643b7e9e5e47bdb1befb5b6b411463ff6a1
6
+ metadata.gz: cd0815d0791e127759e3db1286fa5b3df5e9c93ab526f60ba30c8710574e6e6227a79755cd8e66850344b15f5bafdcf767afa3112ae45d6e56004b00d76ee45a
7
+ data.tar.gz: 3dc8d4d715698691b11f6da8488dd69e6564fd40b0d7b7abbae10148464704398b51d5e8cceafdd0387a478d34546ef98bc5cd0a06bb8123ab888ec8010eb79a
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # StringInPath
2
2
 
3
- TODO: Write a gem description
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
- ## Usage
22
+ ## Examples
22
23
 
23
- ### Recursively check to see if the string "Doppler" is present in any files
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
- ### Recursively replace every instance of "Doppler" with "Next Generation"
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
- StringInFile.replace("Doppler", "Next Generation", "/home/wbuffett/test")
32
+
30
33
 
31
34
  ## Contributing
32
35
 
@@ -1,3 +1,3 @@
1
1
  module StringInPath
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.1"
3
3
  end
@@ -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
- spec.add_development_dependency "string_in_file"
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.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-25 00:00:00.000000000 Z
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: :development
62
+ type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements: