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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0e42d24ec74df81ddf3dbd784f677c910efac550124e2ca20fab6b0937194cf
4
- data.tar.gz: 76a42e65c0f7c83efbee85e13e3f570e33541914dd866e23e757e5907191a164
3
+ metadata.gz: 8c346657e7c60df6fc17cdcde26f0ec6d27674126f308237d0c3df796034a913
4
+ data.tar.gz: ccda6549013ba51e4a65d3ec0332b9704fcdc42ff1f27be8441e6d1a7c1cff70
5
5
  SHA512:
6
- metadata.gz: e82a025de58ba606669d240c0f24231c407133efba967972e969f7a3b9376e93bf3d23192fec9685d478e972514f2b460dbaa18f105791954f30557cea8bbc05
7
- data.tar.gz: 4a6313aad9665addd5ed4202c788d0fcbe35c664ddedd3c264ddb1c4fb27a5b1d3877bc01716135fbaf939578a844b29b43a0b79526c541e1321443c59f2f10b
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
@@ -1,4 +1,4 @@
1
- name: CI Build
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: [ '2.5', '2.6', '2.7' ]
14
+ ruby: [ '3.0', '3.1', '3.2' ]
15
+ name: Ruby ${{ matrix.ruby }}
15
16
  steps:
16
- - uses: actions/checkout@v2
17
-
18
- - uses: actions/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby }}
21
-
22
- - uses: actions/cache@v1
23
- with:
24
- path: vendor/bundle
25
- key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
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
@@ -1,3 +1,7 @@
1
+ ## 2.0.0 (2023-06-13)
2
+
3
+ * Updated jsoneditor to version 9.10.2 ([#81](../../pull/81))
4
+
1
5
  ## 1.0.4 (2020-12-23)
2
6
 
3
7
  * No code changes - moved repository to Jackpocket organization and updated URLs
data/Gemfile.lock CHANGED
@@ -1,81 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jsoneditor-rails (1.0.4)
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 (6.1.0)
11
- actionview (= 6.1.0)
12
- activesupport (= 6.1.0)
13
- rack (~> 2.0, >= 2.0.9)
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 (6.1.0)
18
- activesupport (= 6.1.0)
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 (6.1.0)
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.1.7)
30
+ concurrent-ruby (1.2.2)
32
31
  crass (1.0.6)
33
- erubi (1.10.0)
34
- i18n (1.8.5)
32
+ erubi (1.12.0)
33
+ i18n (1.14.1)
35
34
  concurrent-ruby (~> 1.0)
36
- loofah (2.8.0)
35
+ loofah (2.21.3)
37
36
  crass (~> 1.0.2)
38
- nokogiri (>= 1.5.9)
37
+ nokogiri (>= 1.12.0)
39
38
  method_source (1.0.0)
40
- mini_portile2 (2.4.0)
41
- minitest (5.14.2)
42
- minitest-reporters (1.4.2)
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.10.10)
48
- mini_portile2 (~> 2.4.0)
49
- rack (2.2.3)
50
- rack-test (1.1.0)
51
- rack (>= 1.0, < 3)
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.3.0)
56
- loofah (~> 2.3)
57
- railties (6.1.0)
58
- actionpack (= 6.1.0)
59
- activesupport (= 6.1.0)
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 (>= 0.8.7)
63
+ rake (>= 12.2)
62
64
  thor (~> 1.0)
63
- rake (13.0.3)
64
- ruby-progressbar (1.10.1)
65
- thor (1.0.1)
66
- tzinfo (2.0.4)
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.4.2)
71
+ zeitwerk (2.6.8)
69
72
 
70
73
  PLATFORMS
71
74
  ruby
72
75
 
73
76
  DEPENDENCIES
74
- bundler (~> 2.0)
77
+ bundler
75
78
  jsoneditor-rails!
76
79
  minitest
77
80
  minitest-reporters
78
81
  rake
79
82
 
80
83
  BUNDLED WITH
81
- 2.1.4
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/8.6.1/"
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
 
@@ -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", "~> 2.0"
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"
@@ -1,5 +1,5 @@
1
1
  module Jsoneditor
2
2
  module Rails
3
- VERSION = "1.0.4"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -43,8 +43,8 @@
43
43
  id="namedview4144"
44
44
  showgrid="true"
45
45
  inkscape:zoom="4"
46
- inkscape:cx="101.95756"
47
- inkscape:cy="63.092516"
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>