thor_subtree 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/bin/subtree +2 -2
  2. data/thor_subtree.gemspec +1 -1
  3. metadata +3 -3
@@ -48,7 +48,7 @@ class Subtree < Thor
48
48
 
49
49
  end
50
50
 
51
- desc "extract BRANCH", "Extracts a plugin and pushes it to an upstream repo"
51
+ desc "extract REPO", "Extracts a plugin and pushes it to an upstream repo"
52
52
  method_options :plugin => :string, :branch => :string, :since => :string
53
53
  def extract(repo)
54
54
  branch_name = options[:branch] || parse_git(repo)
@@ -58,7 +58,7 @@ class Subtree < Thor
58
58
  run "git remote add #{branch_name} #{repo}"
59
59
  run "git fetch #{branch_name}"
60
60
 
61
- run "git subtree split --prefix=vendor/plugins/#{plugin_name} --branch #{branch_name}-master"
61
+ run "git subtree split --prefix=vendor/plugins/#{plugin_name} #{since_commit} --branch #{branch_name}-master"
62
62
  run "git push #{branch_name} #{branch_name}-master:master"
63
63
  run "git branch -D #{branch_name}-master"
64
64
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "thor_subtree"
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
 
8
8
  s.platform = Gem::Platform::RUBY
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor_subtree
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Bryant