active_admin_datetimepicker 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -0
- data/Gemfile +14 -0
- data/README.md +2 -0
- data/Rakefile +6 -1
- data/active_admin_datetimepicker.gemspec +1 -1
- data/app/assets/javascripts/active_admin_datetimepicker.js.coffee +1 -1
- data/lib/active_admin_datetimepicker/base.rb +1 -1
- data/lib/active_admin_datetimepicker/version.rb +1 -1
- data/tasks/test.rake +6 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 268329c3384dcaf6f1dd64448931f47f2136e35e
|
4
|
+
data.tar.gz: 245fe4a3212625743dbb269c028e5f9922882018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e4f46a24a58df0c5141d6c3038e99bb05aa32cdfcb001c17248b01999bfe53b66595a5e6db6ade03101a722c3eaaf8dc3e4855c1fe9478f0251623c9aee7903
|
7
|
+
data.tar.gz: 9ec827636e7caee512b17b03dac897cc7b1dbf0bd4091cc5d55be9f94c3a4fb2ffcc73aa3536f56c628dba33b1434c882dd86c65f5a113ba4c1bab4c4e663d04
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -2,3 +2,17 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in active_admin_datetimepicker.gemspec
|
4
4
|
gemspec
|
5
|
+
group :test do
|
6
|
+
gem 'sprockets-rails', '2.3.3'
|
7
|
+
gem 'rails', '4.2.0'
|
8
|
+
gem 'rspec-rails'
|
9
|
+
gem 'activeadmin', github: 'activeadmin' , ref: 'd787029e5523be2eb2ed99816eb0cecca2b72862'
|
10
|
+
gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
|
11
|
+
gem 'sass-rails'
|
12
|
+
gem 'sqlite3'
|
13
|
+
gem 'launchy'
|
14
|
+
gem 'database_cleaner'
|
15
|
+
gem 'capybara'
|
16
|
+
gem 'selenium-webdriver'
|
17
|
+
gem 'poltergeist'
|
18
|
+
end
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Build Status](https://img.shields.io/travis/activeadmin-plugins/active_admin_datetimepicker.svg)](https://travis-ci.org/activeadmin-plugins/active_admin_datetimepicker)
|
2
|
+
|
1
3
|
# ActiveAdminDatetimepicker
|
2
4
|
|
3
5
|
Adds ability to use XDSoft's DateTime picker as the date_time_picker input for forms, and date_time_range for filters
|
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "xdan-datetimepicker-rails", "~> 2.
|
22
|
+
spec.add_dependency "xdan-datetimepicker-rails", "~> 2.5.1"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.8"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
|
@@ -28,7 +28,7 @@ module ActiveAdminDatetimepicker
|
|
28
28
|
|
29
29
|
def input_value(input_name = nil)
|
30
30
|
val = object.public_send(input_name || method)
|
31
|
-
return DateTime.new(val.year, val.month, val.day, val.hour, val.min).strftime(format) if val.is_a?(Time)
|
31
|
+
return DateTime.new(val.year, val.month, val.day, val.hour, val.min, val.sec).strftime(format) if val.is_a?(Time)
|
32
32
|
val.to_s
|
33
33
|
end
|
34
34
|
|
data/tasks/test.rake
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
desc "Creates a test rails app for the specs to run against"
|
2
|
+
task :setup do
|
3
|
+
require 'rails/version'
|
4
|
+
system("mkdir spec/rails") unless File.exists?("spec/rails")
|
5
|
+
system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template.rb --skip-spring"
|
6
|
+
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.
|
4
|
+
version: 0.2.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:
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xdan-datetimepicker-rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.5.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.5.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".travis.yml"
|
62
63
|
- CODE_OF_CONDUCT.md
|
63
64
|
- Gemfile
|
64
65
|
- LICENSE.txt
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb
|
74
75
|
- lib/active_admin_datetimepicker/version.rb
|
75
76
|
- screen/screen.png
|
77
|
+
- tasks/test.rake
|
76
78
|
homepage: https://github.com/activeadmin-plugins/activeadmin_datetimepicker
|
77
79
|
licenses:
|
78
80
|
- MIT
|
@@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
95
|
version: '0'
|
94
96
|
requirements: []
|
95
97
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.5.0
|
97
99
|
signing_key:
|
98
100
|
specification_version: 4
|
99
101
|
summary: datetimepicker extension for ActiveAdmin
|