jsoneditor-rails 1.0.4 → 2.1.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.
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: 1.0.4
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-23 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: '2.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.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,18 +31,8 @@ executables: []
87
31
  extensions: []
88
32
  extra_rdoc_files: []
89
33
  files:
90
- - ".github/workflows/ci.yml"
91
- - ".gitignore"
92
- - CHANGELOG.md
93
- - CODE_OF_CONDUCT.md
94
- - Gemfile
95
- - Gemfile.lock
96
34
  - LICENSE.txt
97
35
  - README.md
98
- - Rakefile
99
- - bin/console
100
- - bin/setup
101
- - jsoneditor-rails.gemspec
102
36
  - lib/jsoneditor-rails.rb
103
37
  - lib/jsoneditor/rails.rb
104
38
  - lib/jsoneditor/rails/engine.rb
@@ -113,7 +47,7 @@ homepage: https://github.com/jackpocket/jsoneditor-rails
113
47
  licenses:
114
48
  - MIT
115
49
  metadata: {}
116
- post_install_message:
50
+ post_install_message:
117
51
  rdoc_options: []
118
52
  require_paths:
119
53
  - lib
@@ -128,8 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
62
  - !ruby/object:Gem::Version
129
63
  version: '0'
130
64
  requirements: []
131
- rubygems_version: 3.1.4
132
- signing_key:
65
+ rubygems_version: 3.5.11
66
+ signing_key:
133
67
  specification_version: 4
134
68
  summary: Use JSON Editor with Rails 4+
135
69
  test_files: []
@@ -1,44 +0,0 @@
1
- name: CI Build
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: [ '2.5', '2.6', '2.7' ]
15
- 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
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,20 +0,0 @@
1
- ## 1.0.4 (2020-12-23)
2
-
3
- * No code changes - moved repository to Jackpocket organization and updated URLs
4
-
5
- ## 1.0.3 (2018-12-07)
6
-
7
- * Updated jsoneditor to version 5.26.3 ([#5](../../pull/5))
8
-
9
- ## 1.0.2 (2018-09-14)
10
-
11
- * Updated jsoneditor to version 5.24.6 ([#4](../../pull/4))
12
-
13
- ## 1.0.1 (2017-07-14)
14
-
15
- * Updated jsoneditor to version 5.9 ([#2](../../pull/2))
16
-
17
- ## 1.0.0 (2017-04-08)
18
-
19
- * Added jsoneditor assets as part of asset pipeline
20
- * 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,81 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jsoneditor-rails (1.0.4)
5
- railties (>= 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (6.1.0)
11
- actionview (= 6.1.0)
12
- activesupport (= 6.1.0)
13
- rack (~> 2.0, >= 2.0.9)
14
- rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (6.1.0)
18
- activesupport (= 6.1.0)
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 (6.1.0)
24
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 1.6, < 2)
26
- minitest (>= 5.1)
27
- tzinfo (~> 2.0)
28
- zeitwerk (~> 2.3)
29
- ansi (1.5.0)
30
- builder (3.2.4)
31
- concurrent-ruby (1.1.7)
32
- crass (1.0.6)
33
- erubi (1.10.0)
34
- i18n (1.8.5)
35
- concurrent-ruby (~> 1.0)
36
- loofah (2.8.0)
37
- crass (~> 1.0.2)
38
- nokogiri (>= 1.5.9)
39
- method_source (1.0.0)
40
- mini_portile2 (2.4.0)
41
- minitest (5.14.2)
42
- minitest-reporters (1.4.2)
43
- ansi
44
- builder
45
- minitest (>= 5.0)
46
- 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)
52
- rails-dom-testing (2.0.3)
53
- activesupport (>= 4.2.0)
54
- 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)
60
- method_source
61
- rake (>= 0.8.7)
62
- thor (~> 1.0)
63
- rake (13.0.3)
64
- ruby-progressbar (1.10.1)
65
- thor (1.0.1)
66
- tzinfo (2.0.4)
67
- concurrent-ruby (~> 1.0)
68
- zeitwerk (2.4.2)
69
-
70
- PLATFORMS
71
- ruby
72
-
73
- DEPENDENCIES
74
- bundler (~> 2.0)
75
- jsoneditor-rails!
76
- minitest
77
- minitest-reporters
78
- rake
79
-
80
- BUNDLED WITH
81
- 2.1.4
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/8.6.1/"
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", "~> 2.0"
27
- spec.add_development_dependency "rake"
28
- spec.add_development_dependency "minitest"
29
- spec.add_development_dependency "minitest-reporters"
30
- end