nestedtext 0.2.0 → 0.6.0

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: 5a5cc29794e1c25e022f4d7d8a55699ea992184d2e57524c3f0cff863dc74729
4
- data.tar.gz: 7285c3eae03c21a52377fb9ba1c6eb35fcdcaf7d74ddb12ae97eae5a2c3e59d0
3
+ metadata.gz: 8ffd37e7360f79d6b9bd1dec3ca7687ea16d5e44f3a8ff0286af9df02307b04b
4
+ data.tar.gz: 6bd6979a011e1072cc9fea0e23b429792576b728b011d58efeb397d66dac809f
5
5
  SHA512:
6
- metadata.gz: 49473c71d4efe24d53cb3fdfc2528ed79df845e81020b7a5adc0c23291229297443865799fa783ad1bc0af5c5dc1b35837d700194cb35015086e0e6ddf9e7f7e
7
- data.tar.gz: aecd6761eef6157783ce35b76acc8a8c0ff69fda4d618389625f8bf2641eb1b05bd7331090bbaf97095638d2e70615d310fc0cc29cc9509bf3883b04405f3f8b
6
+ metadata.gz: 951bb426600944496e51b96ce51b7315baec4c54e55bf78c67cc72db222a18a70a1a328e5c29d0a48764bdc3413fe0fd674f2f23e58e04a909a057ac3d8a5165
7
+ data.tar.gz: b1cdc7c5f13b2e7846918e20707969e8cc636d4b3390622ce6914b6d785888b4319627af040a7bda95a4883c3818ae9bb83852b86d23262f325d5588bbe56191
data/.gitignore CHANGED
@@ -1,12 +1,14 @@
1
1
  # Contrary to ruby apps, ruby gems should not check in Gemfile.lock.
2
2
  # Reference: https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
3
- Gemfile.lock
3
+ /Gemfile.lock
4
4
 
5
5
  # Bundle local config
6
- .bundle/
6
+ /.bundle/
7
7
 
8
8
  # Package gem from $(rake install)
