datetime_picker_input 4.17.37.1 → 4.17.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9c5531b0f624feeffbea96d8fedcd3364d4acf3
4
- data.tar.gz: 0e43f64f17e676557a2fb5600a43b2e0a007e942
3
+ metadata.gz: 4a5edb92e55c11887004ffb51f725f3e61e2c48c
4
+ data.tar.gz: e7d6da41f0321de176f1078a851dcea3e2a37d5a
5
5
  SHA512:
6
- metadata.gz: dd512a0aa9ddea9b515a495e6942b437575b786f6b255dacc92541fa5ee36a893c917ee8acccdfdde3e62c0c05c8907a02ebb2f3acae98d2685ae6611e1a5534
7
- data.tar.gz: 3d1c82769f4da6e2a5a70e7c86d41a0e0bb3be242991fb7daae219726f39b70c23fd0f97c1867a1ac974d3ba90bb52cb20bd578b245d328767b27e0593273c7e
6
+ metadata.gz: 6876ec12fbdd0fced4348dd29a52a9d4819894d8edd5da81c4487b3aaaefab6c08d6e0feaba1435bae0229feaf97e6055c765652f5eedcc9469278fe266b0b04
7
+ data.tar.gz: 9da025a539ebef96a8af4c66c743ea125563e262ea289951777e354eb04e66d2d15dc3560e3c5bb9754db915a3a48abeea9937239bd97e91ea9febe4c3eb2b04
@@ -1,8 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1
5
- - 2.2
3
+ - 2.3.3
4
+ - 2.4.1
6
5
  - ruby-head
7
6
  sudo: false
8
7
  bundler_args: --retry=3 --jobs=3
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ group :development do
4
4
  gem "rake"
5
5
  gem "bundler"
6
6
 
7
- gem "rails", ">= 4.1.9"
7
+ gem "rails", "~> 5.1.0.rc2"
8
8
  gem "slim-rails"
9
9
  gem "sqlite3"
10
10
  gem "sass-rails"
data/README.md CHANGED
@@ -158,5 +158,4 @@ Please see the [LICENSE.md](/LICENSE.md) file.
158
158
 
159
159
  [![Jolly Good Code](https://cloud.githubusercontent.com/assets/1000669/9362336/72f9c406-46d2-11e5-94de-5060e83fcf83.jpg)](http://www.jollygoodcode.com)
160
160
 
161
- We specialise in Agile practices and Ruby, and we love contributing to open source.
162
- [Speak to us](http://www.jollygoodcode.com/#get-in-touch) about your next big idea, or [check out our projects](http://www.jollygoodcode.com/open-source).
161
+ We specialise in rapid development of high quality MVPs. [Hire us](http://www.jollygoodcode.com/#get-in-touch) to turn your product idea into reality.
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = Dir["spec/**/*"]
19
19
  spec.require_paths = %w(lib)
20
20
 
21
- spec.add_runtime_dependency "bootstrap3-datetimepicker-rails", "~> 4.17.37"
22
- spec.add_runtime_dependency "momentjs-rails", "~> 2.10.6"
21
+ spec.add_runtime_dependency "bootstrap3-datetimepicker-rails", "~> 4.17.47"
22
+ spec.add_runtime_dependency "momentjs-rails", "~> 2.17.1"
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module DatetimePickerInput
2
- VERSION = "4.17.37.1"
2
+ VERSION = "4.17.47"
3
3
  end
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
3
  require_relative '../config/boot'
4
4
  require 'rails/commands'
@@ -1,29 +1,38 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
3
5
 
4
6
  # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
8
 
7
- Dir.chdir APP_ROOT do
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
8
14
  # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
15
+ # Add necessary setup steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ # Install JavaScript dependencies if using Yarn
22
+ # system('bin/yarn')
10
23
 
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
24
 
15
25
  # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
26
+ # unless File.exist?('config/database.yml')
27
+ # cp 'config/database.yml.sample', 'config/database.yml'
18
28
  # end
19
29
 
20
30
  puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
31
+ system! 'bin/rails db:setup'
22
32
 
23
33
  puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
34
+ system! 'bin/rails log:clear tmp:clear'
26
35
 
27
36
  puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
37
+ system! 'bin/rails restart'
29
38
  end
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a way to update your development environment automatically.
15
+ # Add necessary update steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ puts "\n== Updating database =="
22
+ system! 'bin/rails db:migrate'
23
+
24
+ puts "\n== Removing old logs and tempfiles =="
25
+ system! 'bin/rails log:clear tmp:clear'
26
+
27
+ puts "\n== Restarting application server =="
28
+ system! 'bin/rails restart'
29
+ end
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ VENDOR_PATH = File.expand_path('..', __dir__)
3
+ Dir.chdir(VENDOR_PATH) do
4
+ begin
5
+ exec "yarnpkg #{ARGV.join(" ")}"
6
+ rescue Errno::ENOENT
7
+ puts "Yarn executable was not detected in the system."
8
+ puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
+ end
10
+ end
@@ -32,9 +32,5 @@ module Dummy
32
32
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
33
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
34
  # config.i18n.default_locale = :de
35
-
36
- # Do not swallow errors in after_commit/after_rollback callbacks.
37
- config.active_record.raise_in_transactional_callbacks = true
38
35
  end
39
36
  end
40
-
@@ -22,8 +22,7 @@ RSpec.configure do |config|
22
22
  config.use_transactional_fixtures = false
23
23
 
24
24
  config.before(:suite) do
25
- DatabaseCleaner.strategy = :truncation
26
- DatabaseCleaner.clean_with(:truncation)
25
+ DatabaseCleaner.strategy = :truncation, { except: %w[ar_internal_metadata]}
27
26
  end
28
27
 
29
28
  config.before(:each) do
@@ -86,7 +86,6 @@ feature "datetime input", js: true do
86
86
  scenario 'should convert raw_input_value to date_format_output' do
87
87
  visit edit_appointment_path(appointment)
88
88
  expect(find_field('Scheduled at').value).to eq(date_format_output)
89
- expect(find_field('Scheduled at')[:value]).to eq(datetime_value.utc.strftime("%Y-%m-%d %H:%M:%S %z"))
90
89
  end
91
90
  end
92
91
  end
@@ -1,7 +1,7 @@
1
1
  //= require moment
2
2
  //= require bootstrap-datetimepicker
3
3
 
4
- $(document).on('ready page:change', function() {
4
+ $(document).on('ready page:change turbolinks:load', function() {
5
5
  $('input.date_time_picker').datetimepicker();
6
6
  $('.input-group.date_time_picker .input-group-btn').on('click', function() {
7
7
  $(this).prev('input.date_time_picker').focus().click();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datetime_picker_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.17.37.1
4
+ version: 4.17.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanito
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-26 00:00:00.000000000 Z
12
+ date: 2017-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bootstrap3-datetimepicker-rails
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 4.17.37
20
+ version: 4.17.47
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 4.17.37
27
+ version: 4.17.47
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: momentjs-rails
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 2.10.6
34
+ version: 2.17.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 2.10.6
41
+ version: 2.17.1
42
42
  description: Datetime picker wrapper of https://github.com/TrevorS/bootstrap3-datetimepicker-rails,
43
43
  for use with simple_form on Rails 4+.
44
44
  email:
@@ -84,6 +84,8 @@ files:
84
84
  - spec/dummy/bin/rails
85
85
  - spec/dummy/bin/rake
86
86
  - spec/dummy/bin/setup
87
+ - spec/dummy/bin/update
88
+ - spec/dummy/bin/yarn
87
89
  - spec/dummy/config.ru
88
90
  - spec/dummy/config/application.rb
89
91
  - spec/dummy/config/boot.rb
@@ -142,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
144
  version: '0'
143
145
  requirements: []
144
146
  rubyforge_project:
145
- rubygems_version: 2.4.5.1
147
+ rubygems_version: 2.6.11
146
148
  signing_key:
147
149
  specification_version: 4
148
150
  summary: Datetime picker wrapper of https://github.com/TrevorS/bootstrap3-datetimepicker-rails,
@@ -164,6 +166,8 @@ test_files:
164
166
  - spec/dummy/bin/rails
165
167
  - spec/dummy/bin/rake
166
168
  - spec/dummy/bin/setup
169
+ - spec/dummy/bin/update
170
+ - spec/dummy/bin/yarn
167
171
  - spec/dummy/config/application.rb
168
172
  - spec/dummy/config/boot.rb
169
173
  - spec/dummy/config/database.yml