miles200_palindrome 0.1.0 → 0.2.0

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: ee875670f642884b971ba4d50eda510dca093a7a13afb22bbc3478903bb8a35b
4
- data.tar.gz: 0ffccfea0ee260709ee95707e527acb46d61e2dd40b437652ae6a79998de5309
3
+ metadata.gz: ec7684e9e310a3c0606ae4fd0d386b0de436b7933efd645fe4186861730a3314
4
+ data.tar.gz: d52021634804946603e72a5de113f0320ffbfebb1b74716f9278dd708af292e3
5
5
  SHA512:
6
- metadata.gz: e7733b8758408c9a116de128e355dabb49df440f1b2ccd7ea6af4d50e1e1baa2066ca8e8c01758862535b1a0d43925bbd36ea128b09fd33c2bb5af91b83960aa
7
- data.tar.gz: b5879471744eed831b1d09841f2b9438a607115f5f9264b97d6f41beb1ffe40aade7c2aa3038e9869749b3a01e85a11bdbc6f9aa1b81c2b446a37a65e4423903
6
+ metadata.gz: e13acbe5854fe7a0c2cac0c05f4f4a84586331644f7c5a2356b3184968e2172e3eea20aafd2b792cbbeb7dc5e19ad03309d53e7d03091faaa373fe064288256b
7
+ data.tar.gz: d8598c60253cbb9304ca17b3dc45e4bc0aedcfdf23016eb6741874ee288fe5be507988541e59ade90c6d37bc5f1c37e2d95849a16d3943a7806df559ee7a3388
@@ -7,10 +7,23 @@
7
7
  <content url="file://$MODULE_DIR$" />
8
8
  <orderEntry type="jdk" jdkName="Remote: ruby-3.2.0 (-p0" jdkType="RUBY_SDK" />
9
9
  <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
10
13
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.4.4, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
11
14
  <orderEntry type="library" scope="PROVIDED" name="json (v2.6.3, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.17.0, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="minitest-reporters (v1.2.0, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="parser (v3.2.0.0, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
12
20
  <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.6.1, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
13
22
  <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rubocop (v1.43.0, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.24.1, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.4.2, Remote: ruby-3.2.0 (-p0) [gem]" level="application" />
14
27
  </component>
15
28
  <component name="RakeTasksCache">
16
29
  <option name="myRootTask">
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,49 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="5721ff63-fa1e-4860-b772-e18572406827" name="Changes" comment="">
5
+ <change beforePath="$PROJECT_DIR$/lib/miles200_palindrome/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/miles200_palindrome/version.rb" afterDir="false" />
6
+ </list>
7
+ <option name="SHOW_DIALOG" value="false" />
8
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
9
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
10
+ <option name="LAST_RESOLUTION" value="IGNORE" />
11
+ </component>
12
+ <component name="MarkdownSettingsMigration">
13
+ <option name="stateVersion" value="1" />
14
+ </component>
15
+ <component name="ProjectId" id="2KnA0EFY57Aq6dkrUVxSgc0n6gn" />
16
+ <component name="ProjectViewState">
17
+ <option name="hideEmptyMiddlePackages" value="true" />
18
+ <option name="showLibraryContents" value="true" />
19
+ </component>
20
+ <component name="PropertiesComponent">{
21
+ &quot;keyToString&quot;: {
22
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
23
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
24
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
25
+ &quot;last_opened_file_path&quot;: &quot;//wsl$/Ubuntu-22.04/home/miles/repos/miles200_palindrome&quot;,
26
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
27
+ &quot;ruby.rails.projectView.checked&quot;: &quot;true&quot;,
28
+ &quot;ruby.structure.view.model.defaults.configured&quot;: &quot;true&quot;,
29
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
30
+ }
31
+ }</component>
32
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
33
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="true" RAILS_SPRING_PRE_LOADER_OPTION="true" />
34
+ <component name="TaskManager">
35
+ <task active="true" id="Default" summary="Default task">
36
+ <changelist id="5721ff63-fa1e-4860-b772-e18572406827" name="Changes" comment="" />
37
+ <created>1674599747811</created>
38
+ <option name="number" value="Default" />
39
+ <option name="presentableId" value="Default" />
40
+ <updated>1674599747811</updated>
41
+ <workItem from="1674599748855" duration="219000" />
42
+ <workItem from="1674600111899" duration="24000" />
43
+ </task>
44
+ <servers />
45
+ </component>
46
+ <component name="TypeScriptGeneratedFilesManager">
47
+ <option name="version" value="3" />
48
+ </component>
49
+ </project>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- miles200_palindrome (0.1.0)
4
+ miles200_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Miles200Palindrome
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -6,7 +6,11 @@ class String
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
9
+ if processed_content.empty?
10
+ false
11
+ else
9
12
  processed_content == processed_content.reverse
13
+ end
10
14
  end
11
15
 
12
16
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miles200_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Saunders
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-21 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,6 +61,8 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - ".idea/miles200_palindrome.iml"
63
63
  - ".idea/modules.xml"
64
+ - ".idea/vcs.xml"
65
+ - ".idea/workspace.xml"
64
66
  - ".rubocop.yml"
65
67
  - Gemfile
66
68
  - Gemfile.lock
@@ -68,7 +70,6 @@ files:
68
70
  - Rakefile
69
71
  - lib/miles200_palindrome.rb
70
72
  - lib/miles200_palindrome/version.rb
71
- - miles200_palindrome.gemspec
72
73
  - sig/miles200_palindrome.rbs
73
74
  homepage: https://github.com/miles200/miles200_palindrome
74
75
  licenses: []
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/miles200_palindrome/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "miles200_palindrome"
7
- spec.version = Miles200Palindrome::VERSION
8
- spec.authors = ["Miles Saunders"]
9
- spec.email = ["saundersmiles@gmail.com"]
10
-
11
- spec.summary = %q{Palindrome detector}
12
- spec.description = %q{Learn Enough Ruby palindrome detector}
13
- spec.homepage = "https://github.com/miles200/miles200_palindrome"
14
- spec.required_ruby_version = ">= 2.6.0"
15
-
16
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
17
-
18
- spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = "https://github.com/miles200/miles200_palindrome"
20
-
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(__dir__) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
27
- end
28
- end
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- # Uncomment to register a new dependency of your gem
34
- spec.add_development_dependency "bundler", "~> 2.4.4"
35
- spec.add_development_dependency "rake", "~> 10.0"
36
- spec.add_development_dependency "minitest", "~> 5.0"
37
-
38
- # For more information and examples about making a new gem, check out our
39
- # guide at: https://bundler.io/guides/creating_gem.html
40
- end