changit 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -2
- data/LICENSE +1 -1
- data/README.md +3 -1
- data/changit.gemspec +5 -5
- data/lib/changit/lexer/key_value_token.rb +1 -1
- data/lib/changit/lexer.rb +3 -3
- data/lib/changit/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 218cdf3b7fb89c0fdb76fbc74e8fe847a0699cad4734a436d04444bcfb536b28
|
4
|
+
data.tar.gz: 29127de9b54f9a7854e104744bded5f936b752d6169cbe1cf034c582077077be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61bdc2c81a19f64183eb17793dbfcbd4ac8f015f32a075709e31e25b4943039cba42f874c581174485cb700cf122c09481e75f684fee5a73e151787eca0584c5
|
7
|
+
data.tar.gz: 314fd343c04a074c9d888e75c1236012189cec982bed573436fe6d8001956b1d855710253efb89ee36861fcbdf2b94ba2ccd11f066168634475b0c2a1f7e1d1f
|
data/.travis.yml
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,8 @@ Changit
|
|
3
3
|
|
4
4
|
An over-engineered tool to change git config for multiple projects at once.
|
5
5
|
|
6
|
+
[![Build Status](https://travis-ci.org/aonemd/changit.svg?branch=master)](https://travis-ci.org/aonemd/changit)
|
7
|
+
|
6
8
|
## Installation
|
7
9
|
|
8
10
|
```ruby
|
@@ -32,4 +34,4 @@ changit -h
|
|
32
34
|
|
33
35
|
## License
|
34
36
|
|
35
|
-
See [LICENSE](https://github.com/
|
37
|
+
See [LICENSE](https://github.com/aonemd/changit/blob/master/LICENSE).
|
data/changit.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
require File.expand_path('../lib/changit/version', __FILE__)
|
3
3
|
|
4
|
-
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["
|
6
|
-
gem.email = ["
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Ahmed Saleh"]
|
6
|
+
gem.email = ["aonemdsaleh@gmail.com"]
|
7
7
|
gem.description = %q{An over-engineered tool to change git config for multiple projects at once.}
|
8
8
|
gem.summary = %q{An over-engineered tool to change git config for multiple projects at once.}
|
9
|
-
gem.homepage = "https://github.com/
|
9
|
+
gem.homepage = "https://github.com/aonemd/changit"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\).reject do |f|
|
12
12
|
f.match(%r{^(test|spec|features)/})
|
@@ -17,4 +17,4 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.name = "changit"
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.version = Changit::VERSION
|
20
|
-
end
|
20
|
+
end
|
data/lib/changit/lexer.rb
CHANGED
@@ -35,10 +35,10 @@ module Changit
|
|
35
35
|
tokens = []
|
36
36
|
expression.each_line do |line|
|
37
37
|
RULES.each do |rule, token_type|
|
38
|
-
|
38
|
+
lexeme = line.slice(rule)
|
39
39
|
|
40
|
-
if (
|
41
|
-
tokens << token_type.new(
|
40
|
+
if (lexeme)
|
41
|
+
tokens << token_type.new(lexeme)
|
42
42
|
break
|
43
43
|
end
|
44
44
|
end
|
data/lib/changit/version.rb
CHANGED
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: changit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Ahmed Saleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: An over-engineered tool to change git config for multiple projects at
|
14
14
|
once.
|
15
15
|
email:
|
16
|
-
-
|
16
|
+
- aonemdsaleh@gmail.com
|
17
17
|
executables:
|
18
18
|
- changit
|
19
19
|
extensions: []
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- lib/changit/lexer/key_value_token.rb
|
38
38
|
- lib/changit/lexer/section_token.rb
|
39
39
|
- lib/changit/version.rb
|
40
|
-
homepage: https://github.com/
|
40
|
+
homepage: https://github.com/aonemd/changit
|
41
41
|
licenses: []
|
42
42
|
metadata: {}
|
43
43
|
post_install_message:
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.7.3
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: An over-engineered tool to change git config for multiple projects at once.
|