happy_gemfile 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/README.md +7 -0
- data/lib/happy_gemfile.rb +8 -0
- data/lib/happy_gemfile/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28995502b026e6e4a2aad46b5c5b69449189e79b
|
4
|
+
data.tar.gz: 2352f7597eb3ad6c5667aa9a267ce45da3326a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11222bd429cf6c6a4c95e3bc99530fad8c9fb8e0b71bf7ffe321f7e3b994c29bb7b1ee2d39aba332bfe999808783844e786285a1cc61ef87001e070c59889234
|
7
|
+
data.tar.gz: 446da8ebbf5850f532a93333b3b7f1d0cdc73040261bdee7698be8751032b9439adfefc286683d1687fae5c22afb84fd3b4b253dae00139b472cee41ff428f26
|
data/README.md
CHANGED
@@ -41,6 +41,13 @@ happy_gemfile all # one arg to call them all! (RECOMMENDED)
|
|
41
41
|
Alternatively, you can call the alphabetize method directly in your app, say, in your config.rb.
|
42
42
|
```ruby
|
43
43
|
HappyGemfile.alphabetize
|
44
|
+
|
45
|
+
HappyGemfile.wipe_comments
|
46
|
+
|
47
|
+
HappyGemfile.organize_groups
|
48
|
+
|
49
|
+
HappyGemfile.all
|
50
|
+
|
44
51
|
```
|
45
52
|
|
46
53
|
|
data/lib/happy_gemfile.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
require "happy_gemfile/version"
|
2
2
|
|
3
3
|
module HappyGemfile
|
4
|
+
|
5
|
+
def self.all
|
6
|
+
gemfile = wipe_comments
|
7
|
+
gemfile = organize_groups gemfile
|
8
|
+
gemfile = alphabetize gemfile
|
9
|
+
replace_gemfile gemfile
|
10
|
+
end
|
11
|
+
|
4
12
|
def self.alphabetize lines=nil
|
5
13
|
|
6
14
|
lines ||= gemfile
|