changit 1.1.0 → 1.2.0

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
- SHA1:
3
- metadata.gz: ed97cc2cbe08e2875e99619ee6b6d6c0cc33fb86
4
- data.tar.gz: 066ec16b9929eb3687e8db78bca4bb3929ff3053
2
+ SHA256:
3
+ metadata.gz: 218cdf3b7fb89c0fdb76fbc74e8fe847a0699cad4734a436d04444bcfb536b28
4
+ data.tar.gz: 29127de9b54f9a7854e104744bded5f936b752d6169cbe1cf034c582077077be
5
5
  SHA512:
6
- metadata.gz: 918e71f96aaf575ae870cb80175b924600dcf9f56d9e94988bdfd7c439d980731cb20d7f1d359d8d7c6dabeb184e41a62aca0645b3d85d088dfd0f97a0f7c0b6
7
- data.tar.gz: 8ca399d6d76d903c1475d0a5472f189dd7b446d46b4166cb793714c31d00c77d4f2d628f00b6efd1869f90f282290df260c004f52a66b6d1b34fe3dc248e0dd0
6
+ metadata.gz: 61bdc2c81a19f64183eb17793dbfcbd4ac8f015f32a075709e31e25b4943039cba42f874c581174485cb700cf122c09481e75f684fee5a73e151787eca0584c5
7
+ data.tar.gz: 314fd343c04a074c9d888e75c1236012189cec982bed573436fe6d8001956b1d855710253efb89ee36861fcbdf2b94ba2ccd11f066168634475b0c2a1f7e1d1f
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.4.0
3
4
  - 2.3.0
4
- - 2.0.0
5
- - 1.9.2
5
+ - 2.2.2
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2016 Ahmad Saleh
3
+ Copyright (c) 2016 Ahmed Saleh
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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/aaooki/changit/blob/master/LICENSE).
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 = ["aaooki"]
6
- gem.email = ["aaooki7@gmail.com"]
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/aaooki/changit"
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
@@ -5,7 +5,7 @@ module Changit
5
5
  attr_accessor :rhs # right-hand side
6
6
 
7
7
  def initialize(key_value)
8
- @lhs, @rhs = key_value.split('=').map(&:strip)
8
+ @lhs, @rhs = key_value.split('=', 2).map(&:strip)
9
9
  end
10
10
 
11
11
  def to_s
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
- lexmeme = line.slice(rule)
38
+ lexeme = line.slice(rule)
39
39
 
40
- if (lexmeme)
41
- tokens << token_type.new(lexmeme)
40
+ if (lexeme)
41
+ tokens << token_type.new(lexeme)
42
42
  break
43
43
  end
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module Changit
2
- VERSION='1.1.0'
2
+ VERSION='1.2.0'
3
3
  end
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.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - aaooki
7
+ - Ahmed Saleh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-26 00:00:00.000000000 Z
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
- - aaooki7@gmail.com
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/aaooki/changit
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.6.8
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.