jsoneditor-rails 1.0.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +20 -0
- data/.github/workflows/ci.yml +13 -31
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +38 -35
- data/README.md +3 -0
- data/Rakefile +2 -2
- data/jsoneditor-rails.gemspec +1 -1
- data/lib/jsoneditor/rails/version.rb +1 -1
- data/vendor/assets/images/jsoneditor-icons.svg +15 -2
- data/vendor/assets/javascripts/jsoneditor-minimalist.js +21291 -18433
- data/vendor/assets/javascripts/jsoneditor-minimalist.map +1 -1
- data/vendor/assets/javascripts/jsoneditor.js +52971 -46743
- data/vendor/assets/javascripts/jsoneditor.map +1 -1
- data/vendor/assets/stylesheets/jsoneditor.scss +1031 -938
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c346657e7c60df6fc17cdcde26f0ec6d27674126f308237d0c3df796034a913
|
4
|
+
data.tar.gz: ccda6549013ba51e4a65d3ec0332b9704fcdc42ff1f27be8441e6d1a7c1cff70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd6737e0ccf290fbec270718ef3339d1260320d77c7eb0ca055fac098f5db54ae612dad6e1ff963b896f9e3d7b915627e3a81edaa4db9d9e27907fe0b57ad8cf
|
7
|
+
data.tar.gz: 8134960eda063a7f6f6600b476869876e1b5db9de4d0c33d582dda2e4bd7506a2ac6d7fd99f926feab8b43c1fd8caa750c10fa9c14225e82187a328210a14a7f
|
@@ -0,0 +1,20 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: daily
|
7
|
+
time: "08:30"
|
8
|
+
timezone: America/New_York
|
9
|
+
open-pull-requests-limit: 99
|
10
|
+
reviewers:
|
11
|
+
- javierjulio
|
12
|
+
- package-ecosystem: github-actions
|
13
|
+
directory: "/"
|
14
|
+
schedule:
|
15
|
+
interval: daily
|
16
|
+
time: "08:30"
|
17
|
+
timezone: America/New_York
|
18
|
+
open-pull-requests-limit: 99
|
19
|
+
reviewers:
|
20
|
+
- javierjulio
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: Tests
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
@@ -11,34 +11,16 @@ jobs:
|
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
|
-
ruby: [ '
|
14
|
+
ruby: [ '3.0', '3.1', '3.2' ]
|
15
|
+
name: Ruby ${{ matrix.ruby }}
|
15
16
|
steps:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
restore-keys: |
|
27
|
-
${{ runner.os }}-gems-
|
28
|
-
|
29
|
-
- name: Install rubygems
|
30
|
-
run: |
|
31
|
-
gem update --system --no-document
|
32
|
-
|
33
|
-
- name: Install bundler
|
34
|
-
run: |
|
35
|
-
gem install bundler --no-document
|
36
|
-
|
37
|
-
- name: Install dependencies
|
38
|
-
run: |
|
39
|
-
bundle config path vendor/bundle
|
40
|
-
bundle install --jobs 4 --retry 3
|
41
|
-
|
42
|
-
- name: Run Tests
|
43
|
-
run: |
|
44
|
-
bundle exec rake
|
17
|
+
- uses: actions/checkout@v3
|
18
|
+
- uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
22
|
+
- name: Run Tests
|
23
|
+
env:
|
24
|
+
RUBYOPT: "-W:deprecated"
|
25
|
+
run: |
|
26
|
+
bundle exec rake
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,81 +1,84 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jsoneditor-rails (
|
4
|
+
jsoneditor-rails (2.0.0)
|
5
5
|
railties (>= 3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (
|
11
|
-
actionview (=
|
12
|
-
activesupport (=
|
13
|
-
rack (~> 2.0, >= 2.
|
10
|
+
actionpack (7.0.5)
|
11
|
+
actionview (= 7.0.5)
|
12
|
+
activesupport (= 7.0.5)
|
13
|
+
rack (~> 2.0, >= 2.2.4)
|
14
14
|
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
-
actionview (
|
18
|
-
activesupport (=
|
17
|
+
actionview (7.0.5)
|
18
|
+
activesupport (= 7.0.5)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
-
activesupport (
|
23
|
+
activesupport (7.0.5)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
25
|
i18n (>= 1.6, < 2)
|
26
26
|
minitest (>= 5.1)
|
27
27
|
tzinfo (~> 2.0)
|
28
|
-
zeitwerk (~> 2.3)
|
29
28
|
ansi (1.5.0)
|
30
29
|
builder (3.2.4)
|
31
|
-
concurrent-ruby (1.
|
30
|
+
concurrent-ruby (1.2.2)
|
32
31
|
crass (1.0.6)
|
33
|
-
erubi (1.
|
34
|
-
i18n (1.
|
32
|
+
erubi (1.12.0)
|
33
|
+
i18n (1.14.1)
|
35
34
|
concurrent-ruby (~> 1.0)
|
36
|
-
loofah (2.
|
35
|
+
loofah (2.21.3)
|
37
36
|
crass (~> 1.0.2)
|
38
|
-
nokogiri (>= 1.
|
37
|
+
nokogiri (>= 1.12.0)
|
39
38
|
method_source (1.0.0)
|
40
|
-
mini_portile2 (2.
|
41
|
-
minitest (5.
|
42
|
-
minitest-reporters (1.
|
39
|
+
mini_portile2 (2.8.2)
|
40
|
+
minitest (5.18.0)
|
41
|
+
minitest-reporters (1.6.0)
|
43
42
|
ansi
|
44
43
|
builder
|
45
44
|
minitest (>= 5.0)
|
46
45
|
ruby-progressbar
|
47
|
-
nokogiri (1.
|
48
|
-
mini_portile2 (~> 2.
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
nokogiri (1.15.2)
|
47
|
+
mini_portile2 (~> 2.8.2)
|
48
|
+
racc (~> 1.4)
|
49
|
+
racc (1.7.0)
|
50
|
+
rack (2.2.7)
|
51
|
+
rack-test (2.1.0)
|
52
|
+
rack (>= 1.3)
|
52
53
|
rails-dom-testing (2.0.3)
|
53
54
|
activesupport (>= 4.2.0)
|
54
55
|
nokogiri (>= 1.6)
|
55
|
-
rails-html-sanitizer (1.
|
56
|
-
loofah (~> 2.
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
rails-html-sanitizer (1.6.0)
|
57
|
+
loofah (~> 2.21)
|
58
|
+
nokogiri (~> 1.14)
|
59
|
+
railties (7.0.5)
|
60
|
+
actionpack (= 7.0.5)
|
61
|
+
activesupport (= 7.0.5)
|
60
62
|
method_source
|
61
|
-
rake (>=
|
63
|
+
rake (>= 12.2)
|
62
64
|
thor (~> 1.0)
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
65
|
+
zeitwerk (~> 2.5)
|
66
|
+
rake (13.0.6)
|
67
|
+
ruby-progressbar (1.13.0)
|
68
|
+
thor (1.2.2)
|
69
|
+
tzinfo (2.0.6)
|
67
70
|
concurrent-ruby (~> 1.0)
|
68
|
-
zeitwerk (2.
|
71
|
+
zeitwerk (2.6.8)
|
69
72
|
|
70
73
|
PLATFORMS
|
71
74
|
ruby
|
72
75
|
|
73
76
|
DEPENDENCIES
|
74
|
-
bundler
|
77
|
+
bundler
|
75
78
|
jsoneditor-rails!
|
76
79
|
minitest
|
77
80
|
minitest-reporters
|
78
81
|
rake
|
79
82
|
|
80
83
|
BUNDLED WITH
|
81
|
-
2.
|
84
|
+
2.3.10
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# jsoneditor-rails
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/jsoneditor-rails.svg)](https://badge.fury.io/rb/jsoneditor-rails)
|
4
|
+
![CI Build](https://github.com/jackpocket/jsoneditor-rails/workflows/CI%20Build/badge.svg)
|
5
|
+
|
3
6
|
This gem packages the [JSON Editor](https://github.com/josdejong/jsoneditor) assets (JavaScripts, stylesheets, and images) for the Rails asset pipeline, so you don't have to download a package.
|
4
7
|
|
5
8
|
## Installation
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
task default: :test
|
11
11
|
|
12
12
|
# Use https://cdnjs.com/libraries/jsoneditor to view all files.
|
13
|
-
DIST_URL = "https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/
|
13
|
+
DIST_URL = "https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.10.2/"
|
14
14
|
|
15
15
|
ASSETS_PATH = ENV['ASSETS_PATH'] || 'vendor/assets/'
|
16
16
|
|
@@ -25,7 +25,7 @@ end
|
|
25
25
|
|
26
26
|
def use_asset_url_for_css_images
|
27
27
|
path = "#{ASSETS_PATH}stylesheets/jsoneditor.scss"
|
28
|
-
modified_css = File.read(path).gsub(/url\("img\//, 'asset-url("')
|
28
|
+
modified_css = File.read(path).gsub(/url\("\.\/img\//, 'asset-url("')
|
29
29
|
File.open(path, 'w') { |f| f.write(modified_css) }
|
30
30
|
end
|
31
31
|
|
data/jsoneditor-rails.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_runtime_dependency "railties", ">= 3.0"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "bundler"
|
27
27
|
spec.add_development_dependency "rake"
|
28
28
|
spec.add_development_dependency "minitest"
|
29
29
|
spec.add_development_dependency "minitest-reporters"
|
@@ -43,8 +43,8 @@
|
|
43
43
|
id="namedview4144"
|
44
44
|
showgrid="true"
|
45
45
|
inkscape:zoom="4"
|
46
|
-
inkscape:cx="
|
47
|
-
inkscape:cy="
|
46
|
+
inkscape:cx="13.229181"
|
47
|
+
inkscape:cy="119.82429"
|
48
48
|
inkscape:window-x="0"
|
49
49
|
inkscape:window-y="0"
|
50
50
|
inkscape:window-maximized="1"
|
@@ -733,4 +733,17 @@
|
|
733
733
|
id="path3546-2-2"
|
734
734
|
inkscape:connector-curvature="0"
|
735
735
|
sodipodi:nodetypes="cccccccc" />
|
736
|
+
<rect
|
737
|
+
style="fill:#4c4c4c;fill-opacity:1;stroke:none;stroke-width:0"
|
738
|
+
id="svg_1-3"
|
739
|
+
height="16"
|
740
|
+
width="16"
|
741
|
+
y="28"
|
742
|
+
x="4" />
|
743
|
+
<path
|
744
|
+
sodipodi:nodetypes="ccccccccc"
|
745
|
+
inkscape:connector-curvature="0"
|
746
|
+
id="path4402-5-7"
|
747
|
+
d="m 15,41 0,-7 -4,0 0,3 -5,-4 5,-4 0,3 6,0 0,9"
|
748
|
+
style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.68465352px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
736
749
|
</svg>
|