mina 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +2 -0
  2. data/.travis.yml +14 -5
  3. data/HISTORY.md +45 -1
  4. data/LICENSE +1 -1
  5. data/Makefile +29 -0
  6. data/Notes.md +70 -0
  7. data/Readme.md +1009 -0
  8. data/bin/mina +1 -1
  9. data/data/deploy.rb +13 -7
  10. data/lib/mina/bundler.rb +6 -1
  11. data/lib/mina/chruby.rb +49 -0
  12. data/lib/mina/default.rb +1 -0
  13. data/lib/mina/deploy.rb +17 -1
  14. data/lib/mina/deploy_helpers.rb +4 -4
  15. data/lib/mina/exec_helpers.rb +26 -19
  16. data/lib/mina/foreman.rb +5 -1
  17. data/lib/mina/git.rb +1 -1
  18. data/lib/mina/helpers.rb +22 -13
  19. data/lib/mina/rails.rb +6 -6
  20. data/lib/mina/rbenv.rb +1 -0
  21. data/lib/mina/rvm.rb +2 -4
  22. data/lib/mina/ssh_helpers.rb +2 -1
  23. data/lib/mina/version.rb +1 -1
  24. data/lib/mina/whenever.rb +6 -6
  25. data/mina.gemspec +2 -2
  26. data/spec/command_helper.rb +1 -1
  27. data/spec/commands/cleanup_spec.rb +16 -0
  28. data/spec/commands/command_spec.rb +18 -18
  29. data/spec/commands/custom_config_spec.rb +2 -2
  30. data/spec/commands/deploy_spec.rb +7 -7
  31. data/spec/commands/outside_project_spec.rb +7 -7
  32. data/spec/commands/real_deploy_spec.rb +21 -21
  33. data/spec/commands/verbose_spec.rb +2 -2
  34. data/spec/dsl/invoke_spec.rb +17 -2
  35. data/spec/dsl/queue_spec.rb +4 -4
  36. data/spec/dsl/settings_in_rake_spec.rb +6 -6
  37. data/spec/dsl/settings_spec.rb +16 -10
  38. data/spec/dsl/to_spec.rb +2 -2
  39. data/spec/helpers/exec_helper_spec.rb +19 -0
  40. data/spec/spec_helper.rb +6 -0
  41. data/support/Readme-footer.md +32 -0
  42. data/support/Readme-header.md +16 -0
  43. data/support/guide.md +297 -0
  44. data/support/index.html +53 -0
  45. data/support/to_md.rb +11 -0
  46. data/test_env/config/deploy.rb +2 -0
  47. metadata +96 -61
  48. checksums.yaml +0 -7
  49. data/README.md +0 -114
data/.gitignore CHANGED
@@ -6,3 +6,5 @@ test_env/deploy
6
6
  Gemfile.lock
7
7
  pkg/
8
8
  docs
9
+ support/helpers.md
10
+ support/modules.md
data/.travis.yml CHANGED
@@ -1,12 +1,21 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
- - 1.9.3
3
+ - 1.8.7
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.2
7
+ - rbx-2
8
+ - jruby
5
9
  env:
6
- - "rake=0.8"
7
- - "rake=0.9"
8
- - "rake=10"
10
+ - "rake=0.8"
11
+ - "rake=0.9"
12
+ - "rake=10"
13
+ # before_script:
14
+ # - cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
15
+ # - ssh -o StrictHostKeyChecking=no localhost "exit"
9
16
  script: "bundle exec rspec"
10
17
  notifications:
11
18
  email:
12
19
  - dropbox+travis@ricostacruz.com
