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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 340225652c1b7a23d5eb2c44e24ceee530d817e3
4
- data.tar.gz: bc69629e0bb5c3d8f96d59a147b6f4faeeb84ac1
3
+ metadata.gz: 268329c3384dcaf6f1dd64448931f47f2136e35e
4
+ data.tar.gz: 245fe4a3212625743dbb269c028e5f9922882018
5
5
  SHA512:
6
- metadata.gz: 55a56f2c56811962a4d2305ec6b8d90c28e57842b8a86e7204f517cf286ea62a47f65a8f69f7be6dbadae51335184648c4c8b79279680b6374c1b4538e70b7e9
7
- data.tar.gz: e50bdea210d76f47a8f272d62e9855300c82a2c251166af1b2a6c4adfcbe373e4c9c6edd112d63e42e709bb2477f1bc40780f1342f8895d48f82f232350a29b6
6
+ metadata.gz: 0e4f46a24a58df0c5141d6c3038e99bb05aa32cdfcb001c17248b01999bfe53b66595a5e6db6ade03101a722c3eaaf8dc3e4855c1fe9478f0251623c9aee7903
7
+ data.tar.gz: 9ec827636e7caee512b17b03dac897cc7b1dbf0bd4091cc5d55be9f94c3a4fb2ffcc73aa3536f56c628dba33b1434c882dd86c65f5a113ba4c1bab4c4e663d04
@@ -0,0 +1,9 @@
1
+ script: bundle exec rspec spec
2
+ rvm:
3
+ - 2.1.5
4
+ - 2.2.0
5
+ - 2.3.0
6
+ before_install:
7
+ - gem install bundler -v '= 1.9.3'
8
+ - gem update --system
9
+ - gem --version
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
@@ -1,2 +1,7 @@
1
- require "bundler/gem_tasks"
1
+ require "bundler"
2
+ require 'rake'
3
+ Bundler.setup
4
+ Bundler::GemHelper.install_tasks
2
5
 
6
+ # Import all our rake tasks
7
+ FileList['tasks/**/*.rake'].each { |task| import task }
@@ -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.4"
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
 
@@ -1,4 +1,4 @@
1
- #= require jquery.xdan.datetimepicker
1
+ #= require jquery.xdan.datetimepicker.full
2
2
 
3
3
  @setupDateTimePicker = (container) ->
4
4
  defaults = {
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminDatetimepicker
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -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.1.1
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: 2015-11-04 00:00:00.000000000 Z
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: '2.4'
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: '2.4'
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.4.6
98
+ rubygems_version: 2.5.0
97
99
  signing_key:
98
100
  specification_version: 4
99
101
  summary: datetimepicker extension for ActiveAdmin