robit 1.0.4 → 1.0.5

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: 61ca6b8ec29697398572d7eb69dc9486337c527a
4
- data.tar.gz: c5e1c6b5dbff739fa6fe5ede69114f396fa88b1c
3
+ metadata.gz: a0018e1ac3e0a77279b37a8d0ada8e4402d0d745
4
+ data.tar.gz: 443cb2c0c9786ee2482b699a3ae64930d33b2ec5
5
5
  SHA512:
6
- metadata.gz: c00e3ee91ce30c53c0fd089285d07635021977ab8d66561f92cb82d6ceb9f6090c1fec99173899fb01fd99afd8ec7c3612082ab49364ccec4abce362c68b4f90
7
- data.tar.gz: 4664b3527fedb86ecc72ec19973d206d78013e106f7ff3733364e1b8354d01dd76a6309ede1387dcc6186e627530f4519b72c5ea67ad5bf73161a63c791a5106
6
+ metadata.gz: f83316c89feae1f27acb9b3e231fff73f9422fe4da80b2f8f5a22d4aeb88ac931a3374d4b1fc1d077a135328b52f9b80749d5af0a76e0909ff847182f2f9993b
7
+ data.tar.gz: 1ec3f23c331b5a31c590f6b2295a589f072c688ffb96db855fd9864e0dbc87dd250275bc290322dab729b1f404095739a59e2c02b70401393ae787e1994e3e1d
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.4
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
+ gem 'fpm'
6
7
  gem 'pry'
7
8
  gem 'rake'
8
9
  gem 'yard'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- robit (1.0.4)
4
+ robit (1.0.5)
5
5
  awesome_print (~> 1)
6
6
  calc (~> 1)
7
7
  daybreak (~> 0)
@@ -15,45 +15,61 @@ PATH
15
15
  GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
+ arr-pm (0.0.10)
19
+ cabin (> 0)
18
20
  awesome_print (1.6.1)
21
+ backports (3.6.8)
22
+ cabin (0.8.1)
19
23
  calc (1.0.0)
24
+ childprocess (0.5.9)
25
+ ffi (~> 1.0, >= 1.0.11)
26
+ clamp (0.6.5)
20
27
  coderay (1.1.0)
21
28
  daybreak (0.3.0)
29
+ ffi (1.9.10)
30
+ fpm (1.4.0)
31
+ arr-pm (~> 0.0.10)
32
+ backports (>= 2.6.2)
33
+ cabin (>= 0.6.0)
34
+ childprocess
35
+ clamp (~> 0.6)
36
+ ffi
37
+ json (>= 1.7.7)
22
38
  hipchat (1.5.2)
23
39
  httparty
24
40
  mimemagic
25
- httparty (0.13.6)
41
+ httparty (0.13.7)
26
42
  json (~> 1.8)
27
43
  multi_xml (>= 0.5.2)
28
44
  json (1.8.3)
29
45
  method_source (0.8.2)
30
- mimemagic (0.3.0)
31
- mini_portile (0.6.2)
32
- minitest (5.8.0)
46
+ mimemagic (0.3.1)
47
+ mini_portile2 (2.0.0)
48
+ minitest (5.8.4)
33
49
  multi_xml (0.5.5)
34
- nokogiri (1.6.6.2)
35
- mini_portile (~> 0.6.0)
36
- pry (0.10.1)
50
+ nokogiri (1.6.7.2)
51
+ mini_portile2 (~> 2.0.0.rc2)
52
+ pry (0.10.3)
37
53
  coderay (~> 1.1.0)
38
54
  method_source (~> 0.8.1)
39
55
  slop (~> 3.4)
40
56
  rack (1.6.4)
41
57
  rack-protection (1.5.3)
42
58
  rack
43
- rake (10.4.2)
59
+ rake (10.5.0)
44
60
  retryable-rb (1.1.0)
45
61
  rubygems-tasks (0.2.4)
46
- rubypress (1.1.1)
62
+ rubypress (1.2.0)
47
63
  retryable-rb
48
64
  sclemmer-robut (0.6.3)
49
65
  sinatra (~> 1.3)
50
66
  xmpp4r (~> 0.5.6)
51
- sinatra (1.4.6)
52
- rack (~> 1.4)
67
+ sinatra (1.4.7)
68
+ rack (~> 1.5)
53
69
  rack-protection (~> 1.4)
54
70
  tilt (>= 1.3, < 3)
55
71
  slop (3.6.0)
56
- tilt (2.0.1)
72
+ tilt (2.0.2)
57
73
  trollop (2.1.2)
58
74
  twss-classifier (0.0.1)
59
75
  version (1.0.0)
@@ -64,6 +80,7 @@ PLATFORMS
64
80
  ruby
65
81
 
66
82
  DEPENDENCIES
83
+ fpm
67
84
  minitest
68
85
  pry
69
86
  rake
@@ -73,4 +90,4 @@ DEPENDENCIES
73
90
  yard
74
91
 
75
92
  BUNDLED WITH
