bemer 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +12 -0
- data/.overcommit.yml +59 -0
- data/.rspec +4 -0
- data/.rubocop.yml +12 -1
- data/.rubocop_todo.yml +3 -6
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/LICENSE-RU +23 -0
- data/README.md +2 -10
- data/Rakefile +8 -1
- data/bemer.gemspec +19 -6
- data/lib/bemer.rb +93 -2
- data/lib/bemer/asset_matcher.rb +21 -0
- data/lib/bemer/builders.rb +23 -0
- data/lib/bemer/builders/tag/element.rb +22 -0
- data/lib/bemer/builders/template.rb +57 -0
- data/lib/bemer/builders/template_list.rb +56 -0
- data/lib/bemer/builders/tree.rb +35 -0
- data/lib/bemer/builders/tree/element.rb +22 -0
- data/lib/bemer/common_template.rb +29 -0
- data/lib/bemer/component.rb +19 -0
- data/lib/bemer/component_pack.rb +39 -0
- data/lib/bemer/configuration.rb +36 -0
- data/lib/bemer/context.rb +44 -0
- data/lib/bemer/context_extentions.rb +12 -0
- data/lib/bemer/context_extentions/structure.rb +32 -0
- data/lib/bemer/context_extentions/template.rb +15 -0
- data/lib/bemer/default_template_list.rb +35 -0
- data/lib/bemer/entity.rb +94 -0
- data/lib/bemer/entity_builder.rb +126 -0
- data/lib/bemer/helpers.rb +41 -0
- data/lib/bemer/mixin_list.rb +74 -0
- data/lib/bemer/modifier_list.rb +68 -0
- data/lib/bemer/pipeline.rb +85 -0
- data/lib/bemer/pipeline/handler.rb +132 -0
- data/lib/bemer/predicate.rb +63 -0
- data/lib/bemer/railtie.rb +36 -0
- data/lib/bemer/renderer.rb +15 -0
- data/lib/bemer/tag.rb +35 -0
- data/lib/bemer/tag_builder.rb +11 -0
- data/lib/bemer/template.rb +90 -0
- data/lib/bemer/template_catalog.rb +42 -0
- data/lib/bemer/template_catalog/drawer.rb +31 -0
- data/lib/bemer/template_list.rb +62 -0
- data/lib/bemer/tree.rb +143 -0
- data/lib/bemer/tree/base_node.rb +49 -0
- data/lib/bemer/tree/node.rb +129 -0
- data/lib/bemer/tree/text_node.rb +11 -0
- data/lib/bemer/version.rb +1 -1
- data/spec/bemer/entity_spec.rb +37 -0
- data/spec/bemer/mixin_list_spec.rb +99 -0
- data/spec/bemer/modifier_list_spec.rb +83 -0
- data/spec/bemer_spec.rb +36 -0
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/jobs/application_job.rb +4 -0
- data/spec/dummy/app/mailers/application_mailer.rb +6 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +5 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/bin/setup +39 -0
- data/spec/dummy/bin/update +31 -0
- data/spec/dummy/bin/yarn +13 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/config/application.rb +27 -0
- data/spec/dummy/config/boot.rb +7 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +51 -0
- data/spec/dummy/config/environments/production.rb +84 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +7 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/dummy/config/initializers/bemer.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +17 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +58 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/secrets.yml +32 -0
- data/spec/dummy/config/spring.rb +8 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/package.json +5 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +37 -0
- data/spec/spec_helper.rb +41 -0
- metadata +301 -7
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
4
|
+
ENV['RAILS_ENV'] ||= 'test'
|
5
|
+
|
6
|
+
require_relative 'dummy/config/environment'
|
7
|
+
|
8
|
+
# Prevent database truncation if the environment is production
|
9
|
+
abort('The Rails environment is running in production mode!') if Rails.env.production?
|
10
|
+
|
11
|
+
require 'rspec/rails'
|
12
|
+
|
13
|
+
# Checks for pending migration and applies them before tests are run.
|
14
|
+
# If you are not using ActiveRecord, you can remove this line.
|
15
|
+
ActiveRecord::Migration.maintain_test_schema!
|
16
|
+
|
17
|
+
RSpec.configure do |config|
|
18
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
19
|
+
# based on their file location, for example enabling you to call `get` and
|
20
|
+
# `post` in specs under `spec/controllers`.
|
21
|
+
#
|
22
|
+
# You can disable this behaviour by removing the line below, and instead
|
23
|
+
# explicitly tag your specs with their type, e.g.:
|
24
|
+
#
|
25
|
+
# RSpec.describe UsersController, :type => :controller do
|
26
|
+
# # ...
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# The different available types are documented in the features, such as in
|
30
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
31
|
+
config.infer_spec_type_from_file_location!
|
32
|
+
|
33
|
+
# Filter lines from Rails gems in backtraces.
|
34
|
+
config.filter_rails_from_backtrace!
|
35
|
+
# arbitrary gems may also be filtered via:
|
36
|
+
# config.filter_gems_from_backtrace("gem name")
|
37
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'bemer'
|
5
|
+
|
6
|
+
support_files = File.expand_path('spec/support/**/*.rb')
|
7
|
+
|
8
|
+
Dir[support_files].each { |file| require file }
|
9
|
+
|
10
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
11
|
+
RSpec.configure do |config|
|
12
|
+
# rspec-expectations config goes here. You can use an alternate
|
13
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
14
|
+
# assertions if you prefer.
|
15
|
+
config.expect_with :rspec do |expectations|
|
16
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
17
|
+
# and `failure_message` of custom matchers include text for helper methods
|
18
|
+
# defined using `chain`, e.g.:
|
19
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
20
|
+
# # => "be bigger than 2 and smaller than 4"
|
21
|
+
# ...rather than:
|
22
|
+
# # => "be bigger than 2"
|
23
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
24
|
+
end
|
25
|
+
|
26
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
27
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
28
|
+
config.mock_with :rspec do |mocks|
|
29
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
30
|
+
# a real object. This is generally recommended, and will default to
|
31
|
+
# `true` in RSpec 4.
|
32
|
+
mocks.verify_partial_doubles = true
|
33
|
+
end
|
34
|
+
|
35
|
+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
36
|
+
# have no way to turn it off -- the option exists only for backwards
|
37
|
+
# compatibility in RSpec 3). It causes shared context metadata to be
|
38
|
+
# inherited by the metadata hash of host groups and examples, rather than
|
39
|
+
# triggering implicit auto-inclusion in groups with matching metadata.
|
40
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
41
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bemer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.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: 2018-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,62 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler-audit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: fasterer
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.3.2
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.3.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: overcommit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.41.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.41.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 5.1.4
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 5.1.4
|
27
83
|
- !ruby/object:Gem::Dependency
|
28
84
|
name: rake
|
29
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +94,110 @@ dependencies:
|
|
38
94
|
- - "~>"
|
39
95
|
- !ruby/object:Gem::Version
|
40
96
|
version: 12.3.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: require_reloader
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.2.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.2.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 3.7.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.7.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec-rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.7.2
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.7.2
|
41
139
|
- !ruby/object:Gem::Dependency
|
42
140
|
name: rubocop
|
43
141
|
requirement: !ruby/object:Gem::Requirement
|
44
142
|
requirements:
|
45
143
|
- - "~>"
|
46
144
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
145
|
+
version: 0.52.1
|
48
146
|
type: :development
|
49
147
|
prerelease: false
|
50
148
|
version_requirements: !ruby/object:Gem::Requirement
|
51
149
|
requirements:
|
52
150
|
- - "~>"
|
53
151
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
152
|
+
version: 0.52.1
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop-rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.21'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.21'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sqlite3
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.3.13
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.3.13
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: railties
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 3.2.22
|
188
|
+
- - "<="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '5.2'
|
191
|
+
type: :runtime
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 3.2.22
|
198
|
+
- - "<="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '5.2'
|
55
201
|
description: Build reusable UI components for Rails applications using the BEM methodology.
|
56
202
|
email: vill@rubyinventory.org
|
57
203
|
executables: []
|
@@ -59,15 +205,109 @@ extensions: []
|
|
59
205
|
extra_rdoc_files: []
|
60
206
|
files:
|
61
207
|
- ".gitignore"
|
208
|
+
- ".overcommit.yml"
|
209
|
+
- ".rspec"
|
62
210
|
- ".rubocop.yml"
|
63
211
|
- ".rubocop_todo.yml"
|
64
212
|
- Gemfile
|
213
|
+
- LICENSE
|
214
|
+
- LICENSE-RU
|
65
215
|
- README.md
|
66
216
|
- Rakefile
|
67
217
|
- bemer.gemspec
|
68
218
|
- lib/bemer.rb
|
219
|
+
- lib/bemer/asset_matcher.rb
|
220
|
+
- lib/bemer/builders.rb
|
221
|
+
- lib/bemer/builders/tag/element.rb
|
222
|
+
- lib/bemer/builders/template.rb
|
223
|
+
- lib/bemer/builders/template_list.rb
|
224
|
+
- lib/bemer/builders/tree.rb
|
225
|
+
- lib/bemer/builders/tree/element.rb
|
226
|
+
- lib/bemer/common_template.rb
|
227
|
+
- lib/bemer/component.rb
|
228
|
+
- lib/bemer/component_pack.rb
|
229
|
+
- lib/bemer/configuration.rb
|
230
|
+
- lib/bemer/context.rb
|
231
|
+
- lib/bemer/context_extentions.rb
|
232
|
+
- lib/bemer/context_extentions/structure.rb
|
233
|
+
- lib/bemer/context_extentions/template.rb
|
234
|
+
- lib/bemer/default_template_list.rb
|
235
|
+
- lib/bemer/entity.rb
|
236
|
+
- lib/bemer/entity_builder.rb
|
237
|
+
- lib/bemer/helpers.rb
|
238
|
+
- lib/bemer/mixin_list.rb
|
239
|
+
- lib/bemer/modifier_list.rb
|
240
|
+
- lib/bemer/pipeline.rb
|
241
|
+
- lib/bemer/pipeline/handler.rb
|
242
|
+
- lib/bemer/predicate.rb
|
243
|
+
- lib/bemer/railtie.rb
|
244
|
+
- lib/bemer/renderer.rb
|
245
|
+
- lib/bemer/tag.rb
|
246
|
+
- lib/bemer/tag_builder.rb
|
247
|
+
- lib/bemer/template.rb
|
248
|
+
- lib/bemer/template_catalog.rb
|
249
|
+
- lib/bemer/template_catalog/drawer.rb
|
250
|
+
- lib/bemer/template_list.rb
|
251
|
+
- lib/bemer/tree.rb
|
252
|
+
- lib/bemer/tree/base_node.rb
|
253
|
+
- lib/bemer/tree/node.rb
|
254
|
+
- lib/bemer/tree/text_node.rb
|
69
255
|
- lib/bemer/version.rb
|
70
|
-
|
256
|
+
- spec/bemer/entity_spec.rb
|
257
|
+
- spec/bemer/mixin_list_spec.rb
|
258
|
+
- spec/bemer/modifier_list_spec.rb
|
259
|
+
- spec/bemer_spec.rb
|
260
|
+
- spec/dummy/Rakefile
|
261
|
+
- spec/dummy/app/controllers/application_controller.rb
|
262
|
+
- spec/dummy/app/controllers/concerns/.keep
|
263
|
+
- spec/dummy/app/helpers/application_helper.rb
|
264
|
+
- spec/dummy/app/jobs/application_job.rb
|
265
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
266
|
+
- spec/dummy/app/models/application_record.rb
|
267
|
+
- spec/dummy/app/models/concerns/.keep
|
268
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
269
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
270
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
271
|
+
- spec/dummy/bin/bundle
|
272
|
+
- spec/dummy/bin/rails
|
273
|
+
- spec/dummy/bin/rake
|
274
|
+
- spec/dummy/bin/setup
|
275
|
+
- spec/dummy/bin/update
|
276
|
+
- spec/dummy/bin/yarn
|
277
|
+
- spec/dummy/config.ru
|
278
|
+
- spec/dummy/config/application.rb
|
279
|
+
- spec/dummy/config/boot.rb
|
280
|
+
- spec/dummy/config/cable.yml
|
281
|
+
- spec/dummy/config/database.yml
|
282
|
+
- spec/dummy/config/environment.rb
|
283
|
+
- spec/dummy/config/environments/development.rb
|
284
|
+
- spec/dummy/config/environments/production.rb
|
285
|
+
- spec/dummy/config/environments/test.rb
|
286
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
287
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
288
|
+
- spec/dummy/config/initializers/bemer.rb
|
289
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
290
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
291
|
+
- spec/dummy/config/initializers/inflections.rb
|
292
|
+
- spec/dummy/config/initializers/mime_types.rb
|
293
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
294
|
+
- spec/dummy/config/locales/en.yml
|
295
|
+
- spec/dummy/config/puma.rb
|
296
|
+
- spec/dummy/config/routes.rb
|
297
|
+
- spec/dummy/config/secrets.yml
|
298
|
+
- spec/dummy/config/spring.rb
|
299
|
+
- spec/dummy/lib/assets/.keep
|
300
|
+
- spec/dummy/log/.keep
|
301
|
+
- spec/dummy/package.json
|
302
|
+
- spec/dummy/public/404.html
|
303
|
+
- spec/dummy/public/422.html
|
304
|
+
- spec/dummy/public/500.html
|
305
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
306
|
+
- spec/dummy/public/apple-touch-icon.png
|
307
|
+
- spec/dummy/public/favicon.ico
|
308
|
+
- spec/rails_helper.rb
|
309
|
+
- spec/spec_helper.rb
|
310
|
+
homepage: https://github.com/vill/bemer
|
71
311
|
licenses:
|
72
312
|
- MIT
|
73
313
|
metadata: {}
|
@@ -79,7 +319,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
319
|
requirements:
|
80
320
|
- - ">="
|
81
321
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
322
|
+
version: 2.2.0
|
83
323
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
324
|
requirements:
|
85
325
|
- - ">="
|
@@ -91,4 +331,58 @@ rubygems_version: 2.6.12
|
|
91
331
|
signing_key:
|
92
332
|
specification_version: 4
|
93
333
|
summary: Build reusable UI components for Rails applications using the BEM methodology.
|
94
|
-
test_files:
|
334
|
+
test_files:
|
335
|
+
- spec/bemer/entity_spec.rb
|
336
|
+
- spec/bemer/mixin_list_spec.rb
|
337
|
+
- spec/bemer/modifier_list_spec.rb
|
338
|
+
- spec/bemer_spec.rb
|
339
|
+
- spec/dummy/Rakefile
|
340
|
+
- spec/dummy/app/controllers/application_controller.rb
|
341
|
+
- spec/dummy/app/controllers/concerns/.keep
|
342
|
+
- spec/dummy/app/helpers/application_helper.rb
|
343
|
+
- spec/dummy/app/jobs/application_job.rb
|
344
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
345
|
+
- spec/dummy/app/models/application_record.rb
|
346
|
+
- spec/dummy/app/models/concerns/.keep
|
347
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
348
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
349
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
350
|
+
- spec/dummy/bin/bundle
|
351
|
+
- spec/dummy/bin/rails
|
352
|
+
- spec/dummy/bin/rake
|
353
|
+
- spec/dummy/bin/setup
|
354
|
+
- spec/dummy/bin/update
|
355
|
+
- spec/dummy/bin/yarn
|
356
|
+
- spec/dummy/config.ru
|
357
|
+
- spec/dummy/config/application.rb
|
358
|
+
- spec/dummy/config/boot.rb
|
359
|
+
- spec/dummy/config/cable.yml
|
360
|
+
- spec/dummy/config/database.yml
|
361
|
+
- spec/dummy/config/environment.rb
|
362
|
+
- spec/dummy/config/environments/development.rb
|
363
|
+
- spec/dummy/config/environments/production.rb
|
364
|
+
- spec/dummy/config/environments/test.rb
|
365
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
366
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
367
|
+
- spec/dummy/config/initializers/bemer.rb
|
368
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
369
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
370
|
+
- spec/dummy/config/initializers/inflections.rb
|
371
|
+
- spec/dummy/config/initializers/mime_types.rb
|
372
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
373
|
+
- spec/dummy/config/locales/en.yml
|
374
|
+
- spec/dummy/config/puma.rb
|
375
|
+
- spec/dummy/config/routes.rb
|
376
|
+
- spec/dummy/config/secrets.yml
|
377
|
+
- spec/dummy/config/spring.rb
|
378
|
+
- spec/dummy/lib/assets/.keep
|
379
|
+
- spec/dummy/log/.keep
|
380
|
+
- spec/dummy/package.json
|
381
|
+
- spec/dummy/public/404.html
|
382
|
+
- spec/dummy/public/422.html
|
383
|
+
- spec/dummy/public/500.html
|
384
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
385
|
+
- spec/dummy/public/apple-touch-icon.png
|
386
|
+
- spec/dummy/public/favicon.ico
|
387
|
+
- spec/rails_helper.rb
|
388
|
+
- spec/spec_helper.rb
|