string_shuffle 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 1b07755887d999c07240df39a28999476e995888
4
- data.tar.gz: 8561a071f2b17d8520c27a8b09f3c239778eb175
3
+ metadata.gz: 28b677017cbaa7ccb475f8b2b28fa523eccf8228
4
+ data.tar.gz: d107e9e6b9de3c292e5b45b49dce358377d01b98
5
5
  SHA512:
6
- metadata.gz: 0c2ad797b6e2aec348d5a209fc6827203009fe3c8182d9a4fc84901026f27ae1ab3319ecd184e28a74cebf8aa59743033c063861a39ecc40521813a927d768d7
7
- data.tar.gz: bb1ea021d8f4c5cfe9da44649769a31a52fe2feb4dfe5cded725b4d3bfffd8cf39f352ae1a073d7e691037e0e18c4bdb8349af955f9dbd5fabc372805ac932ea
6
+ metadata.gz: c2eddd5f75ab007ad79b2ce206c08d1f767212763a39154ae0215b1c12e0e1d02a52ffa72455d892509ebde69e862ee50f7c0cdbc455368fd43913419bb20ead
7
+ data.tar.gz: 322c29918bc882e2f79d2f5689a205dcc177a0779cb01ea0ee7ab4b9c867bee8cdfba1e0ba88b5370ef3085e6e380b2c7166713fa30ec2e69b95824f6d870f53
data/README.md CHANGED
@@ -25,11 +25,11 @@ Or install it yourself as:
25
25
  # "loleh"
26
26
  ```
27
27
 
28
- ## Development
29
-
30
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+ ```ruby
29
+ StringShuffle.shuffle_remove_spaces("he l lo")
30
+ # "loleh"
31
+ ```
31
32
 
32
- 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).
33
33
 
34
34
  ## Contributing
35
35
 
@@ -6,4 +6,8 @@ module StringShuffle
6
6
  string.chars.shuffle.join
7
7
  end
8
8
 
9
+ def self.shuffle_remove_spaces(string)
10
+ shuffle(string).gsub(/\s+/, '')
11
+ end
12
+
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module StringShuffle
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_shuffle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivia Baddeley
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-30 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.6.8
96
+ rubygems_version: 2.6.11
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Shuffle any string