gemify 0.2.4 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ $:.unshift File.dirname(__FILE__) + "/../lib"
2
+ require 'gemify'
metadata CHANGED
@@ -1,7 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ version: "0.3"
5
9
  platform: ruby
6
10
  authors:
7
11
  - Magnus Holm
@@ -9,28 +13,35 @@ autorequire:
9
13
  bindir: bin
10
14
  cert_chain: []
11
15
 
12
- date: 2008-04-06 00:00:00 +02:00
16
+ date: 2010-01-23 00:00:00 +01:00
13
17
  default_executable:
14
18
  dependencies: []
15
19
 
16
20
  description:
17
21
  email: judofyr@gmail.com
18
- executables:
19
- - gemify
20
- - gemify-manifest
22
+ executables: []
23
+
21
24
  extensions: []
22
25
 
23
26
  extra_rdoc_files: []
24
27
 
25
28
  files:
29
+ - .yardopts
30
+ - CHANGELOG
31
+ - README.md
26
32
  - bin/gemify
27
- - bin/gemify-manifest
28
- - lib/gemify
29
- - lib/gemify/vcs.rb
33
+ - gemify.gemspec
30
34
  - lib/gemify.rb
31
- has_rdoc: false
32
- homepage: http://dojo.rubyforge.org
33
- post_install_message:
35
+ - lib/gemify/base.rb
36
+ - lib/gemify/cli.rb
37
+ - lib/gemify/manifest.rb
38
+ - lib/trollop.rb
39
+ - spec/spec_helper.rb
40
+ has_rdoc: true
41
+ homepage: http://dojo.rubyforge.org/
42
+ licenses: []
43
+
44
+ post_install_message: "** Gemify has changed since 0.2, please see http://dojo.rubyforge.org/"
34
45
  rdoc_options: []
35
46
 
36
47
  require_paths:
@@ -39,20 +50,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
50
  requirements:
40
51
  - - ">="
41
52
  - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
42
55
  version: "0"
43
- version:
44
56
  required_rubygems_version: !ruby/object:Gem::Requirement
45
57
  requirements:
46
58
  - - ">="
47
59
  - !ruby/object:Gem::Version
60
+ segments:
61
+ - 0
48
62
  version: "0"
49
- version:
50
63
  requirements: []
51
64
 
52
- rubyforge_project: dojo
53
- rubygems_version: 1.1.0
65
+ rubyforge_project:
66
+ rubygems_version: 1.3.6
54
67
  signing_key:
55
- specification_version: 2
56
- summary: An extremely simple way to create a RubyGem
68
+ specification_version: 3
69
+ summary: The lightweight gemspec editor
57
70
  test_files: []
58
71
 
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $:.unshift File.dirname(__FILE__)+"/../lib"
4
-
5
- require 'gemify'
6
-
7
- manifest = (ARGV.first || ".manifest")
8
-
9
- $stdout.puts "=> Generating #{manifest}"
10
- File.open(manifest, "w") do |file|
11
- file << Gemify::VCS.files.join("\n")
12
- end
@@ -1,58 +0,0 @@
1
-
2
- require 'open3'
3
-
4
- class Gemify
5
-
6
- class VCS
7
- def self.determine_vcs
8
- vcs = :unknown
9
- if File.exist?(".git")
10
- vcs = :git
11
- elsif File.exist?("_darcs")
12
- vcs = :darcs
13
- elsif File.exist?(".hg")
14
- vcs = :hg
15
- elsif File.exist?(".bzr")
16
- vcs = :bzr
17
- elsif File.exist?(".svn")
18
- vcs = :svn
19
- elsif File.exist?("CVSROOT")
20
- vcs = :cvs
21
- end
22
-
23
- vcs
24
- end
25
-
26
- def self.get_files_from_command(command)
27
- files = []
28
-
29
- Open3.popen3(command) do |stdin, stdout, stderr|
30
- stdout.each { |line|
31
- file = line.strip
32
- files << file if File.exist?(file)
33
- }
34
- end
35
- files
36
- end
37
-
38
- def self.files(forced_vcs = false)
39
- case (forced_vcs || determine_vcs)
40
- when :git
41
- get_files_from_command("git-ls-files").delete_if { |w| w == ".gitignore" or w == ".gitattributes" }
42
- when :darcs
43
- get_files_from_command("darcs query manifest")
44
- when :bzr
45
- get_files_from_command("bzr ls").delete_if { |w| w == ".bzrignore" }
46
- when :hg
47
- get_files_from_command("hg manifest")
48
- when :svn
49
- get_files_from_command("svn ls")
50
- when :cvs
51
- get_files_from_command("cvs ls")
52
- when :unknown
53
- Dir['bin/*'] + Dir['lib/**/**']
54
- end
55
- end
56
- end
57
-
58
- end