srm 0.1.0 → 0.3.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
  SHA1:
3
- metadata.gz: 97c09442d65cba67714bf458938601fc73e1c9a4
4
- data.tar.gz: b06273c1d3fdd0b00574709bb521e66d026a1ae9
3
+ metadata.gz: 4c355a2faf061d518c18dcf7f855488018de9995
4
+ data.tar.gz: 677674efaafc2811ea5e5ed59a8a2ec5a518671f
5
5
  SHA512:
6
- metadata.gz: eae98af63cb0620bcae791e4c7038e86c15641b370bb95140f586eeff6eebea7ecbf1e573dff6a87fe2ee2fe3f6c9fd8f7f9beab54ecbc06bf4c9e88302a5046
7
- data.tar.gz: 74d4095431b419f3e81affcd2fe0f5a26b82aa50c82c15d6e03fdc7eaca21731f33aa5fde72b5822b569e109463bbb1e22099393490fec30fd43cae7a504cdc3
6
+ metadata.gz: 82c63f06f44d40ede311784bd1be69b2d7ab1a9e67df57eef5aeda85ea70167f08bca18b3c644975c6d7478123363bf4c06c74b4982560d1222b0469babb69b2
7
+ data.tar.gz: f1f902231e79df4ea63c60a0ae9ef9427baa77a3447ce7a7a3b82763f71a6be71181c50bb7dc3ef976f47f0309a069493388e5aac90dc3dfde917eefeb568c94
@@ -0,0 +1,14 @@
1
+ ## 0.3.0 (2015-11-17)
2
+
3
+ Features:
4
+ - implement Srm::Hash.is_not_empty?
5
+
6
+ ## 0.2.0 (2015-11-17)
7
+
8
+ Features:
9
+ - implement Srm::Hash.hash_truthy_member?
10
+
11
+ ## 0.1.0 (2015-11-16)
12
+
13
+ Features:
14
+ - implement Srm.is_a_hash?
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in srm.gemspec
4
4
  gemspec
5
+
6
+ gem 'pry'
data/README.md CHANGED
@@ -1,24 +1,25 @@
1
- # Srm
1
+ # Srm / Some Ruby Methods
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/srm`. 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
3
+ - A collection of helpful Ruby methods
4
+ - This is a prototype
5
+ - Build w/ Ruby 2.2.3
6
+ - Tested w/ Rspec 3.4
6
7
 
7
8
  ## Installation
8
9
 
9
- Add this line to your application's Gemfile:
10
+ Install on your system:
10
11
 
11
- ```ruby
12
- gem 'srm'
12
+ ```
13
+ gem install srm
13
14
  ```
14
15
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
16
+ In your app:
20
17
 
21
- $ gem install srm
18
+ ```
19
+ # Add this to your Gemfile
20
+ gem 'srm'
21
+ ```
22
+ And then run `bundle install`
22
23
 
23
24
  ## Usage
24
25
 
@@ -26,13 +27,11 @@ TODO: Write usage instructions here
26
27
 
27
28
  ## Development
28
29
 
29
- 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.
30
-
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).
30
+ TODO: Write development instructions here
32
31
 
33
32
  ## Contributing
34
33
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/srm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/amorphid/srm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
35
 
37
36
 
38
37
  ## License
data/lib/srm.rb CHANGED
@@ -2,7 +2,7 @@ require "srm/version"
2
2
 
3
3
  module Srm
4
4
  def is_a_hash?(object)
5
- object.is_a? Hash
5
+ object.is_a? ::Hash
6
6
  end
7
7
 
8
8
  extend self
@@ -0,0 +1,13 @@
1
+ module Srm
2
+ module Hash
3
+ def has_truthy_member?(hash, key)
4
+ hash[key] ? true : false
5
+ end
6
+
7
+ def is_not_empty?(hash)
8
+ hash.length > 0
9
+ end
10
+
11
+ extend self
12
+ end
13
+ end
@@ -1,3 +1,5 @@
1
+ require 'srm/hash'
2
+
1
3
  module Srm
2
- VERSION = "0.1.0"
4
+ VERSION = "0.3.0"
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Pope
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-16 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -62,6 +62,7 @@ files:
62
62
  - ".gitignore"
63
63
  - ".rspec"
64
64
  - ".travis.yml"
65
+ - CHANGELOG.md
65
66
  - CODE_OF_CONDUCT.md
66
67
  - Gemfile
67
68
  - LICENSE.txt
@@ -70,6 +71,7 @@ files:
70
71
  - bin/console
71
72
  - bin/setup
72
73
  - lib/srm.rb
74
+ - lib/srm/hash.rb
73
75
  - lib/srm/version.rb
74
76
  - srm.gemspec
75
77
  homepage: https://github.com/amorphid/srm