hoe-bundler 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Binary file
File without changes
@@ -1,3 +1,10 @@
1
+ === 1.1.0 / 2011-03-20
2
+
3
+ * Enhancements:
4
+
5
+ * Warning message ("Do not edit") in the generated Gemfile. (thanks to phiggins)
6
+ * Infer version ">=0" when people don't specify a version in their Hoe config. (thanks to phiggins)
7
+
1
8
  === 1.0.0 / 2010-07-21
2
9
 
3
10
  * 1 major enhancement
@@ -5,7 +5,7 @@ class Hoe #:nodoc:
5
5
  # * <tt>bundler:gemfile</tt>
6
6
  #
7
7
  module Bundler
8
- VERSION = "1.0.0" #:nodoc:
8
+ VERSION = "1.1.0" #:nodoc:
9
9
 
10
10
  def define_bundler_tasks
11
11
  desc "generate a bundler Gemfile from your Hoe.spec dependencies"
@@ -13,13 +13,17 @@ class Hoe #:nodoc:
13
13
  File.open("Gemfile","w") do |gemfile|
14
14
  gemfile.puts "# -*- ruby -*-"
15
15
  gemfile.puts
16
+ gemfile.puts "# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`."
17
+ gemfile.puts
16
18
  gemfile.puts "source :gemcutter"
17
19
  gemfile.puts
18
20
  self.extra_deps.each do |name, version|
21
+ version ||= ">=0"
19
22
  gemfile.puts %Q{gem "#{name}", "#{version.gsub(/ /,'')}"}
20
23
  end
21
24
  gemfile.puts
22
25
  self.extra_dev_deps.each do |name, version|
26
+ version ||= ">=0"
23
27
  gemfile.puts %Q{gem "#{name}", "#{version.gsub(/ /,'')}", :group => [:development, :test]}
24
28
  end
25
29
  gemfile.puts
@@ -1,13 +1,16 @@
1
1
  # -*- ruby -*-
2
2
 
3
+ # DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
4
+
3
5
  source :gemcutter
4
6
 
7
+ gem "xxx", ">=0"
5
8
  gem "yyy", ">=0"
6
9
  gem "zzz", "<1.5.0"
7
10
 
8
- gem "rubyforge", ">=2.0.4", :group => [:development, :test]
9
11
  gem "aaa", ">=0", :group => [:development, :test]
10
12
  gem "bbb", ">=2.2.0", :group => [:development, :test]
11
- gem "hoe", ">=2.6.1", :group => [:development, :test]
13
+ gem "ccc", ">=0", :group => [:development, :test]
14
+ gem "hoe", ">=2.9.1", :group => [:development, :test]
12
15
 
13
16
  # vim: syntax=ruby
@@ -4,8 +4,10 @@ $: << File.expand_path(File.join(File.dirname(__FILE__),"../../lib"))
4
4
  Hoe.plugin :bundler
5
5
  Hoe.spec "fixture_project" do
6
6
  developer("MCA","mca@example.com")
7
+ extra_deps << ["xxx"]
7
8
  extra_deps << ["yyy", ">=0"]
8
9
  extra_deps << ["zzz", "< 1.5.0"]
9
10
  extra_dev_deps << ["aaa", ">=0"]
10
11
  extra_dev_deps << ["bbb", ">= 2.2.0"]
12
+ extra_dev_deps << ["ccc"]
11
13
  end
@@ -13,11 +13,14 @@ class TestHoeBundler < Test::Unit::TestCase
13
13
  end
14
14
 
