skynet-deploy 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2c5eff2f0f5100c933b632d35f1bfee95a2ac873
4
+ data.tar.gz: 9964f632c5ecb61a9dee6c00351eb9d4b7d2a2fa
5
+ SHA512:
6
+ metadata.gz: 83c9f0da2482b40fc56fe1128955a88f6f703a960e3668cd7af79afc71c20a2457e69ccc1b8790fbdd56f9a6e997c8775e0c38627b3c98e9d1454304c4ac5fe9
7
+ data.tar.gz: e602fbec483a4bafeeb376b90dc6ec477d1b430441426e3fdddbef3828a1a3b3d11c01f006ecfd7934f2124c69ac7c4692fd6ce51dcfbca78e320c991339b2be
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  Gemfile.lock
4
4
  pkg/*
5
5
  spec/test.log
6
+ tags
@@ -0,0 +1 @@
1
+ 2.1.0
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ - 2.0.0
5
+ - 1.9.3
6
+ script: bundle exec rake spec
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Skynet
2
2
  ======
3
3
 
4
+ [![Build Status](https://travis-ci.org/coshx/skynet.svg?branch=master)](https://travis-ci.org/coshx/skynet)
5
+
4
6
  GitHub-aware website builder
5
7
 
6
8
  Skynet builds and deploys web sites on your VPS or bare metal server. It is triggered by the post-receive hook.
@@ -20,7 +22,8 @@ Usage
20
22
  * Install basic config file: `$ skynet config <first project name>`
21
23
  * edit config file to add your repositories
22
24
  * Run builder by hand to ensure everything works: `$ skynet build`
23
- * Add `http://YOUR_SKYNET_SERVER/PROJECT_NAME` as a WebHook URL to your repository under `Admin -> Service Hooks`
25
+ * Add `http://YOUR_SKYNET_SERVER/PROJECT_NAME` as a Webhook Payload URL to your repository under
26
+ `Settings -> Webhooks & Services`. Choose `application/vnd.github.v3+form` as the Payload version.
24
27
  * Start server: `$ skynet server`
25
28
 
26
29
  Config file arguments
@@ -1,6 +1,9 @@
1
1
  require 'skynet/version'
2
2
  require 'logger'
3
3
 
4
+ require 'i18n'
5
+ I18n.enforce_available_locales = false
6
+
4
7
  module Skynet
5
8
 
6
9
  autoload :Builder, 'skynet/builder'
@@ -1,3 +1,3 @@
1
1
  module Skynet
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -22,13 +22,13 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency 'sinatra', '~> 1.3'
23
23
  s.add_runtime_dependency 'thin', '~> 1.4'
24
24
  s.add_runtime_dependency 'json', '~> 1.7'
25
- s.add_runtime_dependency 'jekyll', '~> 0.11'
25
+ s.add_runtime_dependency 'jekyll', '~> 1.5'
26
26
  s.add_runtime_dependency 'thor', '~> 0.16'
27
- s.add_runtime_dependency 'activesupport', '~> 3.2'
28
- s.add_runtime_dependency 'activemodel', '~> 3.2'
27
+ s.add_runtime_dependency 'activesupport', '~> 4.0'
28
+ s.add_runtime_dependency 'activemodel', '~> 4.0'
29
29
  s.add_runtime_dependency 'multi_json', '~> 1.0'
30
30
 
31
- s.add_development_dependency 'rake', '~> 0.9'
31
+ s.add_development_dependency 'rake', '~> 10.2'
32
32
  s.add_development_dependency 'rspec', '~> 2.11'
33
- s.add_development_dependency 'shoulda-matchers', '~> 1.2'
33
+ s.add_development_dependency 'shoulda-matchers', '~> 2.5'
34
34
  end
@@ -2,8 +2,8 @@ require 'spec_helper'
2
2
 
3
3
  describe Skynet::Builder do
4
4
 
5
- let(:builder) { mock('builder').as_null_object }
6
- let(:mock_class) { mock('builder class').as_null_object }
5
+ let(:builder) { double('builder').as_null_object }
6
+ let(:mock_class) { double('builder class').as_null_object }
7
7
  let(:config) { {type: 'static'} }
8
8
 
9
9
  describe ".for_app" do
metadata CHANGED
@@ -1,192 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skynet-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
5
- prerelease:
4
+ version: 1.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Ahearn
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
11
+ date: 2014-03-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sinatra
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thin
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.4'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.4'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: json
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.7'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.7'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: jekyll
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: '0.11'
61
+ version: '1.5'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: '0.11'
68
+ version: '1.5'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: thor
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0.16'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0.16'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: activesupport
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
- version: '3.2'
89
+ version: '4.0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
- version: '3.2'
96
+ version: '4.0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: activemodel
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ~>
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '3.2'
103
+ version: '4.0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ~>
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
- version: '3.2'
110
+ version: '4.0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: multi_json
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ~>
115
+ - - "~>"
132
116
  - !ruby/object:Gem::Version
133
117
  version: '1.0'
134
118
  type: :runtime
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ~>
122
+ - - "~>"
140
123
  - !ruby/object:Gem::Version
141
124
  version: '1.0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rake
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ~>
129
+ - - "~>"
148
130
  - !ruby/object:Gem::Version
149
- version: '0.9'
131
+ version: '10.2'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ~>
136
+ - - "~>"
156
137
  - !ruby/object:Gem::Version
157
- version: '0.9'
138
+ version: '10.2'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: rspec
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ~>
143
+ - - "~>"
164
144
  - !ruby/object:Gem::Version
165
145
  version: '2.11'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ~>
150
+ - - "~>"
172
151
  - !ruby/object:Gem::Version
173
152
  version: '2.11'
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: shoulda-matchers
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ~>
157
+ - - "~>"
180
158
  - !ruby/object:Gem::Version
181
- version: '1.2'
159
+ version: '2.5'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ~>
164
+ - - "~>"
188
165
  - !ruby/object:Gem::Version
189
- version: '1.2'
166
+ version: '2.5'
190
167
  description: Sinatra app that listens for GitHub post-receive callbacks and deploys
191
168
  your code
192
169
  email:
@@ -196,9 +173,10 @@ executables:
196
173
  extensions: []
197
174
  extra_rdoc_files: []
198
175
  files:
199
- - .gitignore
200
- - .rspec
201
- - .rvmrc
176
+ - ".gitignore"
177
+ - ".rspec"
178
+ - ".ruby-version"
179
+ - ".travis.yml"
202
180
  - Gemfile
203
181
  - README.md
204
182
  - Rakefile
@@ -222,30 +200,26 @@ files:
222
200
  - spec/spec_helper.rb
223
201
  homepage: https://github.com/coshx/skynet
224
202
  licenses: []
203
+ metadata: {}
225
204
  post_install_message:
226
205
  rdoc_options: []
227
206
  require_paths:
228
207
  - lib
229
208
  required_ruby_version: !ruby/object:Gem::Requirement
230
- none: false
231
209
  requirements:
232
- - - ! '>='
210
+ - - ">="
233
211
  - !ruby/object:Gem::Version
234
212
  version: '0'
235
- segments:
236
- - 0
237
- hash: -2929985934745754534
238
213
  required_rubygems_version: !ruby/object:Gem::Requirement
239
- none: false
240
214
  requirements:
241
- - - ! '>='
215
+ - - ">="
242
216
  - !ruby/object:Gem::Version
243
217
  version: 1.3.6
244
218
  requirements: []
245
219
  rubyforge_project:
246
- rubygems_version: 1.8.23
220
+ rubygems_version: 2.2.0
247
221
  signing_key:
248
- specification_version: 3
222
+ specification_version: 4
249
223
  summary: Sinatra app that listens for GitHub post-receive callbacks and deploys your
250
224
  code
251
225
  test_files:
data/.rvmrc DELETED
@@ -1,41 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
- # development environment upon cd'ing into the directory
5
-
6
- # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-1.9.3-p327@skynet"
8
-
9
- #
10
- # First we attempt to load the desired environment directly from the environment
11
- # file. This is very fast and efficient compared to running through the entire
12
- # CLI and selector. If you want feedback on which environment was used then
13
- # insert the word 'use' after --create as this triggers verbose mode.
14
- #
15
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
16
- && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
17
- then
18
- \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
19
-
20
- if [[ -s ".rvm/hooks/after_use" ]]
21
- then
22
- . ".rvm/hooks/after_use"
23
- fi
24
- else
25
- # If the environment file has not yet been created, use the RVM CLI to select.
26
- if ! rvm --create "$environment_id"
27
- then
28
- echo "Failed to create RVM environment ''."
29
- fi
30
- fi
31
-
32
- #
33
- # If you use an RVM gemset file to install a list of gems (*.gems), you can have
34
- # it be automatically loaded. Uncomment the following and adjust the filename if
35
- # necessary.
36
- #
37
- # filename=".gems"
38
- # if [[ -s "$filename" ]] ; then
39
- # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
40
- # fi
41
-