psychgus 1.2.1 → 1.2.2

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: 45e44e424ed93bfb0d7bfc839e749576112b893f11d7e92a013fad608a95fc00
4
- data.tar.gz: 0fea838c43246424d747dd778d834c8e879cffcf265bdbcd136c9b8d170c8537
3
+ metadata.gz: 8a27bbbad046bb56766bbbf05da64314757237a44b3f941105b848e178391625
4
+ data.tar.gz: 61b3437d298d84718a226be9ee5e904cd0f46bde245200f0b239bcd3e0a6ba83
5
5
  SHA512:
6
- metadata.gz: b434a4da0294268f31a7452f267901f93deb686eeb92ae16b9049cf2a143902aa2e09c3c73464dc077109edfd1b2afda5fc045c9e25344d54d9bfa86b73926ec
7
- data.tar.gz: 49df65fe217e187e00564e8df18730e7cb8afbdf432a58173787a93ff775218300677b7fbe5b0133d34ddc6ab3a254cd0d034d075efb09c152de26a1254aa813
6
+ metadata.gz: 2af6115edfa0e408141e709331d308b6de33c338d1febbd924bf7e2fdd138abf65f1463d129a59799e50bfa57b2e6b631ef811c06e7a60ee8a23506f4087d104
7
+ data.tar.gz: 31056d1397820d97b490aee89acef035f29424ba78f05d0d9ab0520b6898b9255e5284367b7f9c02fc6d54c2506abfad625b262415d7dc992b46e879234bc405
data/CHANGELOG.md CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [[Unreleased]](https://github.com/esotericpig/psychgus/compare/v1.2.1...master)
5
+ ## [[Unreleased]](https://github.com/esotericpig/psychgus/compare/v1.2.2...master)
6
+
7
+ ## [v1.2.2] - 2020-03-15
8
+
9
+ ### Fixed
10
+ - Fixed Psych version to be >= 3.0 for `to_yaml/encode_with` warnings
11
+ - This is mainly for Windows
12
+ - [Ruby-lang Bug #13115](https://bugs.ruby-lang.org/issues/13115)
13
+ - [GitHub Psych Commit](https://github.com/ruby/psych/commit/712a65a53f3c15105cd86e8ad3ee3c779050ada4)
6
14
 
7
15
  ## [v1.2.1] - 2019-12-18
8
16
 
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Psychgus
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/psychgus.svg)](https://badge.fury.io/rb/psychgus)
3
+ [![Gem Version](https://badge.fury.io/rb/psychgus.svg)](https://badge.fury.io/rb/psychgus) ![ruby tests](https://github.com/esotericpig/psychgus/workflows/ruby%20tests/badge.svg)
4
4
 
5
- [![Documentation](https://img.shields.io/badge/doc-yard-%23A0522D.svg?style=for-the-badge)](https://esotericpig.github.io/docs/psychgus/yardoc/index.html)
6
- [![Source Code](https://img.shields.io/badge/source-github-%23A0522D.svg?style=for-the-badge)](https://github.com/esotericpig/psychgus)
7
- [![Changelog](https://img.shields.io/badge/changelog-md-%23A0522D.svg?style=for-the-badge)](CHANGELOG.md)
8
- [![License](https://img.shields.io/github/license/esotericpig/psychgus.svg?color=%23A0522D&style=for-the-badge)](LICENSE.txt)
5
+ [![Documentation](https://img.shields.io/badge/doc-yard-%23A0522D.svg)](https://esotericpig.github.io/docs/psychgus/yardoc/index.html)
6
+ [![Source Code](https://img.shields.io/badge/source-github-%23211F1F.svg)](https://github.com/esotericpig/psychgus)
7
+ [![Changelog](https://img.shields.io/badge/changelog-md-%23A0522D.svg)](CHANGELOG.md)
8
+ [![License](https://img.shields.io/github/license/esotericpig/psychgus.svg)](LICENSE.txt)
9
9
 
10
10
  Psychgus uses the core standard library [Psych](https://github.com/ruby/psych) for working with [YAML](https://yaml.org) and extends it so that developers can easily style the YAML according to their needs.
11
11
 
@@ -573,6 +573,7 @@ puts EggCarton.new.to_yaml
573
573
 
574
574
  ```
575
575
  $ git clone 'https://github.com/esotericpig/psychgus.git'
576
+ $ cd psychgus
576
577
  $ bundle install
577
578
  $ bundle exec rake -T
578
579
  ```
@@ -589,28 +590,20 @@ Run all tests:
589
590
 
590
591
  ### [Generating Doc](#hacking)
591
592
 
592
- Generate basic doc:
593
-
594
- `$ bundle exec rake yard`
595
-
596
- Fix GitHub-specific differences:
597
-
598
- `$ bundle exec rake yard_fix`
599
-
600
- Clean doc & run all of the above:
593
+ Generate doc:
601
594
 
602
- `$ bundle exec rake yard_fresh`
595
+ `$ bundle exec rake doc`
603
596
 
604
- Deploy doc to my GitHub Page (not useful for others):
597
+ Clean & generate pristine doc:
605
598
 
606
- `$ bundle exec rake ghp_doc`
599
+ `$ bundle exec rake clobber doc`
607
600
 
608
601
  ## [License](#contents)
609
602
 
610
603
  [GNU LGPL v3+](LICENSE.txt)
611
604
 
612
605
  > Psychgus (<https://github.com/esotericpig/psychgus>)
613
- > Copyright (c) 2017-2019 Jonathan Bradley Whited (@esotericpig)
606
+ > Copyright (c) 2017-2020 Jonathan Bradley Whited (@esotericpig)
614
607
  >
615
608
  > Psychgus is free software: you can redistribute it and/or modify
616
609
  > it under the terms of the GNU Lesser General Public License as published by
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  #--
4
4
  # This file is part of Psychgus.
5
- # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
5
+ # Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
6
6
  #
7
7
  # Psychgus is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Lesser General Public License as published by
@@ -29,18 +29,16 @@ require 'psychgus/version'
29
29
  require 'rake/clean'
30
30
  require 'rake/testtask'
31
31
 
32
+
32
33
  task default: [:test]
33
34
 
34
35
  CLEAN.exclude('.git/','stock/')
35
36
  CLOBBER.include('doc/')
36
37
 
37
- # Execute "rake ghp_doc" for a dry run
38
- # Execute "rake ghp_doc[true]" for actually deploying
39
- YardGhurt::GHPSyncTask.new(:ghp_doc) do |task|
40
- task.description = %q(Rsync "doc/" to my GitHub Page's repo; not useful for others)
41
-
42
- task.ghp_dir = '../esotericpig.github.io/docs/psychgus/yardoc'
43
- task.sync_args << '--delete-after'
38
+
39
+ # Execute "rake clobber doc" for pristine docs
40
+ desc 'Generate documentation (YARDoc)'
41
+ task :doc => [:yard,:yard_gfm_fix] do |task|
44
42
  end
45
43
 
46
44
  Rake::TestTask.new() do |task|
@@ -57,11 +55,11 @@ task :test_all do |task|
57
55
  ENV['PSYCHGUS_TEST'] = 'all'
58
56
 
59
57
  test_task = Rake::Task[:test]
58
+
60
59
  test_task.reenable()
61
60
  test_task.invoke()
62
61
  end
63
62
 
64
- # Execute "rake clobber yard" for pristine docs
65
63
  YARD::Rake::YardocTask.new() do |task|
66
64
  task.files = [File.join('lib','**','*.rb')]
67
65
 
@@ -73,7 +71,7 @@ YARD::Rake::YardocTask.new() do |task|
73
71
  task.options += ['--title',"Psychgus v#{Psychgus::VERSION} Doc"]
74
72
  end
75
73
 
76
- YardGhurt::GFMFixTask.new(:yard_fix) do |task|
74
+ YardGhurt::GFMFixTask.new() do |task|
77
75
  task.description = 'Fix (find & replace) text in the YARD files for GitHub differences'
78
76
 
79
77
  task.arg_names = [:dev]
@@ -92,7 +90,3 @@ YardGhurt::GFMFixTask.new(:yard_fix) do |task|
92
90
  task.js_scripts << %Q(<script src="#{GHP_ROOT}/js/prism.js"></script>)
93
91
  end
94
92
  end
95
-
96
- desc 'Generate pristine YARDoc'
97
- task :yard_fresh => [:clobber,:yard,:yard_fix] do |task|
98
- end
@@ -23,5 +23,5 @@
23
23
 
24
24
  module Psychgus
25
25
  # Version of this gem in "#.#.#" format
26
- VERSION = '1.2.1'
26
+ VERSION = '1.2.2'
27
27
  end
data/psychgus.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #--
5
5
  # This file is part of Psychgus.
6
- # Copyright (c) 2017-2019 Jonathan Bradley Whited (@esotericpig)
6
+ # Copyright (c) 2017-2020 Jonathan Bradley Whited (@esotericpig)
7
7
  #
8
8
  # Psychgus is free software: you can redistribute it and/or modify
9
9
  # it under the terms of the GNU Lesser General Public License as published by
@@ -25,6 +25,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
25
25
 
26
26
  require 'psychgus/version'
27
27
 
28
+
28
29
  Gem::Specification.new() do |spec|
29
30
  spec.name = 'psychgus'
30
31
  spec.version = Psychgus::VERSION
@@ -52,13 +53,16 @@ Gem::Specification.new() do |spec|
52
53
 
53
54
  spec.required_ruby_version = '>= 2.1.10'
54
55
 
55
- spec.add_runtime_dependency 'psych','>= 2.0.5'
56
+ # 3.0 is needed for this issue:
57
+ # - https://bugs.ruby-lang.org/issues/13115
58
+ # - https://github.com/ruby/psych/commit/712a65a53f3c15105cd86e8ad3ee3c779050ada4
59
+ spec.add_runtime_dependency 'psych','>= 3.0'
56
60
 
57
- spec.add_development_dependency 'bundler' ,'~> 1.16'
58
- spec.add_development_dependency 'minitest' ,'~> 5.11' # For testing
59
- spec.add_development_dependency 'rake' ,'~> 12.3'
60
- spec.add_development_dependency 'rdoc' ,'~> 6.1' # For RDoc for YARD (*.rb)
61
+ spec.add_development_dependency 'bundler' ,'~> 1.17'
62
+ spec.add_development_dependency 'minitest' ,'~> 5.14' # For testing
63
+ spec.add_development_dependency 'rake' ,'~> 13.0'
64
+ spec.add_development_dependency 'rdoc' ,'~> 6.2' # For RDoc for YARD (*.rb)
61
65
  spec.add_development_dependency 'redcarpet' ,'~> 3.5' # For Markdown for YARD (*.md)
62
66
  spec.add_development_dependency 'yard' ,'~> 0.9' # For documentation
63
- spec.add_development_dependency 'yard_ghurt','~> 1.1' # For YARD GitHub rake tasks
67
+ spec.add_development_dependency 'yard_ghurt','~> 1.2' # For YARD GitHub rake tasks
64
68
  end
@@ -114,9 +114,9 @@ Toppings:
114
114
  expected = self.class.lstrip_pipe(expected)
115
115
 
116
116
  assert_equal expected,BURGERS_DATA.to_yaml(indent: 3,stylers: @flow_styler)
117
- assert_equal expected,BURGERS_DATA.to_yaml({:indent=>3,:stylers=>@flow_styler})
117
+ assert_equal expected,BURGERS_DATA.to_yaml(**{:indent=>3,:stylers=>@flow_styler})
118
118
  assert_equal expected,BURGERS_DATA.to_yaml(indentation: 3,stylers: @flow_styler)
119
- assert_equal expected,BURGERS_DATA.to_yaml({:indentation=>3,:stylers=>@flow_styler})
119
+ assert_equal expected,BURGERS_DATA.to_yaml(**{:indentation=>3,:stylers=>@flow_styler})
120
120
  end
121
121
 
122
122
  def test_node_consts()
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psychgus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bradley Whited (@esotericpig)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-18 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: psych
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.5
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: 2.0.5
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.16'
33
+ version: '1.17'
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.16'
40
+ version: '1.17'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.11'
47
+ version: '5.14'
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: '5.11'
54
+ version: '5.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '12.3'
61
+ version: '13.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: '12.3'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rdoc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '6.1'
75
+ version: '6.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '6.1'
82
+ version: '6.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: redcarpet
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.1'
117
+ version: '1.2'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '1.1'
124
+ version: '1.2'
125
125
  description: Easily style YAML files using Psych, like Sequence/Mapping Flow style.
126
126
  email:
127
127
  - bradley@esotericpig.com
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.1.1
183
+ rubygems_version: 3.1.2
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Easily style YAML files using Psych.