git-at 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e65073fbd58e9272dd40997a75e2fec80f4f9a2
4
- data.tar.gz: b61319ccc52dbabd77b99dd5408e15353b03c647
3
+ metadata.gz: 8000201fb237a95f8c53668cb9652c06a4db5e36
4
+ data.tar.gz: badc80b6f2c68c76f4947e81ef10a6c6daf52502
5
5
  SHA512:
6
- metadata.gz: 589820f25ff4d899dbf6d77953228efd584aa6ad2f6fb6c292494dc2741c63cb126929a97fee5ecae1d6606b42e46352edacf5d1fc28a2534304d91f10495df5
7
- data.tar.gz: c98b74eae170122a262ce33da674b5faa404a4101f60b98acc462288148813ea033e67490a8e515580067bae043a7978943f9cff849b96db45dddf794d5d0a5d
6
+ metadata.gz: 820926cbe12d0f50a741445f086fb6a8f05f60d8ce2b3a1d41cbed2cf93af0b04600fd8cab1896387c1522aa64841ba5ddc12bc5c3971a91a7696e98cdf0f09b
7
+ data.tar.gz: 6d39f0a664dcba4aaf719ae8ea3e3db463c27b2f9a5fd4a774420a3fe52d6383ec4d8070e535cda3e09f373c681e9677d32b89eccdf1b47daf70b1fb2ac5856c
data/bin/git-at CHANGED
@@ -1,8 +1,9 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env ruby
2
+ require "git/at"
2
3
 
3
- ruby_date=$1
4
- shift
4
+ ruby_date = ARGV.shift
5
5
 
6
- date=$(ruby -e "require 'git/at'; Git::At[$ruby_date]")
6
+ date = Git::At[eval(ruby_date)]
7
7
 
8
- GIT_COMMITTER_DATE="$date" git $* --date="$date"
8
+ ENV["GIT_COMMITTER_DATE"] = date
9
+ system "git #{ARGV.join(" ")} --date='#{date}'"
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module At
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/lib/git/at.rb CHANGED
@@ -4,7 +4,7 @@ require "active_support/all"
4
4
  module Git
5
5
  module At
6
6
  def self.[](date)
7
- print(date.strftime("%a %b %-d %H:%M:%S %Y %z"))
7
+ date.strftime("%a %b %-d %H:%M:%S %Y %z")
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-at
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fedorov