ore 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +0 -1
- data/ChangeLog.md +28 -18
- data/README.md +8 -6
- data/Rakefile +10 -0
- data/data/ore/templates/base/[name].gemspec.erb +1 -1
- data/data/ore/templates/base/_gemfile.erb +1 -1
- data/data/ore/templates/base/gemspec.yml.erb +2 -2
- data/data/ore/templates/base/template.yml +1 -1
- data/data/ore/templates/ore_tasks/template.yml +1 -1
- data/gemspec.yml +4 -2
- data/lib/ore/generator.rb +1 -1
- data/lib/ore/template/helpers.rb +24 -0
- data/ore.gemspec +9 -5
- data/spec/generator_spec.rb +9 -1
- data/spec/spec_helper.rb +2 -0
- metadata +43 -80
- data/GemspecYML.md +0 -272
- data/lib/ore.rb +0 -3
- data/lib/ore/checks.rb +0 -88
- data/lib/ore/defaults.rb +0 -141
- data/lib/ore/dependency.rb +0 -65
- data/lib/ore/document_file.rb +0 -118
- data/lib/ore/exceptions.rb +0 -3
- data/lib/ore/exceptions/exception.rb +0 -4
- data/lib/ore/exceptions/invalid_metadata.rb +0 -6
- data/lib/ore/exceptions/project_not_found.rb +0 -6
- data/lib/ore/naming.rb +0 -113
- data/lib/ore/paths.rb +0 -146
- data/lib/ore/project.rb +0 -591
- data/lib/ore/settings.rb +0 -262
- data/lib/ore/specification.rb +0 -29
- data/lib/ore/versions.rb +0 -3
- data/lib/ore/versions/exceptions.rb +0 -1
- data/lib/ore/versions/exceptions/invalid_version.rb +0 -8
- data/lib/ore/versions/version.rb +0 -75
- data/lib/ore/versions/version_constant.rb +0 -126
- data/lib/ore/versions/version_file.rb +0 -66
- data/lib/rubygems_plugin.rb +0 -40
- data/spec/dependency_spec.rb +0 -36
- data/spec/document_file_spec.rb +0 -29
- data/spec/helpers/files.rb +0 -7
- data/spec/helpers/files/.document +0 -5
- data/spec/helpers/files/VERSION +0 -1
- data/spec/helpers/files/VERSION.yml +0 -5
- data/spec/helpers/projects.rb +0 -13
- data/spec/helpers/projects/dm-is-plugin/Gemfile +0 -3
- data/spec/helpers/projects/dm-is-plugin/VERSION +0 -1
- data/spec/helpers/projects/dm-is-plugin/dm-is-plugin.gemspec +0 -10
- data/spec/helpers/projects/dm-is-plugin/gemspec.yml +0 -7
- data/spec/helpers/projects/dm-is-plugin/lib/dm-is-plugin.rb +0 -4
- data/spec/helpers/projects/dm-is-plugin/lib/dm-is-plugin/is/plugin.rb +0 -6
- data/spec/helpers/projects/explicit/gemspec.yml +0 -10
- data/spec/helpers/projects/explicit/lib/explicit/version.rb +0 -15
- data/spec/helpers/projects/ffi-binding/gemspec.yml +0 -9
- data/spec/helpers/projects/ffi-binding/lib/ffi/binding/version.rb +0 -5
- data/spec/helpers/projects/jewelery/VERSION +0 -1
- data/spec/helpers/projects/jewelery/bin/jewelery +0 -3
- data/spec/helpers/projects/jewelery/gemspec.yml +0 -4
- data/spec/helpers/projects/jewelery/jewelery.gemspec +0 -10
- data/spec/helpers/projects/jewelery/lib/jewelery.rb +0 -4
- data/spec/helpers/projects/jewelery/lib/jewelery/rubies.rb +0 -4
- data/spec/helpers/projects/minimal/gemspec.yml +0 -4
- data/spec/helpers/projects/minimal/lib/minimal.rb +0 -2
- data/spec/naming_spec.rb +0 -56
- data/spec/projects/dm_plugin_project_spec.rb +0 -29
- data/spec/projects/explicit_project_spec.rb +0 -33
- data/spec/projects/ffi_binding_project_spec.rb +0 -25
- data/spec/projects/jeweler_project_spec.rb +0 -17
- data/spec/projects/minimal_project_spec.rb +0 -17
- data/spec/projects/project_examples.rb +0 -34
- data/spec/versions/version_file_spec.rb +0 -28
- data/spec/versions/version_spec.rb +0 -53
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'helpers/projects'
|
3
|
-
require 'projects/project_examples'
|
4
|
-
|
5
|
-
describe "Explicit project" do
|
6
|
-
include Helpers::Projects
|
7
|
-
|
8
|
-
before(:all) do
|
9
|
-
@project = project('explicit')
|
10
|
-
end
|
11
|
-
|
12
|
-
it_should_behave_like 'an Ore Project'
|
13
|
-
|
14
|
-
it "should have a namespace directory" do
|
15
|
-
@project.namespace_dir.should == 'explicit'
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should have a license" do
|
19
|
-
@project.license.should == 'MIT'
|
20
|
-
end
|
21
|
-
|
22
|
-
it "should have a licenses" do
|
23
|
-
@project.licenses.should == ['MIT']
|
24
|
-
end
|
25
|
-
|
26
|
-
it "should have a required Ruby version" do
|
27
|
-
@project.required_ruby_version.should == '>= 1.8.7'
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should have a required RubyGems version" do
|
31
|
-
@project.required_rubygems_version.should == '>= 1.3.7'
|
32
|
-
end
|
33
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'helpers/projects'
|
3
|
-
require 'projects/project_examples'
|
4
|
-
|
5
|
-
describe "FFI Bindings project" do
|
6
|
-
include Helpers::Projects
|
7
|
-
|
8
|
-
before(:all) do
|
9
|
-
@project = project('ffi-binding')
|
10
|
-
end
|
11
|
-
|
12
|
-
it_should_behave_like 'an Ore Project'
|
13
|
-
|
14
|
-
it "should correctly guess the namespace" do
|
15
|
-
@project.namespace.should == 'FFI::Binding'
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should have a namespace directory" do
|
19
|
-
@project.namespace_dir.should == 'ffi/binding'
|
20
|
-
end
|
21
|
-
|
22
|
-
it "should have external requirements" do
|
23
|
-
@project.requirements.should == ['libstuff >= 1.0']
|
24
|
-
end
|
25
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'helpers/projects'
|
3
|
-
require 'projects/project_examples'
|
4
|
-
|
5
|
-
describe "Jeweler project" do
|
6
|
-
include Helpers::Projects
|
7
|
-
|
8
|
-
before(:all) do
|
9
|
-
@project = project('jewelery')
|
10
|
-
end
|
11
|
-
|
12
|
-
it_should_behave_like 'an Ore Project'
|
13
|
-
|
14
|
-
it "should have a namespace directory" do
|
15
|
-
@project.namespace_dir.should == 'jewelery'
|
16
|
-
end
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'helpers/projects'
|
3
|
-
require 'projects/project_examples'
|
4
|
-
|
5
|
-
describe "Minimal project" do
|
6
|
-
include Helpers::Projects
|
7
|
-
|
8
|
-
before(:all) do
|
9
|
-
@project = project('minimal')
|
10
|
-
end
|
11
|
-
|
12
|
-
it_should_behave_like 'an Ore Project'
|
13
|
-
|
14
|
-
it "should not have a namespace directory" do
|
15
|
-
@project.namespace_dir.should be_nil
|
16
|
-
end
|
17
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'ore/project'
|
3
|
-
|
4
|
-
shared_examples_for 'an Ore Project' do
|
5
|
-
it "should have project files" do
|
6
|
-
@project.project_files.should_not be_empty
|
7
|
-
end
|
8
|
-
|
9
|
-
it "should have a name" do
|
10
|
-
@project.name.should_not be_nil
|
11
|
-
end
|
12
|
-
|
13
|
-
it "should have a namespace" do
|
14
|
-
@project.namespace.should_not be_nil
|
15
|
-
end
|
16
|
-
|
17
|
-
it "should have a version" do
|
18
|
-
@project.version.major.should == 1
|
19
|
-
@project.version.minor.should == 2
|
20
|
-
@project.version.patch.should == 3
|
21
|
-
end
|
22
|
-
|
23
|
-
it "should have a summary" do
|
24
|
-
@project.summary.should_not be_nil
|
25
|
-
end
|
26
|
-
|
27
|
-
it "should have a description" do
|
28
|
-
@project.description.should_not be_nil
|
29
|
-
end
|
30
|
-
|
31
|
-
it "should have authors" do
|
32
|
-
@project.authors.should_not be_empty
|
33
|
-
end
|
34
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'helpers/files'
|
3
|
-
|
4
|
-
require 'ore/versions/version_file'
|
5
|
-
|
6
|
-
describe Versions::VersionFile do
|
7
|
-
include Helpers::Files
|
8
|
-
|
9
|
-
subject { Versions::VersionFile }
|
10
|
-
|
11
|
-
it "should load and parse the version string from a VERSION file" do
|
12
|
-
v = subject.load(file('VERSION'))
|
13
|
-
|
14
|
-
v.major.should == 1
|
15
|
-
v.minor.should == 2
|
16
|
-
v.patch.should == 3
|
17
|
-
v.build.should be_nil
|
18
|
-
end
|
19
|
-
|
20
|
-
it "should load and parse the version numbers from a VERSION.yml file" do
|
21
|
-
v = subject.load(file('VERSION.yml'))
|
22
|
-
|
23
|
-
v.major.should == 1
|
24
|
-
v.minor.should == 2
|
25
|
-
v.patch.should == 3
|
26
|
-
v.build.should be_nil
|
27
|
-
end
|
28
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'ore/versions/version'
|
3
|
-
|
4
|
-
describe Ore::Versions::Version do
|
5
|
-
subject { Ore::Versions::Version }
|
6
|
-
|
7
|
-
describe "new" do
|
8
|
-
let(:stable) { subject.new(1,2,3) }
|
9
|
-
let(:beta) { subject.new(1,2,3,'beta4') }
|
10
|
-
|
11
|
-
it "should default the major, minor and patch numbers to 0" do
|
12
|
-
v = subject.new(nil,nil,nil)
|
13
|
-
|
14
|
-
v.major.should == 0
|
15
|
-
v.minor.should == 0
|
16
|
-
v.patch.should == 0
|
17
|
-
end
|
18
|
-
|
19
|
-
it "should default the build string to nil" do
|
20
|
-
stable.build.should == nil
|
21
|
-
end
|
22
|
-
|
23
|
-
it "should construct a version string from the numbers" do
|
24
|
-
stable.version.should == '1.2.3'
|
25
|
-
end
|
26
|
-
|
27
|
-
it "should append the build string to the version" do
|
28
|
-
beta.version.should == '1.2.3.beta4'
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
describe "parse" do
|
33
|
-
let(:stable) { '1.2.3' }
|
34
|
-
let(:beta) { '1.2.3.beta4' }
|
35
|
-
|
36
|
-
it "should parse the major, minor and patch version numbers" do
|
37
|
-
v = subject.parse(stable)
|
38
|
-
|
39
|
-
v.major.should == 1
|
40
|
-
v.minor.should == 2
|
41
|
-
v.patch.should == 3
|
42
|
-
end
|
43
|
-
|
44
|
-
it "should parse the build string if given" do
|
45
|
-
v = subject.parse(beta)
|
46
|
-
|
47
|
-
v.major.should == 1
|
48
|
-
v.minor.should == 2
|
49
|
-
v.patch.should == 3
|
50
|
-
v.build.should == 'beta4'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|