postpost 0.1.2 → 0.2.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: e0d55f4bc045c158c5662db769b5b41e6ab12b98fc8b895c6af2add58c756b63
4
- data.tar.gz: 0f2e5488a713f5be5104fae0231d7e9a1765748fef50da2a70ad50fa4813ab6e
3
+ metadata.gz: 30c189a46928004357add5d9faeeef07055b778dd6b564475a292f2cea30dc30
4
+ data.tar.gz: 49a7cec0852e4c48908d42555089ada2e638527d7227ca13a0bc75f053a263ee
5
5
  SHA512:
6
- metadata.gz: 95cd24766ddfd8bdf66612f8ebc1c6e7b286f0074b00d92870ff480c7803e43b2ef31df08f3bdda78355f36e8f858559e35835ba06ab45f4876e4a99a9dd459a
7
- data.tar.gz: 04a3ebc585c59e2244dfbb0252a2bb22134a8665d1697713573779eb6f9b12b12c14c1be716f6cbc66563b2ce868897d0f8f6c56df88e61847819b7d7240ad39
6
+ metadata.gz: 89397cec1aa5b2978dc3dce0fb9245a46dae1ff0a24b166e498801573649972a9bfd170b549ffd42eb9bbf03c2584b56d5c18244935c716bdcc8fe409fd98e05
7
+ data.tar.gz: a3a85f45823c1a229859d7ce3c37825a93d688dfef89fe10c989d9b2fd94c808d9862c189503ebb75ec8aaf18e2a581479f25bf603ef3d6b9b73814cf6a22cae
data/exe/postpost CHANGED
@@ -4,4 +4,10 @@
4
4
  require 'postpost'
5
5
 
6
6
  text = Clipboard.paste
7
- Clipboard.copy(text.gsub(%r{\n\n<hr />\n\n}, "\n\n").gsub(/\n\n/, "\n\n<hr />\n\n"))
7
+ counter = '000'
8
+ Clipboard.copy(
9
+ text.gsub(%r{\n\n<hr />\n\n}, "\n\n").gsub(/\n\n/) {
10
+ counter = counter.next
11
+ "\n\n<hr id=\"story_#{counter}\" />\n\n"
12
+ }
13
+ )
@@ -1,3 +1,3 @@
1
1
  module Postpost
2
- VERSION = "0.1.2"
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - adworse
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clipboard