gitrubydeploy 0.0.4 → 0.0.5

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: d807d2d45c52879866603cb377a062a1f36549aa
4
- data.tar.gz: a938bfc6a8ea486ef1703c173ec56ebba716c0aa
3
+ metadata.gz: 3faabff397c2bfcde219ed3a97d53b865670f1ac
4
+ data.tar.gz: c33cc72a84b17147301c29b6ae61f52271857f88
5
5
  SHA512:
6
- metadata.gz: fe798fe8125c4b204bfb4421cd55ffe2a23bc1e15892810f04090c346f2fec5b9523e26df356cb6aa245d833d217caf04e1af51112a684b94ba04fd1da03aac2
7
- data.tar.gz: 56c01b9a75b7cdc2d4c96878e5ca9e4e187940340c9e508c909def76d484a6882f9f3d26f6486ad119604a217f723486523aeb5ae86dca4d67219f7921ec5e51
6
+ metadata.gz: ba08a58fce71768812ef14bf1973059aa07809e37c8c1f297e2cba608e5802d79a1a57d671e984827b152cc2e8347b94f811b1c93914d373a34541b8b9506a09
7
+ data.tar.gz: c6310f8abf90479f4396983d6905168a663e7f2ac6dff980bb5ed0dc7fbb4f5ceead92460931cf46a27c2d65389e4a1ded10b54f7ffcc44dda640c8c07e4508a
data/README.rdoc CHANGED
@@ -6,12 +6,12 @@ Start is a collection of Rails generators for faster project setup.
6
6
 
7
7
  Add the gem to your Gemfile.
8
8
 
9
- gem "git_ruby_deploy"
9
+ gem "gitrubydeploy"
10
10
 
11
11
  Then you can run any of the included generators.
12
12
 
13
13
  rails g git_ruby:install
14
14
 
15
15
  == Included Generators
16
- * git_ruby:install - Create deploy controller and configs
16
+ * gitrubydeploy:install - Create deploy controller and configs
17
17
 
@@ -1,5 +1,5 @@
1
1
  require 'rails/generators'
2
- module GitRubtDeploy
2
+ module GitRubyDeploy
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  desc "Generate controllers"
5
5
 
@@ -17,7 +17,7 @@ module GitRubtDeploy
17
17
  # Generator Code. Remember this is just suped-up Thor so methods are executed in order
18
18
  def copy_files
19
19
  copy_file 'config/controllers/deploy_controller.rb', 'app/controllers/deploy_controller.rb'
20
- copy_file 'config/routes.rb', 'app/config/deploy_controller.rb'
20
+ inject_into_file "post '/deploy', to: 'deploy_controller#deploy'\n", :before => /^end/
21
21
  end
22
22
 
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitrubydeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nywton Barros
@@ -53,9 +53,7 @@ extra_rdoc_files: []
53
53
  files:
54
54
  - MIT-LICENSE
55
55
  - README.rdoc
56
- - lib/generators/gitrubydeploy/controllers/controllers_generator.rb
57
56
  - lib/generators/gitrubydeploy/controllers/templates/config/controllers/deploy_controller.rb
58
- - lib/generators/gitrubydeploy/controllers/templates/config/routes.rb
59
57
  - lib/generators/gitrubydeploy/install_generator.rb
60
58
  homepage: http://rubygems.org/gems/gitrubydeploy
61
59
  licenses:
@@ -1,9 +0,0 @@
1
- require 'rails/generators'
2
- class ControllersGenerator < ::Rails::Generators::Base
3
- source_root File.expand_path("../templates", __FILE__)
4
-
5
- def copy_files
6
- copy_file 'config/controllers/deploy_controller.rb', 'app/controllers/deploy_controller.rb'
7
- copy_file 'config/routes.rb', 'app/config/deploy_controller.rb'
8
- end
9
- end
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
- post '/deploy', to: 'deploy_controller#deploy'
3
-
4
- end