tramway-core 1.1.0 → 1.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
2
  SHA256:
3
- metadata.gz: 24a4a0a529963201bd89848634411b031498730868040a6fcfeae1375f57a97b
4
- data.tar.gz: a624cdc01cda2ef6041c7e0b6468ce9a5a9a5fea63a6ca2bbaff307df02a2927
3
+ metadata.gz: 9fc14f1282da2130b8389abd32c5a3cdadb2003f89941f2107a7dc60a2fc74c9
4
+ data.tar.gz: 2ef6102dc641d08254b76cfbe4de608e7fa93ae6a1494d58481c83de7afb9bab
5
5
  SHA512:
6
- metadata.gz: fe24234c734d1ac32d22f1a3673d294b3321c0d6a60eae06c6df5eb1dbab07c88833a4ecdbcfb2551528f083952830841c11d183d788765eac0c055f5fbabb22
7
- data.tar.gz: 2d84cb51332baa0ef70a1556ff8afadfa0207ee817d26abab9b4e5facb301292e4dcfad77d8ed82cb7b152c937b73ab3c4aef633670e1665448ce43268d64bad
6
+ metadata.gz: 9d36dff53e17513b46edcf8c51446c2df3c4e1c5adc0e9d1bd820a881511d71c19711643db709915859101eaec7fde27aed527988ca8e15f714a254430faecf2
7
+ data.tar.gz: 5751b74b26fa14ad007fe0533c9aaf05145c4760ac7622a7686be903120ab4dc7a813a4be988bb72bb170c39ebc24b911e485cf7dadb9bd7b75a11169c19216f
@@ -1,3 +1,9 @@
1
1
  #= require jquery
2
2
  #= require jquery_ujs
3
3
  #= require_tree .
4
+
5
+ $ ->
6
+ $('.date_picker').datepicker({
7
+ format: 'dd.mm.yyyy',
8
+ language: 'ru'
9
+ })
@@ -3,7 +3,5 @@
3
3
  *= require_self
4
4
  */
5
5
 
6
- @import "bootstrap"
7
-
8
- .container
9
- padding-top: 2rem
6
+ .datepicker-inline
7
+ display: none !important
@@ -0,0 +1,2 @@
1
+ class DatePickerInput < SimpleForm::Inputs::StringInput
2
+ end
@@ -0,0 +1,7 @@
1
+ class Tramway::Collection
2
+ class << self
3
+ def list
4
+ raise 'Please add collection to list method'
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
data/lib/tramway/core.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "tramway/core/engine"
2
+ require "tramway/collection"
2
3
 
3
4
  module Tramway
4
5
  module Core
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.1.0
4
+ version: 1.2.0
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-10 00:00:00.000000000 Z
11
+ date: 2018-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform-rails
@@ -224,6 +224,7 @@ files:
224
224
  - app/decorators/tramway/core/application_decorator.rb
225
225
  - app/forms/tramway/core/application_form.rb
226
226
  - app/forms/tramway/core/extendable_form.rb
227
+ - app/inputs/date_picker_input.rb
227
228
  - app/models/tramway/core/application_record.rb
228
229
  - app/uploaders/application_uploader.rb
229
230
  - app/uploaders/file_uploader.rb
@@ -236,6 +237,7 @@ files:
236
237
  - config/locales/ru/state_machines.yml
237
238
  - config/routes.rb
238
239
  - lib/tasks/tramway/core_tasks.rake
240
+ - lib/tramway/collection.rb
239
241
  - lib/tramway/core.rb
240
242
  - lib/tramway/core/application.rb
241
243
  - lib/tramway/core/engine.rb