bemer-bootstrap 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/LICENSE.txt +1 -1
- data/README.md +21 -19
- data/app/bemer_components/bemer-bootstrap/v3/alert/index.slim +3 -0
- data/app/bemer_components/bemer-bootstrap/v3/alert_dismissible/index.slim +7 -0
- data/app/bemer_components/bemer-bootstrap/v3/blockquote/index.slim +4 -0
- data/app/bemer_components/bemer-bootstrap/v3/button/index.slim +2 -0
- data/app/bemer_components/bemer-bootstrap/v3/media/index.slim +6 -0
- data/app/bemer_components/bemer-bootstrap/v3/modal/index.slim +10 -0
- data/app/bemer_components/bemer-bootstrap/v3/pager/index.slim +6 -0
- data/app/bemer_components/bemer-bootstrap/v3/panel/index.slim +6 -0
- data/app/bemer_components/bemer-bootstrap/v3/progress_bar/index.slim +3 -0
- data/app/bemer_components/bemer-bootstrap/v3/well/index.slim +2 -0
- data/{Rakefile → lib/bemer-bootstrap.rb} +1 -1
- data/lib/bemer/bootstrap.rb +4 -6
- data/lib/bemer/bootstrap/engine.rb +17 -0
- data/lib/bemer/bootstrap/version.rb +1 -1
- metadata +51 -23
- data/.gitignore +0 -12
- data/.overcommit.yml +0 -53
- data/.rubocop.yml +0 -10
- data/.rubocop_todo.yml +0 -14
- data/Gemfile +0 -6
- data/bemer-bootstrap.gemspec +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ca1c7a7892986263aaf181a1ef521f6e0dddb3e0cf1e1ac91416d4138c49a59
|
4
|
+
data.tar.gz: 684f04c70984c1873f5250839f98eba8eeb8a8822786238c986d8f1bc3ba1d61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 121220947b1ae0b497e81d9ec14265e414da1c6b0eeee27dbeeb7c84cb7e40340252ce86e67006a76c7dc0b5993215387e964c00beb4940bf5c9a2ea642702ca
|
7
|
+
data.tar.gz: 36a44add4a16ac0eaa90b9f245bc8796159340428dd4bf1829bc82ac6c7e913b2f5b68579ea3a348583e03f4ebd54ddb81e97bca14dfdcabdc6693e4855b3a7b
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,36 +1,38 @@
|
|
1
|
-
# Bemer
|
1
|
+
# Bemer Bootstrap
|
2
2
|
|
3
|
-
|
3
|
+
Переиспользуемые компоненты Bootstrap v3.
|
4
4
|
|
5
|
-
|
5
|
+
## Установка
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
7
|
+
Добавить в `Gemfile`:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'bemer-bootstrap'
|
10
|
+
gem 'bemer-bootstrap', '~> 0.2.0'
|
13
11
|
```
|
14
12
|
|
15
|
-
|
13
|
+
Выполнить в терминале команду:
|
16
14
|
|
17
15
|
$ bundle
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
$ gem install bemer-bootstrap
|
22
|
-
|
23
|
-
## Usage
|
17
|
+
## Использование
|
24
18
|
|
25
|
-
|
19
|
+
[Пример приложения](https://github.com/vill/bemer-example) с использованием [bemer](https://github.com/vill/bemer) и [bemer-bootstrap](https://github.com/vill/bemer-bootstrap).
|
26
20
|
|
27
|
-
##
|
21
|
+
## Компоненты
|
28
22
|
|
29
|
-
|
23
|
+
1. [Button](https://getbootstrap.com/docs/3.3/css/#buttons)
|
24
|
+
1. [Progress bar](https://getbootstrap.com/docs/3.3/components/#progress)
|
25
|
+
1. [Media object](https://getbootstrap.com/docs/3.3/components/#media)
|
26
|
+
1. [Pager](https://getbootstrap.com/docs/3.3/components/#pagination-pager)
|
27
|
+
1. [Blockquote](https://getbootstrap.com/docs/3.3/css/#type-blockquotes)
|
28
|
+
1. [Modal](https://getbootstrap.com/docs/3.3/javascript/#modals)
|
29
|
+
1. [Alert](https://getbootstrap.com/docs/3.3/components/#alerts)
|
30
|
+
1. [Panel](https://getbootstrap.com/docs/3.3/components/#panels)
|
30
31
|
|
31
|
-
|
32
|
+
## Ссылки
|
32
33
|
|
33
|
-
|
34
|
+
1. https://getbootstrap.com/docs/3.3/components/
|
34
35
|
|
35
|
-
|
36
|
+
## Лицензия
|
36
37
|
|
38
|
+
Copyright (c) 2019 Александр Григорьев. Более подробную информацию о лицензии можно получить в файле [LICENSE.txt](LICENSE.txt).
|
@@ -0,0 +1,7 @@
|
|
1
|
+
= refine_component :alert, prefix: 'bemer-bootstrap/v3' do |template|
|
2
|
+
= template.block :alert do |alert|
|
3
|
+
= alert.add_cls 'alert-dismissible'
|
4
|
+
= alert.content do |node, builder|
|
5
|
+
= builder.block :close, type: :button, tag: :button, cls: 'close', 'data-dismiss': :alert
|
6
|
+
span aria-hidden='true' ×
|
7
|
+
= node.content
|
@@ -0,0 +1,6 @@
|
|
1
|
+
= define_component bem_cascade: false, tag: :div do |component|
|
2
|
+
= component.block :media, cls: 'media' do |media|
|
3
|
+
= media.elem :container, cls: 'media-left'
|
4
|
+
= media.elem :body, cls: 'media-body'
|
5
|
+
= media.elem :heading, tag: :h4, cls: 'media-heading'
|
6
|
+
= media.elem :content, tag: false
|
@@ -0,0 +1,10 @@
|
|
1
|
+
= define_component bem_cascade: false, tag: :div do |component|
|
2
|
+
= component.block :modal, cls: 'modal fade', role: :dialog, tabindex: -1 do |modal|
|
3
|
+
= modal.elem :dialog, role: :document, cls: 'modal-dialog'
|
4
|
+
= modal.elem :content, cls: 'modal-content'
|
5
|
+
= modal.elem :header, cls: 'modal-header'
|
6
|
+
= component.block :close, type: :button, tag: :button, cls: 'close', 'data-dismiss': :modal
|
7
|
+
span aria-hidden='true' ×
|
8
|
+
= modal.elem :title, tag: :h4, cls: 'modal-title'
|
9
|
+
= modal.elem :body, cls: 'modal-body'
|
10
|
+
= modal.elem :footer, cls: 'modal-footer'
|
@@ -0,0 +1,6 @@
|
|
1
|
+
= define_component bem_cascade: false, tag: :div do |component|
|
2
|
+
= component.block :panel, cls: 'panel' do |panel|
|
3
|
+
= panel.elem :heading, cls: 'panel-heading'
|
4
|
+
= panel.elem :title, tag: :h3, cls: 'panel-title'
|
5
|
+
= panel.elem :body, cls: 'panel-body'
|
6
|
+
= panel.elem :footer, cls: 'panel-footer'
|
data/lib/bemer/bootstrap.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'bemer
|
3
|
+
require 'bemer'
|
4
|
+
require 'slim-rails'
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
# Your code goes here...
|
8
|
-
end
|
9
|
-
end
|
6
|
+
require 'bemer/bootstrap/version'
|
7
|
+
require 'bemer/bootstrap/engine' if defined?(::Rails)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Bemer
|
4
|
+
module Bootstrap
|
5
|
+
class Engine < ::Rails::Engine
|
6
|
+
path = root.join('app', 'bemer_components').to_s
|
7
|
+
|
8
|
+
initializer 'bemer-bootstrap.add_path' do
|
9
|
+
Bemer.paths << path
|
10
|
+
end
|
11
|
+
|
12
|
+
# initializer 'bemer-bootstrap.add_asset_path', before: 'bemer.prepend_asset_paths' do
|
13
|
+
# Bemer.asset_paths << path
|
14
|
+
# end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bemer-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Grigorev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.4.
|
47
|
+
version: 0.4.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.4.
|
54
|
+
version: 0.4.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: overcommit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.46.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.46.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,50 +86,78 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.59.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.59.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bemer
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.1.0
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '1.0'
|
104
107
|
type: :runtime
|
105
108
|
prerelease: false
|
106
109
|
version_requirements: !ruby/object:Gem::Requirement
|
107
110
|
requirements:
|
108
111
|
- - ">="
|
109
112
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
113
|
+
version: 0.1.0
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '1.0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: slim-rails
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.1'
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.1'
|
111
131
|
description: Bootstrap as Bemer components.
|
112
|
-
email:
|
113
|
-
- vill@rubyinventory.org
|
132
|
+
email: vill@rubyinventory.org
|
114
133
|
executables: []
|
115
134
|
extensions: []
|
116
|
-
extra_rdoc_files:
|
135
|
+
extra_rdoc_files:
|
136
|
+
- README.md
|
117
137
|
files:
|
118
|
-
- ".gitignore"
|
119
|
-
- ".overcommit.yml"
|
120
|
-
- ".rubocop.yml"
|
121
|
-
- ".rubocop_todo.yml"
|
122
|
-
- Gemfile
|
123
138
|
- LICENSE.txt
|
124
139
|
- README.md
|
125
|
-
-
|
126
|
-
- bemer-bootstrap.
|
140
|
+
- app/bemer_components/bemer-bootstrap/v3/alert/index.slim
|
141
|
+
- app/bemer_components/bemer-bootstrap/v3/alert_dismissible/index.slim
|
142
|
+
- app/bemer_components/bemer-bootstrap/v3/blockquote/index.slim
|
143
|
+
- app/bemer_components/bemer-bootstrap/v3/button/index.slim
|
144
|
+
- app/bemer_components/bemer-bootstrap/v3/media/index.slim
|
145
|
+
- app/bemer_components/bemer-bootstrap/v3/modal/index.slim
|
146
|
+
- app/bemer_components/bemer-bootstrap/v3/pager/index.slim
|
147
|
+
- app/bemer_components/bemer-bootstrap/v3/panel/index.slim
|
148
|
+
- app/bemer_components/bemer-bootstrap/v3/progress_bar/index.slim
|
149
|
+
- app/bemer_components/bemer-bootstrap/v3/well/index.slim
|
150
|
+
- lib/bemer-bootstrap.rb
|
127
151
|
- lib/bemer/bootstrap.rb
|
152
|
+
- lib/bemer/bootstrap/engine.rb
|
128
153
|
- lib/bemer/bootstrap/version.rb
|
129
|
-
homepage:
|
154
|
+
homepage:
|
130
155
|
licenses:
|
131
156
|
- MIT
|
132
|
-
metadata:
|
157
|
+
metadata:
|
158
|
+
bug_tracker_uri: https://github.com/vill/bemer-bootstrap/issues
|
159
|
+
homepage_uri: https://github.com/vill/bemer-bootstrap
|
160
|
+
source_code_uri: https://github.com/vill/bemer-bootstrap
|
133
161
|
post_install_message:
|
134
162
|
rdoc_options: []
|
135
163
|
require_paths:
|
@@ -146,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
174
|
version: 2.2.0
|
147
175
|
requirements: []
|
148
176
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.7.7
|
150
178
|
signing_key:
|
151
179
|
specification_version: 4
|
152
180
|
summary: Bootstrap as Bemer components.
|
data/.gitignore
DELETED
data/.overcommit.yml
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# Use this file to configure the Overcommit hooks you wish to use. This will
|
2
|
-
# extend the default configuration defined in:
|
3
|
-
# https://github.com/brigade/overcommit/blob/master/config/default.yml
|
4
|
-
#
|
5
|
-
# At the topmost level of this YAML file is a key representing type of hook
|
6
|
-
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
|
7
|
-
# customize each hook, such as whether to only run it on certain files (via
|
8
|
-
# `include`), whether to only display output if it fails (via `quiet`), etc.
|
9
|
-
#
|
10
|
-
# For a complete list of hooks, see:
|
11
|
-
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
|
12
|
-
#
|
13
|
-
# For a complete list of options that you can use to customize hooks, see:
|
14
|
-
# https://github.com/brigade/overcommit#configuration
|
15
|
-
|
16
|
-
gemfile: Gemfile
|
17
|
-
|
18
|
-
CommitMsg:
|
19
|
-
HardTabs:
|
20
|
-
enabled: true
|
21
|
-
|
22
|
-
RussianNovel:
|
23
|
-
enabled: true
|
24
|
-
|
25
|
-
PreCommit:
|
26
|
-
BundleAudit:
|
27
|
-
enabled: true
|
28
|
-
flags:
|
29
|
-
# Update the ruby-advisory-db and check Gemfile.lock
|
30
|
-
- '--update'
|
31
|
-
|
32
|
-
BundleCheck:
|
33
|
-
enabled: true
|
34
|
-
|
35
|
-
ExecutePermissions:
|
36
|
-
enabled: true
|
37
|
-
|
38
|
-
Fasterer:
|
39
|
-
enabled: true
|
40
|
-
|
41
|
-
ForbiddenBranches:
|
42
|
-
enabled: true
|
43
|
-
branch_patterns:
|
44
|
-
- 'master'
|
45
|
-
|
46
|
-
HardTabs:
|
47
|
-
enabled: true
|
48
|
-
|
49
|
-
RuboCop:
|
50
|
-
enabled: true
|
51
|
-
|
52
|
-
TrailingWhitespace:
|
53
|
-
enabled: true
|
data/.rubocop.yml
DELETED
data/.rubocop_todo.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2018-02-16 15:04:42 +0700 using RuboCop version 0.52.1.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
Style/Documentation:
|
11
|
-
Exclude:
|
12
|
-
- 'spec/**/*'
|
13
|
-
- 'test/**/*'
|
14
|
-
- 'lib/bemer/bootstrap.rb'
|
data/Gemfile
DELETED
data/bemer-bootstrap.gemspec
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
4
|
-
|
5
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
-
|
7
|
-
require 'bemer/bootstrap/version'
|
8
|
-
|
9
|
-
Gem::Specification.new do |spec|
|
10
|
-
spec.name = 'bemer-bootstrap'
|
11
|
-
spec.version = Bemer::Bootstrap::VERSION
|
12
|
-
spec.authors = ['Alexander Grigorev']
|
13
|
-
spec.email = ['vill@rubyinventory.org']
|
14
|
-
|
15
|
-
spec.summary = 'Bootstrap as Bemer components.'
|
16
|
-
spec.description = 'Bootstrap as Bemer components.'
|
17
|
-
spec.homepage = 'https://github.com/vill/bemer-bootstrap'
|
18
|
-
spec.license = 'MIT'
|
19
|
-
spec.require_paths = ['lib']
|
20
|
-
spec.test_files = `git ls-files -z -- spec/*`.split("\x0")
|
21
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
22
|
-
f.match(%r{^spec/|^Gemfile.lock$})
|
23
|
-
end
|
24
|
-
|
25
|
-
spec.required_ruby_version = '>= 2.2.0'
|
26
|
-
spec.required_rubygems_version = '>= 2.2.0'
|
27
|
-
|
28
|
-
spec.add_development_dependency 'bundler', '~> 1.15'
|
29
|
-
spec.add_development_dependency 'bundler-audit', '~> 0.6.0'
|
30
|
-
spec.add_development_dependency 'fasterer', '~> 0.4.0'
|
31
|
-
spec.add_development_dependency 'overcommit', '~> 0.43.0'
|
32
|
-
spec.add_development_dependency 'rake', '~> 12.3.0'
|
33
|
-
spec.add_development_dependency 'rubocop', '~> 0.52.1'
|
34
|
-
|
35
|
-
spec.add_runtime_dependency 'bemer'
|
36
|
-
end
|