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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b1f64b68e6fe24fd9e7b5cb600dd2289b8a05d14db957eb3844661c012e9d50
4
- data.tar.gz: d55f4e5c69896922118ec5072adfa9332f4c40cc41f35c2a0c8bd5064c332c5c
3
+ metadata.gz: f0e42d24ec74df81ddf3dbd784f677c910efac550124e2ca20fab6b0937194cf
4
+ data.tar.gz: 76a42e65c0f7c83efbee85e13e3f570e33541914dd866e23e757e5907191a164
5
5
  SHA512:
6
- metadata.gz: ff175b3f9a234a5016ef93e0a570bf41192ba517568cce22ccb478f1821b683dfa96e949665c11411b99526cd9e3dc4676e697030759df526ad7c63766d95351
7
- data.tar.gz: fc2923853f7dea9b731b3d01a4ba019e7e5d20edf172f879b12a9651477167544bf4997e4850cb0987f5a446fd3878e4ce164766432f20e4941df8588a184334
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
@@ -1,9 +1,9 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
9
+ /test/dummy_assets/
@@ -1,3 +1,7 @@
1
+ ## 1.0.4 (2020-12-23)
2
+
3
+ * No code changes - moved repository to Jackpocket organization and updated URLs
4
+
1
5
  ## 1.0.3 (2018-12-07)
2
6
 
3
7
  * Updated jsoneditor to version 5.26.3 ([#5](../../pull/5))
@@ -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/javierjulio/jsoneditor-rails.git`
40
+ * `git clone https://github.com/jackpocket/jsoneditor-rails.git`
41
41
  * `bundle install`
42
- * `rake update_json_editor_assets`
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/javierjulio/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.
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 :default => :test
10
+ task default: :test
11
11
 
12
- desc "Update JSON Editor assets"
13
- task :update_json_editor_assets do
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
- puts "Downloading jsoneditor-icons.svg"
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
- puts "Downloading jsoneditor.css"
28
- puts `curl -o vendor/assets/stylesheets/jsoneditor.scss #{dist_url}jsoneditor.css`
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
- css = File.read('vendor/assets/stylesheets/jsoneditor.scss')
31
- content = css.gsub(/url\("img\//, 'asset-url("')
32
- File.open('vendor/assets/stylesheets/jsoneditor.scss', 'w') { |f| f.write(content) }
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
- puts "\e[32mDone!\e[0m"
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
@@ -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 = ["jjfutbol@gmail.com"]
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/javierjulio/jsoneditor-rails"
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 "sass-rails"
24
+ spec.add_runtime_dependency "railties", ">= 3.0"
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.14"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "minitest", "~> 5.0"
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
@@ -1,5 +1,5 @@
1
1
  module Jsoneditor
2
2
  module Rails
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  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.3
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: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2020-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sass-rails
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: '1.14'
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: '1.14'
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: '10.0'
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: '10.0'
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: '5.0'
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: '5.0'
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
- - jjfutbol@gmail.com
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/javierjulio/jsoneditor-rails
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
- rubyforge_project:
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+
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.14.2