luma
May 17, 2010, 12:20pm
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
luma
May 17, 2010, 2:54pm
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.
luma
May 17, 2010, 6:25pm
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
luma
May 17, 2010, 6:36pm
4
“not working” means there’s nothing happening:
user@ubuntu:~/project/src$ ./script/plugin install
user@ubuntu:~/project/src$
luma
May 17, 2010, 6:54pm
5
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,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
luma
May 17, 2010, 6:45pm
7
the same with
./script/plugin install git://github.com/adzap/validates_timeliness.git