straight_line 0.1.0.0 → 0.1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/{cli → straight_line/cli}/application.rb +0 -0
- data/lib/{cli → straight_line/cli}/feature.rb +0 -0
- data/lib/{common → straight_line/common}/command.rb +2 -2
- data/lib/{common → straight_line/common}/feature/create.rb +2 -2
- data/lib/{common → straight_line/common}/feature/diff.rb +10 -10
- data/lib/{common → straight_line/common}/feature/land.rb +7 -7
- data/lib/{common → straight_line/common}/feature.rb +1 -1
- data/lib/{common → straight_line/common}/git_commands/commit.rb +1 -1
- data/lib/{common → straight_line/common}/git_commands/config.rb +1 -1
- data/lib/{common → straight_line/common}/git_commands/log.rb +2 -2
- data/lib/{common → straight_line/common}/git_commands/merge.rb +2 -2
- data/lib/{common → straight_line/common}/git_commands/pull.rb +1 -1
- data/lib/{common → straight_line/common}/git_commands/push.rb +1 -1
- data/lib/{common → straight_line/common}/git_commands/rebase.rb +3 -3
- data/lib/{common → straight_line/common}/git_commands.rb +2 -2
- data/lib/{common → straight_line/common}/github.rb +3 -3
- data/lib/{common → straight_line/common}/shell_error.rb +0 -0
- data/lib/{common → straight_line/common}/user_error.rb +0 -0
- data/lib/{common → straight_line/common}/util.rb +0 -0
- data/lib/{tasks → straight_line/tasks}/feature/create.rb +2 -2
- data/lib/{tasks → straight_line/tasks}/feature/diff.rb +2 -2
- data/lib/{tasks → straight_line/tasks}/feature/land.rb +2 -2
- data/lib/straight_line/tasks.rb +3 -0
- data/lib/straight_line.rb +3 -0
- data/straight_line.gemspec +0 -1
- metadata +25 -25
- data/lib/tasks.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 771987714afd7987ff53d38e65f7b02005c60f9f
|
4
|
+
data.tar.gz: 73a315adf6ef9e36123f910055fe8570b2ad712c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dcbe95744cb5d7d18605d4b52b17dd168c6f0e2d929a1e82314257db14b055554749034e0a35f6e906b022b489840aea388f75d2b930742268fd6cd4a6ffb6d
|
7
|
+
data.tar.gz: 9268dd80b853369d362889cbb5689ed7281dd154af6040d74e56a66ebb176e594c7e8406a1dd1af0498ea579734f979d4319f229dbf686d87bf044779305af99
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1.0
|
File without changes
|
File without changes
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'open3'
|
2
|
-
require 'common/shell_error'
|
2
|
+
require 'straight_line/common/shell_error'
|
3
3
|
# Basic class for wrapping shell execution
|
4
4
|
class Command
|
5
5
|
attr_accessor :working_dir
|
@@ -42,7 +42,7 @@ class Command
|
|
42
42
|
|
43
43
|
def sub_command(command)
|
44
44
|
unless command.is_a? Command
|
45
|
-
raise ArgumentError, 'command must be of type common/command'
|
45
|
+
raise ArgumentError, 'command must be of type straight_line/common/command'
|
46
46
|
end
|
47
47
|
@sub_commands << command
|
48
48
|
end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
require 'common/command'
|
2
|
-
require 'common/feature'
|
3
|
-
require 'common/git_commands/pull'
|
4
|
-
require 'common/git_commands/rebase'
|
5
|
-
require 'common/git_commands/merge'
|
6
|
-
require 'common/git_commands/push'
|
7
|
-
require 'common/git_commands/commit'
|
8
|
-
require 'common/git_commands/log'
|
9
|
-
require 'common/user_error'
|
10
|
-
require 'common/github'
|
1
|
+
require 'straight_line/common/command'
|
2
|
+
require 'straight_line/common/feature'
|
3
|
+
require 'straight_line/common/git_commands/pull'
|
4
|
+
require 'straight_line/common/git_commands/rebase'
|
5
|
+
require 'straight_line/common/git_commands/merge'
|
6
|
+
require 'straight_line/common/git_commands/push'
|
7
|
+
require 'straight_line/common/git_commands/commit'
|
8
|
+
require 'straight_line/common/git_commands/log'
|
9
|
+
require 'straight_line/common/user_error'
|
10
|
+
require 'straight_line/common/github'
|
11
11
|
require 'octokit'
|
12
12
|
|
13
13
|
module Feature
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'common/feature'
|
2
|
-
require 'common/git_commands/merge'
|
3
|
-
require 'common/git_commands/commit'
|
4
|
-
require 'common/git_commands/pull'
|
5
|
-
require 'common/git_commands/push'
|
6
|
-
require 'common/util'
|
7
|
-
require 'common/github'
|
1
|
+
require 'straight_line/common/feature'
|
2
|
+
require 'straight_line/common/git_commands/merge'
|
3
|
+
require 'straight_line/common/git_commands/commit'
|
4
|
+
require 'straight_line/common/git_commands/pull'
|
5
|
+
require 'straight_line/common/git_commands/push'
|
6
|
+
require 'straight_line/common/util'
|
7
|
+
require 'straight_line/common/github'
|
8
8
|
|
9
9
|
module Feature
|
10
10
|
# Merges the feature to master and pushes it
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'common/command'
|
2
|
-
require 'common/shell_error'
|
3
|
-
require 'common/git_commands'
|
1
|
+
require 'straight_line/common/command'
|
2
|
+
require 'straight_line/common/shell_error'
|
3
|
+
require 'straight_line/common/git_commands'
|
4
4
|
|
5
5
|
module GitCommands
|
6
6
|
# Rebase a branch to a base
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'singleton'
|
2
2
|
require 'octokit'
|
3
|
-
require 'common/user_error'
|
4
|
-
require 'common/git_commands/config'
|
3
|
+
require 'straight_line/common/user_error'
|
4
|
+
require 'straight_line/common/git_commands/config'
|
5
5
|
|
6
6
|
# Github API wrapper
|
7
7
|
class Github
|
@@ -51,7 +51,7 @@ class Github
|
|
51
51
|
def repo_name
|
52
52
|
cmd = GitCommands::Config.new('remote.origin.url')
|
53
53
|
remote = cmd.run
|
54
|
-
remote.match(%r{(git@github.com:)(.*/.*)})[2]
|
54
|
+
remote.match(%r{(git@github.com:)(.*/.*)\.git})[2]
|
55
55
|
end
|
56
56
|
|
57
57
|
def github_login
|
File without changes
|
File without changes
|
File without changes
|
data/lib/straight_line.rb
CHANGED
data/straight_line.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: straight_line
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Usick
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,30 +118,30 @@ files:
|
|
118
118
|
- bin/console
|
119
119
|
- bin/setup
|
120
120
|
- exe/sgw
|
121
|
-
- lib/cli/application.rb
|
122
|
-
- lib/cli/feature.rb
|
123
|
-
- lib/common/command.rb
|
124
|
-
- lib/common/feature.rb
|
125
|
-
- lib/common/feature/create.rb
|
126
|
-
- lib/common/feature/diff.rb
|
127
|
-
- lib/common/feature/land.rb
|
128
|
-
- lib/common/git_commands.rb
|
129
|
-
- lib/common/git_commands/commit.rb
|
130
|
-
- lib/common/git_commands/config.rb
|
131
|
-
- lib/common/git_commands/log.rb
|
132
|
-
- lib/common/git_commands/merge.rb
|
133
|
-
- lib/common/git_commands/pull.rb
|
134
|
-
- lib/common/git_commands/push.rb
|
135
|
-
- lib/common/git_commands/rebase.rb
|
136
|
-
- lib/common/github.rb
|
137
|
-
- lib/common/shell_error.rb
|
138
|
-
- lib/common/user_error.rb
|
139
|
-
- lib/common/util.rb
|
140
121
|
- lib/straight_line.rb
|
141
|
-
- lib/
|
142
|
-
- lib/
|
143
|
-
- lib/
|
144
|
-
- lib/
|
122
|
+
- lib/straight_line/cli/application.rb
|
123
|
+
- lib/straight_line/cli/feature.rb
|
124
|
+
- lib/straight_line/common/command.rb
|
125
|
+
- lib/straight_line/common/feature.rb
|
126
|
+
- lib/straight_line/common/feature/create.rb
|
127
|
+
- lib/straight_line/common/feature/diff.rb
|
128
|
+
- lib/straight_line/common/feature/land.rb
|
129
|
+
- lib/straight_line/common/git_commands.rb
|
130
|
+
- lib/straight_line/common/git_commands/commit.rb
|
131
|
+
- lib/straight_line/common/git_commands/config.rb
|
132
|
+
- lib/straight_line/common/git_commands/log.rb
|
133
|
+
- lib/straight_line/common/git_commands/merge.rb
|
134
|
+
- lib/straight_line/common/git_commands/pull.rb
|
135
|
+
- lib/straight_line/common/git_commands/push.rb
|
136
|
+
- lib/straight_line/common/git_commands/rebase.rb
|
137
|
+
- lib/straight_line/common/github.rb
|
138
|
+
- lib/straight_line/common/shell_error.rb
|
139
|
+
- lib/straight_line/common/user_error.rb
|
140
|
+
- lib/straight_line/common/util.rb
|
141
|
+
- lib/straight_line/tasks.rb
|
142
|
+
- lib/straight_line/tasks/feature/create.rb
|
143
|
+
- lib/straight_line/tasks/feature/diff.rb
|
144
|
+
- lib/straight_line/tasks/feature/land.rb
|
145
145
|
- straight_line.gemspec
|
146
146
|
homepage: https://github.com/chrisUsick/straight_line
|
147
147
|
licenses:
|
data/lib/tasks.rb
DELETED