lucid_works 0.6.25 → 0.6.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,15 +3,15 @@ en:
3
3
  activemodel:
4
4
  models:
5
5
  lucid_works:
6
+ activity:
7
+ one: Activity
8
+ other: Activities
9
+ type:
10
+ autocomplete: Generate autocompete index
11
+ click: Process click logs
12
+ optimize: Optimize index
13
+ spelling: Generate spellcheck index
6
14
  collection:
7
- activity:
8
- one: Activity
9
- other: Activities
10
- type:
11
- optimize: Optimize
12
- spelling: Spelling
13
- click: Click
14
- autocomplete: Autocomplete
15
15
  one: Collection
16
16
  other: Collections
17
17
  settings:
@@ -74,13 +74,13 @@ module LucidWorks
74
74
  def prime_activities
75
75
  self.activities!.sort!{|a,b|a.id <=> b.id}
76
76
  num_created = 0
77
- activities_to_return = %w(optimize spelling click autocomplete).map do |type|
77
+ activities_to_return = %w(optimize spelling autocomplete click).map do |type|
78
78
  if act = self.activities.detect{|act| act.type == type}
79
79
  act
80
80
  else
81
81
  num_created += 1
82
82
  start_time = Time.now.change(:min => 0) + num_created.hours
83
- self.create_activity(:type => type, :active => true, :start_time => start_time, :period => 1.days.seconds)
83
+ self.create_activity(:type => type, :active => false, :start_time => start_time, :period => 1.days.seconds)
84
84
  end
85
85
  end
86
86
  self.activities! if num_created > 0
@@ -49,18 +49,18 @@ module LucidWorks
49
49
  validates_numericality_of :max_bytes, :allow_blank => true
50
50
  validates_presence_of :url, :if => lambda { |d| d.type == 'web' }
51
51
 
52
- TYPES = %w{ external file logs web solrxml jdbc sharepoint }
52
+ TYPES = %w{ external file lucidworkslogs web solrxml jdbc sharepoint }
53
53
  BOUNDS = %w{ tree none }
54
54
  CRAWLERS = {
55
55
  # Later we may change these to be arrays if we decide to support more than one choice
56
56
  # e.g. :web => ['lucid.aperture', 'nutch']
57
- :file => 'lucid.aperture',
58
- :logs => 'lucid.logs',
59
- :external => 'lucid.external',
60
- :web => 'lucid.aperture',
61
- :solrxml => 'lucid.solrxml',
62
- :jdbc => 'lucid.jdbc',
63
- :sharepoint => 'lucid.gcm'
57
+ :file => 'lucid.aperture',
58
+ :lucidworkslogs => 'lucid.logs',
59
+ :external => 'lucid.external',
60
+ :web => 'lucid.aperture',
61
+ :solrxml => 'lucid.solrxml',
62
+ :jdbc => 'lucid.jdbc',
63
+ :sharepoint => 'lucid.gcm'
64
64
  }.with_indifferent_access
65
65
 
66
66
 
@@ -92,7 +92,7 @@ module LucidWorks
92
92
 
93
93
  def destroyable?
94
94
  # Don't let user destroy logs data source
95
- type != 'logs'
95
+ type != 'lucidworkslogs'
96
96
  end
97
97
 
98
98
  def crawlable?
@@ -1,3 +1,3 @@
1
1
  module LucidWorks
2
- VERSION = "0.6.25"
2
+ VERSION = "0.6.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_works
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.25
4
+ version: 0.6.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-05 00:00:00.000000000 -07:00
12
+ date: 2011-07-06 00:00:00.000000000 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- requirement: &2157085380 !ruby/object:Gem::Requirement
17
+ requirement: &2168719880 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157085380
25
+ version_requirements: *2168719880
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activemodel
28
- requirement: &2157084880 !ruby/object:Gem::Requirement
28
+ requirement: &2168719380 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '3'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2157084880
36
+ version_requirements: *2168719380
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rest-client
39
- requirement: &2157084420 !ruby/object:Gem::Requirement
39
+ requirement: &2168718920 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.6.1
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2157084420
47
+ version_requirements: *2168718920
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: json
50
- requirement: &2157084040 !ruby/object:Gem::Requirement
50
+ requirement: &2168718540 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2157084040
58
+ version_requirements: *2168718540
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rsolr
61
- requirement: &2157083580 !ruby/object:Gem::Requirement
61
+ requirement: &2168718080 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2157083580
69
+ version_requirements: *2168718080
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rsolr-ext
72
- requirement: &2157083160 !ruby/object:Gem::Requirement
72
+ requirement: &2168717660 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2157083160
80
+ version_requirements: *2168717660
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: nokogiri
83
- requirement: &2157082740 !ruby/object:Gem::Requirement
83
+ requirement: &2168717240 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,7 +88,7 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *2157082740
91
+ version_requirements: *2168717240
92
92
  description: Ruby wrapper for the LucidWorks REST API
93
93
  email:
94
94
  - sam.pierson@lucidimagination.com