rookout 0.1.8 → 0.1.9
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/ext/mkrf_conf.rb +8 -1
- data/lib/rookout/version.rb +1 -1
- data/rookout.gemspec +1 -1
- metadata +1 -2
- data/Rakefile +0 -92
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd5c74f51143ba52e7cda082e0202b1408e90d570f310c36e1669477667931a8
|
4
|
+
data.tar.gz: 0ae53bf98ff8f9c91e159e0e2187a57c4841493874950b43a64731c026fc5d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31764b2a5805fdb3063d050c8f20f6b4819132ec432af6e160bcd77fb73a96b1552fede6654a786d2c5f7b67cad3596d85a2ff2150b67fd891c935e313ce0551
|
7
|
+
data.tar.gz: f790ea9db6c948bfc7581f661bb96a6e8300de8b5740e42a9d5d9024a614f2ffc1fc73c7aa04c28e1c48d1593499e6bfbfd0b4ee325da88da5ba05b653784d42
|
data/ext/mkrf_conf.rb
CHANGED
@@ -13,11 +13,18 @@ inst = Gem::DependencyInstaller.new
|
|
13
13
|
begin
|
14
14
|
puts "[Rookout] installing appropriate google-protobuf gem"
|
15
15
|
if File.exist? "/etc/alpine-release"
|
16
|
+
# Versions from 3.10 onwards don't compile on Alpine
|
16
17
|
installed = inst.install "google-protobuf", [">= 3.0.0", "< 3.10.0"]
|
17
18
|
else
|
18
19
|
installed = inst.install "google-protobuf", ">= 3.0.0"
|
19
20
|
end
|
20
|
-
puts "[Rookout] Installed additional dependencies:
|
21
|
+
puts "[Rookout] Installed additional dependencies:"
|
22
|
+
installed.each { |dep| puts dep.name }
|
21
23
|
rescue
|
22
24
|
exit 1
|
23
25
|
end
|
26
|
+
|
27
|
+
# create dummy rakefile to indicate success
|
28
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
|
29
|
+
f.write("task :default\n")
|
30
|
+
f.close
|
data/lib/rookout/version.rb
CHANGED
data/rookout.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
16
16
|
|
17
17
|
spec.files = `git ls-files -- ext/* lib/* bin/*`.split("\n") +
|
18
|
-
["lib/rookout/commit.rb", "LICENSE", "
|
18
|
+
["lib/rookout/commit.rb", "LICENSE", "rookout.gemspec"]
|
19
19
|
spec.extensions = ["ext/mkrf_conf.rb"]
|
20
20
|
spec.executables = ["rookout"]
|
21
21
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rookout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liran Haimovitch
|
@@ -188,7 +188,6 @@ extensions:
|
|
188
188
|
extra_rdoc_files: []
|
189
189
|
files:
|
190
190
|
- LICENSE
|
191
|
-
- Rakefile
|
192
191
|
- bin/rookout
|
193
192
|
- ext/mkrf_conf.rb
|
194
193
|
- lib/rookout.rb
|
data/Rakefile
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
require "bundler/setup"
|
2
|
-
require "bundler/gem_tasks"
|
3
|
-
|
4
|
-
spec = Gem::Specification.load("rookout.gemspec")
|
5
|
-
|
6
|
-
require "rake/testtask"
|
7
|
-
desc "Run tests."
|
8
|
-
Rake::TestTask.new do |t|
|
9
|
-
t.pattern = "test/**/*_test.rb"
|
10
|
-
t.warning = false
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "Run the CI build"
|
14
|
-
task :ci do
|
15
|
-
header "BUILDING rookout", "#"
|
16
|
-
header "rookout rubocop", "*"
|
17
|
-
require "rubocop/rake_task"
|
18
|
-
RuboCop::RakeTask.new
|
19
|
-
Rake::Task[:rubocop].invoke
|
20
|
-
header "rookout test", "*"
|
21
|
-
Rake::Task[:test].invoke
|
22
|
-
end
|
23
|
-
|
24
|
-
desc "Set commit hash"
|
25
|
-
task :set_commit do
|
26
|
-
header "Setting commit hash in file", "#"
|
27
|
-
write_commit_file read_commit
|
28
|
-
puts "Done!"
|
29
|
-
end
|
30
|
-
|
31
|
-
desc "Bump gem vesrion"
|
32
|
-
task :bump_version do
|
33
|
-
header "Bumpding version", "#"
|
34
|
-
|
35
|
-
version = read_version
|
36
|
-
minor_version = version[0...version.rindex(".")]
|
37
|
-
patch_version = version[version.rindex(".") + 1...version.length]
|
38
|
-
new_patch_version = patch_version.to_i + 1
|
39
|
-
new_version = "#{minor_version}.#{new_patch_version}"
|
40
|
-
|
41
|
-
write_version_file new_version
|
42
|
-
|
43
|
-
puts "Done! New version is #{new_version}"
|
44
|
-
end
|
45
|
-
|
46
|
-
desc "Print version configuration"
|
47
|
-
task :print_version do
|
48
|
-
puts "export ROOK_VERSION=#{read_version}"
|
49
|
-
puts "export ROOK_COMMIT=#{read_commit}"
|
50
|
-
end
|
51
|
-
|
52
|
-
task :default => :test
|
53
|
-
|
54
|
-
def read_version
|
55
|
-
require_relative "lib/rookout/version"
|
56
|
-
Rookout::VERSION
|
57
|
-
end
|
58
|
-
|
59
|
-
def read_commit
|
60
|
-
`git rev-parse HEAD`.strip
|
61
|
-
end
|
62
|
-
|
63
|
-
def write_version_file new_version
|
64
|
-
contents = ""
|
65
|
-
contents += "module Rookout\n"
|
66
|
-
contents += " VERSION = \"#{new_version}\".freeze\n"
|
67
|
-
contents += "end\n"
|
68
|
-
|
69
|
-
f = File.new "lib/rookout/version.rb", "wb"
|
70
|
-
f.write contents
|
71
|
-
f.close
|
72
|
-
end
|
73
|
-
|
74
|
-
def write_commit_file commit
|
75
|
-
contents = ""
|
76
|
-
contents += "module Rookout\n"
|
77
|
-
contents += " COMMIT = \"#{commit}\".freeze\n"
|
78
|
-
contents += "end\n"
|
79
|
-
|
80
|
-
f = File.new "lib/rookout/commit.rb", "wb"
|
81
|
-
f.write contents
|
82
|
-
f.close
|
83
|
-
end
|
84
|
-
|
85
|
-
def header str, token
|
86
|
-
line_length = str.length + 8
|
87
|
-
puts ""
|
88
|
-
puts token * line_length
|
89
|
-
puts "#{token * 3} #{str} #{token * 3}"
|
90
|
-
puts token * line_length
|
91
|
-
puts ""
|
92
|
-
end
|