indented_io 0.8.8 → 0.9.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: b429449b90ca605dbcf4f07abaee53a8f2eece7a3131024649c0c2b55775f962
4
- data.tar.gz: eccb5276e5d1356e58809d674a27dc64651bb885c03000e1ac3150b50f989206
3
+ metadata.gz: ab6498e0cafc5162dbe8f021e5abe01d1782b103581ee6f506ad419e8d945ad7
4
+ data.tar.gz: 986de84134945946db538335c1a850805a022676b9f67b7bfdcbc888a0d2f680
5
5
  SHA512:
6
- metadata.gz: 93fc65e925cad892a1f8cb716ee5064d4a23112930e14ed184072108550e5470834fc97e400011465de1e48a645dbeee3f65883f14e2242fa6a57913bdba51d5
7
- data.tar.gz: 40161650518478d5ad566ceade2274b9900dd651f89bff44246cbd066bdd96d3a5d8cb9da5258d046d324deb1d06feaa608528d46815cce2aa0ed278bdbeeb68
6
+ metadata.gz: 3b5e24b28007050283cd1c2f2903bc19524d2abaa4f9c120d7b8c48c827a5e8ac0a4a2406258743553bfa673dd298c0937cc75ea5c0b2f162bfc33ffeedd9154
7
+ data.tar.gz: 660976e3894125018aaa7968a331144670d2e071e852f48702f4de4f5fc4bd5ea97df95fc6b2df91bc38ec5f77b880dea33576363a1733ed79f66a67a02099fa
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.7.1
1
+ ruby-3.1.2
data/Gemfile CHANGED
@@ -4,3 +4,6 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in indented_io.gemspec
6
6
  gemspec
7
+
8
+ gem "rake", "~>12.0"
9
+ gem "rspec", "~>3.0"
data/TODO CHANGED
@@ -1,5 +1,17 @@
1
1
 
2
2
  TODO
3
+ o Make the folowing wotk
4
+ # Shorthand for
5
+ # puts "Header"
6
+ # indent { puts content }
7
+ #
8
+ puts "Header", indent, content
9
+
10
+ # Shorthand for
11
+ # puts "Header"
12
+ # indent { recurse }
13
+ puts "Header", indent { recurse }
14
+
3
15
  o Fix "goes wrong" in spec/indented_io_spec.rb by making
4
16
  IndentedIOInterface#indent create a IndentedIO object for each level. This
5
17
  may require blocks to pop-off multiple levels
data/indented_io.gemspec CHANGED
@@ -1,7 +1,4 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "indented_io/version"
1
+ require_relative 'lib/indented_io/version'
5
2
 
6
3
  Gem::Specification.new do |spec|
7
4
  spec.name = "indented_io"
@@ -20,23 +17,12 @@ Gem::Specification.new do |spec|
20
17
  spec.homepage = "https://github.com/clrgit/indented_io"
21
18
  spec.license = "MIT"
22
19
 
23
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
24
- # to allow pushing to a single host or delete this section to allow pushing to any host.
25
- if spec.respond_to?(:metadata)
26
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
27
- else
28
- raise "RubyGems 2.0 or newer is required to protect against " \
29
- "public gem pushes."
30
- end
31
-
32
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
33
- f.match(%r{^(test|spec|features)/})
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
24
  end
35
25
  spec.bindir = "exe"
36
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
27
  spec.require_paths = ["lib"]
38
-
39
- spec.add_development_dependency "bundler", "~> 2.2.10"
40
- spec.add_development_dependency "rake", ">= 12.3.3"
41
- spec.add_development_dependency "rspec", "~> 3.0"
42
28
  end
@@ -1,4 +1,4 @@
1
1
  module IndentedIO
2
2
  # Version number
3
- VERSION = '0.8.8'
3
+ VERSION = '0.9.0'
4
4
  end
metadata CHANGED
@@ -1,57 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indented_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-12 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 2.2.10
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 2.2.10
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 12.3.3
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 12.3.3
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '3.0'
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
+ dependencies: []
55
13
  description: "\n IndentedIO extends Kernel, IO, and StringIO
56
14
  with an\n #indent method that redefines #print, printf,
57
15
  #puts,\n and #p to print their output indented. Indentations
@@ -88,9 +46,8 @@ files:
88
46
  homepage: https://github.com/clrgit/indented_io
89
47
  licenses:
90
48
  - MIT
91
- metadata:
92
- allowed_push_host: https://rubygems.org
93
- post_install_message:
49
+ metadata: {}
50
+ post_install_message:
94
51
  rdoc_options: []
95
52
  require_paths:
96
53
  - lib
@@ -105,8 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
62
  - !ruby/object:Gem::Version
106
63
  version: '0'
107
64
  requirements: []
108
- rubygems_version: 3.1.4
109
- signing_key:
65
+ rubygems_version: 3.3.18
66
+ signing_key:
110
67
  specification_version: 4
111
68
  summary: Print indented text
112
69
  test_files: []