ruby_core_extensions 0.0.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +5 -5
  2. data/.github/dependabot.yml +6 -0
  3. data/.github/workflows/release.yml +59 -0
  4. data/.github/workflows/ruby.yml +24 -0
  5. data/.gitignore +2 -0
  6. data/.rubocop.yml +21 -0
  7. data/.ruby-version +1 -0
  8. data/CHANGELOG.md +32 -0
  9. data/README.md +35 -22
  10. data/Rakefile +1 -1
  11. data/gemfiles/rails60.gemfile +6 -0
  12. data/gemfiles/rails61.gemfile +6 -0
  13. data/gemfiles/rails70.gemfile +6 -0
  14. data/lib/ruby_core_extensions/array.rb +1 -10
  15. data/lib/ruby_core_extensions/class.rb +0 -3
  16. data/lib/ruby_core_extensions/compact/array.rb +1 -2
  17. data/lib/ruby_core_extensions/compact/hash.rb +3 -4
  18. data/lib/ruby_core_extensions/enumerable.rb +0 -3
  19. data/lib/ruby_core_extensions/file.rb +0 -1
  20. data/lib/ruby_core_extensions/hash.rb +3 -15
  21. data/lib/ruby_core_extensions/kernel.rb +0 -2
  22. data/lib/ruby_core_extensions/numeric.rb +0 -2
  23. data/lib/ruby_core_extensions/object.rb +5 -7
  24. data/lib/ruby_core_extensions/recursive/array.rb +42 -44
  25. data/lib/ruby_core_extensions/recursive/hash.rb +14 -17
  26. data/lib/ruby_core_extensions/recursive/object.rb +8 -4
  27. data/lib/ruby_core_extensions/recursive.rb +0 -5
  28. data/lib/ruby_core_extensions/string.rb +8 -9
  29. data/lib/ruby_core_extensions/version.rb +1 -1
  30. data/lib/ruby_core_extensions.rb +1 -4
  31. data/ruby_core_extensions.gemspec +6 -6
  32. data/spec/array_spec.rb +33 -12
  33. data/spec/compact_spec.rb +13 -13
  34. data/spec/enumerable_spec.rb +13 -9
  35. data/spec/filename_spec.rb +0 -1
  36. data/spec/hash_spec.rb +41 -30
  37. data/spec/object_spec.rb +4 -5
  38. data/spec/string_spec.rb +3 -1
  39. data/spec/support/coverage.rb +2 -28
  40. metadata +19 -33
  41. data/.travis.yml +0 -14
  42. data/gemfiles/rails3.gemfile +0 -11
  43. data/gemfiles/rails4.gemfile +0 -11
  44. data/lib/ruby_core_extensions/recursive/big_decimal.rb +0 -5
  45. data/lib/ruby_core_extensions/recursive/date.rb +0 -8
  46. data/lib/ruby_core_extensions/recursive/date_time.rb +0 -8
  47. data/lib/ruby_core_extensions/recursive/fixnum.rb +0 -7
  48. data/lib/ruby_core_extensions/recursive/time.rb +0 -8
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'rake'
6
- gem 'rdoc'
7
- gem 'rspec'
8
- gem 'simplecov'
9
- gem 'simplecov-rcov'
10
- gem 'activesupport', '~> 3.2.0'
11
- end
@@ -1,11 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec :path => '../'
3
-
4
- group :development, :test do
5
- gem 'rake'
6
- gem 'rdoc'
7
- gem 'rspec'
8
- gem 'simplecov'
9
- gem 'simplecov-rcov'
10
- gem 'activesupport', '~> 4.0.0'
11
- end
@@ -1,5 +0,0 @@
1
- class BigDecimal
2
- def stringify_values_recursively
3
- self.to_s
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- class Date
2
-
3
- def stringify_values_recursively
4
- self.to_s
5
- end
6
-
7
- end
8
-
@@ -1,8 +0,0 @@
1
- class DateTime
2
-
3
- def stringify_values_recursively
4
- self.to_s
5
- end
6
-
7
- end
8
-
@@ -1,7 +0,0 @@
1
- class Fixnum
2
-
3
- def stringify_values_recursively
4
- to_s
5
- end
6
-
7
- end
@@ -1,8 +0,0 @@
1
- class Time
2
-
3
- def stringify_values_recursively
4
- self.to_s
5
- end
6
-
7
- end
8
-