snatch 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/snatch.rb +5 -1
- data/snatch.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/snatch.rb
CHANGED
@@ -72,8 +72,12 @@ private
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
+
def files_to_remove
|
76
|
+
Dir.glob(File.join(PUBLIC_PATH, '**/*')).reject { |path| path =~ %r{public/packaged/} }
|
77
|
+
end
|
78
|
+
|
75
79
|
def git_push
|
76
|
-
git :rm, "-rq --cached #{
|
80
|
+
git :rm, "-rq --cached #{files_to_remove}"
|
77
81
|
git :add, "public"
|
78
82
|
git :commit, "-q -m 'Automatic snatch'"
|
79
83
|
git :push, :silent => true
|
data/snatch.gemspec
CHANGED