locum-best-practices 0.2.2 → 0.2.3

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: fa10d0418739f66c482fd06c9fb56a2a040464af
4
- data.tar.gz: dfaef238e1bca5b0c617bd6486ce929ba81d4560
3
+ metadata.gz: 97d528d0dc2eb4b5e032e41d12aec5b43f28b2e0
4
+ data.tar.gz: cc3bb4b5fdc82734a00446b2fe09dbb92e2e909a
5
5
  SHA512:
6
- metadata.gz: df65858638487497f11571f92ecdd1276a8f7892c3e0336e9143f6b0afd5a05d174adf822a95f2295771b9f6155b23f0b49b324fa0df50feeee186198401e5df
7
- data.tar.gz: 1348d3c0fe859ce434f9f38430479414b521330bad9f1d5d1ece923b46f450180e75066cf73a3794e9e8099de9ca058d1b3b5866fb104bd6c9a3ae67d17903bb
6
+ metadata.gz: acdc6890297f665029857621b844fa36ab0f9d8a2a2f4701882d3bb66fb50ac1e45520e7eb89dac965c34c39d2309479093f4494540644fbfc96f77346fa71df
7
+ data.tar.gz: b80ba43423d13f8c0fe04bba3168e75423cb4936534887983364a3eabf4e6f2c82cfb9bf2a7cfe1afce9023f87c3b1070e5d3b88145be291bb20f8697d2591b2
data/README.md CHANGED
@@ -1,36 +1,71 @@
1
- # Locum::Best::Practices
1
+ # Locum Best Practices
2
+ > for Ruby on Rails applications
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/locum/best/practices`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ ## Features
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ * Deployment
7
+ - Capistrano integration
8
+ - configuration and stages generator
9
+ - custom tasks
10
+ - predefined default [settings](lib/capistrano/snp/defaults.rb)
11
+
12
+ ## Requirements
13
+
14
+ It is tested and works with:
15
+
16
+ * MRI >= 2.1
17
+ * Rails >= 4.2
18
+
19
+ Other versions are untested but might work fine.
6
20
 
7
21
  ## Installation
8
22
 
9
- Add this line to your application's Gemfile:
23
+ Add this line to your application's Gemfile into `development` group:
10
24
 
11
- ```ruby
12
- gem 'locum-best-practices'
13
- ```
25
+ gem 'locum-best-practices'
14
26
 
15
27
  And then execute:
16
28
 
17
29
  $ bundle
18
30
 
19
- Or install it yourself as:
31
+ ## Usage
20
32
 
21
- $ gem install locum-best-practices
33
+ ### Add deployment configuration
22
34
 
23
- ## Usage
35
+ $ rails g locum:deploy
36
+
37
+ This creates the following files, you can edit them for your choice.
38
+
39
+ ```
40
+ ├── Capfile
41
+ └── config
42
+ ├── deploy
43
+ │ ├── production.rb
44
+ │ └── testing.rb
45
+ ├── environments
46
+ │ └── testing.rb
47
+ └── deploy.rb
48
+ ```
49
+
50
+ ## Advanced usage
51
+
52
+ ### Install in your system:
53
+
54
+ gem install locum
55
+
56
+ And execute after 'cap install':
24
57
 
25
- TODO: Write usage instructions here
58
+ $ locum cap
26
59
 
27
- ## Development
60
+ ### Custom stages
28
61
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
62
+ `production` and `testing` stages are generated by default, but you can easily
63
+ add any another:
30
64
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
65
+ $ rails g snp:deploy staging local sandbox qa etc
32
66
 
33
- ## Contributing
67
+ ## License
34
68
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/locum-best-practices. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
69
+ This project rocks and uses MIT License (MIT).
36
70
 
71
+ Copyright (c) 2016 DarkCreative Studio
@@ -19,6 +19,4 @@ namespace :sidekiq do
19
19
  execute "#{fetch(:sidekiq_stop_cmd)}; sleep 5; #{fetch(:sidekiq_start_cmd)}"
20
20
  end
21
21
  end
22
-
23
- after 'unicorn:restart', 'sidekiq:restart'
24
22
  end
@@ -1,4 +1,6 @@
1
1
  set :user, 'your_ssh_user'
2
2
  set :login, 'your_locum_login'
3
3
  set :rvm_ruby_version, 'your_ruby_version'
4
- set :repo_url, 'git@bitbucket.org:DCStudio/your_application_name'
4
+ set :repo_url, 'git_path_to_your_application'
5
+
6
+ #after 'unicorn:restart', 'sidekiq:restart'
@@ -1,3 +1,3 @@
1
1
  module LocumBestPractices
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locum-best-practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DarkWater
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-08 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -205,8 +205,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  requirements: []
207
207
  rubyforge_project:
208
- rubygems_version: 2.4.8
208
+ rubygems_version: 2.5.2
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Simple best practices, used for soft deployment to locum hosting
212
212
  test_files: []
213
+ has_rdoc: