active_admin_datetimepicker 1.1.0 → 2.0.0

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
  SHA256:
3
- metadata.gz: f07bf8bae7ede7803d15356b3760742b3fc8606be54e6ac48ac87c2c90e9dc44
4
- data.tar.gz: d759dfd7b84437b90ac99473c8e8a2a047973a20c73621d5792bd137b07263cf
3
+ metadata.gz: a412a3cb88c5eb14cebad912cfa50ada6975101677646d706acda30d6c640c1e
4
+ data.tar.gz: 1dc79d1cbec67a1ff6dc2d83f31acc64aeb18b57062bf0c4a972e90981780f4e
5
5
  SHA512:
6
- metadata.gz: e6ea079b52eca0add771eca873499ee05cc2f13c317825b74cf8fcb421af861349669f409348a194733b7949cea88c5b3844ebeafaccb90b3346841bad35c8b7
7
- data.tar.gz: e100c85411f315881fbff0d0a25438acde9ad1d5a261b40bd29271e5f75c3b9ab0f72c97bdd61131f9f09e8cc5e5fff8211390786753bff84689240c8d5b0f9f
6
+ metadata.gz: 4df596944f75400400a868191653398e29fc35d2592cdce04ecc9a9a3fea4c198367bd90b99335af7d145d58e0f31a56d9e3dc7cf1977714216799356d685dd9
7
+ data.tar.gz: cfbc25279cb4250ebf00a5d6f2e09e7b7119e0eae6c19fd73e44fe9f454627a0374ede49fb06aede1726c6b7de7d70c533f3516754438ce90acbcc96527891d3
@@ -2,33 +2,26 @@ name: CI
2
2
  on:
3
3
  pull_request:
4
4
  push:
5
- branches:
6
- - master
5
+ branches: [master]
6
+
7
+ permissions:
8
+ contents: read
9
+ pages: write
10
+ id-token: write
11
+
7
12
  jobs:
8
13
  test:
9
- name: Tests with Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} Active Admin ${{ matrix.activeadmin }}
14
+ name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }} / AA ${{ matrix.activeadmin }}
10
15
  runs-on: ubuntu-latest
11
16
  strategy:
17
+ fail-fast: false
12
18
  matrix:
13
- ruby:
14
- - '3.0.0'
15
- - '3.1.0'
16
- - '3.2.0'
17
- - '3.3.0'
18
- rails:
19
- - '6.1.0'
20
- - '7.0.0'
21
- - '7.1.0'
22
- activeadmin:
23
- - '2.14.0'
24
- - '3.0.0'
25
- - '3.1.0'
26
- - '3.2.0'
19
+ ruby: ['3.2', '3.3', '3.4']
20
+ rails: ['7.1.0', '7.2.0', '8.0.0']
21
+ activeadmin: ['3.2.0', '3.3.0', '3.4.0', '3.5.1']
27
22
  exclude:
28
- - rails: '7.1.0'
29
- activeadmin: '2.14.0'
30
- - rails: '7.1.0'
31
- activeadmin: '3.0.0'
23
+ - rails: '8.0.0'
24
+ activeadmin: '3.2.0'
32
25
  env:
33
26
  RAILS: ${{ matrix.rails }}
34
27
  AA: ${{ matrix.activeadmin }}
@@ -37,8 +30,62 @@ jobs:
37
30
  - uses: ruby/setup-ruby@v1
38
31
  with:
39
32
  ruby-version: ${{ matrix.ruby }}
33
+ bundler-cache: true
40
34
  - name: Run tests
35
+ run: bundle exec rspec spec
36
+
37
+ - name: Generate badge.json
38
+ if: matrix.ruby == '3.4' && matrix.rails == '8.0.0' && matrix.activeadmin == '3.5.1'
41
39
  run: |
42
- gem install bundler -v '< 2'
43
- bundle install
44
- bundle exec rspec spec
40
+ LAST_RUN="coverage/.last_run.json"
41
+ if [ ! -f "$LAST_RUN" ]; then
42
+ mkdir -p badge
43
+ echo '{"schemaVersion":1,"label":"coverage","message":"unknown","color":"lightgrey"}' > badge/badge.json
44
+ exit 0
45
+ fi
46
+ PERCENT=$(ruby -rjson -e "puts JSON.parse(File.read('$LAST_RUN')).dig('result','line').round(1)")
47
+ PERCENT_NUM=$(ruby -rjson -e "puts JSON.parse(File.read('$LAST_RUN')).dig('result','line')")
48
+ if ruby -e "exit(($PERCENT_NUM >= 90) ? 0 : 1)"; then COLOR="brightgreen"
49
+ elif ruby -e "exit(($PERCENT_NUM >= 75) ? 0 : 1)"; then COLOR="green"
50
+ elif ruby -e "exit(($PERCENT_NUM >= 60) ? 0 : 1)"; then COLOR="yellow"
51
+ else COLOR="red"; fi
52
+ mkdir -p badge
53
+ echo "{\"schemaVersion\":1,\"label\":\"coverage\",\"message\":\"${PERCENT}%\",\"color\":\"${COLOR}\"}" > badge/badge.json
54
+
55
+ - name: Upload badge artifact
56
+ if: matrix.ruby == '3.4' && matrix.rails == '8.0.0' && matrix.activeadmin == '3.5.1'
57
+ uses: actions/upload-artifact@v4
58
+ with:
59
+ name: coverage-badge
60
+ path: badge
61
+
62
+ deploy-coverage:
63
+ needs: test
64
+ if: github.ref == 'refs/heads/master' && github.event_name == 'push'
65
+ runs-on: ubuntu-latest
66
+ environment:
67
+ name: github-pages
68
+ url: ${{ steps.deployment.outputs.page_url }}
69
+
70
+ steps:
71
+ - uses: actions/checkout@v4
72
+ with:
73
+ ref: gh-pages
74
+
75
+ - name: Download coverage badge
76
+ uses: actions/download-artifact@v4
77
+ with:
78
+ name: coverage-badge
79
+ path: .
80
+
81
+ - name: Setup Pages
82
+ uses: actions/configure-pages@v5
83
+
84
+ - name: Upload Pages artifact
85
+ uses: actions/upload-pages-artifact@v3
86
+ with:
87
+ path: .
88
+
89
+ - name: Deploy to GitHub Pages
90
+ id: deployment
91
+ uses: actions/deploy-pages@v4
data/Gemfile CHANGED
@@ -1,24 +1,20 @@
1
1
  source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in active_admin_datetimepicker.gemspec
4
2
  gemspec
5
3
 
6
- group :test do
7
- default_rails_version = '7.1.0'
8
- default_activeadmin_version = '3.1.0'
4
+ default_rails_version = '7.1.0'
5
+ default_activeadmin_version = '3.2.0'
9
6
 
10
- gem 'rails', "~> #{ENV['RAILS'] || default_rails_version}"
11
- gem 'activeadmin', "~> #{ENV['AA'] || default_activeadmin_version}"
7
+ gem 'rails', "~> #{ENV['RAILS'] || default_rails_version}"
8
+ gem 'activeadmin', "~> #{ENV['AA'] || default_activeadmin_version}"
9
+ gem 'sprockets-rails'
10
+ gem 'sass-rails'
12
11
 
13
- gem 'sprockets-rails'
12
+ group :test do
13
+ gem 'simplecov', require: false
14
14
  gem 'rspec-rails'
15
- gem 'coveralls_reborn', require: false
16
- gem 'sass-rails'
17
- gem 'sqlite3', '~> 1.4.0'
18
- gem 'launchy'
15
+ gem 'sqlite3', '~> 2.0'
19
16
  gem 'database_cleaner'
20
17
  gem 'capybara'
21
- gem 'webdrivers'
22
- gem 'byebug'
18
+ gem 'cuprite'
23
19
  gem 'webrick', require: false
24
20
  end
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/active_admin_datetimepicker.svg)](http://badge.fury.io/rb/active_admin_datetimepicker)
2
2
  [![NPM Version](https://badge.fury.io/js/@activeadmin-plugins%2Factive_admin_datetimepicker.svg)](https://badge.fury.io/js/@activeadmin-plugins%2Factive_admin_datetimepicker)
3
3
  ![npm](https://img.shields.io/npm/dm/@activeadmin-plugins/active_admin_datetimepicker)
4
- [![Build Status](https://img.shields.io/travis/activeadmin-plugins/active_admin_datetimepicker.svg)](https://travis-ci.org/activeadmin-plugins/active_admin_datetimepicker)
5
- [![Coverage](https://coveralls.io/repos/activeadmin-plugins/active_admin_datetimepicker/badge.svg?branch=master)](https://coveralls.io/r/activeadmin-plugins/active_admin_datetimepicker)
4
+ [![CI](https://github.com/activeadmin-plugins/active_admin_datetimepicker/actions/workflows/ci.yml/badge.svg)](https://github.com/activeadmin-plugins/active_admin_datetimepicker/actions/workflows/ci.yml)
5
+ ![Coverage](https://img.shields.io/endpoint?url=https://activeadmin-plugins.github.io/active_admin_datetimepicker/badge.json)
6
6
 
7
7
  # ActiveAdminDatetimepicker
8
8
 
9
9
  Adds XDSoft's DateTime picker as a `date_time_picker` input for forms, and `date_time_range` for filters.
10
10
 
11
- ![ActiveAdminDatetimepicker](https://raw.githubusercontent.com/ActiveAdminPlugins/activeadmin_datetimepicker/master/screen/screen.png "ActiveAdminDatetimepicker")
11
+ ![ActiveAdminDatetimepicker](https://raw.githubusercontent.com/activeadmin-plugins/active_admin_datetimepicker/master/screen/screen.png "ActiveAdminDatetimepicker")
12
12
 
13
13
  ## Installation
14
14
 
@@ -39,7 +39,7 @@ Add the following line into `app/assets/javascripts/active_admin.js`:
39
39
  //= require active_admin_datetimepicker
40
40
  ```
41
41
 
42
- ##### Using assets via Webpacker (or any other assets bundler) as a NPM module (Yarn package)
42
+ ##### Using assets via NPM/Yarn
43
43
 
44
44
  Execute:
45
45
 
@@ -53,7 +53,7 @@ Or add manually to `package.json`:
53
53
 
54
54
  ```
55
55
  "dependencies": {
56
- "@activeadmin-plugins/active_admin_datetimepicker": "1.0.0"
56
+ "@activeadmin-plugins/active_admin_datetimepicker": "latest"
57
57
  }
58
58
  ```
59
59
  and execute:
@@ -121,7 +121,7 @@ See [the datetimepicker documentation for more details](http://xdsoft.net/jqplug
121
121
 
122
122
  ## Contributing
123
123
 
124
- 1. Fork it ( https://github.com/activeadmin-plugins/activeadmin_datetimepicker/fork )
124
+ 1. Fork it ( https://github.com/activeadmin-plugins/active_admin_datetimepicker/fork )
125
125
  2. Create your feature branch (`git checkout -b my-new-feature`)
126
126
  3. Commit your changes (`git commit -am 'Add some feature'`)
127
127
  4. Push to the branch (`git push origin my-new-feature`)
@@ -14,10 +14,12 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/activeadmin-plugins/activeadmin_datetimepicker"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.required_ruby_version = '>= 3.1.0'
18
+
17
19
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
20
  spec.bindir = "bin"
19
21
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
22
  spec.require_paths = ["lib"]
21
23
 
22
- spec.add_dependency "activeadmin", ">= 2.14.0", "< 4.0"
24
+ spec.add_dependency "activeadmin", ">= 3.0", "< 4.0"
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminDatetimepicker
2
- VERSION = "1.1.0"
2
+ VERSION = "2.0.0"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activeadmin-plugins/active_admin_datetimepicker",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Integrate jQuery xdan datetimepicker plugin to ActiveAdmin",
5
5
  "main": "src/active_admin_datetimepicker.js",
6
6
  "style": "src/active_admin_datetimepicker.scss",
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_datetimepicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Fedoronchuk
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-12-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activeadmin
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 2.14.0
18
+ version: '3.0'
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: '4.0'
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 2.14.0
28
+ version: '3.0'
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: '4.0'
@@ -62,7 +61,6 @@ homepage: https://github.com/activeadmin-plugins/activeadmin_datetimepicker
62
61
  licenses:
63
62
  - MIT
64
63
  metadata: {}
65
- post_install_message:
66
64
  rdoc_options: []
67
65
  require_paths:
68
66
  - lib
@@ -70,16 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
68
  requirements:
71
69
  - - ">="
72
70
  - !ruby/object:Gem::Version
73
- version: '0'
71
+ version: 3.1.0
74
72
  required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  requirements:
76
74
  - - ">="
77
75
  - !ruby/object:Gem::Version
78
76
  version: '0'
79
77
  requirements: []
80
- rubyforge_project:
81
- rubygems_version: 2.7.6.2
82
- signing_key:
78
+ rubygems_version: 3.7.1
83
79
  specification_version: 4
84
80
  summary: datetimepicker extension for ActiveAdmin
85
81
  test_files: []