Luma1
(Luma)
May 17, 2010, 10:19am
1
I'm trying to install the validates_timeliness plugin:
on Ubuntu lucid in my rails project directory:
sudo ./script/plugin install git://github.com/adzap/validates_timeliness.git
./script/plugin: command not found
on windows (as admin) in my rails project directory:
ruby script/plugin install git://github.com/adzap/validates_timeliness.git
creates the "validates_timeliness" directory, but it's empty...
What's wrong?
Luma
Adam4
(Adam)
May 17, 2010, 12:52pm
2
On ubuntu, try it without sudo. Check that the script/plugin file has
execute bit set. Run
chmod u+x script/plugin
In any case it has nothing to do with the plugin. Have you installed
other plugins this way?
Try using the gem instead.
Luma1
(Luma)
May 17, 2010, 4:23pm
3
I've set script/plugin executable. It seems that plugins from github
can't be installed.
This works on ubuntu and similarly on windows:
./script/plugin install http://dev.rubyonrails.org/svn/rails/plugins/account_location/
works only on ubuntu:
./script/plugin install svn://rubyforge.org/var/svn/actionflow
The gem works, however I'm happier with plugins because other
developers of this project get it by svn update
Luma
Luma1
(Luma)
May 17, 2010, 4:26pm
4
"not working" means there's nothing happening:
user@ubuntu:~/project/src$ ./script/plugin install
http://github.com/adzap/validates_timeliness.git
user@ubuntu:~/project/src$
Luma1
(Luma)
May 17, 2010, 4:44pm
5
the same with
./script/plugin install git://github.com/adzap/validates_timeliness.git
11155
(-- --)
May 17, 2010, 4:54pm
6
Luma wrote:
"not working" means there's nothing happening:
user@ubuntu:~/project/src$ ./script/plugin install
GitHub - adzap/validates_timeliness: Date and time validation plugin for ActiveModel and Rails. Supports multiple ORMs and allows custom date/time formats.
user@ubuntu:~/project/src$
You need to install a Git client so the plugin installation script can
talk to the respository. I believe the Ubuntu package you want is
git-core.
Best,