jsoneditor-rails 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +44 -0
- data/.gitignore +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +81 -0
- data/README.md +3 -3
- data/Rakefile +22 -20
- data/jsoneditor-rails.gemspec +7 -6
- data/lib/jsoneditor/rails/version.rb +1 -1
- metadata +34 -20
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e42d24ec74df81ddf3dbd784f677c910efac550124e2ca20fab6b0937194cf
|
4
|
+
data.tar.gz: 76a42e65c0f7c83efbee85e13e3f570e33541914dd866e23e757e5907191a164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e82a025de58ba606669d240c0f24231c407133efba967972e969f7a3b9376e93bf3d23192fec9685d478e972514f2b460dbaa18f105791954f30557cea8bbc05
|
7
|
+
data.tar.gz: 4a6313aad9665addd5ed4202c788d0fcbe35c664ddedd3c264ddb1c4fb27a5b1d3877bc01716135fbaf939578a844b29b43a0b79526c541e1321443c59f2f10b
|
@@ -0,0 +1,44 @@
|
|
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
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,81 @@
|
|
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/README.md
CHANGED
@@ -37,14 +37,14 @@ Then add the JSON Editor CSS to your `app/assets/stylesheets/application.scss`:
|
|
37
37
|
|
38
38
|
## Development
|
39
39
|
|
40
|
-
* `git clone https://github.com/
|
40
|
+
* `git clone https://github.com/jackpocket/jsoneditor-rails.git`
|
41
41
|
* `bundle install`
|
42
|
-
* `rake
|
42
|
+
* `rake update_assets`
|
43
43
|
* Create pull request with latest changes
|
44
44
|
|
45
45
|
## Contributing
|
46
46
|
|
47
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
47
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jackpocket/jsoneditor-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
48
48
|
|
49
49
|
## License
|
50
50
|
|
data/Rakefile
CHANGED
@@ -7,29 +7,31 @@ Rake::TestTask.new(:test) do |t|
|
|
7
7
|
t.test_files = FileList['test/**/*_test.rb']
|
8
8
|
end
|
9
9
|
|
10
|
-
task :
|
10
|
+
task default: :test
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
dist_url = "https://raw.githubusercontent.com/josdejong/jsoneditor/master/dist/"
|
15
|
-
|
16
|
-
puts "Downloading jsoneditor.js"
|
17
|
-
puts `curl -o vendor/assets/javascripts/jsoneditor.js #{dist_url}jsoneditor.js`
|
18
|
-
puts `curl -o vendor/assets/javascripts/jsoneditor.map #{dist_url}jsoneditor.map`
|
19
|
-
|
20
|
-
puts "Downloading jsoneditor-minimalist.js"
|
21
|
-
puts `curl -o vendor/assets/javascripts/jsoneditor-minimalist.js #{dist_url}jsoneditor-minimalist.js`
|
22
|
-
puts `curl -o vendor/assets/javascripts/jsoneditor-minimalist.map #{dist_url}jsoneditor-minimalist.map`
|
12
|
+
# Use https://cdnjs.com/libraries/jsoneditor to view all files.
|
13
|
+
DIST_URL = "https://cdnjs.cloudflare.com/ajax/libs/jsoneditor/8.6.1/"
|
23
14
|
|
24
|
-
|
25
|
-
puts `curl -o vendor/assets/images/jsoneditor-icons.svg #{dist_url}img/jsoneditor-icons.svg`
|
15
|
+
ASSETS_PATH = ENV['ASSETS_PATH'] || 'vendor/assets/'
|
26
16
|
|
27
|
-
|
28
|
-
|
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
|
29
25
|
|
30
|
-
|
31
|
-
|
32
|
-
File.
|
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
|
33
31
|
|
34
|
-
|
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"
|
35
37
|
end
|
data/jsoneditor-rails.gemspec
CHANGED
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "jsoneditor-rails"
|
8
8
|
spec.version = Jsoneditor::Rails::VERSION
|
9
9
|
spec.authors = ["Javier Julio"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["javier@jackpocket.com"]
|
11
11
|
|
12
12
|
spec.summary = "Use JSON Editor with Rails 4+"
|
13
13
|
spec.description = "This gem provides JSON Editor for your Rails 4+ application."
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/jackpocket/jsoneditor-rails"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -21,9 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_runtime_dependency "
|
24
|
+
spec.add_runtime_dependency "railties", ">= 3.0"
|
25
25
|
|
26
|
-
spec.add_development_dependency "bundler", "~>
|
27
|
-
spec.add_development_dependency "rake"
|
28
|
-
spec.add_development_dependency "minitest"
|
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"
|
29
30
|
end
|
metadata
CHANGED
@@ -1,83 +1,98 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsoneditor-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Julio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
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'
|
69
83
|
description: This gem provides JSON Editor for your Rails 4+ application.
|
70
84
|
email:
|
71
|
-
-
|
85
|
+
- javier@jackpocket.com
|
72
86
|
executables: []
|
73
87
|
extensions: []
|
74
88
|
extra_rdoc_files: []
|
75
89
|
files:
|
90
|
+
- ".github/workflows/ci.yml"
|
76
91
|
- ".gitignore"
|
77
|
-
- ".travis.yml"
|
78
92
|
- CHANGELOG.md
|
79
93
|
- CODE_OF_CONDUCT.md
|
80
94
|
- Gemfile
|
95
|
+
- Gemfile.lock
|
81
96
|
- LICENSE.txt
|
82
97
|
- README.md
|
83
98
|
- Rakefile
|
@@ -94,7 +109,7 @@ files:
|
|
94
109
|
- vendor/assets/javascripts/jsoneditor.js
|
95
110
|
- vendor/assets/javascripts/jsoneditor.map
|
96
111
|
- vendor/assets/stylesheets/jsoneditor.scss
|
97
|
-
homepage: https://github.com/
|
112
|
+
homepage: https://github.com/jackpocket/jsoneditor-rails
|
98
113
|
licenses:
|
99
114
|
- MIT
|
100
115
|
metadata: {}
|
@@ -113,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
128
|
- !ruby/object:Gem::Version
|
114
129
|
version: '0'
|
115
130
|
requirements: []
|
116
|
-
|
117
|
-
rubygems_version: 2.7.7
|
131
|
+
rubygems_version: 3.1.4
|
118
132
|
signing_key:
|
119
133
|
specification_version: 4
|
120
134
|
summary: Use JSON Editor with Rails 4+
|