pageflow-progress-navigation-bar 1.7.0 → 1.9.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: cf06426b17ba444d42299f2943c94c7c75984c68e00a9a98401ca4df592036d2
4
- data.tar.gz: 21ca0c8f998db2699389c30a40a1743764b8d7241f7166335c2c85d52e37fd35
3
+ metadata.gz: 6eb22373dc1f73fdf2adf72e53cb40ba461180c85b647d1f5b0951dc4cfb71bc
4
+ data.tar.gz: bf3b3122d2ccf3d879addc56189c2a7d57ec8ef40b4d026478898e2e9acbab2a
5
5
  SHA512:
6
- metadata.gz: 6642b276844f2840532a6798e96a2ccf69670443bf7911cd77c99059e4127e7861bb92c39f429d18b8273b87123153dd0b842a20bab12c97f69f496eb7367edc
7
- data.tar.gz: 36c3a96f76318fb727ce9cd2935d1e6bd3b126b316ec11f9a8c20c74f9b7e143720da5f41a35307fb6d0d2ffc5f6f842c26aa8acb6ec2ee8fb1af4ae28d67c03
6
+ metadata.gz: d90d62528693460e34ba6828e8cd435f6990d85e8a7052c14bd1f8df8858df3bb82ce29abc7b529211081033e2503f66bf74820cbb584cbb865567685b055f47
7
+ data.tar.gz: 71a2aa94276566365264ae9ce263d692769c0b5f1014b5823a74f2b9b036c586a272ee0a4081f74aab3f1efaaf1e37e961e931845a6b4a20730f9bfc6f56f31f
data/CHANGELOG.md CHANGED
@@ -1,14 +1,17 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.7.0
3
+ ### Version 1.9.0
4
4
 
5
- 2021-06-07
5
+ 2024-01-15
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/1-6-stable...v1.7.0)
7
+ [Compare changes](https://github.com/codevise/pageflow-progress-navigation-bar/compare/1-8-stable...v1.9.0)
8
8
 
9
- - Add theme option to use custom indicator image
10
- ([#47](https://github.com/codevise/pageflow-progress-navigation-bar/pull/47))
9
+ - Support Pageflow 17
10
+ ([#51](https://github.com/codevise/pageflow-progress-navigation-bar/pull/51),
11
+ [#50](https://github.com/codevise/pageflow-progress-navigation-bar/pull/50))
12
+ - Add theme option to hide chapter number in page detail boxes
13
+ ([#49](https://github.com/codevise/pageflow-progress-navigation-bar/pull/49))
11
14
 
12
15
  See
13
- [1-6-stable branch](https://github.com/codevise/pageflow-progress-navigation-bar/blob/1-6-stable/CHANGELOG.md)
16
+ [1-8-stable branch](https://github.com/codevise/pageflow-progress-navigation-bar/blob/1-8-stable/CHANGELOG.md)
14
17
  for previous changes.
@@ -23,6 +23,9 @@ $progress-navigation-bar-menu-box-border-color: $navigation-menu-box-border-colo
23
23
  /// Text color of chapter title. Use `$navigation-menu-box-text-color` if not defined.
24
24
  $progress-navigation-bar-menu-box-chapter-title-color: $navigation-menu-box-text-color !default;
25
25
 
26
+ /// Display chapter number above chapter title in page detail
27
+ $progress-navigation-bar-menu-box-chapter-number-visibility: visible !default;
28
+
26
29
  /// Pictogram visibility.
27
30
  $progress-navigation-bar-pictogram-visibility: $standard-page-pictogram-visibility !default;
28
31
 
@@ -39,4 +42,10 @@ $progress-navigation-bar-pictogram-visibility: $standard-page-pictogram-visibili
39
42
  .chapter_title {
40
43
  color: $progress-navigation-bar-menu-box-chapter-title-color;
41
44
  }
45
+
46
+ @if $progress-navigation-bar-menu-box-chapter-number-visibility == hidden {
47
+ .chapter > .chapter_number {
48
+ display: none;
49
+ }
50
+ }
42
51
  }
@@ -5,7 +5,21 @@ module Pageflow
5
5
  class Engine < Rails::Engine
6
6
  isolate_namespace Pageflow::ProgressNavigationBar
7
7
 
8
- config.autoload_paths << File.join(config.root, 'lib')
8
+ if Rails.respond_to?(:autoloaders)
9
+ lib = root.join('lib')
10
+
11
+ config.autoload_paths << lib
12
+ config.eager_load_paths << lib
13
+
14
+ initializer 'pageflow_progress_navigation_bar.autoloading' do
15
+ Rails.autoloaders.main.ignore(
16
+ lib.join('pageflow-progress-navigation-bar.rb'),
17
+ lib.join('pageflow/progress_navigation_bar/version.rb')
18
+ )
19
+ end
20
+ else
21
+ config.autoload_paths << File.join(config.root, 'lib')
22
+ end
9
23
  end
10
24
  end
11
25
  end
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module ProgressNavigationBar
3
- VERSION = '1.7.0'.freeze
3
+ VERSION = '1.9.0'.freeze
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require 'pageflow/progress_navigation_bar/engine'
2
+ require 'pageflow/progress_navigation_bar/version'
2
3
 
3
4
  module Pageflow
4
5
  module ProgressNavigationBar
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^spec/})
17
17
  spec.require_paths = ['lib']
18
18
 
19
- spec.required_ruby_version = '~> 2.1'
19
+ spec.required_ruby_version = '>= 2.1'
20
20
 
21
- spec.add_runtime_dependency 'pageflow', '~> 15.x'
21
+ spec.add_runtime_dependency 'pageflow', ['>= 15.0', '< 18']
22
22
  spec.add_runtime_dependency 'pageflow-public-i18n', '~> 1.0'
23
23
 
24
- spec.add_development_dependency 'bundler', '>=1.0', '<3.0'
24
+ spec.add_development_dependency 'bundler', '>= 1.0', '< 3.0'
25
25
  spec.add_development_dependency 'rake', '~> 12.0'
26
26
 
27
27
  # Semantic versioning rake tasks
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-progress-navigation-bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2024-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 15.x
19
+ version: '15.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '18'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '15.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 15.x
32
+ version: '18'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: pageflow-public-i18n
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -145,7 +151,7 @@ require_paths:
145
151
  - lib
146
152
  required_ruby_version: !ruby/object:Gem::Requirement
147
153
  requirements:
148
- - - "~>"
154
+ - - ">="
149
155
  - !ruby/object:Gem::Version
150
156
  version: '2.1'
151
157
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -154,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
160
  - !ruby/object:Gem::Version
155
161
  version: '0'
156
162
  requirements: []
157
- rubygems_version: 3.0.8
163
+ rubygems_version: 3.4.10
158
164
  signing_key:
159
165
  specification_version: 4
160
166
  summary: Pageflow navigation widget.