git-modified 0.2.1 → 0.2.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/.ruby-version +1 -0
- data/circle.yml +1 -1
- data/lib/git/modified/version.rb +1 -1
- data/lib/git/modified.rb +2 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6f724c1d4efded90f1c6ac5fc5d6208440afc1e
|
|
4
|
+
data.tar.gz: 2c4f762f299f54b891536328d1397aa9f5fcdcec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b7093675e3d99adf4996f2c17b7f4c6213a7bdbe53c772fc5585cd18a166c0c6a1696841e48021557f243993fa5ec8b2db1d8e64a376e8085b9aa8b63c1e298
|
|
7
|
+
data.tar.gz: 1012b415746f94037e8d873aa57f9b98334546d0b3995a21939af56e6f1e40dc2ddc167ab0646a70830bef793e17426121037b98da7236d5592a72dbc731be40
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.1
|
data/circle.yml
CHANGED
data/lib/git/modified/version.rb
CHANGED
data/lib/git/modified.rb
CHANGED
|
@@ -35,7 +35,8 @@ module Git
|
|
|
35
35
|
puts `git status --porcelain` \
|
|
36
36
|
.each_line \
|
|
37
37
|
.reject { |line| line[0..1].split('').lazy.any? { |x| x == 'D' } } \
|
|
38
|
-
.
|
|
38
|
+
.reject { |line| line.match /\.(jpe?g|png|gif|svg|eot|mp3|ttf|wav|wof)$/i } \
|
|
39
|
+
.map { |line| if line[0] == 'R' then line.split(' ')[-1] else line[3..-1] end }
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
Contract Maybe[String] => nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-modified
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kohei Hasegawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: contracts
|
|
@@ -76,6 +76,7 @@ extra_rdoc_files: []
|
|
|
76
76
|
files:
|
|
77
77
|
- ".gitignore"
|
|
78
78
|
- ".rspec"
|
|
79
|
+
- ".ruby-version"
|
|
79
80
|
- CODE_OF_CONDUCT.md
|
|
80
81
|
- Gemfile
|
|
81
82
|
- LICENSE.txt
|
|
@@ -108,8 +109,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
109
|
version: '0'
|
|
109
110
|
requirements: []
|
|
110
111
|
rubyforge_project:
|
|
111
|
-
rubygems_version: 2.
|
|
112
|
+
rubygems_version: 2.4.5
|
|
112
113
|
signing_key:
|
|
113
114
|
specification_version: 4
|
|
114
115
|
summary: A Git subcommand to list modified files in git commit
|
|
115
116
|
test_files: []
|
|
117
|
+
has_rdoc:
|