blacklight_lando 0.2.1 → 0.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
  SHA256:
3
- metadata.gz: c0a15bf9b2f3ad34326ff143d47ca2533281ab7385ebaf9b7852de17acfa7e0e
4
- data.tar.gz: 75207c13914183bd17bb472474f8a0136856381da6726d336f171ca499e8f904
3
+ metadata.gz: eb0adea4f04fee66835a254ccaaaf0bebf71f046e440b3e3aafb0b2c37c36aca
4
+ data.tar.gz: 5887dacf7183092459c53904a8ffe8e45cda2c20a7c9125102729aace8e0a56d
5
5
  SHA512:
6
- metadata.gz: c544b5c0f541d514efe44186f8ed9c5891238ebbbebccd5fb31744756310faec3eaa954a7a084e6c45e9d7c04e1454be41632244a8670c93e3589c0f49585712
7
- data.tar.gz: 43eb5f6a63ab6eed1c0bbab1a13460c4aac105423608ec854b81bef3b8f8cb95ad72f208e0605f34f52befd791c41e00fa1223de755dcb6541c024451b704465
6
+ metadata.gz: 299882ca76e0b7c5af762798f8dee3a4e090bba52daa9a6b8d1b529ae9049c0e9b9ff1c27e6a8cff925416afdfbc1315da5d2af389010c8811f86d69e8c2cce9
7
+ data.tar.gz: 81ca4e608ecd207cf6f1302b692c457017bad092d26062314205d6cb9e465d0b76b5ba6beaf110077af06a45aedf19b4dde9cbea043d80e282fbe88bc3732152
data/CHANGELOG.md CHANGED
@@ -4,8 +4,11 @@
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.
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"
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.0"
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,23 @@
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
+ database:
17
+ type: postgres:15
18
+ portforward: true
19
+ proxy:
20
+ test_solr:
21
+ - blacklight.test.solr.lndo.site:8983
22
+ development_solr:
23
+ - 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.0
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