fillertext 0.3.4 → 0.4.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: 1a7a91b5be2408816b02278c14f589cc3f19c3e3392b5d0450d0cce389d1c1e9
4
- data.tar.gz: a710779bec825496e0bd1a73deef0a8afe92dca62776609d5656544087d36d91
3
+ metadata.gz: bb101bd325a00b2482a214e2ad15c4aa83512139c4464f3f5f5e872f8f382043
4
+ data.tar.gz: f21c17fe9e609e67aa96d10fdf71acef946293e90d88b0f3d9f66485768db5c8
5
5
  SHA512:
6
- metadata.gz: 2890a5dcf4d30ffa3182ecb71ae9065d5abe9a1688ee5fa35d5465dcb8e42cd8d714465cdb4a3f95acf2ae0ceff77a3fe38d912c4399fca312f869e782f77a9d
7
- data.tar.gz: 077c9d02a4ca66a9f28f3fb7698aa407cdadf7b2a9f3c87871573e22792a8e5069a8a8705131688b0e07786ff81657c2354743f2ea0b0306a64f88830f443e43
6
+ metadata.gz: b2135f51bf533517cd3f27f342449fb08ecb369a5b9ac628f1fe30d77bffd8d8cb2945595deb65deec50e3bb6c8f5eb0b22ca19e6baba71db15d7736379601c7
7
+ data.tar.gz: 9975350653c63cb2f8b35721c982696afd01079a80f47baf3add121fac6670ecfc5d16d7ab226991b1e13b809c652e0a268b629d745d5875162379e836ab6cfa
@@ -0,0 +1,28 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v6.0.0
4
+ hooks:
5
+ - id: check-added-large-files
6
+ - id: check-case-conflict
7
+ - id: check-illegal-windows-names
8
+ - id: check-merge-conflict
9
+ - id: check-symlinks
10
+ - id: check-vcs-permalinks
11
+ - id: check-yaml
12
+ - id: destroyed-symlinks
13
+ - id: end-of-file-fixer
14
+ - id: fix-byte-order-marker
15
+ - id: forbid-submodules
16
+ - id: trailing-whitespace
17
+ args: [--markdown-linebreak-ext=md]
18
+ - repo: https://github.com/mattlqx/pre-commit-ruby
19
+ rev: v1.3.6
20
+ hooks:
21
+ - id: rubocop
22
+ - id: rspec
23
+
24
+ ci:
25
+ skip:
26
+ # no ruby env on pre-commit.ci
27
+ - rubocop
28
+ - rspec
data/.rubocop.yml CHANGED
@@ -1,7 +1,15 @@
1
+ plugins:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  TargetRubyVersion: 2.6
3
7
  NewCops: enable
4
8
 
9
+ Style/OneClassPerFile:
10
+ Enabled: true
11
+ AllowedClasses: ['Integer']
12
+
5
13
  Style/StringLiterals:
6
14
  Enabled: true
7
15
  EnforcedStyle: double_quotes
@@ -15,157 +23,157 @@ Layout/LineLength:
15
23
  Exclude:
16
24
  - 'lib/fillertext/styles/*.rb'
17
25
 
18
- Gemspec/DateAssignment:
26
+ Gemspec/DeprecatedAttributeAssignment:
19
27
  Enabled: true
20
28
 
21
- Gemspec/RequireMFA:
29
+ Gemspec/RequireMFA:
22
30
  Enabled: true
23
31
 
24
- Layout/LineEndStringConcatenationIndentation:
32
+ Layout/LineEndStringConcatenationIndentation:
25
33
  Enabled: true
26
34
 
27
- Layout/SpaceBeforeBrackets:
35
+ Layout/SpaceBeforeBrackets:
28
36
  Enabled: true
29
37
 
30
- Lint/AmbiguousAssignment:
38
+ Lint/AmbiguousAssignment:
31
39
  Enabled: true
32
40
 
33
- Lint/AmbiguousOperatorPrecedence:
41
+ Lint/AmbiguousOperatorPrecedence:
34
42
  Enabled: true
35
43
 
36
- Lint/AmbiguousRange:
44
+ Lint/AmbiguousRange:
37
45
  Enabled: true
38
46
 
39
- Lint/DeprecatedConstants:
47
+ Lint/DeprecatedConstants:
40
48
  Enabled: true
41
49
 
