gem_version_check 0.3.1 → 0.4.0

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: ffd7b8438c32159db115ee740e82bd116f57c8fa
4
- data.tar.gz: 738eddb5576a075da94d49d7249a2f88686ebb24
3
+ metadata.gz: 628831416fc82213b588db99cca99452fe68325e
4
+ data.tar.gz: 3abd4913b65c9c4d30363d1df3f2c21db74230b2
5
5
  SHA512:
6
- metadata.gz: f1b05ca58bd5fced8a808eaaebda480f04230ca5cfb4ed741cc8fd6d40e9e0d71ac8a731f3d2cd4b2e80718167997c54f48ba6ff852728ba9d64dcf0d1196bd7
7
- data.tar.gz: 355c1077b5f3a93688ba4a31625b2c626e5dea8524daddb9526a1409ffcefce31f2e282e0521b733c4d84c6dcf3e474d02e4fdb732870918ebe58c47a3f219d5
6
+ metadata.gz: 2007b7ad5895712dd747a08f21accdb2b77e88e90607e4d63654939388a795200dac5a2c10167e387c7aa4600f1730d1b2bf97ca25b948a7d4f38e8d0498e83d
7
+ data.tar.gz: 8c75aad080252ed0eb3052531254d9dfbf4110d787808a893e72bbdc5f88555cb31b19ca13563bf306ed6fc76d1fe9fb7bba3037de709db823dbafafa63cf797
@@ -0,0 +1,7 @@
1
+ FROM ruby:2.3.1
2
+ WORKDIR /app
3
+ ENTRYPOINT ["/app/docker/entrypoint.sh"]
4
+ COPY ./lib/gem_version_check/version.rb /app/lib/gem_version_check/version.rb
5
+ COPY Gemfile* gem_version_check.gemspec /app/
6
+ RUN BUNDLE_SILENCE_ROOT_WARNING=1 bundle install -j4 --without development test
7
+ ADD ./ /app
@@ -0,0 +1,2 @@
1
+ #!/bin/sh
2
+ /app/bin/gem_version_check $@
@@ -24,7 +24,7 @@ module GemVersionCheck
24
24
  end
25
25
 
26
26
  def project_title(project)
27
- "Project: #{project.check_failed? ? red : green}#{project.name}#{black}"
27
+ "Project: #{project.check_failed? ? red : green}#{project.name}#{color_reset}"
28
28
  end
29
29
 
30
30
  def dependency_listitem(dep)
@@ -42,15 +42,15 @@ module GemVersionCheck
42
42
  end
43
43
 
44
44
  def valid_dependency(dep)
45
- "#{green}#{dep.expected_version} ✓#{black}"
45
+ "#{green}#{dep.expected_version} ✓#{color_reset}"
46
46
  end
47
47
 
48
48
  def invalid_dependency(dep)
49
- "#{dep.expected_version} != #{red}✖ #{dep.version}#{black}"
49
+ "#{dep.expected_version} != #{red}✖ #{dep.version}#{color_reset}"
50
50
  end
51
51
 
52
- def black
53
- "\033[30m"
52
+ def color_reset
53
+ "\033[m"
54
54
  end
55
55
 
56
56
  def green
@@ -63,4 +63,4 @@ module GemVersionCheck
63
63
 
64
64
  end
65
65
  end
66
- end
66
+ end
@@ -1,3 +1,3 @@
1
1
  module GemVersionCheck
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_version_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederik Dietz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -90,10 +90,12 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - ".travis.yml"
93
+ - Dockerfile
93
94
  - Gemfile
94
95
  - README.md
95
96
  - Rakefile
96
97
  - bin/gem_version_check
98
+ - docker/entrypoint.sh
97
99
  - gem_version_check.gemspec
98
100
  - lib/gem_version_check.rb
99
101
  - lib/gem_version_check/checks.rb