camilla_palindrome 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d812c79cc43931bbff8c2b2ac86e2b046e6264f74ba3a94a9f75edb303d0be3e
4
+ data.tar.gz: 60799c2d0fb05d0cfc488463b3542d7a64cd59a8e286fa4c617c4834e825c413
5
+ SHA512:
6
+ metadata.gz: 837d31bdfaf615be3481a5a8cb4b8ac240e287be31f0bebc79e441f34e33fe05de1d84eb8bc3386cf83ba8444ca37bca617dce527b5c0d9604ffbcadc1e44054
7
+ data.tar.gz: f163788ed9602b7747d40b3ce73e0199fa8fb328f89c230405c14e49f2d5e5189092d8a30e7693cb3fd2e53a1588779ee3186cb005ad86c28e9282b069df3d1b
data/.DS_Store ADDED
Binary file
data/.standard.yml ADDED
@@ -0,0 +1,3 @@
1
+ # For available configuration options, see:
2
+ # https://github.com/testdouble/standard
3
+ ruby_version: 2.6
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in camilla_palindrome.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+ gem "minitest", "~> 5.0"
10
+ gem "standard", "~> 1.3"
11
+ gem 'minitest-reporters', '1.2.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ camilla_palindrome (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ansi (1.5.0)
10
+ ast (2.4.2)
11
+ builder (3.2.4)
12
+ json (2.6.3)
13
+ language_server-protocol (3.17.0.3)
14
+ minitest (5.17.0)
15
+ minitest-reporters (1.2.0)
16
+ ansi
17
+ builder
18
+ minitest (>= 5.0)
19
+ ruby-progressbar
20
+ parallel (1.22.1)
21
+ parser (3.2.1.0)
22
+ ast (~> 2.4.1)
23
+ rainbow (3.1.1)
24
+ rake (13.0.6)
25
+ regexp_parser (2.7.0)
26
+ rexml (3.2.5)
27
+ rubocop (1.44.1)
28
+ json (~> 2.3)
29
+ parallel (~> 1.10)
30
+ parser (>= 3.2.0.0)
31
+ rainbow (>= 2.2.2, < 4.0)
32
+ regexp_parser (>= 1.8, < 3.0)
33
+ rexml (>= 3.2.5, < 4.0)
34
+ rubocop-ast (>= 1.24.1, < 2.0)
35
+ ruby-progressbar (~> 1.7)
36
+ unicode-display_width (>= 2.4.0, < 3.0)
37
+ rubocop-ast (1.26.0)
38
+ parser (>= 3.2.1.0)
39
+ rubocop-performance (1.15.2)
40
+ rubocop (>= 1.7.0, < 2.0)
41
+ rubocop-ast (>= 0.4.0)
42
+ ruby-progressbar (1.11.0)
43
+ standard (1.24.3)
44
+ language_server-protocol (~> 3.17.0.2)
45
+ rubocop (= 1.44.1)
46
+ rubocop-performance (= 1.15.2)
47
+ unicode-display_width (2.4.2)
48
+
49
+ PLATFORMS
50
+ arm64-darwin-21
51
+
52
+ DEPENDENCIES
53
+ camilla_palindrome!
54
+ minitest (~> 5.0)
55
+ minitest-reporters (= 1.2.0)
56
+ rake (~> 13.0)
57
+ standard (~> 1.3)
58
+
59
+ BUNDLED WITH
60
+ 2.4.6
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # CamillaPalindrome
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/camilla_palindrome`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/camilla_palindrome.
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ require "standard/rake"
13
+
14
+ task default: %i[test standard]
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/camilla_palindrome/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "camilla_palindrome"
7
+ spec.version = CamillaPalindrome::VERSION
8
+ spec.authors = ["Camilla-8"]
9
+ spec.email = ["ideatree_camilla@naver.com"]
10
+
11
+ spec.summary = "Palindrome detector"
12
+ spec.description = "Learn Enough Ruby Palindrome Detector"
13
+ spec.homepage = "https://github.com/Camilla-8/palindrome.git"
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/Camilla-8/palindrome.git"
20
+ spec.metadata["changelog_uri"] = "https://github.com/Camilla-8/palindrome.git"
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_dependency "example-gem", "~> 1.0"
35
+
36
+ # For more information and examples about making a new gem, check out our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
data/lib/.DS_Store ADDED
Binary file
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CamillaPalindrome
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "camilla_palindrome/version"
4
+
5
+ class String
6
+
7
+ # Returns true for a palindrome, false otherwise.
8
+ def palindrome?
9
+ processed_content == processed_content.reverse
10
+ end
11
+
12
+
13
+ private
14
+
15
+ # Returns content for palindrome testing.
16
+ def processed_content
17
+ self.scan(/[a-z]/i).join.downcase
18
+ end
19
+ end
@@ -0,0 +1,4 @@
1
+ module CamillaPalindrome
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: camilla_palindrome
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Camilla-8
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Learn Enough Ruby Palindrome Detector
14
+ email:
15
+ - ideatree_camilla@naver.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".DS_Store"
21
+ - ".standard.yml"
22
+ - Gemfile
23
+ - Gemfile.lock
24
+ - README.md
25
+ - Rakefile
26
+ - camilla_palindrome.gemspec
27
+ - lib/.DS_Store
28
+ - lib/camilla_palindrome.rb
29
+ - lib/camilla_palindrome/version.rb
30
+ - sig/camilla_palindrome.rbs
31
+ homepage: https://github.com/Camilla-8/palindrome.git
32
+ licenses: []
33
+ metadata:
34
+ allowed_push_host: https://rubygems.org/
35
+ homepage_uri: https://github.com/Camilla-8/palindrome.git
36
+ source_code_uri: https://github.com/Camilla-8/palindrome.git
37
+ changelog_uri: https://github.com/Camilla-8/palindrome.git
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.6.0
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubygems_version: 3.4.6
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: Palindrome detector
57
+ test_files: []