42
- Lint/DuplicateBranch:
50
+ Lint/DuplicateBranch:
43
51
  Enabled: true
44
52
 
45
- Lint/DuplicateRegexpCharacterClassElement:
53
+ Lint/DuplicateRegexpCharacterClassElement:
46
54
  Enabled: true
47
55
 
48
- Lint/EmptyBlock:
56
+ Lint/EmptyBlock:
49
57
  Enabled: true
50
58
 
51
- Lint/EmptyClass:
59
+ Lint/EmptyClass:
52
60
  Enabled: true
53
61
 
54
- Lint/EmptyInPattern:
62
+ Lint/EmptyInPattern:
55
63
  Enabled: true
56
64
 
57
- Lint/IncompatibleIoSelectWithFiberScheduler:
65
+ Lint/IncompatibleIoSelectWithFiberScheduler:
58
66
  Enabled: true
59
67
 
60
- Lint/LambdaWithoutLiteralBlock:
68
+ Lint/LambdaWithoutLiteralBlock:
61
69
  Enabled: true
62
70
 
63
- Lint/NoReturnInBeginEndBlocks:
71
+ Lint/NoReturnInBeginEndBlocks:
64
72
  Enabled: true
65
73
 
66
- Lint/NumberedParameterAssignment:
74
+ Lint/NumberedParameterAssignment:
67
75
  Enabled: true
68
76
 
69
- Lint/OrAssignmentToConstant:
77
+ Lint/OrAssignmentToConstant:
70
78
  Enabled: true
71
79
 
72
- Lint/RedundantDirGlobSort:
80
+ Lint/RedundantDirGlobSort:
73
81
  Enabled: true
74
82
 
75
- Lint/RequireRelativeSelfPath:
83
+ Lint/RequireRelativeSelfPath:
76
84
  Enabled: true
77
85
 
78
- Lint/SymbolConversion:
86
+ Lint/SymbolConversion:
79
87
  Enabled: true
80
88
 
81
- Lint/ToEnumArguments:
89
+ Lint/ToEnumArguments:
82
90
  Enabled: true
83
91
 
84
- Lint/TripleQuotes:
92
+ Lint/TripleQuotes:
85
93
  Enabled: true
86
94
 
87
- Lint/UnexpectedBlockArity:
95
+ Lint/UnexpectedBlockArity:
88
96
  Enabled: true
89
97
 
90
- Lint/UnmodifiedReduceAccumulator:
98
+ Lint/UnmodifiedReduceAccumulator:
91
99
  Enabled: true
92
100
 
93
- Lint/UselessRuby2Keywords:
101
+ Lint/UselessRuby2Keywords:
94
102
  Enabled: true
95
103
 
96
- Naming/BlockForwarding:
104
+ Naming/BlockForwarding:
97
105
  Enabled: true
98
106
 
99
- Security/IoMethods:
107
+ Security/IoMethods:
100
108
  Enabled: true
101
109
 
102
- Style/ArgumentsForwarding:
110
+ Style/ArgumentsForwarding:
103
111
  Enabled: true
104
112
 
105
- Style/CollectionCompact:
113
+ Style/CollectionCompact:
106
114
  Enabled: true
107
115
 
108
- Style/DocumentDynamicEvalDefinition:
116
+ Style/DocumentDynamicEvalDefinition:
109
117
  Enabled: true
110
118
 
111
- Style/EndlessMethod:
119
+ Style/EndlessMethod:
112
120
  Enabled: true
113
121
 
114
- Style/FileRead:
122
+ Style/FileRead:
115
123
  Enabled: true
116
124
 
117
- Style/FileWrite:
125
+ Style/FileWrite:
118
126
  Enabled: true
119
127
 
120
- Style/HashConversion:
128
+ Style/HashConversion:
121
129
  Enabled: true
122
130
 
123
- Style/HashExcept:
131
+ Style/HashExcept:
124
132
  Enabled: true
125
133
 
126
- Style/IfWithBooleanLiteralBranches:
134
+ Style/IfWithBooleanLiteralBranches:
127
135
  Enabled: true
128
136
 
129
- Style/InPatternThen:
137
+ Style/InPatternThen:
130
138
  Enabled: true
131
139
 
132
- Style/MapToHash:
140
+ Style/MapToHash:
133
141
  Enabled: true
134
142
 
