html_to_prosemirror 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8935f33d9eac4d73c32033c04e41ecd6da9db59d92225adbbec488b2ca8e70ca
4
- data.tar.gz: 00f10c603815b5acf72fd9f1eb8d0599b2e32965ff6c6684d602dbd410d0dae8
3
+ metadata.gz: 7b5af058ad7514fd19c6c84dc683e2f9deadcb7a50a5bd36210d0177e481995c
4
+ data.tar.gz: 0bee0c99a34d5a424a5fa8272b1880f6ea6294ceb40438554da838bcd1b1daee
5
5
  SHA512:
6
- metadata.gz: 7dd2d9b460d21298e15b76fa3e0afd0b349e213098dd824a4c36901bff27a9456109e3e1e94e40cf236c180661653e08b73a22cb31964b77ef2f00fbefc18f73
7
- data.tar.gz: ac73b140013b29251100d209ca32174b37d45c1fcc74712206597ba9f23730dd8bbc5a45feb04730a346eb1a484d845d60f9fbe6284528af157b77253214e88d
6
+ metadata.gz: 1a522f04a6d0e30cbf7204ed943c2c8c691a0961c505ca35af994bf06322799eac40bbd6201690101e0d04a217b9edcb6543ead128698879430f9e335de05a2f
7
+ data.tar.gz: 31c226082188c7e41061b37f69625540efafefe57f74fa3054a4299223f47b1cd79c2fb13b45cf0df5015b507859b30ce90db1ff69f68c5a0c96d5c92c261218
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ features/**/*.feature
4
+ -
5
+ LICENSE.md
data/RELEASE.md ADDED
@@ -0,0 +1,28 @@
1
+ # Releasing a new version of html_to_prosemirror
2
+
3
+ 1. Create a list of all the changes since the prior release
4
+ 1. Compare the latest release to master using https://github.com/inputhq/html_to_prosemirror/compare/`${latest}`...master
5
+ 1. Open the linked pull requests from all the `Merge pull request #...` commits
6
+ 1. For all non-documentation PRs, copy title (including pull request number) into markdown list items
7
+ 1. (optional, but nice) Sort into logical buckets, like "support for additional endpoints", "enhancements", "bugfixes"
8
+ 1. Reorganize to put the pull request number at the start of the line
9
+ 1. Ensure there are no breaking changes _(if there are breaking changes you'll need to create a release branch without those changes or bump the major version)_
10
+ 1. Update the version
11
+ 1. Update the constant in `lib/html_to_prosemirror/version.rb`
12
+ 1. Commit and push directly to master
13
+ 1. Run the `script/release` script to cut a release
14
+ 1. Draft a new release at https://github.com/inputhq/html_to_prosemirror.rb/releases/new containing the curated changelog
15
+
16
+ ## Prerequisites
17
+
18
+ In order to create a release, you will need to be an owner of the html_to_prosemirror gem on Rubygems.
19
+
20
+ Verify with:
21
+ ```
22
+ gem owner html_to_prosemirror
23
+ ```
24
+
25
+ An existing owner can add new owners with:
26
+ ```
27
+ gem owner html_to_prosemirror --add EMAIL
28
+ ```
@@ -47,7 +47,6 @@ module HtmlToProsemirror
47
47
 
48
48
  def render(value)
49
49
  minified = minify_html(value.strip! || value)
50
- puts minified
51
50
  @document = Nokogiri::HTML.fragment(minified)
52
51
  content = render_children(@document)
53
52
  return {
@@ -1,3 +1,3 @@
1
1
  module HtmlToProsemirror
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/scripts/package ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ # Usage: script/gem
3
+ # Updates the gemspec and builds a new gem in the pkg directory.
4
+
5
+ gem build *.gemspec
6
+ mv *.gem pkg
data/scripts/release ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env bash
2
+ # Usage: script/release
3
+ # Build the package, tag a commit, push it to origin, and then release the
4
+ # package publicly.
5
+
6
+ set -e
7
+
8
+ version="$(script/package | grep Version: | awk '{print $2}')"
9
+ [ -n "$version" ] || exit 1
10
+
11
+ echo $version
12
+ git commit --allow-empty -a -m "Release $version"
13
+ git tag "v$version"
14
+ git push origin
15
+ git push origin "v$version"
16
+ gem push pkg/*-${version}.gem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_to_prosemirror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Kimball
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-29 00:00:00.000000000 Z
11
+ date: 2019-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,6 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".document"
90
91
  - ".gitignore"
91
92
  - ".rspec"
92
93
  - ".travis.yml"
@@ -95,6 +96,7 @@ files:
95
96
  - Gemfile.lock
96
97
  - LICENSE.txt
97
98
  - README.md
99
+ - RELEASE.md
98
100
  - Rakefile
99
101
  - bin/console
100
102
  - bin/setup
@@ -118,6 +120,8 @@ files:
118
120
  - lib/html_to_prosemirror/nodes/text.rb
119
121
  - lib/html_to_prosemirror/nodes/user.rb
120
122
  - lib/html_to_prosemirror/version.rb
123
+ - scripts/package
124
+ - scripts/release
121
125
  homepage: https://github.com/inputhq/html_to_prosemirror
122
126
  licenses:
123
127
  - MIT