pushapp 0.2.3 → 0.2.4

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: b7c6168f56805738a57a05657225449a813e051b
4
- data.tar.gz: 065babb5465d4bfa4b7db8fdbf9bc749281605df
3
+ metadata.gz: 203e694479ee12c39d1a51a83db5d9831c6cdd21
4
+ data.tar.gz: 8f58f6ba7c15b8026177a347b7499a878374d444
5
5
  SHA512:
6
- metadata.gz: f641812cbd4d78fe542265f85abe7b849b97f86deba286d61985edd25c497d8c6d203ae8f6ebe1c0f236f239afab38c7b995cbf0d87c514aac60dcf66947b63a
7
- data.tar.gz: 253644c8b010a60d65f2b8d3752b1d7aca6996b8b464c1960a110a0ef28bb6a28931bdbe21da68bb1dda3ca1040942d1ed3f2ec626616a0d21d19c8fe656e494
6
+ metadata.gz: 16b497525286740960f09df567336824e94475e8e5498dc3daf5194701cb8fa7d4e08e0cdd692264896c869bf2d46abfa0b1bdc5ac3bd04c12f13a76f62fa013
7
+ data.tar.gz: 44f137ed65ecd6862941d7dbd07f2ca6e3ed46bbe09f770e7a89126bd23392e63ec1189042f7a5cd9e97cc78fa695196a33732d7fafa3b6e23393fa5d411d0b5
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Simple heroku like deployment system.
4
4
 
5
+ <a href='https://vimeo.com/66528056'><img src="https://f.cloud.github.com/assets/5250/523884/d78a70e0-c0e8-11e2-8569-09e00d48a693.gif" width="512"></a>
6
+
7
+ [full video](https://vimeo.com/66528056)
8
+
5
9
  TODO: notes on blazing
6
10
 
7
11
  ## Installation
@@ -76,7 +76,7 @@ module Pushapp
76
76
 
77
77
  method_option :ruby,
78
78
  type: :string,
79
- default: '2.0.0-p195'
79
+ default: '2.0.0-p247'
80
80
 
81
81
  def chef_solo(remote)
82
82
  options[:remote] = remote
@@ -129,7 +129,7 @@ class Pushapp::Remote
129
129
  end
130
130
 
131
131
  def merge_options task_options={}
132
- Pushapp.rmerge(task_options, options).merge(remote: self)
132
+ Pushapp.rmerge(options, task_options).merge(remote: self)
133
133
  end
134
134
 
135
135
  end
@@ -1,3 +1,3 @@
1
1
  module Pushapp
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
@@ -7,20 +7,16 @@ class CLITest < MiniTest::Unit::TestCase
7
7
  @cli = Pushapp::CLI.new
8
8
  end
9
9
 
10
- def test_it_has_init_method
11
- @cli.respond_to? :init
12
- end
13
-
14
- def test_it_has_setup_method
15
- @cli.respond_to? :setup
16
- end
17
-
18
- def test_it_has_update_method
19
- @cli.respond_to? :update
20
- end
21
-
22
- def test_it_has_help_method
23
- @cli.respond_to? :help
10
+ def test_cli_protocol
11
+ assert @cli.respond_to?(:init)
12
+ assert @cli.respond_to?(:setup)
13
+ assert @cli.respond_to?(:remotes)
14
+ assert @cli.respond_to?(:tasks)
15
+ assert @cli.respond_to?(:trigger)
16
+ assert @cli.respond_to?(:ssh)
17
+ assert @cli.respond_to?(:generate)
18
+ assert @cli.respond_to?(:update_refs)
19
+ assert @cli.respond_to?(:help)
24
20
  end
25
21
 
26
22
  end
@@ -0,0 +1,36 @@
1
+ require 'test_helper'
2
+ require 'pushapp/remote'
3
+
4
+ class RemoteTest < MiniTest::Unit::TestCase
5
+
6
+ def setup
7
+ remote_options = {
8
+ default_option: 5,
9
+ env: {RAILS_ENV: 'production'}
10
+ }
11
+ @remote = Pushapp::Remote.new('test', nil, 'tmp', Pushapp::Config.new, remote_options)
12
+ end
13
+
14
+ def test_task_options_override_remote_options
15
+ @remote.on :push do
16
+ rake('test1', task_option: 'task option', env: {RAILS_ENV: 'test'})
17
+ rake('test2')
18
+ end
19
+
20
+ task1 = @remote.tasks_on(:push).first
21
+
22
+ assert task1
23
+ assert task1.options[:task_option] == 'task option'
24
+ assert task1.options[:default_option] == 5
25
+ assert task1.options[:env][:RAILS_ENV] == 'test'
26
+
27
+ task2 = @remote.tasks_on(:push).last
28
+
29
+ assert task2
30
+ assert task2.options[:task_option] == nil
31
+ assert task2.options[:default_option] == 5
32
+ assert task2.options[:env][:RAILS_ENV] == 'production'
33
+ end
34
+
35
+ end
36
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-19 00:00:00.000000000 Z
11
+ date: 2013-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -137,6 +137,7 @@ files:
137
137
  - test/pushapp/config_test.rb
138
138
  - test/pushapp/git_test.rb
139
139
  - test/pushapp/pipe_test.rb
140
+ - test/pushapp/remote_test.rb
140
141
  - test/pushapp_test.rb
141
142
  - test/test_helper.rb
142
143
  homepage: https://github.com/anjlab/pushapp
@@ -169,5 +170,6 @@ test_files:
169
170
  - test/pushapp/config_test.rb
170
171
  - test/pushapp/git_test.rb
171
172
  - test/pushapp/pipe_test.rb
173
+ - test/pushapp/remote_test.rb
172
174
  - test/pushapp_test.rb
173
175
  - test/test_helper.rb