135
- Style/MultilineInPatternThen:
143
+ Style/MultilineInPatternThen:
136
144
  Enabled: true
137
145
 
138
- Style/NegatedIfElseCondition:
146
+ Style/NegatedIfElseCondition:
139
147
  Enabled: true
140
148
 
141
- Style/NilLambda:
149
+ Style/NilLambda:
142
150
  Enabled: true
143
151
 
144
- Style/NumberedParameters:
152
+ Style/NumberedParameters:
145
153
  Enabled: true
146
154
 
147
- Style/NumberedParametersLimit:
155
+ Style/NumberedParametersLimit:
148
156
  Enabled: true
149
157
 
150
- Style/OpenStructUse:
158
+ Style/OpenStructUse:
151
159
  Enabled: true
152
160
 
153
- Style/QuotedSymbols:
161
+ Style/QuotedSymbols:
154
162
  Enabled: true
155
163
 
156
- Style/RedundantArgument:
164
+ Style/RedundantArgument:
157
165
  Enabled: true
158
166
 
159
- Style/RedundantSelfAssignmentBranch:
167
+ Style/RedundantSelfAssignmentBranch:
160
168
  Enabled: true
161
169
 
162
- Style/SelectByRegexp:
170
+ Style/SelectByRegexp:
163
171
  Enabled: true
164
172
 
165
- Style/StringChars:
173
+ Style/StringChars:
166
174
  Enabled: true
167
175
 
168
- Style/SwapValues:
176
+ Style/SwapValues:
169
177
  Enabled: true
170
178
 
171
179
  Metrics/MethodLength:
@@ -176,4 +184,4 @@ Metrics/MethodLength:
176
184
  Metrics/BlockLength:
177
185
  Enabled: true
178
186
  Exclude:
