interesting_methods 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 0ea34469eb43623c36642744a20b4f9798074336ac7c527da441cad58ad52d3a
4
- data.tar.gz: cf66703970fd23799cf0415e21acfbb57a65502f4ef8df9498017e39a1115f22
3
+ metadata.gz: e8ec6917f46b1e380939fea86b84a1593f0b3723705c0c3a0ffe29ad0f0729b7
4
+ data.tar.gz: a6e3b5ce8156083534446e2c29b51ee552184dd95f66ea0c3c9d31d8fa92ea45
5
5
  SHA512:
6
- metadata.gz: f66807577417a46290ebd23c5352be8c90831260e1eebf19372b1689306a56f03991c752df5f964df3b6748e808b7d7e94a1e3a8701d19a5ce0e7ebb960a6911
7
- data.tar.gz: 95bd4f05924c9b4ed1f8e5d8a55b0a21bfecfe73c82129c57f9f670387d2d0a37335074ff29c0d2f4fe4386f04fb9212674700c1712c23ed15a17666938c4ff9
6
+ metadata.gz: 28e040b32238490954c904a3832a5729a56bab7be295439968a7608d14a28f8545256feddb3a3d07276b67a2411966eb2c01bc4d2307300a85a699d5bcf0d29c
7
+ data.tar.gz: 8a058550b4e1908228a0424a50672aaf6e60349ea1e4d01adb828510a68c279ab3dfe2d36235f4599aa10d94b0d93ba5ac7c3eafceb27684599eda3ebaaf0f75
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- interesting_methods (0.1.1)
4
+ interesting_methods (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -40,25 +40,28 @@ MyModule.im
40
40
 
41
41
  ## Installation
42
42
 
43
- Create irb and pry rc files if they don't already exist:
43
+ First install the gem:
44
+
45
+ ```shell
46
+ gemm install interesting_methods
47
+ ```
48
+
49
+ Then create irb and pry rc files if they don't already exist:
44
50
 
45
51
  ```shell
46
52
  touch ~/.irbrc
47
53
  touch ~/.pryrc
48
54
  ```
49
55
 
50
- Edit those files and add the following code:
56
+ Edit each of those `rc` files and add the following code:
51
57
 
52
58
  ```ruby
53
- # This will install interesting_methods if it's not yet installed
54
- unless Gem::Specification.find_all_by_name('interesting_methods').any?
55
- system('gem install interesting_methods')
59
+ if Gem::Specification.find_all_by_name('interesting_methods').any?
60
+ require 'interesting_methods'
56
61
  end
57
-
58
- require 'interesting_methods'
59
62
  ```
60
63
 
61
- The first time you go into `irb` or `pry`, the gem will be installed.
64
+ You're all set up now!
62
65
 
63
66
  ## Usage
64
67
 
@@ -90,4 +93,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
90
93
  Having `interesting_methods` available in your repl is something ruby programmers have been doing for a while. I think I first came across it years ago in a stackoverflow post. Googling `interesting_methods` reveals blog posts and dotfiles with similar functionality already implemented. AFAIK this is the first time its been packaged up in a gem.
91
94
 
92
95
  Sean Lerner<br>
93
- https://smallcity.ca
96
+ http://smallcity.ca
@@ -6,7 +6,7 @@ class Object
6
6
 
7
7
  def interesting_methods
8
8
  if self.class == Module
9
- (singleton_methods + instance_methods).sort
9
+ (singleton_methods + instance_methods).uniq.sort
10
10
  else
11
11
  (public_methods - Object.methods).sort
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module InterestingMethods
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: interesting_methods
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
  - Sean Lerner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-23 00:00:00.000000000 Z
11
+ date: 2018-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler