File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed
lib/active_admin_datetimepicker Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
script : bundle exec rspec spec
2
+ env :
3
+ matrix :
4
+ - RAILS=4.0.13
5
+ - RAILS=4.1.5
6
+ - RAILS=4.2.6
2
7
rvm :
3
8
- 2.1.5
4
9
- 2.2.0
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ source 'https://rubygems.org'
3
3
# Specify your gem's dependencies in active_admin_datetimepicker.gemspec
4
4
gemspec
5
5
group :test do
6
+ default_rails_version = '4.2.6'
6
7
gem 'sprockets-rails' , '2.3.3'
7
- gem 'rails' , '4.2.0'
8
+ gem 'rails' , " #{ ENV [ 'RAILS' ] || default_rails_version } "
8
9
gem 'rspec-rails'
9
10
gem 'activeadmin' , github : 'activeadmin' , ref : 'd787029e5523be2eb2ed99816eb0cecca2b72862'
10
11
gem 'coveralls' , require : false # Test coverage website. Go to https://coveralls.io
Original file line number Diff line number Diff line change 1
1
module ActiveAdminDatetimepicker
2
2
module Base
3
- mattr_accessor :default_datetime_picker_options do
4
- { }
5
- end
6
-
7
- mattr_accessor :format do
8
- '%Y-%m-%d %H:%M'
9
- end
3
+ mattr_accessor :default_datetime_picker_options
4
+ @@default_datetime_picker_options = { }
5
+ mattr_accessor :format
6
+ @@format = '%Y-%m-%d %H:%M'
10
7
11
8
def html_class
12
9
'date-time-picker'
Original file line number Diff line number Diff line change 1
1
module ActiveAdminDatetimepicker
2
- VERSION = '0.2 .0'
2
+ VERSION = '0.3 .0'
3
3
end
You can’t perform that action at this time.
0 commit comments