15
15
  assert_match %r{^# -\*- ruby -\*-$}, gemfile
16
+ assert_match %r{^# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.}, gemfile
16
17
  assert_match %r{^source :gemcutter$}, gemfile
18
+ assert_match %r{^gem "xxx", ">=0"$}, gemfile
17
19
  assert_match %r{^gem "yyy", ">=0"$}, gemfile
18
20
  assert_match %r{^gem "zzz", "<1.5.0"$}, gemfile
19
21
  assert_match %r{^gem "aaa", ">=0", :group => \[:development, :test\]$}, gemfile
20
22
  assert_match %r{^gem "bbb", ">=2.2.0", :group => \[:development, :test\]$}, gemfile
23
+ assert_match %r{^gem "ccc", ">=0", :group => \[:development, :test\]$}, gemfile
21
24
  assert_match %r{^gem "hoe", ">=\d\.\d\.\d", :group => \[:development, :test\]$}, gemfile
22
25
  assert_match %r{^# vim: syntax=ruby$}, gemfile
23
26
  end
metadata CHANGED
@@ -1,21 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Dalessio
14
14
  autorequire:
15
15
  bindir: bin
16
- cert_chain: []
16
+ cert_chain:
17
+ - |
18
+ -----BEGIN CERTIFICATE-----
19
+ MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMRYwFAYDVQQDDA1taWtl
20
+ LmRhbGVzc2lvMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
21
+ FgNjb20wHhcNMDkwODExMDU0MjQ5WhcNMTAwODExMDU0MjQ5WjBEMRYwFAYDVQQD
22
+ DA1taWtlLmRhbGVzc2lvMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJ
23
+ k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDANjr7
24
+ lZ1DKtK8YvNp+5kBzIpwrpClHRrosqo01qmWfGBxZckQUtrJUwGPxpzvIHVq1VKp
25
+ a9FXU/QWYek/1S0vhkOf9XGmFBnVCtbJhwGeyzsQFFSoQIfs2hd5gO0dSRpuKdi3
26
+ slfJAXzFKg1u/7OCVPgrY/mkdh34MzL5p0gSDzPt7vLPibctHg0GoepYT5Fh1tMQ
27
+ luzgrN0weTw/QoEWTMQcNk6CyUpzv0pOe7d0qEPQ9Lx7Lz64gIym3f0pKFpWLfME
28
+ l7PFLeR95zw2zsuZQwCR5ma5zjXD3mo2jk1mVqiI8qplOL1u30FU7hRhTV5n/Qe9
29
+ elDQoZW9Xz0R5JGDAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
30
+ A1UdDgQWBBRXWlUJZXcR1jkZPE24+mjUTCqNxjANBgkqhkiG9w0BAQUFAAOCAQEA
31
+ jDh5M41sg1MZKG1DXzQmo/IADeWRmXyb3EZaED9lhFFpoQqaralgpgmvuc0GswvO
32
+ QIZijh03tPQz8lgp1U1OFZod2ZwbEVTtVZpxs1ssjMraOA6KzlsNROH0XonIiy6j
33
+ r2Q0UF35ax8pvr3D5Y6AKzIW1F3aeiREylUDJlb/i1dPQ2PVK0yRrSQoK2epwM9E
34
+ zoczlHTTJc/tRvH5Up3Agcv9y+J0U9a1Af9NRsnHPVBdo2H32MsJ99x5NRDWJmJg
35
+ ohH37UR7njcc6j4fo22IwTqXaaXJdtVdAWjXP/xs5B3cPYSP6uqFnR46Jf86Iqj1
36
+ FlqnTjy13J3nD30uxy9a1g==
37
+ -----END CERTIFICATE-----
17
38
 
18
- date: 2010-07-21 00:00:00 -04:00
39
+ date: 2011-03-20 00:00:00 -04:00
19
40
  default_executable:
20
41
  dependencies:
21
42
  - !ruby/object:Gem::Dependency
@@ -34,26 +55,10 @@ dependencies:
34
55
  version: 2.2.0
35
56
  type: :runtime
36
57
  version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rubyforge
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 7
46
- segments:
47
- - 2
48
- - 0
49
- - 4
50
- version: 2.0.4
51
- type: :development
52
- version_requirements: *id002
53
58
  - !ruby/object:Gem::Dependency
54
59
  name: rake
55
60
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
61
+ requirement: &id002 !ruby/object:Gem::Requirement
57
62
  none: false
58
63
  requirements:
59
64
  - - ">="
@@ -63,23 +68,23 @@ dependencies:
63
68
  - 0
64
69
  version: "0"
65
70
  type: :development
66
- version_requirements: *id003
71
+ version_requirements: *id002
67
72
  - !ruby/object:Gem::Dependency
68
73
  name: hoe
69
74
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
75
+ requirement: &id003 !ruby/object:Gem::Requirement
71
76
  none: false
72
77
  requirements:
73
78
  - - ">="
74
79
  - !ruby/object:Gem::Version
75
- hash: 21
80
+ hash: 41
76
81
  segments:
77
82
  - 2
78
- - 6
83
+ - 9
79
84
  - 1
80
- version: 2.6.1
85
+ version: 2.9.1
81
86
  type: :development
82
- version_requirements: *id004
87
+ version_requirements: *id003
83
88
  description: Generate a Gemfile based on a Hoe spec's declared dependencies.
84
89
  email:
85
90
  - mike.dalessio@gmail.com
@@ -106,6 +111,7 @@ files:
106
111
  - test/fixture_project/lib/fixture_project.rb
107
112
  - test/fixture_project/test/test_fixture_project.rb
108
113
  - test/test_hoe_bundler.rb
114
+ - .gemtest
109
115
  has_rdoc: true
110
116
  homepage: http://github.com/flavorjones/hoe-bundler
111
117
  licenses: []
@@ -137,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
143
  requirements: []
138
144
 
139
145
  rubyforge_project: hoe-bundler
140
- rubygems_version: 1.3.7
146
+ rubygems_version: 1.6.0
141
147
  signing_key:
142
148
  specification_version: 3
143
149
  summary: Generate a Gemfile based on a Hoe spec's declared dependencies.
@@ -0,0 +1,2 @@
1
+ 1�m�g!}B�M�"�ݖ�is�[i%��<hd��+���0���*Sp����QE�T�B�p(����;�]��=��Z0<�,h�� ���� ��f>��.���Knq��E_c;(�����T�gj&�$�t�&��B�jC&2>6S�˺��`
2
+ ������,��S����#�U�f;