interesting_methods 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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -9
- data/lib/interesting_methods.rb +1 -1
- data/lib/interesting_methods/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8ec6917f46b1e380939fea86b84a1593f0b3723705c0c3a0ffe29ad0f0729b7
|
|
4
|
+
data.tar.gz: a6e3b5ce8156083534446e2c29b51ee552184dd95f66ea0c3c9d31d8fa92ea45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28e040b32238490954c904a3832a5729a56bab7be295439968a7608d14a28f8545256feddb3a3d07276b67a2411966eb2c01bc4d2307300a85a699d5bcf0d29c
|
|
7
|
+
data.tar.gz: 8a058550b4e1908228a0424a50672aaf6e60349ea1e4d01adb828510a68c279ab3dfe2d36235f4599aa10d94b0d93ba5ac7c3eafceb27684599eda3ebaaf0f75
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -40,25 +40,28 @@ MyModule.im
|
|
|
40
40
|
|
|
41
41
|
## Installation
|
|
42
42
|
|
|
43
|
-
|
|
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
|
-
|
|
54
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
+
http://smallcity.ca
|
data/lib/interesting_methods.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2018-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|