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.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/lib/bnb_blazer/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec69ad8a224fd546013b93951cfe9ce085159ed57ea2522501fad3d4cc6be414
|
4
|
+
data.tar.gz: 2ef7512602a4fa086133d42f853a75c38b457aaa274fc9375650b7c696af42fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
data/lib/bnb_blazer/version.rb
CHANGED
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.
|
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:
|
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:
|
26
|
+
version: 2.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sassc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|