lucid_works 0.7.18 → 0.9.4
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/.rvmrc +2 -3
- data/Gemfile +2 -8
- data/Gemfile.lock +45 -53
- data/README.rdoc +2 -6
- data/Rakefile +1 -1
- data/config/locales/en.yml +221 -239
- data/lib/lucid_works/activity.rb +8 -5
- data/lib/lucid_works/base.rb +27 -16
- data/lib/lucid_works/cache.rb +13 -0
- data/lib/lucid_works/cluster.rb +84 -0
- data/lib/lucid_works/collection/settings.rb +15 -6
- data/lib/lucid_works/collection.rb +62 -92
- data/lib/lucid_works/datasource/history.rb +2 -1
- data/lib/lucid_works/datasource/mapping.rb +12 -0
- data/lib/lucid_works/datasource/schedule.rb +5 -2
- data/lib/lucid_works/datasource/status.rb +3 -2
- data/lib/lucid_works/datasource.rb +31 -48
- data/lib/lucid_works/datasource_property.rb +2 -1
- data/lib/lucid_works/datasource_type.rb +14 -0
- data/lib/lucid_works/dynamicfield.rb +12 -0
- data/lib/lucid_works/elevation.rb +93 -0
- data/lib/lucid_works/exceptions.rb +0 -4
- data/lib/lucid_works/field.rb +31 -111
- data/lib/lucid_works/field_commons.rb +133 -0
- data/lib/lucid_works/gem_version.rb +1 -1
- data/lib/lucid_works/inflections.rb +3 -0
- data/lib/lucid_works/patch_time.rb +4 -0
- data/lib/lucid_works/request_handler.rb +16 -0
- data/lib/lucid_works/role.rb +23 -8
- data/lib/lucid_works/schema/attribute.rb +1 -1
- data/lib/lucid_works/schema/boolean_attribute.rb +1 -1
- data/lib/lucid_works/schema/integer_attribute.rb +3 -4
- data/lib/lucid_works/server/crawlers_status.rb +15 -0
- data/lib/lucid_works/server.rb +35 -14
- data/lib/lucid_works/simple_naming.rb +1 -7
- data/lib/lucid_works/synonym.rb +1 -1
- data/lib/lucid_works/version.rb +1 -0
- data/lib/lucid_works.rb +8 -1
- data/lucid_works.gemspec +8 -9
- data/spec/fixtures/zookeeper/clusterstate.json +30 -0
- data/spec/fixtures/zookeeper/clusterstate_broken_shard.json +29 -0
- data/spec/fixtures/zookeeper/live_nodes.json +28 -0
- data/spec/fixtures/zookeeper/live_nodes_no_children.json +26 -0
- data/spec/fixtures/zookeeper/live_nodes_one_child.json +36 -0
- data/spec/lib/lucid_works/base_spec.rb +33 -24
- data/spec/lib/lucid_works/cache_spec.rb +44 -0
- data/spec/lib/lucid_works/cluster_spec.rb +109 -0
- data/spec/lib/lucid_works/collection/activity_spec.rb +29 -0
- data/spec/lib/lucid_works/collection/prime_activities_spec.rb +1 -1
- data/spec/lib/lucid_works/collection/settings_spec.rb +31 -0
- data/spec/lib/lucid_works/collection_spec.rb +166 -107
- data/spec/lib/lucid_works/datasource/schedule_spec.rb +75 -46
- data/spec/lib/lucid_works/datasource/status_spec.rb +5 -5
- data/spec/lib/lucid_works/datasource_property_spec.rb +41 -0
- data/spec/lib/lucid_works/datasource_spec.rb +40 -12
- data/spec/lib/lucid_works/datasource_type_spec.rb +31 -0
- data/spec/lib/lucid_works/dynamicfield_spec.rb +214 -0
- data/spec/lib/lucid_works/elevation_spec.rb +175 -0
- data/spec/lib/lucid_works/field_spec.rb +52 -21
- data/spec/lib/lucid_works/fieldtype_spec.rb +0 -1
- data/spec/lib/lucid_works/request_handler_spec.rb +11 -0
- data/spec/lib/lucid_works/role_spec.rb +77 -0
- data/spec/lib/lucid_works/server/crawlers_status_spec.rb +21 -0
- data/spec/lib/lucid_works/server_spec.rb +123 -22
- data/spec/lib/lucid_works/{collection/synonym_spec.rb → synonym_spec.rb} +23 -22
- data/spec/lib/lucid_works/version_spec.rb +6 -0
- metadata +132 -64
- data/spec/lib/lucid_works/collection/acl_config_spec.rb +0 -212
data/.rvmrc
CHANGED
data/Gemfile
CHANGED
@@ -1,18 +1,12 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in lucid_works.gemspec
|
4
3
|
gemspec
|
5
4
|
|
6
5
|
group :development do
|
7
|
-
platforms :
|
8
|
-
|
9
|
-
end
|
10
|
-
platforms :ruby_19 do
|
11
|
-
gem 'ruby-debug19', :require => 'ruby-debug'
|
12
|
-
end
|
6
|
+
gem 'ruby-debug', :platforms => [:mri_18, :jruby]
|
7
|
+
gem 'ruby-debug19', :platforms => :mri_19
|
13
8
|
gem 'rspec'
|
14
9
|
gem 'autotest'
|
15
10
|
gem "autotest-fsevent"
|
16
11
|
gem 'timecop'
|
17
|
-
gem 'tzinfo'
|
18
12
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,76 +1,69 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lucid_works (0.
|
5
|
-
activemodel (>=
|
6
|
-
activesupport (>=
|
4
|
+
lucid_works (0.9.3)
|
5
|
+
activemodel (>= 4)
|
6
|
+
activesupport (>= 4)
|
7
7
|
json
|
8
8
|
nokogiri
|
9
|
-
rest-client (
|
10
|
-
rsolr
|
11
|
-
rsolr-ext
|
9
|
+
rest-client (= 1.6.7)
|
10
|
+
rsolr (= 1.0.9)
|
12
11
|
|
13
12
|
GEM
|
14
13
|
remote: http://rubygems.org/
|
15
14
|
specs:
|
16
|
-
ZenTest (4.
|
17
|
-
activemodel (
|
18
|
-
activesupport (=
|
19
|
-
builder (~>
|
20
|
-
|
21
|
-
|
22
|
-
|
15
|
+
ZenTest (4.8.1)
|
16
|
+
activemodel (4.0.0)
|
17
|
+
activesupport (= 4.0.0)
|
18
|
+
builder (~> 3.1.0)
|
19
|
+
activesupport (4.0.0)
|
20
|
+
i18n (~> 0.6, >= 0.6.4)
|
21
|
+
minitest (~> 4.2)
|
22
|
+
multi_json (~> 1.3)
|
23
|
+
thread_safe (~> 0.1)
|
24
|
+
tzinfo (~> 0.3.37)
|
25
|
+
atomic (1.1.10-java)
|
23
26
|
autotest (4.4.6)
|
24
27
|
ZenTest (>= 4.4.1)
|
25
|
-
autotest-fsevent (0.2.
|
28
|
+
autotest-fsevent (0.2.8)
|
26
29
|
sys-uname
|
27
|
-
builder (
|
28
|
-
columnize (0.3.
|
29
|
-
diff-lcs (1.1.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
nokogiri (1.
|
38
|
-
|
30
|
+
builder (3.1.4)
|
31
|
+
columnize (0.3.6)
|
32
|
+
diff-lcs (1.1.3)
|
33
|
+
ffi (1.1.0-java)
|
34
|
+
i18n (0.6.4)
|
35
|
+
json (1.8.0-java)
|
36
|
+
mime-types (1.23)
|
37
|
+
mini_portile (0.5.1)
|
38
|
+
minitest (4.7.5)
|
39
|
+
multi_json (1.7.7)
|
40
|
+
nokogiri (1.6.0-java)
|
41
|
+
mini_portile (~> 0.5.0)
|
39
42
|
rest-client (1.6.7)
|
40
43
|
mime-types (>= 1.16)
|
41
|
-
rsolr (1.0.
|
44
|
+
rsolr (1.0.9)
|
42
45
|
builder (>= 2.1.2)
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
rspec-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
rspec-
|
51
|
-
diff-lcs (~> 1.1.2)
|
52
|
-
rspec-mocks (2.5.0)
|
46
|
+
rspec (2.11.0)
|
47
|
+
rspec-core (~> 2.11.0)
|
48
|
+
rspec-expectations (~> 2.11.0)
|
49
|
+
rspec-mocks (~> 2.11.0)
|
50
|
+
rspec-core (2.11.1)
|
51
|
+
rspec-expectations (2.11.1)
|
52
|
+
diff-lcs (~> 1.1.3)
|
53
|
+
rspec-mocks (2.11.1)
|
53
54
|
ruby-debug (0.10.4)
|
54
55
|
columnize (>= 0.1)
|
55
56
|
ruby-debug-base (~> 0.10.4.0)
|
56
|
-
ruby-debug-base (0.10.4)
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
ruby_core_source (>= 0.1.4)
|
62
|
-
ruby-debug19 (0.11.6)
|
63
|
-
columnize (>= 0.3.1)
|
64
|
-
linecache19 (>= 0.5.11)
|
65
|
-
ruby-debug-base19 (>= 0.11.19)
|
66
|
-
ruby_core_source (0.1.5)
|
67
|
-
archive-tar-minitar (>= 0.5.2)
|
68
|
-
sys-uname (0.8.5)
|
57
|
+
ruby-debug-base (0.10.4-java)
|
58
|
+
sys-uname (0.9.0)
|
59
|
+
ffi (>= 1.0.0)
|
60
|
+
thread_safe (0.1.2-java)
|
61
|
+
atomic
|
69
62
|
timecop (0.3.5)
|
70
|
-
tzinfo (0.3.
|
63
|
+
tzinfo (0.3.37)
|
71
64
|
|
72
65
|
PLATFORMS
|
73
|
-
|
66
|
+
java
|
74
67
|
|
75
68
|
DEPENDENCIES
|
76
69
|
autotest
|
@@ -80,4 +73,3 @@ DEPENDENCIES
|
|
80
73
|
ruby-debug
|
81
74
|
ruby-debug19
|
82
75
|
timecop
|
83
|
-
tzinfo
|
data/README.rdoc
CHANGED
@@ -144,7 +144,7 @@ Collection has_many :datasources. Datasources are modeled using the LucidWorks:
|
|
144
144
|
collection.datasource(123) -> a single LucidWorks::Datasource
|
145
145
|
|
146
146
|
datasource = collection.create_datasource(
|
147
|
-
:crawler =>
|
147
|
+
:crawler => 'lucid.aperture',
|
148
148
|
:type => 'web',
|
149
149
|
:name => "example.com",
|
150
150
|
:url => "http://example.com/",
|
@@ -279,13 +279,9 @@ However eventually this strategy hit a brick wall that would have been extremely
|
|
279
279
|
|
280
280
|
Given the design of ActiveResource these would have been expensive to implement and it became simpler to just write a simple ORM by marrying ActiveModel and RestClient.
|
281
281
|
|
282
|
-
== Maintainers
|
283
|
-
|
284
|
-
* Sam Pierson (http://github.com/sampierson)
|
285
|
-
|
286
282
|
== License
|
287
283
|
|
288
|
-
Copyright
|
284
|
+
Copyright 2012 Lucid Imagination
|
289
285
|
http://lucidimagination.com
|
290
286
|
|
291
287
|
Licensed under the Apache License, Version 2.0 (the "License");
|
data/Rakefile
CHANGED