76
- 1.10.5
93
+ 1.11.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -0,0 +1,10 @@
1
+ FROM sczizzo/trusty-tool:latest
2
+ MAINTAINER Sean Clemmer <sczizzo@gmail.com>
3
+
4
+ COPY . /build
5
+
6
+ RUN cd /build \
7
+ && /build/tasks/package/_package.sh \
8
+ && rm -rf /build /tmp/* /var/lib/apt/lists/*
9
+
10
+ VOLUME /artifacts
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env bash
2
+ set -x
3
+ set -e
4
+
5
+ ruby=ruby2.2
6
+ version=$(cat VERSION)
7
+
8
+ rm -rf etc
9
+ rm -rf tmp
10
+ rm -rf .bundle
11
+ rm -rf .vagrant
12
+
13
+ bundle update
14
+ bundle package --all --all-platforms
15
+
16
+ bundle exec fpm -n robit \
17
+ --after-install tasks/package/post-install.sh \
18
+ --after-upgrade tasks/package/post-install.sh \
19
+ -d "$ruby" -d "$ruby-dev" \
20
+ -d libxml2 -d libxml2-dev -d libxslt1-dev -d zlib1g-dev \
21
+ -s dir -t deb -v "$version" \
22
+ tasks/package/robit.sh=/usr/local/bin/robit \
23
+ ./=/opt/robit
24
+
25
+ # gem uninstall -aIx
26
+ # dpkg -i *.deb
27
+ # ls -la /opt/robit
28
+ # robit art
29
+ # robit version
30
+
31
+ mkdir -p /artifacts
32
+ mv *.deb /artifacts
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ project=robit
5
+
6
+ if ! hash bundle ; then
7
+ echo 'Could not run `bundle`, fixing that for you...'
8
+ gem install bundler || gem2.2 install bundler
9
+ fi
10
+
11
+ cd /opt/$project
12
+ bundle install --without development:test:spec --local --deployment
13
+
14
+ useradd --user-group --system -M --shell /bin/false $project || true
15
+
16
+ for d in /opt/$project /etc/$project /var/log/$project /var/data/$project ; do
17
+ mkdir -p $d
18
+ chown -R $project:$project $d
19
+ done
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -e
3
+ ROBIT_RUBY="${ROBIT_RUBY:-/usr/bin/ruby2.2}"
4
+ ROBIT_ROOT="${ROBIT_ROOT:-/opt/robit}"
5
+ export BUNDLE_GEMFILE="$ROBIT_ROOT/Gemfile"
6
+ unset BUNDLE_IGNORE_CONFIG
7
+ exec "$ROBIT_RUBY" -rbundler/setup "$ROBIT_ROOT/bin/robit" $@
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env bash
2
+ set -x
3
+ set -e
4
+
5
+ project=$(basename `pwd`)
6
+ artifacts="${1:-tasks/package/artifacts}"
7
+ dockerfile="${2:-tasks/package/Dockerfile}"
8
+ task_name="${3:-$project-package-$(date +%s)}"
9
+
10
+ cleanup() {
11
+ docker stop "$task_name"
12
+ docker rm "$task_name"
13
+ }
14
+
15
+ trap cleanup EXIT
16
+
17
+ rm -rf "$artifacts"
18
+ docker pull sczizzo/trusty-tool:latest
19
+ docker build -t "$task_name" -f "$dockerfile" .
20
+ docker run --name "$task_name" -dt "$task_name"
21
+ docker cp "$task_name":/artifacts "$artifacts"
@@ -0,0 +1,9 @@
1
+ FROM sczizzo/trusty-tool:latest
2
+ MAINTAINER Sean Clemmer <sczizzo@gmail.com>
3
+
4
+ COPY . /build
5
+
6
+ RUN cd /build \
7
+ && touch .docker \
8
+ && bundle update \
9
+ && bundle exec rake test
data/tasks/test/run.sh ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env bash
2
+ set -x
3
+ set -e
4
+
5
+ project=$(basename `pwd`)
6
+ dockerfile="${1:-tasks/test/Dockerfile}"
7
+ task_name="${2:-$project-test-$(date +%s)}"
8
+
9
+ docker pull sczizzo/trusty-tool:latest
10
+ docker build -t "$task_name" -f "$dockerfile" .
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twss-classifier
@@ -145,6 +145,7 @@ extra_rdoc_files: []
145
145
  files:
146
146
  - ".gitignore"
147
147
  - ".robit.nick.yml"
148
+ - ".ruby-version"
148
149
  - Gemfile
149
150
  - Gemfile.lock
150
151
  - Rakefile
@@ -156,6 +157,14 @@ files:
156
157
  - lib/robit/plugins/alias_nick.rb
157
158
  - lib/robit/plugins/status.rb
158
159
  - robit.gemspec
160
+ - tasks/package/Dockerfile
161
+ - tasks/package/_package.sh
162
+ - tasks/package/artifacts/robit_1.0.4_amd64.deb
163
+ - tasks/package/post-install.sh
164
+ - tasks/package/robit.sh
165
+ - tasks/package/run.sh
166
+ - tasks/test/Dockerfile
167
+ - tasks/test/run.sh
159
168
  homepage:
160
169
  licenses: []
161
170
  metadata: {}