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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1887b04591633a292582cb763f4285b5341dea1
4
- data.tar.gz: 2bd0a25a7639007ee39260d25afacbd5da554424
3
+ metadata.gz: fbabbc361b1b74da99d147daa13ce95ba84170b0
4
+ data.tar.gz: a9d4fcd4c74f7af48577294cd2a6fa5e483798e0
5
5
  SHA512:
6
- metadata.gz: 441b19d195bc8f886444caf0bccead853db97632d54ce9042949f226f3af8f3a4a05c3fb53bfe48568abd14229f60e8019050acb0f0e3cc6bddc31cbcba37cef
7
- data.tar.gz: 0cf900dbc11dd33e013f9ab77273444712c942ce6877c3ec0e44eadb985c983a1b1ef6f95eacee634bde33742c6cc2b99a50f93755c1b26b0d4d71dfb752a3fc
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 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/primus`. To experiment with that code, run `bin/console` for an interactive prompt.
8
-
9
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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/[USERNAME]/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.
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
@@ -1,3 +1,3 @@
1
1
  module Primus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/primus.rb CHANGED
@@ -11,11 +11,8 @@ module Primus
11
11
  private
12
12
 
13
13
  def is_hash_empty?(hash)
14
- if hash.empty?
15
- raise RuntimeError.new("This hash is empty")
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2017-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler