shipit-engine 0.8.5 → 0.8.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b308e9c68b393a0c41bb322e5405dd393ba9ea1
4
- data.tar.gz: f27f540f69df7af158b422597b4ab2c1dbf912c3
3
+ metadata.gz: 1dc1f1894044cb766ca0ba066ca7a064ce832721
4
+ data.tar.gz: abd419734fa453bf807439d93a1e26bf8403bcd7
5
5
  SHA512:
6
- metadata.gz: 35913cdb173076bfe759087e931f2e97744e1bf6237bc57ed450823f9db320af65ab862625abe533e4949767811db549ddbfd980faf034b0c2518e7f6ea0d15a
7
- data.tar.gz: d56692deb88424474784d2b3097448823402766ebef6d20278b44f3e0866a7822474dc05d64ab5f74b73f376704767dd086ab7bde3c09e1aeee3e2524a084f5a
6
+ metadata.gz: d665cb11cb34a3c350e13130162647d3b787987e92a9673607bd771539c1edb5448a6a59a3211dd3a2c2fe4e9666b27d00944efbf9880463216c6ae03e01bcd1
7
+ data.tar.gz: 33219abcdc9acaccddd18bc765ce4e8fc2bbb392aaeab90b7dc0ab1c5a4364d764bf790db948e2601f9a353dfff3f3641704ae2f99f229b9a7138f4a64a6e55f
@@ -146,12 +146,16 @@
146
146
 
147
147
  .new_stack {
148
148
  input.repo {
149
- width: 150px;
149
+ width: 200px;
150
+ display: inline;
150
151
 
151
152
  &:focus {
152
153
  padding-right: 30px !important;
153
154
  }
154
155
  }
156
+ input:focus {
157
+ border-color: #248af2;
158
+ }
155
159
  }
156
160
 
157
161
  .pagination {
@@ -5,6 +5,7 @@ module Shipit
5
5
  belongs_to :stack, touch: true
6
6
  has_many :deploys
7
7
  has_many :statuses, -> { order(created_at: :desc) }
8
+ has_many :commit_deployments, dependent: :destroy
8
9
 
9
10
  after_commit { broadcast_update }
10
11
  after_create { stack.update_undeployed_commits_count }
@@ -8,7 +8,9 @@
8
8
  <%= form_for @stack do |f| %>
9
9
  <p>
10
10
  <%= label_tag "Repo" %>
11
+ <br>
11
12
  <%= Shipit.github_url %>
13
+ /
12
14
  <%= f.text_field :repo_owner, placeholder: 'e.g. Shopify', required: true, class: "repo" %>
13
15
  /
14
16
  <%= f.text_field :repo_name, required: true, pattern: "^[a-zA-Z0-9\-_\.]+$", class: "repo" %>
@@ -27,8 +29,8 @@
27
29
  <span class="form-hint">Where is this stack deployed to?</span>
28
30
  </p>
29
31
  <p>
30
- <%= f.label :ignore_ci, "Allow deploys regardless of CI status" %>
31
32
  <%= f.check_box :ignore_ci %>
33
+ <%= f.label :ignore_ci, "Allow deploys regardless of CI status" %>
32
34
  </p>
33
35
  <p><%= f.submit class: 'btn' %></p>
34
36
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Shipit
2
- VERSION = '0.8.5'
2
+ VERSION = '0.8.6'
3
3
  end
Binary file
@@ -216,6 +216,18 @@ module Shipit
216
216
  end
217
217
  end
218
218
 
219
+ test "#destroy also destroy associated Commits" do
220
+ assert_difference -> { Commit.count }, -5 do
221
+ shipit_stacks(:shipit).destroy
222
+ end
223
+ end
224
+
225
+ test "#destroy also destroy associated CommitDeployments" do
226
+ assert_difference -> { CommitDeployment.count }, -8 do
227
+ shipit_stacks(:shipit).destroy
228
+ end
229
+ end
230
+
219
231
  test "#destroy delete all local files (git mirror and deploy clones)" do
220
232
  FileUtils.expects(:rm_rf).with(Rails.root.join('data', 'stacks', 'shopify', 'shipit-engine', 'production').to_s)
221
233
  shipit_stacks(:shipit).destroy
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '10.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '10.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rails
15
29
  requirement: !ruby/object:Gem::Requirement