jsoneditor-rails 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ .jsoneditor,
2
+ .jsoneditor-modal {
3
+ -webkit-text-size-adjust: none;
4
+ text-size-adjust: none;
5
+ }
6
+
1
7
  .jsoneditor input,
2
8
  .jsoneditor input:not([type]),
3
9
  .jsoneditor input[type=text],
@@ -600,6 +606,7 @@
600
606
 
601
607
  div.jsoneditor-field,
602
608
  div.jsoneditor-value,
609
+ a.jsoneditor-value,
603
610
  div.jsoneditor-readonly,
604
611
  div.jsoneditor-default {
605
612
  border: 1px solid transparent;
@@ -609,6 +616,8 @@ div.jsoneditor-default {
609
616
  padding: 2px;
610
617
  margin: 1px;
611
618
  word-wrap: break-word;
619
+ word-break: break-word;
620
+ overflow-wrap: break-word;
612
621
  float: left;
613
622
  }
614
623
 
@@ -617,10 +626,6 @@ div.jsoneditor-value p {
617
626
  margin: 0;
618
627
  }
619
628
 
620
- div.jsoneditor-value {
621
- word-break: break-word;
622
- }
623
-
624
629
  div.jsoneditor-value.jsoneditor-empty::after {
625
630
  content: "value";
626
631
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsoneditor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-13 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,62 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest-reporters
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
27
  description: This gem provides JSON Editor for your Rails 4+ application.
84
28
  email:
85
29
  - javier@jackpocket.com
@@ -87,19 +31,8 @@ executables: []
87
31
  extensions: []
88
32
  extra_rdoc_files: []
89
33
  files:
90
- - ".github/dependabot.yml"
91
- - ".github/workflows/ci.yml"
92
- - ".gitignore"
93
- - CHANGELOG.md
94
- - CODE_OF_CONDUCT.md
95
- - Gemfile
96
- - Gemfile.lock
97
34
  - LICENSE.txt
98
35
  - README.md
99
- - Rakefile
100
- - bin/console
101
- - bin/setup
102
- - jsoneditor-rails.gemspec
103
36
  - lib/jsoneditor-rails.rb
104
37
  - lib/jsoneditor/rails.rb
105
38
  - lib/jsoneditor/rails/engine.rb
@@ -129,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
62
  - !ruby/object:Gem::Version
130
63
  version: '0'
131
64
  requirements: []
132
- rubygems_version: 3.4.13
65
+ rubygems_version: 3.5.11
133
66
  signing_key:
134
67
  specification_version: 4
135
68
  summary: Use JSON Editor with Rails 4+
@@ -1,20 +0,0 @@
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,26 +0,0 @@
1
- name: Tests
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- ruby: [ '3.0', '3.1', '3.2' ]
15
- name: Ruby ${{ matrix.ruby }}
16
- steps:
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/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /test/dummy_assets/
data/CHANGELOG.md DELETED
@@ -1,24 +0,0 @@
1
- ## 2.0.0 (2023-06-13)
2
-
3
- * Updated jsoneditor to version 9.10.2 ([#81](../../pull/81))
4
-
5
- ## 1.0.4 (2020-12-23)
6
-
7
- * No code changes - moved repository to Jackpocket organization and updated URLs
8
-
9
- ## 1.0.3 (2018-12-07)
10
-
11
- * Updated jsoneditor to version 5.26.3 ([#5](../../pull/5))
12
-
13
- ## 1.0.2 (2018-09-14)
14
-
15
- * Updated jsoneditor to version 5.24.6 ([#4](../../pull/4))
16
-
17
- ## 1.0.1 (2017-07-14)
18
-
19
- * Updated jsoneditor to version 5.9 ([#2](../../pull/2))
20
-
21
- ## 1.0.0 (2017-04-08)
22
-
23
- * Added jsoneditor assets as part of asset pipeline
24
- * Added rake task to download latest jsoneditor files to easily do new releases
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at jjfutbol@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in jsoneditor-rails.gemspec
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,84 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jsoneditor-rails (2.0.0)
5
- railties (>= 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (7.0.5)
11
- actionview (= 7.0.5)
12
- activesupport (= 7.0.5)
13
- rack (~> 2.0, >= 2.2.4)
14
- rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (7.0.5)
18
- activesupport (= 7.0.5)
19
- builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (7.0.5)
24
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 1.6, < 2)
26
- minitest (>= 5.1)
27
- tzinfo (~> 2.0)
28
- ansi (1.5.0)
29
- builder (3.2.4)
30
- concurrent-ruby (1.2.2)
31
- crass (1.0.6)
32
- erubi (1.12.0)
33
- i18n (1.14.1)
34
- concurrent-ruby (~> 1.0)
35
- loofah (2.21.3)
36
- crass (~> 1.0.2)
37
- nokogiri (>= 1.12.0)
38
- method_source (1.0.0)
39
- mini_portile2 (2.8.2)
40
- minitest (5.18.0)
41
- minitest-reporters (1.6.0)
42
- ansi
43
- builder
44
- minitest (>= 5.0)
45
- ruby-progressbar
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)
53
- rails-dom-testing (2.0.3)
54
- activesupport (>= 4.2.0)
55
- nokogiri (>= 1.6)
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)
62
- method_source
63
- rake (>= 12.2)
64
- thor (~> 1.0)
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)
70
- concurrent-ruby (~> 1.0)
71
- zeitwerk (2.6.8)
72
-
73
- PLATFORMS
74
- ruby
75
-
76
- DEPENDENCIES
77
- bundler
78
- jsoneditor-rails!
79
- minitest
80
- minitest-reporters
81
- rake
82
-
83
- BUNDLED WITH
84
- 2.3.10
data/Rakefile DELETED
@@ -1,37 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
-
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
8
- end
9
-
10
- task default: :test
11
-
12
- # Use https://cdnjs.com/libraries/jsoneditor to view all files.
13
- DIST_URL = "https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/9.10.2/"
14
-
15
- ASSETS_PATH = ENV['ASSETS_PATH'] || 'vendor/assets/'
16
-
17
- def update_asset_files
18
- system "curl -o #{ASSETS_PATH}javascripts/jsoneditor.js #{DIST_URL}jsoneditor.js"
19
- system "curl -o #{ASSETS_PATH}javascripts/jsoneditor.map #{DIST_URL}jsoneditor.map"
20
- system "curl -o #{ASSETS_PATH}javascripts/jsoneditor-minimalist.js #{DIST_URL}jsoneditor-minimalist.js"
21
- system "curl -o #{ASSETS_PATH}javascripts/jsoneditor-minimalist.map #{DIST_URL}jsoneditor-minimalist.map"
22
- system "curl -o #{ASSETS_PATH}images/jsoneditor-icons.svg #{DIST_URL}img/jsoneditor-icons.svg"
23
- system "curl -o #{ASSETS_PATH}stylesheets/jsoneditor.scss #{DIST_URL}jsoneditor.css"
24
- end
25
-
26
- def use_asset_url_for_css_images
27
- path = "#{ASSETS_PATH}stylesheets/jsoneditor.scss"
28
- modified_css = File.read(path).gsub(/url\("\.\/img\//, 'asset-url("')
29
- File.open(path, 'w') { |f| f.write(modified_css) }
30
- end
31
-
32
- desc "Update JSON Editor assets"
33
- task :update_assets do
34
- update_asset_files
35
- use_asset_url_for_css_images
36
- puts "\e[32mAll assets have been updated.\e[0m"
37
- end
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "jsoneditor/rails"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,30 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'jsoneditor/rails/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "jsoneditor-rails"
8
- spec.version = Jsoneditor::Rails::VERSION
9
- spec.authors = ["Javier Julio"]
10
- spec.email = ["javier@jackpocket.com"]
11
-
12
- spec.summary = "Use JSON Editor with Rails 4+"
13
- spec.description = "This gem provides JSON Editor for your Rails 4+ application."
14
- spec.homepage = "https://github.com/jackpocket/jsoneditor-rails"
15
- spec.license = "MIT"
16
-
17
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
- f.match(%r{^(test|spec|features)/})
19
- end
20
- spec.bindir = "exe"
21
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
- spec.require_paths = ["lib"]
23
-
24
- spec.add_runtime_dependency "railties", ">= 3.0"
25
-
26
- spec.add_development_dependency "bundler"
27
- spec.add_development_dependency "rake"
28
- spec.add_development_dependency "minitest"
29
- spec.add_development_dependency "minitest-reporters"
30
- end