alfred_git 0.5.3 → 0.5.4

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: 454e81034229b564d71ee4f100e427108133d60b
4
- data.tar.gz: 01ed8820c8a024642e351d18cff840942d9d9fca
3
+ metadata.gz: 4788b235ed4815d3c8cbc1b05586f6902fe48e76
4
+ data.tar.gz: 7e694154b1e5de22ed2185f3cc9f838576d3acbb
5
5
  SHA512:
6
- metadata.gz: 34234e659b5d8e8833a3bc4fb909497dd7595e18e052b6c464c2e363a5826976fe97e977e9ef6585c04a186a64c9843a66a5bc415292278224f0fde8efb36485
7
- data.tar.gz: 0dcea80dce58c8cacefe0c4faaf0b06e74a03835108dbed9fc64ae8868ee8556f36fc8da641cd28b5dc68dc6074ee27afc3381e4cb7f96a909004f8e174bbd39
6
+ metadata.gz: b72a6de57d119ce1bc84483b7004a262e8788405949953ba3b236185f2d34430ea8404f2da0e04309913030510cbceb35f3df2a1e2629ad5dec40eff169d838c
7
+ data.tar.gz: 35a91d7984aea77fba4b14995b3ec169781d68115ebc3c5f4b418778ee66f2e7fd65d5fcc101cc623a75c00923b1df9fb22dc2813252faf8a94876cc50a41a35
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- lib/config.yaml
2
- .idea
3
- .bundle
1
+ lib/config.yaml
2
+ .idea
3
+ .bundle
4
4
  Gemfile.lock
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
- source "https://rubygems.org"
2
-
3
- gem 'rainbow', '~>2.1.0'
4
- gem 'gemspec'
1
+ source "https://rubygems.org"
2
+
3
+ gem 'rainbow', '~>2.1.0'
4
+ gem 'gemspec'
5
+ gem 'iamsellek_cl_helper'
data/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 iamsellek
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 iamsellek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,147 +1,154 @@
1
- # AlfredGit
2
- Helps you handle multiple git repos more quickly and easily.
3
-
4
- ## Longer Description
5
- Guys. We live in 2016. When Marty visited the future, he now visited *last
6
- year.* Cars are now out there driving. *Themselves*. We are *half a
7
- century* removed from sending a man to another celestial body and without even
8
- blowing him up in the process. Why on Earth (heh), then, do I need to cd into
9
- every single repo I'm working with on a project and type individual git commands
10
- in every one of them?
11
-
12
- You know, some guy back in the 20s had a similar question. Why did he have to
13
- do all this stupid 'math' crap by hand? And do you know what he did? He punched
14
- math in the face and invented freaking computers (I don't know my computer
15
- history very well). I...well, to be honest, I'm doing something a tad less
16
- monumental, but I am that man. A modern what's-his-name-you-know-the-guy-who-
17
- hated-math-and-invented-computers-if-that-story-is-even-real(-it's-not).
18
-
19
- Enter AlfredGit, named after a certain famous billionaire's butler. AlfredGit does
20
- those stupid menial typing tasks for you. Why? Because you're freaking Batman
21
- and Batman doesn't have time to sit there cd-ing into 12 different repo
22
- directories and issuing a `git pull` in every single one of them. He's too
23
- busy out there punching...uh...bugs and...feature requests in the face (this
24
- analogy is quickly falling apart). So grab AlfredGit and say goodbye to
25
- spending 20% of your day typing git commands in 140 different repos like a
26
- pleb. This, guys. This is the future.
27
-
28
- # Installation
29
-
30
- An install is as easy as typing `gem install alfred_git` on your command line
31
- (you need to have ruby installed). At that point, all you need to do to run
32
- the app is type `alfred_git`.
33
-
34
- # Use
35
-
36
- I've tried to make the command syntax as intuitive as possible. Essentially,
37
- you'll send in a few parameters (the exact number of parameters required
38
- changes based on what git command you need to run - you can't run a `git
39
- checkout` without a branch name, for instance) separated by spaces; the
40
- important thing to remember is that repos you want to work with will *always* be
41
- your last/last few parameters and will also be separated by spaces. Want to do
42
- all of the repos, but don't want to type them all out? Of course you do! Why
43
- else would you be using this app? Just run AlfredGit with the word 'all' as
44
- your last parameter. How does AlfredGit know your repos? You set them up when
45
- you first run the app! After installation, just run the app and it'll run you
46
- through the set up and explain along the way!
47
-
48
- AlfredGit comes packaged with the most common git commands built in. You can also
49
- send custom commands, so you can send whatever command you'd like to however many
50
- branches you'd like in one fell swoop! Simple! Think another command warrants
51
- being on this list? Email me and I'll consider adding it!
52
-
53
- And with that, we come to the built-in commands. Here are the AlfredGit commands
54
- followed by a description of what they run. Most of these should be intuitive.
55
- Any command with an underscore in it can also be typed without the underscore for
56
- quicker access because if you're using this app you're clearly lazy and typing
57
- underscores is hard. So for example, `add_repo` can be typed as `addrepo`.
58
-
59
- * `pull` - Runs a `git pull`
60
- * `push` - Runs a `git push`
61
- * `checkout second_parameter` - Runs a `git checkout second_parameter`
62
- * `commit 'second_parameter'` - Runs a `git commit -m 'second_parameter'`
63
- * `status` - Runs a `git status`
64
- * `branch` or `branches` - Lists the branch(es) your repo(s) currently have
65
- checked out.
66
- * `list_repo` or `list_repos` - Lists all of your repo names and their locations.
67
- * `add_repo second_parameter` - Starts the process of adding a new repo by the
68
- name given in the second parameter. The location
69
- of the repo will be asked for and then added to
70
- your list of repos.
71
- * `delete_repo second_parameter` - Deletes the repo identified by second
72
- parameter.
73
- * `woa` or `wielder_of_anor` - Integrates AlfredGit with
74
- [WielderOfAnor](https://github.com/iamsellek/wielder_of_anor).
75
- This command takes up to two parameters. The
76
- first will always be your commit message. The
77
- second is optional, can only be the number 1 (it
78
- will be ignored if it is anything else), and it
79
- will skip checking for forbidden words.
80
-
81
- To send a custom command to any number of branches, just send it as your first
82
- parameter. Here's the important part to remember, though: if your custom command
83
- has a space in it/is longer than one word (say you need to send a `gulp build`
84
- to several branches), make sure you wrap it in quotes when sending it to
85
- AlfredGit. Also, for some reason, aliases don't work just yet with AlfredGit.
86
- I'll be fixing this at some point.
87
-
88
- # Quick Example
89
- Here's a quick example of how it works! When you set AlfredGit up, you'll point
90
- to the locations of all of your repos and give them 'friendly' names with which
91
- you can quickly refer to them. For the sake of these examples, we'll assume
92
- that you are completely unimaginative (and really good at remembering numbers)
93
- and that you've set up 4 repos and named them 'repo_1', 'repo_2', 'repo_3',
94
- and 'repo_4'.
95
-
96
- Want to pull repos 1, 2, and 3? Easy!
97
-
98
- `> alfred_git pull repo_1 repo_2 repo_3`
99
-
100
- What about pulling every repo?
101
-
102
- `> alfred_git pull all`
103
-
104
- How about checking out a branch named 'branch_name' on multiple repos at once?
105
-
106
- `> alfred_git checkout branch_name repo_1 repo_2`
107
-
108
- Need to run a commit via [WielderOfAnor](https://github.com/iamsellek/wielder_of_anor)
109
- on repos 1 and 2 because it's another awesome app that you can't live without?
110
- Psh of course. Here's how. *The 1 is optional and only used if you want to skip
111
- the checking for forbidden words.*
112
-
113
- `> alfred_git woa "This is a terrible commit message." 1 repo_1 repo_2`
114
-
115
- What about those sexy-sounding custom commands you heard about? No problem!
116
- Just send your command as the first parameter. Just keep in mind what I
117
- mentioned about commands with a space in them! Wrap those bad boys in quotes!
118
- So, since this is the examples section, let's say you need to send a `gulp
119
- build` to repos 2 and 4. Since the command is more than one word/has a space
120
- in it, here's how you would do it:
121
-
122
- `> alfred_git "gulp build" repo_2 repo_4`
123
-
124
- See? Intuitive! Simple! Batman!
125
-
126
- ## License
127
- The MIT License (MIT)
128
-
129
- Copyright (c) 2016 Chris Sellek
130
-
131
- Permission is hereby granted, free of charge, to any person obtaining a copy
132
- of this software and associated documentation files (the "Software"), to deal
133
- in the Software without restriction, including without limitation the rights
134
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
135
- copies of the Software, and to permit persons to whom the Software is
136
- furnished to do so, subject to the following conditions:
137
-
138
- The above copyright notice and this permission notice shall be included in all
139
- copies or substantial portions of the Software.
140
-
141
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
142
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
143
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
144
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
145
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
146
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ # AlfredGit
2
+ Helps you handle multiple git repos more quickly and easily.
3
+
4
+ ## Longer Description
5
+ Guys. We live in 2016. When Marty visited the future, he now visited *last
6
+ year.* Cars are now out there driving. *Themselves*. We are *half a
7
+ century* removed from sending a man to another celestial body and without even
8
+ blowing him up in the process. Why on Earth (heh), then, do I need to cd into
9
+ every single repo I'm working with on a project and type individual git commands
10
+ in every one of them?
11
+
12
+ You know, some guy back in the 20s had a similar question. Why did he have to
13
+ do all this stupid 'math' crap by hand? And do you know what he did? He punched
14
+ math in the face and invented freaking computers (I don't know my computer
15
+ history very well). I...well, to be honest, I'm doing something a tad less
16
+ monumental, but I am that man. A modern what's-his-name-you-know-the-guy-who-
17
+ hated-math-and-invented-computers-if-that-story-is-even-real(-it's-not).
18
+
19
+ Enter AlfredGit, named after a certain famous billionaire's butler. AlfredGit does
20
+ those stupid menial typing tasks for you. Why? Because you're freaking Batman
21
+ and Batman doesn't have time to sit there cd-ing into 12 different repo
22
+ directories and issuing a `git pull` in every single one of them. He's too
23
+ busy out there punching...uh...bugs and...feature requests in the face (this
24
+ analogy is quickly falling apart). So grab AlfredGit and say goodbye to
25
+ spending 20% of your day typing git commands in 140 different repos like a
26
+ pleb. This, guys. This is the future.
27
+
28
+ # Installation
29
+
30
+ An install is as easy as typing `gem install alfred_git` on your command line
31
+ (you need to have ruby installed). At that point, all you need to do to run
32
+ the app is type `alfred_git`.
33
+
34
+ # Use
35
+
36
+ I've tried to make the command syntax as intuitive as possible. Essentially,
37
+ you'll send in a few parameters (the exact number of parameters required
38
+ changes based on what git command you need to run - you can't run a `git
39
+ checkout` without a branch name, for instance) separated by spaces; the
40
+ important thing to remember is that repos you want to work with will *always* be
41
+ your last/last few parameters and will also be separated by spaces. Want to do
42
+ all of the repos, but don't want to type them all out? Of course you do! Why
43
+ else would you be using this app? Just run AlfredGit with the word 'all' as
44
+ your last parameter. How does AlfredGit know your repos? You set them up when
45
+ you first run the app! After installation, just run the app and it'll run you
46
+ through the set up and explain along the way!
47
+
48
+ AlfredGit comes packaged with the most common git commands built in. You can also
49
+ send custom commands, so you can send whatever command you'd like to however many
50
+ branches you'd like in one fell swoop! Simple! Think another command warrants
51
+ being on this list? Email me and I'll consider adding it!
52
+
53
+ And with that, we come to the built-in commands. Here are the AlfredGit commands
54
+ followed by a description of what they run. Most of these should be intuitive.
55
+ Any command with an underscore in it can also be typed without the underscore for
56
+ quicker access because if you're using this app you're clearly lazy and typing
57
+ underscores is hard. So for example, `add_repo` can be typed as `addrepo`.
58
+
59
+ * `pull` - Runs a `git pull`
60
+ * `push` - Runs a `git push`
61
+ * `checkout second_parameter` - Runs a `git checkout second_parameter`
62
+ * `commit 'second_parameter'` - Runs a `git commit -m 'second_parameter'`
63
+ * `status` - Runs a `git status`
64
+ * `branch` or `branches` - Lists the branch(es) your repo(s) currently have
65
+ checked out.
66
+ * `list_repo` or `list_repos` - Lists all of your repo names and their locations.
67
+ * `add_repo second_parameter` - Starts the process of adding a new repo by the
68
+ name given in the second parameter. The location
69
+ of the repo will be asked for and then added to
70
+ your list of repos.
71
+ * `repo_add_directory` or `rad` - Searches all subdirectories of the second parameter for the .git
72
+ folder representative of a repository and automatically adds each
73
+ to the list of repos. This command uses the last segment of the path
74
+ as the repo name and falls back to the relative path when a duplicate
75
+ entry is found. The second parameter can be the absolute path to the directory
76
+ or a dot representing the current directory.
77
+ * `delete_repo second_parameter` - Deletes the repo identified by second
78
+ parameter. If "all" is supplied, this deletes all
79
+ repositories.
80
+ * `woa` or `wielder_of_anor` - Integrates AlfredGit with
81
+ [WielderOfAnor](https://github.com/iamsellek/wielder_of_anor).
82
+ This command takes up to two parameters. The
83
+ first will always be your commit message. The
84
+ second is optional, can only be the number 1 (it
85
+ will be ignored if it is anything else), and it
86
+ will skip checking for forbidden words.
87
+
88
+ To send a custom command to any number of branches, just send it as your first
89
+ parameter. Here's the important part to remember, though: if your custom command
90
+ has a space in it/is longer than one word (say you need to send a `gulp build`
91
+ to several branches), make sure you wrap it in quotes when sending it to
92
+ AlfredGit. Also, for some reason, aliases don't work just yet with AlfredGit.
93
+ I'll be fixing this at some point.
94
+
95
+ # Quick Example
96
+ Here's a quick example of how it works! When you set AlfredGit up, you'll point
97
+ to the locations of all of your repos and give them 'friendly' names with which
98
+ you can quickly refer to them. For the sake of these examples, we'll assume
99
+ that you are completely unimaginative (and really good at remembering numbers)
100
+ and that you've set up 4 repos and named them 'repo_1', 'repo_2', 'repo_3',
101
+ and 'repo_4'.
102
+
103
+ Want to pull repos 1, 2, and 3? Easy!
104
+
105
+ `> alfred_git pull repo_1 repo_2 repo_3`
106
+
107
+ What about pulling every repo?
108
+
109
+ `> alfred_git pull all`
110
+
111
+ How about checking out a branch named 'branch_name' on multiple repos at once?
112
+
113
+ `> alfred_git checkout branch_name repo_1 repo_2`
114
+
115
+ Need to run a commit via [WielderOfAnor](https://github.com/iamsellek/wielder_of_anor)
116
+ on repos 1 and 2 because it's another awesome app that you can't live without?
117
+ Psh of course. Here's how. *The 1 is optional and only used if you want to skip
118
+ the checking for forbidden words.*
119
+
120
+ `> alfred_git woa "This is a terrible commit message." 1 repo_1 repo_2`
121
+
122
+ What about those sexy-sounding custom commands you heard about? No problem!
123
+ Just send your command as the first parameter. Just keep in mind what I
124
+ mentioned about commands with a space in them! Wrap those bad boys in quotes!
125
+ So, since this is the examples section, let's say you need to send a `gulp
126
+ build` to repos 2 and 4. Since the command is more than one word/has a space
127
+ in it, here's how you would do it:
128
+
129
+ `> alfred_git "gulp build" repo_2 repo_4`
130
+
131
+ See? Intuitive! Simple! Batman!
132
+
133
+ ## License
134
+ The MIT License (MIT)
135
+
136
+ Copyright (c) 2016 Chris Sellek
137
+
138
+ Permission is hereby granted, free of charge, to any person obtaining a copy
139
+ of this software and associated documentation files (the "Software"), to deal
140
+ in the Software without restriction, including without limitation the rights
141
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
142
+ copies of the Software, and to permit persons to whom the Software is
143
+ furnished to do so, subject to the following conditions:
144
+
145
+ The above copyright notice and this permission notice shall be included in all
146
+ copies or substantial portions of the Software.
147
+
148
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
149
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
150
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
151
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
152
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
153
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
147
154
  SOFTWARE.
data/Rakefile.rb CHANGED
@@ -1,2 +1,2 @@
1
- require "bundler/gem_tasks"
2
- task :default => :spec
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/alfred_git.gemspec CHANGED
@@ -1,26 +1,26 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'alfred_git/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'alfred_git'
8
- spec.version = AlfredGitVersion::VERSION
9
- spec.authors = ['Chris Sellek']
10
- spec.email = ['iamsellek@gmail.com']
11
-
12
- spec.summary = 'Helps you handle multiple git repos more quickly and easily.'
13
- spec.description = 'See GitHub page for longer description.'
14
- spec.homepage = 'https://github.com/iamsellek/alfred_git'
15
- spec.license = 'MIT'
16
-
17
- spec.files = `git ls-files`.split($/)
18
- spec.executables = ['alfred_git']
19
- spec.test_files = []
20
- spec.require_paths = ['lib']
21
-
22
- spec.add_dependency 'rainbow'
23
-
24
- spec.add_development_dependency 'bundler', '~> 1.12'
25
- spec.add_development_dependency 'rake', '~> 10.0'
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'alfred_git/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'alfred_git'
8
+ spec.version = AlfredGitVersion::VERSION
9
+ spec.authors = ['Chris Sellek']
10
+ spec.email = ['iamsellek@gmail.com']
11
+
12
+ spec.summary = 'Helps you handle multiple git repos more quickly and easily.'
13
+ spec.description = 'See GitHub page for longer description.'
14
+ spec.homepage = 'https://github.com/iamsellek/alfred_git'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables = ['alfred_git']
19
+ spec.test_files = []
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_dependency 'rainbow'
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.12'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
26
  end
data/bin/alfred_git CHANGED
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'alfred_git'
4
-
5
- alfred = AlfredGit::AlfredGit.new
6
-
7
- alfred.config if ARGV[0] == 'config'
8
-
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'alfred_git'
4
+
5
+ alfred = AlfredGit::AlfredGit.new
6
+
7
+ alfred.config if ARGV[0] == 'config'
8
+
9
9
  alfred.alfred(ARGV)