179
- - 'spec/*_spec.rb'
187
+ - 'spec/*_spec.rb'
data/CHANGELOG.md CHANGED
@@ -5,6 +5,41 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.1](https://github.com/colindean/fillertext/compare/v0.4.0...v0.4.1) (2026-03-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Add release-please config ([4834d06](https://github.com/colindean/fillertext/commit/4834d06fa90f545609c391caab625809c3f5bf65))
14
+ * Add release-please config and fix workflow ([127ac46](https://github.com/colindean/fillertext/commit/127ac4683e4453a914543307284416f7ce61066d))
15
+ * Downgrade manifest version from 0.4.1 to 0.4.0 ([eac7850](https://github.com/colindean/fillertext/commit/eac7850a5acb5bf04508f65cf123a58ed8a3985f))
16
+ * Populate release-please manifest manually ([d47cc74](https://github.com/colindean/fillertext/commit/d47cc74d4704cd0bd9430ec72b6017db7d1c2781))
17
+ * Set include-component-in-tag to avoid component-vtag ([64d64b6](https://github.com/colindean/fillertext/commit/64d64b6bc5af6ff823ea2886f4a90b0bb22010ae))
18
+ * Use config file in release-please-action ([daf626b](https://github.com/colindean/fillertext/commit/daf626b92b51eaa1521e9c93363e7b2bb6a8d087))
19
+
20
+ ## [0.4.0](https://github.com/colindean/fillertext/compare/v0.3.5...v0.4.0) (2026-03-12)
21
+
22
+ ### Features
23
+
24
+ * Added `ScotsWordOfTheDay` style
25
+ * Dev: testing on Ruby 4.0
26
+ * Dev: adds pre-commit config, Dependabot, and zizmor GitHub Actions security scans
27
+
28
+ ### Bug Fixes
29
+
30
+ * Recognize that Mike Lange died
31
+
32
+ ### Deprecations
33
+
34
+ * No longer testing on Ruby older than 3.3 (but Ruby 2.6 continues to be the baseline)
35
+
36
+ ## [0.3.5](https://github.com/colindean/fillertext/compare/v0.3.4...v0.3.5) (2022-10-21)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * Update README.md, add instructions for: ([61e8e6f](https://github.com/colindean/fillertext/commit/61e8e6fa26f410badac701cdd3b064f29b0f222a))
42
+
8
43
  ### [0.3.4](https://github.com/colindean/fillertext/compare/v0.3.3...v0.3.4) (2022-02-07)
9
44
 
10
45
 
data/CITATION.cff CHANGED
@@ -8,6 +8,6 @@ authors:
8
8
  given-names: "Colin"
9
9
  orcid: "https://orcid.org/0000-0002-3374-6891"
10
10
  title: "fillertext"
11
- version: 0.2.2
12
- date-released: 2022-01-26
11
+ version: 0.4.0
12
+ date-released: 2026-03-12
13
13
  url: "https://github.com/colindean/fillertext"
data/Gemfile CHANGED
@@ -5,12 +5,16 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in fillertext.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 13.0"
8
+ gem "rake"
9
9
 
10
- gem "rspec", "~> 3.0"
10
+ gem "rspec"
11
11
 
12
- gem "rubocop", "~> 1.21"
12
+ gem "rubocop"
13
13
 
14
- gem "rubocop-rake", "~> 0.5.1"
14
+ gem "rubocop-rake"
15
15
 
16
- gem "rubocop-rspec", "~> 1.3", ">= 1.3.1"
16
+ gem "rubocop-rspec"
17
+
18
+ gem "rdoc"
19
+
20
+ gem "simplecov"
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  FillerText is licensed under the MIT license.
2
2
 
3
- Copyright (C) 2011-2022 by Colin Dean
3
+ Copyright (C) 2011-2026 by Colin Dean
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -60,12 +60,31 @@ FillerText::FillerText.style = FillerText::Style::LoremIpsum
60
60
  FillerText::FillerText.style = FillerText::Style::HipsterIpsum
61
61
  # handmade just like grandma's pierogies
62
62
  FillerText::FillerText.style = FillerText::Style::YinzerIpsum
63
- # homage to the great Pittsburgh Penguins announcer
64
- FillerTest::FillerText.style = FillerText::Style::MikeLange
63
+ # homage to the late, great Pittsburgh Penguins announcer
64
+ FillerText::FillerText.style = FillerText::Style::MikeLange
65
+ # homage to Len Pennie's Scots Word of the Day
66
+ FillerText::FillerText.style = FillerText::Style::ScotsWordOfTheDay
65
67
  ```
66
68
 
67
69
  Contributing to FillerText
68
70
  --------------------------
71
+ ### Setting up the project
72
+ 1. [Create a fork](https://github.com/colindean/fillertext/fork) of the GitHub project repo.
73
+ 2. `git clone` the forked repository to your local system.
74
+ 3. Make sure that the version of Ruby you're using meets the [minimum requirement in the gemspec](fillertext.gemspec#L15).
75
+ 4. Run `bundle install` to install dependencies. It should tell you at this point if you don't have an adequate Ruby version installed.
76
+ 5. Check basic sanity by running `bundle exec rake` to run tests and checks _before_ you make any changes.
77
+ 6. Make your changes and commit them to a feature branch. If you're picking a particular GitHub issue, please put `gh-##-topic` in the branch where `##` is the ticket number and `topic` is a few words about it.
78
+ 7. Push to your own repo and then submit a pull request to this one!
79
+
80
+ ### Testing the project
81
+ FillerText uses [RSpec](https://github.com/rspec/rspec-core) for unit testing and [SimpleCov](https://github.com/simplecov-ruby/simplecov) for code coverage. New specifications can be added inside the `spec/` directory.
82
+
83
+ 1. Make sure that the project is set up properly (see [Setting up the project](#setting-up-the-project))
84
+ 2.
85
+ 1. Run `rspec` to run all the tests by default
86
+ 2. To run only a selected few tests, run `rspec spec/<test_you're_interested_in>_spec.rb`
87
+ 3. To access code coverage details, run `xdg-open coverage/index.html` (on Linux) or `open coverage/index.html` (on Mac)
69
88
 
70
89
  Patches welcome. Please file using Github issues.
71
90
 
@@ -98,4 +117,3 @@ License
98
117
  FillerText is licensed under the MIT license.
99
118
  Copyright (C) 2011-2022 by Colin Dean.
100
119
  See [LICENSE.txt](LICENSE.txt) for more.
101
-
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.unshift File.expand_path("lib", __dir__)
4
+ require "fillertext/version"
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "fillertext"
8
+ s.version = FillerText::VERSION
9
+ s.authors = ["Colin Dean"]
10
+ s.email = "git+gems@cad.cx"
11
+
12
+ s.summary = "Generates filler/placeholder text in a Rubyistic way"
13
+ s.description = "Generates filler text through a direct interface or by monkeypatching Fixnum"
14
+ s.homepage = "http://github.com/colindean/fillertext"
15
+ s.required_rubygems_version = ">= 2.6.0"
16
+
17
+ s.files = Dir.chdir(File.expand_path(__dir__)) do
18
+ `git ls-files -z`.split("\x0").reject do |f|
19
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
20
+ end
21
+ end
22
+ s.bindir = "exe"
23
+ s.executables = s.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
24
+ s.require_paths = ["lib"]
25
+
26
+ s.extra_rdoc_files = [
27
+ "LICENSE.txt",
28
+ "README.md"
29
+ ]
30
+ s.licenses = ["MIT"]
31
+
32
+ s.required_ruby_version = ">= 2.6.0"
33
+ s.metadata["rubygems_mfa_required"] = "true"
34
+ end
@@ -5,6 +5,7 @@ module FillerText
5
5
  # Style: MikeLange
6
6
  class MikeLange
7
7
  # https://en.wikipedia.org/wiki/Mike_Lange
8
+ # 3 March 1948 – 19 February 2025
8
9
  #
9
10
  # sourced from:
10
11
  # https://en.wikiquote.org/wiki/Mike_Lange
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FillerText
4
+ module Style
5
+ # Style: ScotsWordOfTheDay
6
+ class ScotsWordOfTheDay
7
+ # https://www.instagram.com/misspunnypennie/
8
+ # https://www.youtube.com/@misspunnypennie/shorts
9
+ def self.text
10
+ "Thon tumshie/baigie/neep gied him a fleg.
11
+ Dinnae ye gang oot aifter the mirkenin.
12
+ She's ma neebour.
13
+ A'm aff the morra.
14
+ Whaur ye gaun?
15
+ Och, hameldaeme.
16
+ She's aye hail at the hert.
17
+ Dinnae loss the heid wae me!
18
+ Thon lassie had muckle powstie.
19
+ He's a bauld-dar laddie.
20
+ The wean's maw telt him, 'Yer tea's oot.'
21
+ A'm no havin children, A’m gonnae hae weans.
22
+ Thon yin's aye awfy pirlie."
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FillerText
4
- VERSION = "0.3.4"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,43 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fillertext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Dean
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-02-07 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rdoc
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '6.4'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '6.4'
27
- - !ruby/object:Gem::Dependency
28
- name: simplecov
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.21.2
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.21.2
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
41
12
  description: Generates filler text through a direct interface or by monkeypatching
42
13
  Fixnum
43
14
  email: git+gems@cad.cx
@@ -47,6 +18,7 @@ extra_rdoc_files:
47
18
  - LICENSE.txt
48
19
  - README.md
49
20
  files:
21
+ - ".pre-commit-config.yaml"
50
22
  - ".rspec"
51
23
  - ".rubocop.yml"
52
24
  - CHANGELOG.md
@@ -57,12 +29,14 @@ files:
57
29
  - Rakefile
58
30
  - bin/console
59
31
  - bin/setup
32
+ - fillertext.gemspec
60
33
  - lib/fillertext.rb
61
34
  - lib/fillertext/fillertext.rb
62
35
  - lib/fillertext/integer.rb
63
36
  - lib/fillertext/styles/hipster.rb
64
37
  - lib/fillertext/styles/lorem.rb
65
38
  - lib/fillertext/styles/mike_lange.rb
39
+ - lib/fillertext/styles/scots_word_of_the_day.rb
66
40
  - lib/fillertext/styles/yinzer.rb
67
41
  - lib/fillertext/version.rb
68
42
  homepage: http://github.com/colindean/fillertext
@@ -70,7 +44,6 @@ licenses:
70
44
  - MIT
71
45
  metadata:
72
46
  rubygems_mfa_required: 'true'
73
- post_install_message:
74
47
  rdoc_options: []
75
48
  require_paths:
76
49
  - lib
@@ -85,8 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
58
  - !ruby/object:Gem::Version
86
59
  version: 2.6.0
87
60
  requirements: []
88
- rubygems_version: 3.0.1
89
- signing_key:
61
+ rubygems_version: 3.6.9
90
62
  specification_version: 4
91
63
  summary: Generates filler/placeholder text in a Rubyistic way
92
64
  test_files: []