git-modified 0.2.1 → 0.2.2

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: 50a6093e07d745b570cc447c63c5a7bd2b4b0567
4
- data.tar.gz: 445df01b36f8f3cd39751755918434aad4f0cb37
3
+ metadata.gz: d6f724c1d4efded90f1c6ac5fc5d6208440afc1e
4
+ data.tar.gz: 2c4f762f299f54b891536328d1397aa9f5fcdcec
5
5
  SHA512:
6
- metadata.gz: c2935672d8ff2353542c2bb0c80ba8b6c26b787b8d0e13a6e6487b61b550772362eef53316880dae432855fa013ba3e2a1fe54486e9f010e5137dfb74c8ac51e
7
- data.tar.gz: 991f3f3c7bc797de5d614c2834af9d5a3d70fa93eb7bcc474deda9401696215ceb6e1ca7ec4452652500962a1bae770fbe074d426c519de6c5fa5f2491d67fc6
6
+ metadata.gz: 4b7093675e3d99adf4996f2c17b7f4c6213a7bdbe53c772fc5585cd18a166c0c6a1696841e48021557f243993fa5ec8b2db1d8e64a376e8085b9aa8b63c1e298
7
+ data.tar.gz: 1012b415746f94037e8d873aa57f9b98334546d0b3995a21939af56e6f1e40dc2ddc167ab0646a70830bef793e17426121037b98da7236d5592a72dbc731be40
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.1
data/circle.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  dependencies:
2
2
  pre:
3
- - gem install bundler --pre
3
+ - gem install bundler --pre
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Modified
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
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
- .map { |line| line[3..-1] }
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.1
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-03-13 00:00:00.000000000 Z
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.2.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: