tramway-core 1.5.3 → 1.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eab2a86a588ae396f09b15b3fedf8442c68d81aabcb5fc49b6f2593bbe88a3a
4
- data.tar.gz: ec7b78a31fa61f1c8de71a4b9c74e74d525b56e82e6accc631014ad5de881f4d
3
+ metadata.gz: 620179508ccf2daf73d30769ad5ea28c3d40b70ffdf2a1eabee35be460252862
4
+ data.tar.gz: f0673a916c82c701a80cae4975895169ff33d8b1bde662c2852b507b63854443
5
5
  SHA512:
6
- metadata.gz: 158d0301ed5940d436b3e7d3dfcdf63010fbbfe04ecbe549db2dd9991b1419a8c019485888aed31b5f359a979ca4c550a3b5fc5d685524a0976b9b877d2b92e8
7
- data.tar.gz: 8c4ebd1beefa9d879a0af024b609a6f6401041ef106b7674ea149a64b91d6302e354ebaf88a97c378a740148f20e1cd961c92fd51a57eea86336ac44158104b0
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',
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  @import "font-awesome"
7
+ @import 'bootstrap-datepicker-1.8.0'
7
8
 
8
9
  .datepicker-inline
9
10
  display: none !important
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile += %w( vendor/assets/javascripts/ vendor/assets/stylesheets/ )
@@ -1,5 +1,7 @@
1
1
  ru:
2
2
  date:
3
+ from: с
4
+ to: по
3
5
  formats:
4
6
  default: "%d.%m.%Y"
5
7
  time:
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.5.3'
3
+ VERSION = '1.5.4'
4
4
  end
5
5
  end
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.3
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-23 00:00:00.000000000 Z
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