strings-case 0.1.0 → 0.2.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: 5985a29d7cd211560f31949ea90cacd559ec100cc993c12cd2d5c2a6c0fdb683
4
- data.tar.gz: 9e542cd6473627f1f5bad0b05ec47a0e8b667bcbf00377cac5a918da13524fad
3
+ metadata.gz: dc47bee251774eb57217a3fbac0028bd94ad6b44697f364c3d9fbb9e5f23c78c
4
+ data.tar.gz: 6d2f3fc1a27f70387723cb362fa665bdb243dc948306d5d6e5021bcadaf316b2
5
5
  SHA512:
6
- metadata.gz: 9e73e4189c6af4a9458022af07b20a8863e9fb344dadd223a1e86ba16c44a2a798c7d8fd5f663b556e89f7c8577d060791eb05c59bc967c9d9e07faa39d07ac6
7
- data.tar.gz: 7052e5e1fffd616a6c00fb92cb2869586a21232d062f1625c09503c79b396a21e645e432d63a648f479465ac99b25f25dfc83b1284009bff79a230d662ee7711
6
+ metadata.gz: 5c2a23a788a31480cdb8b099d39d5ec7ab58e9bbb8291810b4f89a1d34447a96f7883d599f056b91b85e8df19fbaf3c5503c3aa17e54efe543422ee1a4c23a3d
7
+ data.tar.gz: 771199eab86b3a8c5e350b7b14787fe9e0b0645b583cf33465d46975dd4c97a542e02426014775fe46db287e3dac9932cbad67d68e30fc22ee504cea7d58e08c
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # Change log
2
2
 
3
+ ## [v0.2.0] - 2019-11-23
4
+
5
+ ### Fixed
6
+ * Fix Ruby 2.7 keyword argument warnings
7
+
3
8
  ## [v0.1.0] - 2019-11-11
4
9
 
5
10
  * Initial implementation and release
6
11
 
12
+ [v0.2.0]: https://github.com/piotrmurach/strings-case/compare/v0.1.0...v0.2.0
7
13
  [v0.1.0]: https://github.com/piotrmurach/strings-case/compare/v0.1.0
data/README.md CHANGED
@@ -90,14 +90,14 @@ Strings::Case.snakecase("foo bar baz")
90
90
  It will transform any string into expected case:
91
91
 
92
92
  ```ruby
93
- Strings::Case.snake_case("supports IPv6 on iOS?")
93
+ Strings::Case.snakecase("supports IPv6 on iOS?")
94
94
  # => "supports_ipv6_on_ios"
95
95
  ```
96
96
 
97
97
  You can apply case transformations to Unicode characters:
98
98
 
99
99
  ```ruby
100
- Strings::Case.snake_case("ЗдравствуйтеПривет")
100
+ Strings::Case.snakecase("ЗдравствуйтеПривет")
101
101
  # => "здравствуйте_привет"
102
102
  ```
103
103
 
@@ -4,45 +4,45 @@ module Strings
4
4
  module Case
5
5
  module Extensions
6
6
  refine String do
7
- def camelcase(*args)
8
- Strings::Case.camelcase(self, *args)
7
+ def camelcase(*args, **options)
8
+ Strings::Case.camelcase(self, *args, **options)
9
9
  end
10
10
  alias lower_camelcase camelcase
11
11
 
12
- def constcase(*args)
13
- Strings::Case.constcase(self, *args)
12
+ def constcase(*args, **options)
13
+ Strings::Case.constcase(self, *args, **options)
14
14
  end
15
15
  alias constantcase constcase
16
16
 
17
- def headercase(*args)
18
- Strings::Case.headercase(self, *args)
17
+ def headercase(*args, **options)
18
+ Strings::Case.headercase(self, *args, **options)
19
19
  end
20
20
 
21
- def kebabcase(*args)
22
- Strings::Case.kebabcase(self, *args)
21
+ def kebabcase(*args, **options)
22
+ Strings::Case.kebabcase(self, *args, **options)
23
23
  end
24
24
  alias dashcase kebabcase
25
25
 
26
- def pascalcase(*args)
27
- Strings::Case.pascalcase(self, *args)
26
+ def pascalcase(*args, **options)
27
+ Strings::Case.pascalcase(self, *args, **options)
28
28
  end
29
29
  alias upper_camelcase pascalcase
30
30
 
31
- def pathcase(*args)
32
- Strings::Case.pathcase(self, *args)
31
+ def pathcase(*args, **options)
32
+ Strings::Case.pathcase(self, *args, **options)
33
33
  end
34
34
 
35
- def sentencecase(*args)
36
- Strings::Case.sentencecase(self, *args)
35
+ def sentencecase(*args, **options)
36
+ Strings::Case.sentencecase(self, *args, **options)
37
37
  end
38
38
 
39
- def snakecase(*args)
40
- Strings::Case.snakecase(self, *args)
39
+ def snakecase(*args, **options)
40
+ Strings::Case.snakecase(self, *args, **options)
41
41
  end
42
42
  alias underscore snakecase
43
43
 
44
- def titlecase(*args)
45
- Strings::Case.titlecase(self, *args)
44
+ def titlecase(*args, **options)
45
+ Strings::Case.titlecase(self, *args, **options)
46
46
  end
47
47
  end
48
48
  end # Extensions
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Strings
4
4
  module Case
5
- VERSION = "0.1.0"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strings-case
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
  - Piotr Murach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.0.3
109
+ rubygems_version: 3.0.6
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Convert strings to different cases