logatron 0.1.4 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -4
- data/lib/logatron/railtie.rb +2 -2
- data/logatron.gemspec +2 -1
- data/update_version.sh +79 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56f3f1ee56d2113c804dcc7ebd89a063a0f9531f
|
4
|
+
data.tar.gz: 73dea6edb00208c8141819e3f9b82dd45b8afc8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b23a1c2413b418b9d254a6d2cbcf90482cffb6f22176901931864c60f2d03504d229f915bf3da71e5bd9ba653384e9d47435dba2179822b60fab3e7700ad9b8d
|
7
|
+
data.tar.gz: 93404724388862e766c6d2259b2b72bf2ed15ec870e550cc7d438b497d6caf8bbcfae27b0685372e796582529950c6534c10a137da9c1d69ee7280b1c344b3e2
|
data/Gemfile.lock
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
logatron (0.1.
|
4
|
+
logatron (0.1.11)
|
5
5
|
activesupport (~> 4.2, >= 4.2.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (4.2.
|
10
|
+
activesupport (4.2.4)
|
11
11
|
i18n (~> 0.7)
|
12
12
|
json (~> 1.7, >= 1.7.7)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
thread_safe (~> 0.3, >= 0.3.4)
|
15
15
|
tzinfo (~> 1.1)
|
16
|
+
builder (3.2.2)
|
16
17
|
diff-lcs (1.2.5)
|
17
18
|
i18n (0.7.0)
|
18
19
|
json (1.8.3)
|
19
|
-
minitest (5.8.
|
20
|
+
minitest (5.8.3)
|
20
21
|
rake (10.4.2)
|
21
22
|
rspec (3.3.0)
|
22
23
|
rspec-core (~> 3.3.0)
|
@@ -31,6 +32,9 @@ GEM
|
|
31
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
32
33
|
rspec-support (~> 3.3.0)
|
33
34
|
rspec-support (3.3.0)
|
35
|
+
rspec_junit_formatter (0.2.3)
|
36
|
+
builder (< 4)
|
37
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
34
38
|
thread_safe (0.3.5)
|
35
39
|
tzinfo (1.2.2)
|
36
40
|
thread_safe (~> 0.1)
|
@@ -43,6 +47,7 @@ DEPENDENCIES
|
|
43
47
|
logatron!
|
44
48
|
rake (~> 10.0)
|
45
49
|
rspec (~> 3)
|
50
|
+
rspec_junit_formatter (~> 0.2.0)
|
46
51
|
|
47
52
|
BUNDLED WITH
|
48
|
-
1.
|
53
|
+
1.11.1
|
data/lib/logatron/railtie.rb
CHANGED
@@ -34,7 +34,7 @@ module Logatron
|
|
34
34
|
|
35
35
|
end
|
36
36
|
|
37
|
-
config.lograge.logger = Logatron
|
37
|
+
config.lograge.logger = Logatron.logger
|
38
38
|
config.lograge.enabled = true
|
39
39
|
config.lograge.formatter = Lograge::Formatters::Json.new
|
40
40
|
config.lograge.custom_options = lambda do |event|
|
@@ -43,4 +43,4 @@ module Logatron
|
|
43
43
|
|
44
44
|
end
|
45
45
|
|
46
|
-
end
|
46
|
+
end
|
data/logatron.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'logatron/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'logatron'
|
8
|
-
spec.version =
|
8
|
+
spec.version = '0.1.11'
|
9
9
|
spec.authors = ['Justin Grimes']
|
10
10
|
spec.email = ['justin.mgrimes@gmail.com']
|
11
11
|
|
@@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3'
|
24
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2.0'
|
24
25
|
end
|
data/update_version.sh
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
#!/bin/bash -e
|
2
|
+
|
3
|
+
#This script is used during the release process. It is not intended to be ran manually.
|
4
|
+
|
5
|
+
VERSION="$1"
|
6
|
+
VERSION="${VERSION:?"must provide version as first parameter"}"
|
7
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
|
8
|
+
FEATURE_DIR="${SCRIPT_DIR}/features"
|
9
|
+
FEATURE_PREFIX=CR
|
10
|
+
|
11
|
+
ensureLabelerInstalled(){
|
12
|
+
if ! which label_features > /dev/null; then
|
13
|
+
echo -e "\nERROR: Install the feature file labeler gem"
|
14
|
+
echo " https://github.com/indigo-biosystems/feature_file_labeler"
|
15
|
+
exit 1
|
16
|
+
fi
|
17
|
+
}
|
18
|
+
|
19
|
+
labelFeatures(){
|
20
|
+
echo -e "\nUpdating feature files"
|
21
|
+
label_features -p "${FEATURE_PREFIX}" -d "${FEATURE_DIR}" 2>&1 > ../"${FEATURE_PREFIX}_output.txt"
|
22
|
+
mv feature_report.txt ../"${FEATURE_PREFIX}_feature_report.txt"
|
23
|
+
stageAndCommit "Label feature files" "${FEATURE_DIR}"
|
24
|
+
}
|
25
|
+
|
26
|
+
updateVersion(){
|
27
|
+
updateGemspec
|
28
|
+
updateLockfile
|
29
|
+
commitStagedFiles "Update version to ${VERSION}"
|
30
|
+
}
|
31
|
+
|
32
|
+
updateGemspec(){
|
33
|
+
echo -e "\nUpdating gemspec version"
|
34
|
+
local gemspecPath="${SCRIPT_DIR}/logatron.gemspec"
|
35
|
+
sed -i 's/\(\.version\s*=\s*\).*/\1'"'${VERSION}'/" "${gemspecPath}"
|
36
|
+
stageFiles "${gemspecPath}"
|
37
|
+
}
|
38
|
+
|
39
|
+
updateLockfile(){
|
40
|
+
echo -e "\nUpdating lockfile"
|
41
|
+
bundle package --no-install > /dev/null
|
42
|
+
rm -rf .bundle/ vendor/
|
43
|
+
stageFiles "${SCRIPT_DIR}/Gemfile.lock"
|
44
|
+
}
|
45
|
+
|
46
|
+
stageAndCommit(){
|
47
|
+
local msg="$1"
|
48
|
+
shift
|
49
|
+
local files=( "$@" )
|
50
|
+
stageFiles "${files[@]}"
|
51
|
+
commitStagedFiles "${msg}"
|
52
|
+
}
|
53
|
+
|
54
|
+
stageFiles(){
|
55
|
+
local files=( "$@" )
|
56
|
+
git add "${files[@]}"
|
57
|
+
}
|
58
|
+
|
59
|
+
commitStagedFiles(){
|
60
|
+
local msg="$1"
|
61
|
+
if thereAreStagedFiles; then
|
62
|
+
git commit -m "${msg}"
|
63
|
+
else
|
64
|
+
echo "No changes to commit"
|
65
|
+
fi
|
66
|
+
}
|
67
|
+
|
68
|
+
thereAreStagedFiles(){
|
69
|
+
git update-index -q --ignore-submodules --refresh
|
70
|
+
if git diff-index --cached --quiet HEAD --ignore-submodules -- ; then
|
71
|
+
return 1;
|
72
|
+
else
|
73
|
+
return 0;
|
74
|
+
fi
|
75
|
+
}
|
76
|
+
|
77
|
+
#ensureLabelerInstalled
|
78
|
+
#labelFeatures
|
79
|
+
updateVersion
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Grimes
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '3'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec_junit_formatter
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.2.0
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 0.2.0
|
75
89
|
description: 'Logging for ascent '
|
76
90
|
email:
|
77
91
|
- justin.mgrimes@gmail.com
|
@@ -99,6 +113,7 @@ files:
|
|
99
113
|
- lib/logatron/railtie.rb
|
100
114
|
- lib/logatron/version.rb
|
101
115
|
- logatron.gemspec
|
116
|
+
- update_version.sh
|
102
117
|
homepage: http://github.com/indigobio/logatron
|
103
118
|
licenses: []
|
104
119
|
metadata: {}
|
@@ -118,9 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
133
|
version: '0'
|
119
134
|
requirements: []
|
120
135
|
rubyforge_project:
|
121
|
-
rubygems_version: 2.4.
|
136
|
+
rubygems_version: 2.4.8
|
122
137
|
signing_key:
|
123
138
|
specification_version: 4
|
124
139
|
summary: Logging for ascent
|
125
140
|
test_files: []
|
126
|
-
has_rdoc:
|