ordinare 0.0.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ordinare.rb +8 -0
- data/lib/ordinare/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6db1aa209ae60c8a5667d18c7d5c1bd72633c18d
|
4
|
+
data.tar.gz: f95a237ac4459d7e2983a82c259a2b217a6a6bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adb55f68100504ac3802348875159f85b281f773d982b33b62769d9bda438f24815e080b8f157fe7fe2f68cd809fdc55ede340339d177e9625871fff95754790
|
7
|
+
data.tar.gz: f5f2c7ebc8260d82b2460d36eddc4c35ce97bd4b429ac2dcfbc874165e34cdba641f0b431b5e9f7b05d38866f505b248a8ff9aaa609423e3c9d776749aa995c8
|
data/lib/ordinare.rb
CHANGED
@@ -30,5 +30,13 @@ module Ordinare
|
|
30
30
|
unless File.file?(path)
|
31
31
|
abort("No Gemfile found in the current directory, is this a Rails project with Gemfile?")
|
32
32
|
end
|
33
|
+
|
34
|
+
content = File.readlines(path)
|
35
|
+
|
36
|
+
content = content.sort
|
37
|
+
|
38
|
+
File.open("#{path}.ordinare", "w+") do |file|
|
39
|
+
content.each { |line| file.puts(line) }
|
40
|
+
end
|
33
41
|
end
|
34
42
|
end
|
data/lib/ordinare/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ordinare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Đuza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|