bnb_blazer 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -1
  3. data/lib/bnb_blazer/version.rb +1 -1
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37a304cbb84b480b5cc6e7aff4cc09ae7bccd7fcb69b24779ce82af9fa7dff99
4
- data.tar.gz: 7c0074350b120fef42441b6254245798f2bcbf9edc342e76ad3d403356847864
3
+ metadata.gz: ec69ad8a224fd546013b93951cfe9ce085159ed57ea2522501fad3d4cc6be414
4
+ data.tar.gz: 2ef7512602a4fa086133d42f853a75c38b457aaa274fc9375650b7c696af42fd
5
5
  SHA512:
6
- metadata.gz: a2550fe50da2290c30a6dfd44c01bf0b68dd14d6aba5fab1c0b8dafd6b9bc690af877ff6c8954aadb5f2af04e51d8b2918f7d418e3c01087c3612c30648d77fa
7
- data.tar.gz: e4ad811a0790159ee7d3f426f33f74be31cd5c74c3ae3db5eab2f10494eea641c4a2c1c38812b5b8d4a3f397b50c5b049ff21dddcca7d7cb9e171ea973d5fe0c
6
+ metadata.gz: 8fe611e118599d7b7dd1fa1c423c27dbac658298517ba1970e11a4153d5de39f2978f5f088a9197ab332e096d68d2248a84edb2494fda578edfd680b1b4b97a6
7
+ data.tar.gz: '081328ec4ff145acef6530b9fe07bd4d408e409f494e3f6b44532c2c7195fe0909376f3262092217aad4b2e0bf41dc0ccf1bb022172ebd50a786f4bc940b38d1'
data/README.md CHANGED
@@ -15,8 +15,23 @@ gem "bnb_blazer"
15
15
  ```
16
16
 
17
17
  And then execute:
18
+ ```
19
+ dip bundle install
20
+ ```
21
+
22
+ Follow the [Blazer installation instructions](https://github.com/ankane/blazer#installation) to configure the gem and add any custom configuration, _except_ you don't need to add `gem "blazer"`, since that's a dependency of this gem. At minimum, you will need to run:
18
23
 
19
- $ bundle install
24
+ ```
25
+ dip rails generate blazer:install
26
+ dip rails db:migrate
27
+ ```
28
+
29
+ And mount the dashboard in your config/routes.rb:
30
+
31
+ ```
32
+ mount Blazer::Engine, at: "blazer"
33
+ ```
34
+ And specify your `BLAZER_DATABASE_URL`
20
35
 
21
36
  ## Development
22
37
 
@@ -26,6 +41,7 @@ This gem comes bundled with a test app to help you test out new display designs
26
41
  2. Make sure you have [Dip](https://github.com/brandnewbox/bnb-dip-defaults) installed and configured
27
42
  3. Run `dip setup`
28
43
  4. In your new `bnb_blazer` directory, run `docker-compose up`
44
+ 5. Uncomment the `mount Blazer::Engine, at: "/blazer"` line in your `config/routes.rb` file.
29
45
  5. Navigate to http://localhost:3000/blazer in your browser, and away you go!
30
46
 
31
47
  For the work of actually overriding the gem, Rails will load any view that we have defined in the `app/views` (not `spec/dummy/app/views`) folder before looking for them in the blazer gem. So any view that we want to override or restyle you just have to create at the same location as it would be found in the blazer gem. E.g. the homepage view for blazer is found at `app/views/blazer/queries/home.html.erb`, so if we want to override what the homepage looks like in our gem then we create a new view at `app/views/blazer/queries/home.html.erb` and copy the existing HTML from the gem and make modifications as necessary.
@@ -1,3 +1,3 @@
1
1
  module BnbBlazer
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bnb_blazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe
@@ -14,16 +14,16 @@ dependencies:
14
14
  name: blazer
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '2.4'
19
+ version: 2.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '2.4'
26
+ version: 2.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sassc
29
29
  requirement: !ruby/object:Gem::Requirement