lucid_works 0.6.11 → 0.6.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -41,7 +41,7 @@ This single statement (note the periods) will connect to a LucidWorks server run
41
41
  create_datasource(:name => 'cnn',
42
42
  :crawler => 'lucid.aperture', :type => 'web',
43
43
  :url => 'http://cnn.com', :crawl_depth => '1').
44
- start_crawl
44
+ start_crawl!
45
45
 
46
46
  Now, how does it work:
47
47
 
@@ -67,6 +67,7 @@ The LucidWorks object model looks something like this:
67
67
  | +- Query -+- Summary
68
68
  |
69
69
  +- Crawlers
70
+ +- Version
70
71
 
71
72
  This is what has been modeled so far. The actual REST API is more extensive.
72
73
 
@@ -98,7 +98,7 @@ module LucidWorks
98
98
 
99
99
  def crawlable?
100
100
  # Don't let user schedule crawl of 'lwelogs'
101
- !%w{ external lwelogs }.include?(type)
101
+ !%w{ external }.include?(type)
102
102
  end
103
103
 
104
104
  def start_crawl!
@@ -7,6 +7,7 @@ module LucidWorks
7
7
 
8
8
  has_many :collections, :crawlers
9
9
  has_one :logs, :has_content => false
10
+ has_one :version
10
11
 
11
12
  DEFAULT_REST_API_PATH = "/api"
12
13
 
@@ -1,3 +1,6 @@
1
1
  module LucidWorks
2
- VERSION = "0.6.11"
2
+ VERSION = "0.6.12"
3
+
4
+ class Version < Base
5
+ end
3
6
  end
data/lib/lucid_works.rb CHANGED
@@ -52,5 +52,6 @@ require 'lucid_works/logs/query'
52
52
  require 'lucid_works/logs/query/summary'
53
53
  require 'lucid_works/logs/index'
54
54
  require 'lucid_works/logs/index/summary'
55
+ require 'lucid_works/version'
55
56
 
56
57
  I18n.load_path += Dir.glob(File.join(File.dirname(__FILE__), '..', 'config', 'locales', '*.yml'))
data/lucid_works.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "lucid_works/version"
3
+ require "lucid_works" # load all of LucidWorks as lucid_works/version.rb contains a model too
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "lucid_works"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: lucid_works
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.11
5
+ version: 0.6.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sam Pierson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-24 00:00:00 -07:00
13
+ date: 2011-05-27 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency