master_to_main 0.0.5 → 0.0.6
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +15 -20
- data/lib/master_to_main/cli.rb +1 -0
- data/lib/master_to_main/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e178c01d989407574bbc17949910dca148aad2afaca28205abb785c7aed3263
|
4
|
+
data.tar.gz: eeab0dd082a7808a332a66cb164a67e213f391392cd54ede20a3ba400e9b6c3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6156ba5854ec68934d55aca6b955b096bfc97def37394669536b4492419ce8b8cf35b45d159f331f3cf22175de5261d71d10dee4302f5fb6058ed24280586872
|
7
|
+
data.tar.gz: d5f7d35aeadee3496122606e6d6f6c613f177526e2780120e249bffcbcab98a80f6449c8b36d88ba0aed4dd557e6dd19ec5450f83574353ce0d9326c2719c857
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -17,13 +17,22 @@ Per the twitter thread below, maybe we can just think of it as:
|
|
17
17
|
Thanks to [@shanselman](https://github.com/shanselman) for [the
|
18
18
|
suggestion](https://twitter.com/shanselman/status/1269838158650195968).
|
19
19
|
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
You need ruby and [rubygems](https://rubygems.org/pages/download) to use `master_to_main`.
|
23
|
+
With ruby gems installed you can simply run
|
24
|
+
|
25
|
+
```
|
26
|
+
$ gem install master_to_main
|
27
|
+
```
|
28
|
+
|
20
29
|
## Functionality
|
21
30
|
|
22
|
-
`MasterToMain` has
|
31
|
+
`MasterToMain` has 3 actions:
|
23
32
|
|
24
|
-
1. `update`
|
25
|
-
1. `update_local`
|
26
|
-
1. `update_docs`
|
33
|
+
1. `update` - Update github, pull requests, branch protections, local origin
|
34
|
+
1. `update_local` - For people to use after `update` to update the local clone
|
35
|
+
1. `update_docs` - If you just want to search docs for github urls.
|
27
36
|
|
28
37
|
## `update`
|
29
38
|
|
@@ -52,6 +61,8 @@ or `pwd`)
|
|
52
61
|
1. The current default branch (default is `master`)
|
53
62
|
1. The desired default branch (default is `main`)
|
54
63
|
1. Your personal access token (instructions for settings one can be found [here](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line))
|
64
|
+
- You should enable "repo" access
|
65
|
+
|
55
66
|
|
56
67
|
## `update_local`
|
57
68
|
|
@@ -86,22 +97,6 @@ master_to_main update_docs
|
|
86
97
|
This will attempt to update all references to commits on the master branch with
|
87
98
|
commits on the main branch.
|
88
99
|
|
89
|
-
## Installation
|
90
|
-
|
91
|
-
Add this line to your application's Gemfile:
|
92
|
-
|
93
|
-
```ruby
|
94
|
-
gem 'master_to_main'
|
95
|
-
```
|
96
|
-
|
97
|
-
And then execute:
|
98
|
-
|
99
|
-
$ bundle
|
100
|
-
|
101
|
-
Or install it yourself as:
|
102
|
-
|
103
|
-
$ gem install master_to_main
|
104
|
-
|
105
100
|
## TODO
|
106
101
|
|
107
102
|
- Testing would be nice
|
data/lib/master_to_main/cli.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: master_to_main
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John DeWyze
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|