blacklight_range_limit 6.2.1 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5916a36ea02f2dd5d7501af8c07d30a14c5427fa
4
- data.tar.gz: ed913a405d4e4e19bc8690b593da2477e6b9ec4a
3
+ metadata.gz: 8a27e85542c4335df749cb76a165762c5cdc38fe
4
+ data.tar.gz: 6e60a7ef7cb7d86647e8ebb3be7646ac12239016
5
5
  SHA512:
6
- metadata.gz: 2b60db139239efb69cf5cfea6c987a70393c181f5d1f399c4f1560f52d8dfa33ab27028d0cc16339d3dcb6610147b6360ff5bbea72a19b2912300586f805fd8b
7
- data.tar.gz: b8be8b220117fd159b788ce53630e6c4d77461b7d6eed384c5c72e4311b4f0b87b7e31586d35744a5a96e594e670b69c65f113a290821804af5487ba57cf9906
6
+ metadata.gz: 070e7fc8c3e8da294713841515bf16390538f2b2cad2065f38bb91135aac23f02a858f13b8e4123108321508f91711ff1fa0696c62d2f1c8bdeb634b3cb66831
7
+ data.tar.gz: 2814645e160bdd0f2af637c7409eaad5b495d77b90a70d3d005d067bfe67f2f3fd82f4a2f219cdd5d0812eb9d79b61478206819f8e6c3e751e873e10a79dbcb0
data/README.md CHANGED
@@ -142,6 +142,21 @@ start a demo jetty server, build a clean test app, and run tests.
142
142
 
143
143
  Just `bundle exec rake spec` to just run tests against an existing test app and jetty server.
144
144
 
145
+ ## Local Testing
146
+ If you want to iterate on a test locally and do not want to rebuild the
147
+ required test environment every time you run the test you can set up the
148
+ required server by first running:
149
+ ```bash
150
+ bundle exec rake test:server
151
+ ```
152
+
153
+ Now from another shell run your individual test as needed:
154
+ ```bash
155
+ bundle exec rspec spec/features/blacklight_range_limit_spec.rb
156
+ ```
157
+
158
+ Once you are done iterating on your test you will need to stop the application server with `Ctrl-C`.
159
+
145
160
  # Possible future To Do
146
161
 
147
162
  * StatsComponent replacement. We use StatsComponent to get min/max of result set, as well as missing count. StatsComponent is included on every non-drilldown request, so ranges and slider can be displayed. However, StatsComponent really can slow down the solr response with a large result set. So replace StatsComponent with other strategies. No ideal ones, we can use facet.missing to get missing count instead, but RSolr makes it harder than it should be to grab this info. We can use seperate solr queries to get min/max (sort on our field, asc and desc), but this is more complicated, more solr queries, and possibly requires redesign of AJAXy stuff, so even a lone slider can have min/max.
data/Rakefile CHANGED
@@ -31,4 +31,25 @@ namespace :test do
31
31
  system "rake blacklight_range_limit:seed"
32
32
  end
33
33
  end
34
+
35
+ desc 'Run Solr and Blacklight for interactive development'
36
+ task :server, [:rails_server_args] do |_t, args|
37
+ if File.exist? EngineCart.destination
38
+ within_test_app do
39
+ system "bundle update"
40
+ end
41
+ else
42
+ Rake::Task['engine_cart:generate'].invoke
43
+ end
44
+
45
+ SolrWrapper.wrap(port: '8983') do |solr|
46
+ solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path(File.dirname(__FILE__)), "solr", "conf")) do
47
+ Rake::Task['test:seed'].invoke
48
+
49
+ within_test_app do
50
+ system "bundle exec rails s #{args[:rails_server_args]}"
51
+ end
52
+ end
53
+ end
54
+ end
34
55
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.2.1
1
+ 6.3.0
@@ -67,7 +67,7 @@
67
67
  <%= render(:partial => "blacklight_range_limit/range_segments", :locals => {:solr_field => solr_field}) %>
68
68
 
69
69
  <% else %>
70
- <%= link_to('View distribution', search_state.to_h.merge(action: 'range_limit', range_field: solr_field, range_start: min, range_end: max), :class => "load_distribution") %>
70
+ <%= link_to('View distribution', main_app.url_for(search_state.to_h.merge(action: 'range_limit', range_field: solr_field, range_start: min, range_end: max)), :class => "load_distribution") %>
71
71
  <% end %>
72
72
  </div>
73
73
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_range_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1
4
+ version: 6.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-08 00:00:00.000000000 Z
12
+ date: 2017-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails