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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 743972cecf02bab4d0a114da6a8651a12c94d92b
4
- data.tar.gz: 89f6440b2527ce97870024f74a02de40c3dcd787
3
+ metadata.gz: 6db1aa209ae60c8a5667d18c7d5c1bd72633c18d
4
+ data.tar.gz: f95a237ac4459d7e2983a82c259a2b217a6a6bc5
5
5
  SHA512:
6
- metadata.gz: 6d8fe2162765bb5a34d6deb4d392d811c2bd2c1da169df4a7d80fd39e863018869975b72583be90c2060cfa6b51b04027c8902ed10e8a359d4b82df7478bc12d
7
- data.tar.gz: 3b0c33285d24d861bb86e9107881784b4a6e93fc6493b3c932a9d8250d260464aeec8a327dc5fa625344d6ef9d3eb2c22287b0c53b7b34af77cd0781ea81fd54
6
+ metadata.gz: adb55f68100504ac3802348875159f85b281f773d982b33b62769d9bda438f24815e080b8f157fe7fe2f68cd809fdc55ede340339d177e9625871fff95754790
7
+ data.tar.gz: f5f2c7ebc8260d82b2460d36eddc4c35ce97bd4b429ac2dcfbc874165e34cdba641f0b431b5e9f7b05d38866f505b248a8ff9aaa609423e3c9d776749aa995c8
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Ordinare
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.0.3
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-28 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec