renuo-cli 0.0.6 → 0.0.7

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: 29c40692f4c2040eb3de9f1b9c11853b866b4c6d
4
- data.tar.gz: 0ac2f2d4c94e10222f9e40c6649b9093d033bfa3
3
+ metadata.gz: db69e51ebf9d72b1d6b25793479e40e4c93af3d5
4
+ data.tar.gz: f837fd8ee334197c790b45a45877e88e48801fbd
5
5
  SHA512:
6
- metadata.gz: 10ed2206b5c7321deebbbbe301dd5af5eaf895c8c497e629ce2fec8484d20e5eb3fb3ef3c18f4cf7c1395bff7ba4c4b5c33d7072bd4fe834cb4b336bd0ff2869
7
- data.tar.gz: 9a223df2f0ff99509840e9095df7a331d4cc5ac5aebc9ccd48d69dc9ad2e77919dda02ac8203253c8ded83becd3cc1f23902ee7ed38ad7a0ebaef7f635d05ef8
6
+ metadata.gz: 879997b1b32fa4fac716aab2e5bd65bf44a03931203a027eb6cf7c1108f3439f6b5fe852ab59135969d6e6fc7764de1ed30bed0d9b10fb20096bcc6773e920bb
7
+ data.tar.gz: 8fc2342e35cb2becbd7675396d0316763d9210f321796f7c86104e4eeca17a5c6ab15822dfed4c0fb7ea6097473c481935fa46ad985675958f451a1a45a7103e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- renuo-cli (0.0.6)
4
+ renuo-cli (0.0.7)
5
5
  commander
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![Build Status](https://travis-ci.org/renuo/renuo-cli.svg?branch=master)](https://travis-ci.org/renuo/renuo-cli)
2
2
  [![Coverage Status](https://coveralls.io/repos/renuo/renuo-cli/badge.svg?branch=master&service=github)](https://coveralls.io/github/renuo/renuo-cli?branch=master)
3
+ [![Code Climate](https://codeclimate.com/github/renuo/renuo-cli/badges/gpa.svg)](https://codeclimate.com/github/renuo/renuo-cli)
3
4
 
4
5
  # Renuo::Cli
5
6
 
@@ -23,7 +24,7 @@ Or install it yourself as:
23
24
 
24
25
  ## Usage
25
26
 
26
- ```
27
+ ```sh
27
28
  renuo -h
28
29
  ```
29
30
 
@@ -36,6 +37,21 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
36
37
  version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
37
38
  push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
39
 
40
+ ## Release
41
+
42
+ ```sh
43
+ git flow release start [.....]
44
+ # adjust version.rb
45
+ bundle install
46
+ git commit -av
47
+ git flow release finish [.....]
48
+ git push origin develop:develop
49
+ git push origin master:master
50
+ git checkout master
51
+ bundle exec rake release
52
+ git checkout develop
53
+ ```
54
+
39
55
  ## Contributing
40
56
 
41
57
  Bug reports and pull requests are welcome on GitHub at https://github.com/renuo/renuo-cli. This project is intended to
@@ -0,0 +1,7 @@
1
+ require 'securerandom'
2
+
3
+ class GeneratePassword
4
+ def run
5
+ say SecureRandom.base64(200).gsub(%r{[\+\/=]}, '')[0...100]
6
+ end
7
+ end
@@ -103,9 +103,9 @@ class MigrateToGithub
103
103
  `open https://deploy.renuo.ch/deployment_configs`
104
104
  say('Now login to the deployment server, and change the remotes. E.g.')
105
105
  cd = "cd deployments/#{@project_name}"
106
- say("#{cd}-master && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ..")
107
- say("#{cd}-develop && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ..")
108
- say("#{cd}-testing && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ..")
106
+ say("#{cd}-master && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ../..")
107
+ say("#{cd}-develop && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ../..")
108
+ say("#{cd}-testing && git remote set-url origin git@github.com:renuo/#{@project_name}.git && cd ../..")
109
109
  agree('Ready?')
110
110
  end
111
111
 
@@ -120,7 +120,7 @@ class MigrateToGithub
120
120
  def replace_other_old_links
121
121
  say('Now let\'s replace other old links in the repo!')
122
122
  agree('Ready?')
123
- `open https://github.com/renuo/#{@project_name}/search?utf8=%E2%9C%93&q=git.renuo.ch`
123
+ `open https://github.com/renuo/#{@project_name}/search?q=git.renuo.ch`
124
124
  say('Replace all those links!')
125
125
  agree('Ready?')
126
126
  say('Now let\'s replace other old links in the wiki!')
@@ -1,5 +1,5 @@
1
1
  module Renuo
2
2
  module Cli
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
data/lib/renuo/cli.rb CHANGED
@@ -4,6 +4,7 @@ require 'renuo/cli/app/name_display'
4
4
  require 'renuo/cli/app/local_storage'
5
5
  require 'renuo/cli/app/migrate_to_github'
6
6
  require 'renuo/cli/app/list_large_git_files'
7
+ require 'renuo/cli/app/generate_password'
7
8
 
8
9
  module Renuo
9
10
  class CLI
@@ -56,6 +57,16 @@ module Renuo
56
57
  ListLargeGitFiles.new.run
57
58
  end
58
59
  end
60
+
61
+ command 'generate-password' do |c|
62
+ c.syntax = 'renuo generate-password'
63
+ c.summary = 'Generates a phrase of random 0-9a-zA-Z characters. Choose a substring of it as a new password.'
64
+ c.description = 'Generates a phrase of random 0-9a-zA-Z characters. Choose a substring of it as a new password.'
65
+ c.example 'renuo generate-password', 'generates a random password'
66
+ c.action do
67
+ GeneratePassword.new.run
68
+ end
69
+ end
59
70
  end
60
71
  end
61
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renuo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Elmer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -163,6 +163,7 @@ files:
163
163
  - bin/setup
164
164
  - exe/renuo
165
165
  - lib/renuo/cli.rb
166
+ - lib/renuo/cli/app/generate_password.rb
166
167
  - lib/renuo/cli/app/list_large_git_files.rb
167
168
  - lib/renuo/cli/app/local_storage.rb
168
169
  - lib/renuo/cli/app/migrate_to_github.rb