tramway-core 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tramway/core/application.js.coffee +3 -1
- data/app/assets/stylesheets/tramway/core/application.sass +1 -0
- data/config/initializers/assets.rb +1 -0
- data/config/locales/ru/dates.yml +2 -0
- data/lib/tramway/collections/helper.rb +14 -0
- data/lib/tramway/core/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 620179508ccf2daf73d30769ad5ea28c3d40b70ffdf2a1eabee35be460252862
|
4
|
+
data.tar.gz: f0673a916c82c701a80cae4975895169ff33d8b1bde662c2852b507b63854443
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0461e59841bcab06f69af36e987b528f60397374f3a840c11821d6175c5655b4a6de49d760bb772bc05ef284f82f4f31ea01e631eb00f25b2eabee540c3cb6dc
|
7
|
+
data.tar.gz: 2d8296bde8eedfc976bdc34283fa94241eef53b2be0ffbce1c6233b8846673ddc6528c15c441fa524007b1bc0b0c749f2b18c381c34a6871142c909c9af54612
|
@@ -1,8 +1,10 @@
|
|
1
1
|
#= require jquery
|
2
2
|
#= require jquery_ujs
|
3
|
+
#= require bootstrap-datepicker-1.8.0
|
4
|
+
#= require bootstrap-datepicker-1.8.0.ru.min
|
3
5
|
#= require_tree .
|
4
6
|
|
5
|
-
$ ->
|
7
|
+
$(document).ready ->
|
6
8
|
unless $('.date_picker').length == 0
|
7
9
|
$('.date_picker').datepicker({
|
8
10
|
format: 'dd.mm.yyyy',
|
@@ -0,0 +1 @@
|
|
1
|
+
Rails.application.config.assets.precompile += %w( vendor/assets/javascripts/ vendor/assets/stylesheets/ )
|
data/config/locales/ru/dates.yml
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Tramway
|
2
|
+
module Collections
|
3
|
+
module Helper
|
4
|
+
def collection_list_by(name:)
|
5
|
+
require name # needed to load class name with collection
|
6
|
+
unless ::Tramway::Collection.descendants.map(&:to_s).include?(name.camelize)
|
7
|
+
raise "There no such collection named #{name.camelize}. Please create class with self method `list` and extended of `Tramway::Collection`"
|
8
|
+
end
|
9
|
+
|
10
|
+
name.camelize.constantize.list
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reform-rails
|
@@ -231,6 +231,7 @@ files:
|
|
231
231
|
- app/uploaders/image_defaults.rb
|
232
232
|
- app/uploaders/photo_uploader.rb
|
233
233
|
- app/views/tramway/core/shared/_messages.html.haml
|
234
|
+
- config/initializers/assets.rb
|
234
235
|
- config/locales/ru/dates.yml
|
235
236
|
- config/locales/ru/helpers.yml
|
236
237
|
- config/locales/ru/models.yml
|
@@ -238,6 +239,7 @@ files:
|
|
238
239
|
- config/routes.rb
|
239
240
|
- lib/tasks/tramway/core_tasks.rake
|
240
241
|
- lib/tramway/collection.rb
|
242
|
+
- lib/tramway/collections/helper.rb
|
241
243
|
- lib/tramway/core.rb
|
242
244
|
- lib/tramway/core/application.rb
|
243
245
|
- lib/tramway/core/engine.rb
|