primus_lapus 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +6 -6
- data/lib/primus/version.rb +1 -1
- data/lib/primus.rb +2 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbabbc361b1b74da99d147daa13ce95ba84170b0
|
|
4
|
+
data.tar.gz: a9d4fcd4c74f7af48577294cd2a6fa5e483798e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 631467cf5af610cafa9f1b46e8504bcb91dc36397dc3c800ae43116daa719107f3e3d91046e6221faed6817de21d19ca0864cdb8ddffd29957b0e0ba6ba01b8f
|
|
7
|
+
data.tar.gz: 579b2dd77a818756be9287c355b8c01bfd6d58c0264b2ee77783061a8ce7bd21a03b4a62049dabee5cb95ae79a0f60a1b70d60b1327b82c3e8f09638f4cf3110
|
data/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
# Primus
|
|
5
|
+
# Primus Lapus
|
|
6
6
|
|
|
7
|
-
Welcome to
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Welcome to Primus Lapus! As the name in latin suggests, this is the first ruby gem that I've
|
|
8
|
+
written. It takes a hash as an argument, takes every other key, capitilizes them, reverses their
|
|
9
|
+
order, before turning it into a string. It that's what you need, then this is your gem!
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ Or install it yourself as:
|
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
To run the gem type, ```ruby Primus::Reorder.new.call(hash)```, passing it the hash that you have created.
|
|
30
30
|
|
|
31
31
|
## Development
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/twp88/primus. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
## License
|
data/lib/primus/version.rb
CHANGED
data/lib/primus.rb
CHANGED
|
@@ -11,11 +11,8 @@ module Primus
|
|
|
11
11
|
private
|
|
12
12
|
|
|
13
13
|
def is_hash_empty?(hash)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
else
|
|
17
|
-
take_odd_keys(hash)
|
|
18
|
-
end
|
|
14
|
+
raise RuntimeError.new("This hash is empty") if hash.empty?
|
|
15
|
+
take_odd_keys(hash)
|
|
19
16
|
end
|
|
20
17
|
|
|
21
18
|
def take_odd_keys(hash)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: primus_lapus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Page
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-08-
|
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|