activeadmin_blaze_theme 0.6.2 → 0.7.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: 518aa0e49e4ebfa6b2718b497a6683990494c424adaf549e1156944c052be689
4
- data.tar.gz: 350b4867688dc482374c10553de9ea6fb72edab920fa5e081e9f3a2f7bc12632
3
+ metadata.gz: 1418a94442dd12e46a6ffc132dbad6e4c90989c5a84c6f8823059e28126948e0
4
+ data.tar.gz: 2a6b16ebe865f37a752b7aea3d3b2bb2874963601c37b9c4dbc9febfa462655e
5
5
  SHA512:
6
- metadata.gz: b3927501b67e3a8c570f4c3ee9f388df1976c4d7bfb3ae8363679f2a22b9ea0278cbac26ef37863cfc55e069d46ed5bda70673948b60add087de73e78dfb00ad
7
- data.tar.gz: e7b31d8a52188434a1612f4554da805b91d52f7cd2506443c456470434de55a0878524c050bc3f1741055309c76d1589c74ba6a1e06acf79d07655d0309d9e62
6
+ metadata.gz: 509da409edafd11c8a69d1d7832bf126f34a68014c97ded5fbb91edca3efcad79a7c543182f981a3ddac786860c0eb7f27c34cc6265e4e75a119d81946960f89
7
+ data.tar.gz: 8cd4fc6fa5a2b97c81d8d35d062fa0ad5db37631eaaa89da97890bd0aecd540664b532ea66466b027b52f6a6b9dcebc3e4889abffc8ee27725395b65ec79d615
@@ -0,0 +1,26 @@
1
+ name: Specs
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ ruby: ['2.5', '2.6', '2.7']
16
+
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v2
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
25
+ - name: Run tests
26
+ run: bundle exec rake
data/README.md CHANGED
@@ -13,14 +13,27 @@ Features:
13
13
  See some [screenshots](#screenshots).
14
14
 
15
15
  ## Install
16
- - Add to your Gemfile: `gem 'activeadmin_blaze_theme'`
17
- - Execute bundle
16
+ - Add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
17
+
18
+ If you installed Active Admin **without** Webpacker support:
19
+
18
20
  - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
19
21
 
20
22
  ```scss
21
23
  @import "activeadmin_blaze_theme/theme";
22
24
  ```
23
25
 
26
+ If you are using Webpacker:
27
+
28
+ - Add the component to the _package.json_: `yarn add blocknotes/activeadmin_blaze_theme`
29
+ - Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
30
+
31
+ ```js
32
+ require('activeadmin_blaze_theme');
33
+ ```
34
+
35
+ - Sometimes it could be necessary to remove the _node_modules_ path a recreate it (`yarn install --check-files`), or to clean the tmp path: `bin/rails tmp:clear`
36
+
24
37
  ## Customize
25
38
  - To change colors add to your Active Admin styles (before **activeadmin_blaze_theme/theme** import):
26
39
 
@@ -1,4 +1,4 @@
1
- @import 'icomoon';
1
+ // @import 'icomoon';
2
2
  @import 'blaze/blaze';
3
3
 
4
4
  @import url('https://fonts.googleapis.com/css?family=Roboto');
data/index.js ADDED
@@ -0,0 +1,2 @@
1
+ // Styles
2
+ import 'activeadmin_blaze_theme/app/assets/stylesheets/activeadmin_blaze_theme/theme'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveAdminBlazeTheme
4
- VERSION = '0.6.2'
4
+ VERSION = '0.7.0'
5
5
  end
data/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "activeadmin_blaze_theme",
3
+ "version": "0.7.0",
4
+ "description": "A theme for Active Admin using Blaze CSS",
5
+ "author": "Mattia Roccoberton <mat@blocknot.es>",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/blocknotes/activeadmin_blaze_theme",
8
+ "main": "index.js",
9
+ "files": [
10
+ "app/**/*",
11
+ "index.js"
12
+ ]
13
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_blaze_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-21 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -189,7 +189,7 @@ executables:
189
189
  extensions: []
190
190
  extra_rdoc_files: []
191
191
  files:
192
- - ".circleci/config.yml"
192
+ - ".github/workflows/specs.yml"
193
193
  - ".gitignore"
194
194
  - ".rspec"
195
195
  - ".rubocop.yml"
@@ -275,10 +275,12 @@ files:
275
275
  - bin/rubocop
276
276
  - extra/edit.png
277
277
  - extra/index.png
278
+ - index.js
278
279
  - lib/activeadmin/views/activeadmin_form.rb
279
280
  - lib/activeadmin_blaze_theme.rb
280
281
  - lib/activeadmin_blaze_theme/version.rb
281
282
  - lib/formtastic/inputs/blaze_toggle_input.rb
283
+ - package.json
282
284
  - spec/dummy/.ruby-version
283
285
  - spec/dummy/.tool-versions
284
286
  - spec/dummy/Rakefile
@@ -375,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
377
  - !ruby/object:Gem::Version
376
378
  version: '0'
377
379
  requirements: []
378
- rubygems_version: 3.0.3
380
+ rubygems_version: 3.1.4
379
381
  signing_key:
380
382
  specification_version: 4
381
383
  summary: ActiveAdmin Blaze Theme
data/.circleci/config.yml DELETED
@@ -1,33 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ruby: circleci/ruby@0.1.2
4
-
5
- jobs:
6
- build:
7
- docker:
8
- - image: circleci/ruby:2.6.6-stretch-node-browsers
9
- executor: ruby/default
10
- steps:
11
- - checkout
12
- - restore_cache:
13
- key: gem-cache-{{ checksum "activeadmin_blaze_theme.gemspec" }}
14
- - run:
15
- name: Setup Bundler
16
- command: gem install bundler
17
- - run:
18
- name: Bundle Install
19
- command: bundle install --path vendor/bundle
20
- - save_cache:
21
- key: gem-cache-{{ checksum "activeadmin_blaze_theme.gemspec" }}
22
- paths: vendor/bundle
23
- - run:
24
- name: Run Specs
25
- command: |
26
- bin/rspec \
27
- --profile 10 \
28
- --format RspecJunitFormatter \
29
- --out test_results/rspec.xml \
30
- --format progress \
31
- $(circleci tests glob "spec/**/*_spec.rb")
32
- - store_test_results:
33
- path: test_results