9
- pkg/
9
+ /pkg/
10
+ # When built from $(gem build *.gemspec)
11
+ /*.gem
10
12
 
11
13
  # minitest
12
14
  /test/html_reports/
data/CHANGELOG.md CHANGED
@@ -6,9 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.6.0] - 2022-01-24
10
+ ### Fixed
11
+ - Move runtime dependencies from Gemfile to .gemspec.
9
12
 
10
- ## [0.2.0] - 2022-01-24
13
+ ## [0.5.0] - 2022-01-24
11
14
  ### Added
15
+ - Publish Gem to GitHub Packages
16
+
17
+ ## [0.4.0] - 2022-01-24
18
+ - Iteration on CD GitHub Actins workflow.
19
+
20
+ ## [0.3.0] - 2022-01-24
21
+ - Iteration on CD GitHub Actins workflow.
22
+
23
+ ## [0.2.0] - 2022-01-24
12
24
  - Iteration on CD GitHub Actins workflow.
13
25
 
14
26
  ## [0.1.0] - 2022-01-24
data/Gemfile CHANGED
@@ -12,7 +12,6 @@ gemspec
12
12
  # Reference: https://github.com/rubygems/bundler/pull/7222
13
13
  # However there's an argument for using gemspec too: https://bundler.io/guides/creating_gem.html#testing-our-gem
14
14
  group :development, :test do
15
- gem "appraisal", "~> 2.4", require: false
16
15
  gem "gem-release", "~> 2.0", require: false
17
16
  gem "pry-byebug", "~> 3.9"
18
17
  gem "rake", "~> 13.0", require: false
@@ -26,6 +25,3 @@ group :test do
26
25
  gem "rubocop-rake", "~> 0.6", require: false
27
26
  gem "simplecov", "~> 0.21", require: false
28
27
  end
29
-
30
- gem "warning", "~> 1.2"
31
- gem "word_wrap", "~> 1.0"
data/README.md CHANGED
@@ -2,9 +2,10 @@
2
2
  [![Gem Version](https://badge.fury.io/rb/nestedtext.svg)](https://badge.fury.io/rb/nestedtext)
3
3
  [![Gem Downloads](https://ruby-gem-downloads-badge.herokuapp.com/nestedtext?color=brightgreen&type=total&label=gem%20downloads)](https://rubygems.org/gems/nestedtext)
4
4
  [![Data Format Version Supported](https://img.shields.io/badge/%F0%9F%84%BD%F0%9F%85%83%20Version%20Supported-3.2.1-blueviolet)](https://nestedtext.org/en/v3.2/)
5
- [![Tests](https://github.com/erikw/nestedtext-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/erikw/nestedtext-ruby/actions/workflows/ci.yml)
5
+ [![GitHub Actions: Continuous Integration](https://github.com/erikw/nestedtext-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/erikw/nestedtext-ruby/actions/workflows/ci.yml)
6
6
  [![Official Tests](https://img.shields.io/badge/%F0%9F%8F%81%20Official%20Tests-Passing-success)](https://github.com/KenKundert/nestedtext_tests/tree/585e95a73d94ac1f48e71a154e2db0ab67cf30fa)
7
- [![CodeQL](https://github.com/erikw/nestedtext-ruby/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/erikw/nestedtext-ruby/actions/workflows/codeql-analysis.yml)
7
+ [![GitHub Actions: Continuous Deployment](https://github.com/erikw/nestedtext-ruby/actions/workflows/cd.yml/badge.svg)](https://github.com/erikw/nestedtext-ruby/actions/workflows/cd.yml)
8
+ [![GitHub Actions: CodeQL Analysis](https://github.com/erikw/nestedtext-ruby/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/erikw/nestedtext-ruby/actions/workflows/codeql-analysis.yml)
8
9
  [![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/8409b6cdc3dc62a33f6f/maintainability)](https://codeclimate.com/github/erikw/nestedtext-ruby/maintainability)
9
10
  [![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/8409b6cdc3dc62a33f6f/test_coverage)](https://codeclimate.com/github/erikw/nestedtext-ruby/test_coverage)
10
11
  [![SLOC](https://img.shields.io/tokei/lines/github/erikw/nestedtext-ruby)](#)
@@ -21,12 +22,14 @@ On-going development is at branch [**dev**](https://github.com/erikw/nestedtext-
21
22
  # What is NestedText?
22
23
  TODO
23
24
 
25
+ https://nestedtext.org/en/latest/alternatives.html
26
+
24
27
  ## Examples
25
28
  TODO NT examples
26
29
 
27
30
  # Usage
28
31
  TODO Link to lib docs
29
- TODO link to my test repo showin live usage.
32
+ TODO link to my test repo showin live usage. https://github.com/erikw/nestedtext-ruby-test
30
33
 
31
34
 
32
35
  # Usage
@@ -88,12 +91,12 @@ $ bundle exec rake release
88
91
  ## (semi-manually) Using gem-release gem extension
89
92
  Using [gem-release](https://github.com/svenfuchs/gem-release):
90
93
  ```console
91
- $ vi CHANGELOG.md && git commit -am "Prepare release" && git push
94
+ $ vi CHANGELOG.md && git commit -am "Update CHANGELOG.md" && git push
92
95
  $ gem bump --version minor --tag --sign --push --release
93
96
  ```
94
97
  For `--version`, use `major|minor|patch` as needed.
95
98
 
96
- ## (semi-automatic) Using GitHub Actions CD
99
+ ## (semi-automatic, preferred) Using GitHub Actions CD
97
100
  Just push a new semver tag and the workflow [cd.yml](.github/workflows/cd.yml) will publish a new release at rubygems.org.
98
101
 
99
102
  ```console
@@ -105,7 +108,7 @@ $ git tag x.y.z && git push --tags
105
108
  or combined with gem-release
106
109
  ```console
107
110
  $ vi CHANGELOG.md
108
- $ git commit -am "Prepare release" && git push
111
+ $ git commit -am "Update CHANGELOG.md" && git push
109
112
  $ gem bump --version minor --tag --sign --push
110
113
  ```
111
114
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NestedText
4
- VERSION = "0.2.0"
4
+ VERSION = "0.6.0"
5
5
  end
data/nestedtext.gemspec CHANGED
@@ -18,10 +18,19 @@ Gem::Specification.new do |spec|
18
18
  spec.metadata["source_code_uri"] = "https://github.com/erikw/nestedtext-ruby/"
19
19
  spec.metadata["changelog_uri"] = "https://github.com/erikw/nestedtext-ruby/blob/main/CHANGELOG.md"
20
20
 
21
+ # For push to GitHub packages to work.
22
+ # Reference: https://github.community/t/unable-to-push-rubygem-to-package-registry-the-expected-resource-was-not-found/14596/7
23
+ spec.metadata = {
24
+ "github_repo" => "git@github.com:erikw/nestedtext-ruby.git"
25
+ }
26
+
21
27
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
28
  `git ls-files -z`.split("\x0").reject do |f|
23
29
  f.match(%r{\A(?:test/|script/|\.github/|\.gitmodules|Rakefile|TODO\.txt|\.codeclimate\.yml|\.vimlocal|\.simplecov)})
24
30
  end
25
31
  end
26
32
  spec.require_paths = ["lib"]
33
+
34
+ spec.add_runtime_dependency "warning", "~> 1.2"
35
+ spec.add_runtime_dependency "word_wrap", "~> 1.0"
27
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestedtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Westrup
@@ -9,7 +9,35 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-01-24 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: warning
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: word_wrap
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
13
41
  description: A ruby library implementation for the human friendly data format NestedText
14
42
  (https://nestedtext.org/). There is support for decoding a NestedText file or string
15
43
  to Ruby data structures, as well as encoding Ruby objects to a NestedText file or
@@ -49,9 +77,7 @@ homepage: https://github.com/erikw/nestedtext-ruby/
49
77
  licenses:
50
78
  - MIT
51
79
  metadata:
52
- homepage_uri: https://github.com/erikw/nestedtext-ruby/
53
- source_code_uri: https://github.com/erikw/nestedtext-ruby/
54
- changelog_uri: https://github.com/erikw/nestedtext-ruby/blob/main/CHANGELOG.md
80
+ github_repo: git@github.com:erikw/nestedtext-ruby.git
55
81
  post_install_message:
56
82
  rdoc_options: []
57
83
  require_paths: