blacklight_lando 0.2.1 → 0.3.1

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
  SHA256:
3
- metadata.gz: c0a15bf9b2f3ad34326ff143d47ca2533281ab7385ebaf9b7852de17acfa7e0e
4
- data.tar.gz: 75207c13914183bd17bb472474f8a0136856381da6726d336f171ca499e8f904
3
+ metadata.gz: d43b4d912e26a821876dc4a094f9df32dae6b1c6830c9e55f3426b7a814ae68e
4
+ data.tar.gz: 345e7a9623ee08972d10390efe7ad6b64ee5b3f6edf4642eab168eeb1d289486
5
5
  SHA512:
6
- metadata.gz: c544b5c0f541d514efe44186f8ed9c5891238ebbbebccd5fb31744756310faec3eaa954a7a084e6c45e9d7c04e1454be41632244a8670c93e3589c0f49585712
7
- data.tar.gz: 43eb5f6a63ab6eed1c0bbab1a13460c4aac105423608ec854b81bef3b8f8cb95ad72f208e0605f34f52befd791c41e00fa1223de755dcb6541c024451b704465
6
+ metadata.gz: f5e062e07290e6cd9c7811ad10d32ca94954c8f994fe99a81d1ad4de5030c2493b3c16df5a96b176e48a94e7d56b5a317ecd63a54e6aedf7fc7535df6bd23437
7
+ data.tar.gz: 8da7f26da5b7e9e9ae3b1922db33534e082c2b4afa80a90a1a482c370cf893e2f26d58c9c4c800730fd84aa3798fa58d8e7755dedc4d478b79db3e1ec0440a0d
data/CHANGELOG.md CHANGED
@@ -4,8 +4,14 @@
4
4
 
5
5
  - Initial release
6
6
 
7
- ## [0.2.0] - 2024-02-21
7
+ ## [0.2.0] - 2024-02-26
8
8
  - Add postgresql
9
9
 
10
- ## [0.2.1] - 2024-02-21
11
- - Add pg gem to Gemfile
10
+ ## [0.2.1] - 2024-02-27
11
+ - Add pg gem to Gemfile
12
+
13
+ ## [0.3.0] - 2024-02-28
14
+ - Split the generators into a solr-only one and a solr and postgresql one. The Postgresql generator isn't working properly, so I need to use the solr-only one for a workshop.
15
+
16
+ ## [0.3.1] - 2024-02-28
17
+ - Bug fix
data/README.md CHANGED
@@ -9,13 +9,14 @@ This gem creates a [Lando](https://lando.dev/) config file for running [Solr](ht
9
9
  ## Installation
10
10
  1. Add this gem to the `Gemfile` of your Blacklight application:
11
11
  ```
12
- gem "blacklight_lando", "~> 0.2"
12
+ gem "blacklight_lando", "~> 0.3.0"
13
13
  ```
14
14
  2. Run `bundle install`
15
- 3. Run `rails generate blacklight_lando:lando`
15
+ 3. Run `rails generate blacklight_lando:run_solr`
16
16
  4. Start lando: `lando start`
17
17
  5. Start blacklight as normal: `bundle exec rails s`
18
18
 
19
+ Your application should now be running against the instance of solr that lando is running in a docker container.
19
20
 
20
21
  ## Usage
21
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlacklightLando
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.1"
5
5
  end
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "blacklight_lando/version"
4
- require_relative "generators/lando_generator"
4
+ require_relative "generators/run_solr"
5
+ require_relative "generators/run_solr_and_postgresql"
5
6
 
6
7
  # Configure a Blacklight application to use Lando for Solr and Postresql
7
8
  module BlacklightLando
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/generators"
4
+ module BlacklightLando
5
+ # Generator for adding lando to a blacklight application and
6
+ # configuring it to use Solr
7
+ class RunSolr < Rails::Generators::Base
8
+ source_root ::File.expand_path("templates", __dir__)
9
+
10
+ # rubocop:disable Naming/HeredocDelimiterNaming
11
+ desc <<-EOF
12
+ This generator makes the following changes to your application:
13
+ 1. Adds .lando.yml to your application
14
+ 2. Adds lando_env.rb to your application and includes it in application.rb
15
+ 3. Copies lando-configured config/blacklight.yml into your application
16
+ EOF
17
+ # rubocop:enable Naming/HeredocDelimiterNaming
18
+
19
+ def create_lando_config
20
+ copy_file ".lando_solr.yml", ".lando.yml"
21
+ copy_file "lando_env.rb", "config/initializers/lando_env.rb"
22
+ copy_file "blacklight.yml", "config/blacklight.yml"
23
+ end
24
+ end
25
+ end
@@ -3,7 +3,7 @@
3
3
  require "rails/generators"
4
4
  module BlacklightLando
5
5
  # Generator for adding lando to a blacklight application
6
- class LandoGenerator < Rails::Generators::Base
6
+ class RunSolrAndPostgresql < Rails::Generators::Base
7
7
  source_root ::File.expand_path("templates", __dir__)
8
8
 
9
9
  # rubocop:disable Naming/HeredocDelimiterNaming
@@ -32,7 +32,7 @@ module BlacklightLando
32
32
  end
33
33
 
34
34
  def create_lando_config
35
- copy_file ".lando.yml"
35
+ copy_file ".lando_solr_and_postgresql.yml", ".lando.yml"
36
36
  copy_file "lando_env.rb", "config/initializers/lando_env.rb"
37
37
  copy_file "blacklight.yml", "config/blacklight.yml"
38
38
  copy_file "database.yml", "config/database.yml"
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: blacklight
3
+ services:
4
+ test_solr:
5
+ type: solr:8.4
6
+ portforward: true
7
+ core: blacklight-core-test
8
+ config:
9
+ dir: "solr/conf"
10
+ development_solr:
11
+ type: solr:8.4
12
+ portforward: true
13
+ core: blacklight-core-dev
14
+ config:
15
+ dir: "solr/conf"
16
+ proxy:
17
+ test_solr:
18
+ - blacklight.test.solr.lndo.site:8983
19
+ development_solr:
20
+ - blacklight.dev.solr.lndo.site:8983
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_lando
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bess Sadler
@@ -99,8 +99,10 @@ files:
99
99
  - Rakefile
100
100
  - lib/blacklight_lando.rb
101
101
  - lib/blacklight_lando/version.rb
102
- - lib/generators/lando_generator.rb
103
- - lib/generators/templates/.lando.yml
102
+ - lib/generators/run_solr.rb
103
+ - lib/generators/run_solr_and_postgresql.rb
104
+ - lib/generators/templates/.lando_solr.yml
105
+ - lib/generators/templates/.lando_solr_and_postgresql.yml
104
106
  - lib/generators/templates/blacklight.yml
105
107
  - lib/generators/templates/database.yml
106
108
  - lib/generators/templates/lando_env.rb