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 +4 -4
- data/Dockerfile +7 -0
- data/docker/entrypoint.sh +2 -0
- data/lib/gem_version_check/formatter/pretty_print.rb +6 -6
- data/lib/gem_version_check/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628831416fc82213b588db99cca99452fe68325e
|
4
|
+
data.tar.gz: 3abd4913b65c9c4d30363d1df3f2c21db74230b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2007b7ad5895712dd747a08f21accdb2b77e88e90607e4d63654939388a795200dac5a2c10167e387c7aa4600f1730d1b2bf97ca25b948a7d4f38e8d0498e83d
|
7
|
+
data.tar.gz: 8c75aad080252ed0eb3052531254d9dfbf4110d787808a893e72bbdc5f88555cb31b19ca13563bf306ed6fc76d1fe9fb7bba3037de709db823dbafafa63cf797
|
data/Dockerfile
ADDED
@@ -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
|
@@ -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}#{
|
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} ✓#{
|
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}#{
|
49
|
+
"#{dep.expected_version} != #{red}✖ #{dep.version}#{color_reset}"
|
50
50
|
end
|
51
51
|
|
52
|
-
def
|
53
|
-
"\033[
|
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
|
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.
|
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-
|
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
|