gemfile 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/gemfile +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb73d03c0396acb5e5915b8edf698b1df4801fb5
4
- data.tar.gz: 22ff1b160117520e5771c5ee2fec93052f81e8a3
3
+ metadata.gz: 31a4df38c7bffa0b1798d72c550d3493853983c5
4
+ data.tar.gz: 58cadf08c224eb54c695b5dc146bb0e7f2482ebb
5
5
  SHA512:
6
- metadata.gz: bce389cb93f5709318e52d68e5e7a2fc9548d4df9693cb599e137e08258f56d7109083e2d63b17deb68a4cc5be802c840321f34a785449441a768ef71edde335
7
- data.tar.gz: 4ab54cbdf4b3909ac9e5d70e6612cfc0d57284832eec537166573232ae0d6de01c1a3a7e9cbeb1bf23d06b224c4646028270923c27e129072d55bcef9c20f447
6
+ metadata.gz: d445b656e6e7679860522c55996c9b5e341c9455d56fa08855d2531041b6e1d2e45a4e44922ba5dc0f628bb8a47b8f0430406165a2dfb56944eb09a66d1a63c3
7
+ data.tar.gz: 6a0ef74c2a2c4961e395141e1e7ae1bd49929ef81f4cb9a406223b2318c040249ada566d3dcf9560c36556589bed3531f429637a4ed79116991176afd79e71ba
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- list = `gem list`
3
+ list = File.read(ARGV[0])
4
4
 
5
5
  puts "source 'https://rubygems.org'"
6
6
  puts
7
7
 
8
8
  list.split("\n").each do |line|
9
- if line =~ /^([^ ]+)\s+\((.+)\)$/
9
+ if line =~ /^([^ ]+)\s+-v\s+(.+)$/
10
10
  puts "gem '#{$1}', '#{$2}'"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril David
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
12
+ date: 2013-06-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Library to generate a gemfile using installed gems.
15
15
  email: