active_admin_datetimepicker 0.5.0 → 0.6.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
  SHA1:
3
- metadata.gz: 036932d1c3eece9ce022de397d1405e3ca81807b
4
- data.tar.gz: 7c35e963d2ff7c50d0357c536e54b66cd5c3e48b
3
+ metadata.gz: d5afe823cc693c2e0fceddd630a7d9f359d01253
4
+ data.tar.gz: 4f55d42a1fe14fb5c1771efa5c071a1f000dc955
5
5
  SHA512:
6
- metadata.gz: 57c0f6e168b7b6ab0d4692cc96999b97cf9f1be636ebfca9e86369de48e628cbacdbd6577cb229fec727edc7ddc07f6767f5198db092b2aa57c6725e46a6d9e5
7
- data.tar.gz: 1999b2edff19cb55b4c637f04255514c3ceeb0ce4d9f83ba2cd4557312ac225f5e4436a8fcd832750aaca4340c2724b45d637535a95440434a3b12cf227c18aa
6
+ metadata.gz: f3c8a49bdad5d1a4937d67ccd0ae1e375204fa54786aefaecd8079f6ff51f6ab0d8c4ee1f2a4cc938dd612ed62ca4d1f2410e5ebfaeee5bfc877b03604fab5f1
7
+ data.tar.gz: 86b9545dec04c627a1684da2b450a4261c6cb96dede68698b433f2c6a22497e1d5b6f19de7e9f6bbe64ed96e9b78a2550f3676dc2a4e53f3eb88bc681f4e754c
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ group :test do
7
7
  gem 'sprockets-rails', '2.3.3'
8
8
  gem 'rails', "#{ENV['RAILS'] || default_rails_version}"
9
9
  gem 'rspec-rails'
10
- gem 'activeadmin', github: 'activeadmin', ref: '06aa8b2af692e46fc360832473ca63e23a70b3d4'
10
+ gem 'activeadmin', '1.1.0'
11
11
  gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
12
12
  gem 'sass-rails'
13
13
  gem 'sqlite3'
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency "xdan-datetimepicker-rails", "~> 2.5.1"
23
+ spec.add_dependency "activeadmin", "~> 1.1.0"
23
24
  spec.add_development_dependency "bundler", "~> 1.8"
24
25
  spec.add_development_dependency "rake", "~> 10.0"
25
26
 
@@ -14,7 +14,13 @@
14
14
  options = $(entry).data 'datepicker-options'
15
15
  $(entry).datetimepicker $.extend(defaults, options)
16
16
 
17
- $(document).on 'ready turbolinks:load', ->
17
+ @initXdanDateTimePickerPlugin = () ->
18
18
  setupDateTimePicker $('body')
19
19
  $(document).on 'has_many_add:after', '.has_many_container', (e, fieldset) ->
20
20
  setupDateTimePicker fieldset
21
+
22
+ $(document).ready ->
23
+ initXdanDateTimePickerPlugin()
24
+
25
+ $(document).on 'turbolinks:load', ->
26
+ initXdanDateTimePickerPlugin()
@@ -1,4 +1,4 @@
1
- @import "jquery.xdan.datetimepicker";
1
+ @import "jquery.xdan.datetimepicker.css";
2
2
 
3
3
  form.filter_form {
4
4
  .filter_form_field {
@@ -13,7 +13,7 @@ module ActiveAdminDatetimepicker
13
13
  {}
14
14
  end
15
15
 
16
- def input_html_options(input_name = nil)
16
+ def input_html_options(input_name = nil, placeholder = nil)
17
17
  options = {}
18
18
  options[:class] = [self.options[:class], html_class].compact.join(' ')
19
19
  options[:data] ||= input_html_data
@@ -5,7 +5,7 @@ module ActiveAdmin
5
5
  include Base
6
6
  include ActiveAdminDatetimepicker::Base
7
7
 
8
- def input_html_options(input_name = gt_input_name)
8
+ def input_html_options(input_name = gt_input_name, placeholder = gt_input_placeholder)
9
9
  super.tap do |options|
10
10
  options[:class] = html_class
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminDatetimepicker
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_datetimepicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Fedoronchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xdan-datetimepicker-rails
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.5.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: activeadmin
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.1.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
109
  version: '0'
96
110
  requirements: []
97
111
  rubyforge_project:
98
- rubygems_version: 2.6.10
112
+ rubygems_version: 2.6.13
99
113
  signing_key:
100
114
  specification_version: 4
101
115
  summary: datetimepicker extension for ActiveAdmin