Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.1.0

  • Loading branch information...
commit 1d72d95601193c1215f2d83a2acf5111e3c2c726 1 parent d95e422
@mpapis authored
View
5 CHANGELOG.md
@@ -1,5 +1,10 @@
# Changelog
+## 1.1.0
+date: 2012-08-291
+
+- add support for specifying owner of the `veewee` repository on command line.
+
## 1.0.0
date: 2012-05-23
View
4 README.md
@@ -10,7 +10,9 @@ Easily update templates in the installed veewee gem.
## Usage
- veewee-templates-update
+ veewee-templates-update {owner}
+
+- `{owner}` - optional owner of the `veewee` repository, by default `jedi4ever`.
## Uninstallation
View
2  bin/veewee-templates-update
@@ -2,4 +2,4 @@
require 'veewee-templates-updater'
-VeeweeTemplatesUpdater.new.run
+VeeweeTemplatesUpdater.new.run ARGV
View
9 lib/veewee-templates-updater.rb
@@ -20,8 +20,12 @@ def veewee_target(source)
File.join(veewee_spec.full_gem_path,source)
end
+ def user
+ @user ||= "jedi4ever"
+ end
+
def veewee_tarball_url
- "https://github.com/jedi4ever/veewee/tarball/master"
+ "https://github.com/#{user}/veewee/tarball/master"
end
def handle_entry(entry)
@@ -53,8 +57,9 @@ def parse_archive res
printf "\n"
end
- def run
+ def run args
veewee_spec || raise("Could not find veewee gem, install it first.")
+ @user = args[0] if args.length > 0
puts "Veewee: #{veewee_spec.full_gem_path}"
puts "Downloading: #{veewee_tarball_url}"
open(veewee_tarball_url) do |res|
View
2  veewee-templates-updater.gemspec
@@ -3,7 +3,7 @@
Gem::Specification.new do |s|
s.name = "veewee-templates-updater"
- s.version = "1.0.0"
+ s.version = "1.1.0"
s.author = "Michal Papis"
s.email = "mpapis@gmail.com"
s.homepage = "https://github.com/mpapis/veewee-templates-updater"
Please sign in to comment.
Something went wrong with that request. Please try again.