bemer-bootstrap 0.1.0 → 0.2.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
- SHA1:
3
- metadata.gz: 1bfbc53f1471fa9a71ebbc6fa28db8daa711f036
4
- data.tar.gz: eb742a58712543011789c7be0e7956a971fd7dc4
2
+ SHA256:
3
+ metadata.gz: 4ca1c7a7892986263aaf181a1ef521f6e0dddb3e0cf1e1ac91416d4138c49a59
4
+ data.tar.gz: 684f04c70984c1873f5250839f98eba8eeb8a8822786238c986d8f1bc3ba1d61
5
5
  SHA512:
6
- metadata.gz: eb41af28b6b1ec49ab6c70e9f07911caed67892e3dc4c1d315dbd7298dcff8ce8143e4c273583d0f556dd4bea3627a70547d39452f15e4e6bf03ca4044d83e88
7
- data.tar.gz: ed1ae01f5363648b1c219ac240fb15938a1358f86c0044b7653148d2475cd7ea2013a51b8c85d5acd6476bb9c1d6652d8b350eb3cadb291824daa73e59b0eb2d
6
+ metadata.gz: 121220947b1ae0b497e81d9ec14265e414da1c6b0eeee27dbeeb7c84cb7e40340252ce86e67006a76c7dc0b5993215387e964c00beb4940bf5c9a2ea642702ca
7
+ data.tar.gz: 36a44add4a16ac0eaa90b9f245bc8796159340428dd4bf1829bc82ac6c7e913b2f5b68579ea3a348583e03f4ebd54ddb81e97bca14dfdcabdc6693e4855b3a7b
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Alexander Grigorev
3
+ Copyright (c) 2019 Alexander Grigorev
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,36 +1,38 @@
1
- # Bemer::Bootstrap
1
+ # Bemer Bootstrap
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bemer/bootstrap`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Переиспользуемые компоненты Bootstrap v3.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## Установка
6
6
 
7
- ## Installation
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
- And then execute:
13
+ Выполнить в терминале команду:
16
14
 
17
15
  $ bundle
18
16
 
19
- Or install it yourself as:
20
-
21
- $ gem install bemer-bootstrap
22
-
23
- ## Usage
17
+ ## Использование
24
18
 
25
- TODO: Write usage instructions here
19
+ [Пример приложения](https://github.com/vill/bemer-example) с использованием [bemer](https://github.com/vill/bemer) и [bemer-bootstrap](https://github.com/vill/bemer-bootstrap).
26
20
 
27
- ## Development
21
+ ## Компоненты
28
22
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+ ## Ссылки
32
33
 
33
- ## Contributing
34
+ 1. https://getbootstrap.com/docs/3.3/components/
34
35
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/Alexander Grigorev/bemer-bootstrap.
36
+ ## Лицензия
36
37
 
38
+ Copyright (c) 2019 Александр Григорьев. Более подробную информацию о лицензии можно получить в файле [LICENSE.txt](LICENSE.txt).
@@ -0,0 +1,3 @@
1
+ = define_component bem_cascade: false do |component|
2
+ = component.block :alert, tag: :div, cls: 'alert', role: :alert do |alert|
3
+ = alert.elem :message, tag: false
@@ -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,4 @@
1
+ = define_component bem_cascade: false do |component|
2
+ = component.block :blockquote, tag: :blockquote do |blockquote|
3
+ = blockquote.elem :body, tag: :p
4
+ = blockquote.elem :footer, tag: :footer
@@ -0,0 +1,2 @@
1
+ = define_component bem_cascade: false do |component|
2
+ = component.block :button, tag: :button, cls: 'btn', type: :button
@@ -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: :li do |component|
2
+ = component.block tag: :nav
3
+ = component.block :pager, tag: :ul, cls: 'pager' do |pager|
4
+ = pager.elem :previous
5
+ = component.text ' '
6
+ = pager.elem :next
@@ -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'
@@ -0,0 +1,3 @@
1
+ = define_component bem_cascade: false, tag: :div do |component|
2
+ = component.block :progress, cls: 'progress' do |progress|
3
+ = progress.elem :bar, role: :progressbar, cls: 'progress-bar', 'aria-valuemin': 0, 'aria-valuemax': 100
@@ -0,0 +1,2 @@
1
+ = define_component bem_cascade: false do |component|
2
+ = component.block :well, tag: :div, cls: 'well'
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
3
+ require 'bemer/bootstrap'
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bemer/bootstrap/version'
3
+ require 'bemer'
4
+ require 'slim-rails'
4
5
 
5
- module Bemer
6
- module Bootstrap
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bemer
4
4
  module Bootstrap
5
- VERSION = '0.1.0'.freeze
5
+ VERSION = '0.2.0'.freeze
6
6
  end
7
7
  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.1.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: 2018-02-16 00:00:00.000000000 Z
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.0
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.0
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.43.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.43.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.52.1
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.52.1
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: '0'
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: '0'
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
- - Rakefile
126
- - bemer-bootstrap.gemspec
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: https://github.com/vill/bemer-bootstrap
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.6.12
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
@@ -1,12 +0,0 @@
1
- pkg/*
2
- *.gem
3
- .bundle
4
- log/*.log
5
-
6
- .ruby-version
7
- .ruby-gemset
8
-
9
- .DS_Store
10
- *.swp
11
- *.swo
12
- *~
@@ -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
@@ -1,10 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.2
5
- DisplayCopNames: true
6
-
7
- Metrics/LineLength:
8
- Max: 100
9
- IgnoredPatterns:
10
- - '^\s*#'
@@ -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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in bemer-bootstrap.gemspec
6
- gemspec
@@ -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