20
+ - dario@uxtemple.com
21
+ - gabrijel.skoro@infinum.hr
data/HISTORY.md CHANGED
@@ -1,3 +1,47 @@
1
+ ## v0.3.2 - unreleased
2
+
3
+ v0.3.1 - October 17, 2014
4
+ -------------------------
5
+
6
+ * Fix copy command for assets. (#150) [Joshua Dover]
7
+ * Add comment for system-wide RVM install. (#112) [Sam Qiu]
8
+ * Incorrect exit status if deploy fails (#95) [Alexander Borovsky]
9
+ * Bundler: Allow configuration of groups to be skipped during installation (#123) [Luis Lavena]
10
+ * Parse task string to reenable task (#189) [Pedro Chambino]
11
+ * Update Travis CI to test via Ruby 2.1.2. (#197) [Luciano Sousa]
12
+ * Add jRuby support by using threads instead of fork. (#147, #148) [Jan Berdajs]
13
+ * Add rescue for rubinius SignalException. (#204) [Qen]
14
+ * Using `bundle_bin` instead `bundle` in whenever tasks. (#195) [Maxim Dorofienko]
15
+ * Convert specs to RSpec expect syntax with transpec (#194) [Logan Hasson]
16
+ * Remove binstubs options from defaults (#219) [lucapette]
17
+ * Updated deploy.rb template to use shared_path (#235) [postmodern]
18
+ * Allow the foreman export format to be configurable (#232) [postmodern]
19
+ * fix: bin/mina exit_status -> exitstatus (#212) [Zhomart Mukhamejanov]
20
+ * Add foreman_location and foreman_sudo configs (#239) [Pedro Chambino]
21
+ * Check db/migrate/ instead of schema.rb (#177) [Charles Dale]
22
+ * Fix mina deploy --help, should not cause a deploy (#238)
23
+ * Fix git:clone on win7 x64 had error (#216)
24
+ * Add deploy:cleanup after deploy
25
+ * Prevent foreman export from expanding the current/ symlink (#241)
26
+ * Support pretty_system on ruby 1.8.7 (#237)
27
+ * Ruby 1.8.7 doesn't support empty symbols (#240)
28
+
29
+
30
+ [Joshua Dover]: https://github.com/gerfuls
31
+ [Sam Qiu]: https://github.com/samqiu
32
+ [Alexander Borovsky]: https://github.com/borovsky
33
+ [Luis Lavena]: https://github.com/luislavena
34
+ [Pedro Chambino]: https://github.com/PChambino
35
+ [Luciano Sousa]: https://github.com/lucianosousa
36
+ [Jan Berdajs]: https://github.com/mrbrdo
37
+ [Qen]: https://github.com/qen
38
+ [Maxim Dorofienko]: https://github.com/mdorfin
39
+ [Logan Hasson]: https://github.com/loganhasson
40
+ [lucapette]: https://github.com/lucapette
41
+ [postmodern]: https://github.com/postmodern
42
+ [Zhomart Mukhamejanov]: https://github.com/Zhomart
43
+ [Charles Dale]: https://github.com/chuckd
44
+
1
45
  v0.3.0 - July 10, 2013
2
46
  ----------------------
3
47
 
@@ -19,7 +63,7 @@ v0.3.0 - July 10, 2013
19
63
 
20
64
  Special thanks to all the contributors who made this release happen.
21
65
 
22
- https://github.com/nadarei/mina/compare/v0.2.1...v0.3.0
66
+ https://github.com/mina-deploy/mina/compare/v0.2.1...v0.3.0
23
67
 
24
68
  [sonots]: https://github.com/sonots
25
69
  [Tomas Varneckas]: https://github.com/tomasv
data/LICENSE CHANGED
@@ -2,7 +2,7 @@ LICENSE
2
2
 
3
3
  The MIT License
4
4
 
5
- Copyright (c) 2012 Nadarei, Inc.
5
+ Copyright (c) 2014 Nadarei, Inc.
6
6
 
7
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  of this software and associated documentation files (the "Software"), to deal
data/Makefile ADDED
@@ -0,0 +1,29 @@
1
+ Readme.md: \
2
+ support/Readme-header.md \
3
+ support/guide.md \
4
+ support/helpers.md \
5
+ support/modules.md \
6
+ support/Readme-footer.md
7
+ cat $^ > $@
8
+
9
+ support/modules.md: \
10
+ lib/mina/bundler.rb \
11
+ lib/mina/default.rb \
12
+ lib/mina/deploy.rb \
13
+ lib/mina/foreman.rb \
14
+ lib/mina/git.rb \
15
+ lib/mina/rails.rb \
16
+ lib/mina/rbenv.rb \
17
+ lib/mina/rvm.rb \
18
+ lib/mina/whenever.rb
19
+ cat $^ | ruby support/to_md.rb > $@
20
+
21
+ support/helpers.md: \
22
+ lib/mina/helpers.rb \
23
+ lib/mina/deploy_helpers.rb
24
+ cat $^ | ruby support/to_md.rb > $@
25
+
26
+ clean:
27
+ rm Readme.md support/modules.md support/helpers.md
28
+
29
+ .PHONY: clean
data/Notes.md ADDED
@@ -0,0 +1,70 @@
1
+ Readme
2
+ ------
3
+
4
+ The readme file is auto-generated using make.
5
+
6
+ $ make Readme.md
7
+
8
+ Documentation
9
+ -------------
10
+
11
+ Please consult the [project documentation](http://mina-deploy.github.io/mina) for full
12
+ details.
13
+
14
+ Problems or suggestions? File issues at the [issue tracker][issues].
15
+
16
+ Documentation sources
17
+ ---------------------
18
+
19
+ See [mina-deploy/mina-docs](https://github.com/mina-deploy/mina-docs) for the sources of
20
+ the documentation site. Please ensure that docs there are in sync with the
21
+ features here.
22
+
23
+ Development & testing
24
+ ---------------------
25
+
26
+ To test out stuff in development:
27
+
28
+ ``` sh
29
+ # Run specs
30
+ $ rspec
31
+ $ rspec -t ssh # Run SSH tests (read test_env/config/deploy.rb first)
32
+ $ rake=10 rspec
33
+ $ rake=0.9 rspec
34
+ $ rake=0.8 rspec
35
+
36
+ # Alias your 'mina' to use it everywhere
37
+ $ alias mina="`pwd -LP`/bin/mina"
38
+ ```
39
+
40
+ ### Doing test deploys
41
+
42
+ Try out the test environment:
43
+
44
+ ``` sh
45
+ $ cd test_env
46
+ $ mina deploy --simulate
47
+ $ mina deploy
48
+
49
+ # There's an rspec task for it too
50
+ $ rspec -t ssh
51
+ ```
52
+
53
+ ### Gem management
54
+
55
+ ``` sh
56
+ # To release the gem:
57
+ # Install the Git changelog helper: https://gist.github.com/2880525
58
+ # Then:
59
+
60
+ $ vim lib/mina/version.rb
61
+ $ git clog -w
62
+ $ vim HISTORY.md
63
+ $ git commit -m "Release v0.8.4."
64
+ $ rake release
65
+
66
+ # Please don't forget to tag the release in github.com/nadarei/mina-docs too!
67
+
68
+ $ rake build # Builds the gem file
69
+ $ rake install # Installs the gem locally
70
+ ```