licence_injector 0.0.1 → 0.0.2
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 +4 -4
- data/lib/LicenceInjector.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b296ba15559cd9c16b4190261f879ed5c561f9ae
|
4
|
+
data.tar.gz: eec1c456eddd8ef070141902495734dc616e4309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b003a05737fba269f6f2e4147a3644a644c2f711e36be4f214d40078b32093ccf8687f98af2f6c312835b6ebf4e400cf77ec9f58183d62ccdf67ffc5fc5a319
|
7
|
+
data.tar.gz: f757f738af060cb8c93da650658dd25cc8c1b022a1a6554bbbd80035b7a334e2743bd965cf2526f2436c36ce8818db9e23a562e79d34d24e1b09f62b0f8a0891
|
data/lib/LicenceInjector.rb
CHANGED
@@ -54,7 +54,7 @@ attr_reader :changed_files_count
|
|
54
54
|
def replace_old_licence file
|
55
55
|
src = read_file file
|
56
56
|
|
57
|
-
src = src.sub(read_file(@
|
57
|
+
src = src.sub(read_file(@old_licence_file_path), read_file(@licence_file_path))
|
58
58
|
|
59
59
|
if @overwrite
|
60
60
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: licence_injector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barry Drinkwater
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: licence_injector injects text from the given licence file into each source
|
14
14
|
file found at the given source path whose extension is one of those in the given
|