acts_as_ferret 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +16 -29
- data/acts_as_ferret.gemspec +3 -3
- data/bin/aaf_install +11 -6
- data/lib/instance_methods.rb +1 -1
- metadata +3 -3
data/README
CHANGED
@@ -13,45 +13,32 @@ http://j-k.lighthouseapp.com/projects/45560-acts-as-ferret
|
|
13
13
|
|
14
14
|
== Installation
|
15
15
|
|
16
|
-
Aaf is available via git from
|
17
|
-
tarball downloads, check out
|
16
|
+
Aaf is available as a gem (gem install acts_as_ferret), or via git from github.com.
|
17
|
+
Github also offers tarball downloads, check out
|
18
|
+
http://github.com/jkraemer/acts_as_ferret/tree/master .
|
18
19
|
|
19
|
-
===
|
20
|
+
=== Set up your Rails > 2.1 project to use the acts_as_ferret gem.
|
20
21
|
|
21
|
-
Add this to your
|
22
|
+
Add this to your project's config/environment.rb:
|
22
23
|
|
23
|
-
<tt>config.gem 'acts_as_ferret', :version => '~> 0.4.
|
24
|
+
<tt>config.gem 'acts_as_ferret', :version => '~> 0.4.7'</tt>
|
24
25
|
|
25
|
-
|
26
|
+
With Rails 3 of course instead you have to update your Gemfile, but I guess you already knew that ;-)
|
27
|
+
With the gem installed, change into your RAILS_ROOT and run the supplied aaf_install script.
|
28
|
+
This will copy rake tasks, capistrano recipes and the ferret server config and startup script
|
29
|
+
into your project.
|
26
30
|
|
27
|
-
|
31
|
+
In order to have the capistrano recipe loaded you'll have to patch your Capfile a bit. I use to have
|
32
|
+
a line like that in my Capfiles, loading everything found below RAILS_ROOT/lib/recipes:
|
28
33
|
|
29
|
-
|
30
|
-
|
31
|
-
script/plugin install git://github.com/jkraemer/acts_as_ferret.git
|
32
|
-
|
33
|
-
The rubyforge repository is located at git://rubyforge.org/actsasferret.git
|
34
|
-
|
35
|
-
=== Old SVN repository
|
34
|
+
<tt>Dir['lib/recipes/**/*.rb'].each { |plugin| load(plugin) }</tt>
|
36
35
|
|
37
|
-
In november 2008 I stopped updating the svn repository that has been the main
|
38
|
-
repository for aaf for several years. In case you want to retrieve any of the
|
39
|
-
older versions of the plugin, it's still there at
|
40
36
|
|
41
|
-
|
42
|
-
|
43
|
-
=== System-wide installation with Rubygems
|
44
|
-
|
45
|
-
<tt>sudo gem install acts_as_ferret</tt>
|
46
|
-
|
47
|
-
To use acts_as_ferret in your project, add the following line to the end of your
|
48
|
-
project's config/environment.rb:
|
37
|
+
=== Installation inside your Rails project via script/plugin
|
49
38
|
|
50
|
-
|
39
|
+
script/plugin install git://github.com/jkraemer/acts_as_ferret.git
|
51
40
|
|
52
|
-
|
53
|
-
directory to install the sample config file and the drb server start/stop
|
54
|
-
script.
|
41
|
+
No additional setup needed.
|
55
42
|
|
56
43
|
|
57
44
|
== Usage
|
data/acts_as_ferret.gemspec
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 7
|
9
|
+
version: 0.4.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jens Kraemer
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-06 13:50:00 +02:00
|
18
18
|
default_executable: aaf_install
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
data/bin/aaf_install
CHANGED
@@ -5,20 +5,25 @@ require 'fileutils'
|
|
5
5
|
|
6
6
|
@basedir = File.join(File.dirname(__FILE__), '..')
|
7
7
|
|
8
|
-
def install(
|
9
|
-
puts "Installing: #{
|
10
|
-
|
8
|
+
def install(src, target_dir, executable=false)
|
9
|
+
puts "Installing: #{src}"
|
10
|
+
src = File.join(@basedir, src)
|
11
|
+
fname = File.basename(src)
|
12
|
+
target = File.join(target_dir, fname)
|
11
13
|
if File.exists?(target)
|
12
14
|
puts "#{target} already exists, skipping"
|
13
15
|
else
|
14
|
-
FileUtils.
|
16
|
+
FileUtils.mkdir_p target_dir
|
17
|
+
FileUtils.cp src, target
|
15
18
|
FileUtils.chmod 0755, target if executable
|
16
19
|
end
|
17
20
|
end
|
18
21
|
|
19
22
|
|
20
|
-
install 'script', '
|
21
|
-
install 'config', '
|
23
|
+
install 'script/ferret_server', 'script', true
|
24
|
+
install 'config/ferret_server.yml', 'config'
|
25
|
+
install 'tasks/ferret.rake', 'lib/tasks'
|
26
|
+
install 'recipes/aaf_recipes.rb', 'lib/recipes'
|
22
27
|
|
23
28
|
puts IO.read(File.join(@basedir, 'README'))
|
24
29
|
|
data/lib/instance_methods.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 7
|
9
|
+
version: 0.4.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jens Kraemer
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-06 13:50:00 +02:00
|
18
18
|
default_executable: aaf_install
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|