str_helpers_dave 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -9
- data/lib/str_helpers_dave/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 236c336a3b5fe5340f4a8707b63ffdc995abc3746ecad55aa5b548511a2c0223
|
4
|
+
data.tar.gz: 7e7cacc6498def7cc21425cd3244d649d648a60561fbc938f2d015f186beabc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaee7a1b2510b2bd015699056bd1365195401820de11fc0a5e2487328291984444eda1fc77f3418d3299d4bdf409ffdbfde6365ff04041780837b5929cd86295
|
7
|
+
data.tar.gz: c5c5fd8a247fe88f28af7ff7a41551b93413cb98e584203b72e24ee5284764d7edb4a4bb4496d4f00022cc9bfb9f2289f8dfd56e8492bf89ff36a7f32387c766
|
data/README.md
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# StrHelpersDave
|
2
2
|
|
3
|
-
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/str_helpers_dave`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
5
|
Add this line to your application's Gemfile:
|
@@ -21,14 +17,21 @@ Or install it yourself as:
|
|
21
17
|
$ gem install str_helpers_dave
|
22
18
|
|
23
19
|
## Usage
|
20
|
+
```ruby
|
21
|
+
StrHelpersDave.reversify('Hello')
|
22
|
+
# => 'olleH'
|
23
|
+
StrHelpersDave.casify('hello')
|
24
|
+
# => 'HEllO'
|
25
|
+
StrHelpersDave.spacify('hello', 1)
|
26
|
+
# => 'h e l l o'
|
24
27
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
+
StrHelpersDave::Greeting.greet_user('Dave')
|
29
|
+
# => 'Hello Dave!'
|
28
30
|
|
29
|
-
|
31
|
+
StrHelpersDave::Greeting.greet_user('Dave', 'Goodbye')
|
32
|
+
# => 'Goodbye Dave!
|
33
|
+
```
|
30
34
|
|
31
|
-
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
35
|
|
33
36
|
## Contributing
|
34
37
|
|