living_document 1.0.0 → 1.1.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: 5333d18700fb6f434f873c15fddd87f2e91fd811efe23125ae017022f84f35dc
4
- data.tar.gz: 8c181f2f67c7dd4b9f08284c87a65d04e371c757362aa366518f1bbcdeec1b70
3
+ metadata.gz: 6b46000477f0e791df373e18f40d772cc23ace4ade6c28a6ad03a2380e1fb94a
4
+ data.tar.gz: ddb0ea02b80c748c7ce66f148551d13f1c508cb6fd8008fa10e306a31f2f49bd
5
5
  SHA512:
6
- metadata.gz: 7bdd09efd21f2166bbb240ac8a7ac6899279c180e9a23202caea1114ef02f776bfe3a9dece7ecbbd1897e9b07522493bf813b41afa0ec68fc593841613d7a2a3
7
- data.tar.gz: eebf8135e7cab06726572129aa3db97e89a3d7183ac6cf543b10b1ff3e3df685e2159fb404cb5610994d7ebdf1de16953096984d92030c78fbc54af3eb2ee9c4
6
+ metadata.gz: 110ae630a49333ac60af0291d35e087e157a4cdbea1bb22507419f66e61bfb47d71c4e8b72a0babc27fc24de93b33f47bc558645446a85d4246ceae70a344475
7
+ data.tar.gz: 3b7d7ca65e03271992e59fe599104dd0eaf1da6671767773f5eb549fc9871dcb73b645b982105153567a0fda2bcd6e3bf8048edba91967aebf41449f0fc5480b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.1.0 (2025-01-29)
2
+ - Support `-h`/`--help` and `-v`/`--version` CLI flags.
3
+
1
4
  ## v1.0.0 (2025-01-29)
2
5
  - **BREAKING:** Remove web server functionality.
3
6
  - **BREAKING:** Freeze time with `timecop` when executing code.
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- living_document (1.0.0)
12
+ living_document (1.1.0)
13
13
  activesupport (>= 6)
14
14
  listen (>= 3.2)
15
15
  memo_wise (>= 1.7)
@@ -217,7 +217,7 @@ CHECKSUMS
217
217
  json (2.9.1) sha256=d2bdef4644052fad91c1785d48263756fe32fcac08b96a20bb15840e96550d11
218
218
  language_server-protocol (3.17.0.4) sha256=c484626478664fd13482d8180947c50a8590484b1258b99b7aedb3b69df89669
219
219
  listen (3.9.0) sha256=db9e4424e0e5834480385197c139cb6b0ae0ef28cc13310cfd1ca78377d59c67
220
- living_document (1.0.0)
220
+ living_document (1.1.0)
221
221
  logger (1.6.5) sha256=c3cfe56d01656490ddd103d38b8993d73d86296adebc5f58cefc9ec03741e56b
222
222
  memo_wise (1.10.0) sha256=ae40ff8e7799697ff5d59d739b8766f76be22eba69c7c8468edb42ab83c94c3f
223
223
  method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
data/exe/livdoc CHANGED
@@ -3,9 +3,17 @@
3
3
  # frozen_string_literal: true
4
4
 
5
5
  require 'listen'
6
+ require 'optparse'
6
7
 
7
8
  require_relative '../lib/living_document.rb'
8
9
 
10
+ parser = OptionParser.new
11
+ parser.on('-v', '--version', 'Print the version') do
12
+ puts(LivingDocument::VERSION)
13
+ exit(0)
14
+ end
15
+ parser.parse!
16
+
9
17
  # rubocop:disable Style/TopLevelMethodDefinition
10
18
  def evaluate_code_and_update_source_file(file_path)
11
19
  puts('Running code...')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LivingDocument
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: living_document
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger