ore 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gemtest +0 -0
- data/ChangeLog.md +21 -0
- data/LICENSE.txt +1 -2
- data/README.md +9 -8
- data/Rakefile +3 -2
- data/data/ore/templates/base/README.md.erb +1 -1
- data/data/ore/templates/base/README.rdoc.erb +1 -1
- data/data/ore/templates/base/README.tt.erb +1 -1
- data/data/ore/templates/base/[name].gemspec.erb +1 -1
- data/data/ore/templates/base/_gemfile.erb +2 -0
- data/data/ore/templates/bundler/Gemfile.erb +0 -2
- data/data/ore/templates/bundler/_tasks.erb +3 -0
- data/data/ore/templates/ore_tasks/template.yml +1 -1
- data/data/ore/templates/rspec/_tasks.erb +2 -0
- data/data/ore/templates/rvmrc/.rvmrc.erb +52 -0
- data/gemspec.yml +4 -4
- data/lib/ore/cli.rb +3 -3
- data/lib/ore/template/directory.rb +1 -1
- data/lib/ore/template/interpolations.rb +1 -1
- data/ore.gemspec +1 -1
- metadata +13 -38
- data/data/ore/templates/gem_test/_tasks.erb +0 -3
data/.gemtest
ADDED
File without changes
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
### 0.6.0 / 2011-02-12
|
2
|
+
|
3
|
+
* Require ore-core ~> 0.1.2.
|
4
|
+
* Opted into [gem-testers.org](http://gem-testers.org/).
|
5
|
+
* Added the `rvmrc` template and `--rvmrc` option to {Ore::Generator}:
|
6
|
+
* Generates an `.rvmrc` file that creates a new gemset for the project
|
7
|
+
and supports Bundler.
|
8
|
+
* Added `mailto:` to the `Email` links in the generated `README` files.
|
9
|
+
* Renamed the `ore cut` command to `ore gem`.
|
10
|
+
* Use `__FILE__` instead of hard-coding the file name into the generated
|
11
|
+
`.gemspec` file.
|
12
|
+
* No longer necessary to require `ore/specification` in the generated
|
13
|
+
`Gemfile`:
|
14
|
+
* The new generated `.gemspec` files can auto-load `Ore::Specification`.
|
15
|
+
* Do not include `ore-core` in the generated `Gemfile`, if `ore-tasks`
|
16
|
+
has already been included.
|
17
|
+
* Bumped the `ore-tasks` dependency to `~> 0.4.0` in the `ore_tasks`
|
18
|
+
template.
|
19
|
+
* Fixed typos in the documentation thanks to
|
20
|
+
[yard-spellcheck](http://github.com/postmodern/yard-spellcheck).
|
21
|
+
|
1
22
|
### 0.5.0 / 2011-01-19
|
2
23
|
|
3
24
|
* Require ore-core ~> 0.1.1.
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
* [Source](http://github.com/ruby-ore/ore)
|
4
4
|
* [Issues](http://github.com/ruby-ore/ore/issues)
|
5
5
|
* [Documentation](http://rubydoc.info/gems/ore/file/README.md)
|
6
|
+
* [Email](mailto:postmodern.mod3 at gmail.com)
|
6
7
|
* IRC: irc.freenode.net #ruby-ore
|
7
|
-
* Postmodern (postmodern.mod3 at gmail.com)
|
8
8
|
|
9
9
|
## Description
|
10
10
|
|
@@ -33,7 +33,7 @@ the developer to keep all of the project information in a single YAML file.
|
|
33
33
|
|
34
34
|
## Requirements
|
35
35
|
|
36
|
-
* [ore-core](http://github.com/ruby-ore/ore-core) ~> 0.1.
|
36
|
+
* [ore-core](http://github.com/ruby-ore/ore-core) ~> 0.1.2
|
37
37
|
* [thor](http://github.com/wycats/thor) ~> 0.14.3
|
38
38
|
|
39
39
|
## Install
|
@@ -62,7 +62,7 @@ The `gemspec.yml` file used to build Ore:
|
|
62
62
|
**************************************************************************
|
63
63
|
Generate a new Ruby library:
|
64
64
|
|
65
|
-
$ mine my_library --
|
65
|
+
$ mine my_library --ore-tasks --rspec
|
66
66
|
|
67
67
|
Build the library:
|
68
68
|
|
@@ -75,16 +75,16 @@ The `gemspec.yml` file used to build Ore:
|
|
75
75
|
**************************************************************************
|
76
76
|
|
77
77
|
dependencies:
|
78
|
-
ore-core: ~> 0.1.
|
78
|
+
ore-core: ~> 0.1.2
|
79
79
|
thor: ~> 0.14.3
|
80
80
|
|
81
81
|
development_dependencies:
|
82
|
-
ore-tasks: ~> 0.
|
82
|
+
ore-tasks: ~> 0.4.0
|
83
83
|
rspec: ~> 2.4.0
|
84
84
|
yard: ~> 0.6.1
|
85
85
|
|
86
86
|
For a complete refrence to the `gemspec.yml` file, please see the
|
87
|
-
[GemspecYML Reference](http://rubydoc.info/gems/ore-core/file/GemspecYML.html)
|
87
|
+
[GemspecYML Reference](http://rubydoc.info/gems/ore-core/file/GemspecYML.html).
|
88
88
|
|
89
89
|
## Synopsis
|
90
90
|
|
@@ -124,9 +124,10 @@ Add default generator options to `~/.ore/options.yml`:
|
|
124
124
|
|
125
125
|
Builds a `.gem` file in the `pkg/` directory of a project:
|
126
126
|
|
127
|
-
$ ore
|
127
|
+
$ ore gem
|
128
128
|
|
129
129
|
## License
|
130
130
|
|
131
|
-
|
131
|
+
Copyright (c) 2010-2011 Hal Brodigan
|
132
132
|
|
133
|
+
See {file:LICENSE.txt} for license information.
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
|
4
4
|
begin
|
5
|
-
gem 'ore-tasks', '~> 0.
|
5
|
+
gem 'ore-tasks', '~> 0.4.0'
|
6
6
|
require 'ore/tasks'
|
7
7
|
|
8
8
|
Ore::Tasks.new
|
@@ -12,7 +12,7 @@ rescue LoadError => e
|
|
12
12
|
end
|
13
13
|
|
14
14
|
begin
|
15
|
-
gem 'rspec', '~> 2.
|
15
|
+
gem 'rspec', '~> 2.4.0'
|
16
16
|
require 'rspec/core/rake_task'
|
17
17
|
|
18
18
|
RSpec::Core::RakeTask.new
|
@@ -21,6 +21,7 @@ rescue LoadError
|
|
21
21
|
abort "Please run `gem install rspec` to install RSpec."
|
22
22
|
end
|
23
23
|
end
|
24
|
+
task :test => :spec
|
24
25
|
task :default => :spec
|
25
26
|
|
26
27
|
begin
|
@@ -9,7 +9,7 @@ rescue NameError
|
|
9
9
|
require 'ore/specification'
|
10
10
|
retry
|
11
11
|
rescue LoadError
|
12
|
-
STDERR.puts "The '
|
12
|
+
STDERR.puts "The '#{__FILE__}' file requires Ore."
|
13
13
|
STDERR.puts "Run `gem install ore-core` to install Ore."
|
14
14
|
end
|
15
15
|
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
variables:
|
2
|
-
ore_tasks_dependency: ~> 0.
|
2
|
+
ore_tasks_dependency: ~> 0.4.0
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
|
7
|
+
environment_id="<%= if defined?(::RUBY_ENGINE)
|
8
|
+
if RUBY_ENGINE == 'ruby'
|
9
|
+
RUBY_VERSION
|
10
|
+
else
|
11
|
+
RUBY_ENGINE
|
12
|
+
end
|
13
|
+
else
|
14
|
+
RUBY_VERSION
|
15
|
+
end -%>@<%= @name -%>"
|
16
|
+
|
17
|
+
#
|
18
|
+
# First we attempt to load the desired environment directly from the environment
|
19
|
+
# file, this is very fast and efficicent compared to running through the entire
|
20
|
+
# CLI and selector. If you want feedback on which environment was used then
|
21
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
+
#
|
23
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
24
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
|
25
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
+
else
|
27
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
28
|
+
rvm --create "$environment_id"
|
29
|
+
fi
|
30
|
+
<%- if bundler? -%>
|
31
|
+
|
32
|
+
#
|
33
|
+
# If you use bundler and would like to run bundle each time you enter the
|
34
|
+
# directory you can uncomment the following code.
|
35
|
+
#
|
36
|
+
|
37
|
+
# Ensure that ore-core is installed.
|
38
|
+
if [[ `gem list -i ore-core` -ne "true" ]]; then
|
39
|
+
printf "The rubygem 'ore-core' is not installed, installing it now.\n"
|
40
|
+
gem install ore-core --version <%= @ore_core_dependency.dump %>
|
41
|
+
fi
|
42
|
+
|
43
|
+
# Ensure that Bundler is installed, install it if it is not.
|
44
|
+
if ! command -v bundle ; then
|
45
|
+
printf "The rubygem 'bundler' is not installed, installing it now.\n"
|
46
|
+
gem install bundler --version <%= @bundler_dependency.dump %>
|
47
|
+
fi
|
48
|
+
|
49
|
+
# Bundle while reducing excess noise.
|
50
|
+
printf "Bundling your gems this may take a few minutes on a fresh clone.\n"
|
51
|
+
bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
|
52
|
+
<%- end -%>
|
data/gemspec.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
name: ore
|
2
|
-
version: 0.
|
2
|
+
version: 0.6.0
|
3
3
|
summary: Mine raw RubyGems from YAML
|
4
4
|
description:
|
5
5
|
Ore is a simple RubyGem building solution. Ore handles the
|
@@ -16,7 +16,7 @@ post_install_message: |
|
|
16
16
|
**************************************************************************
|
17
17
|
Generate a new Ruby library:
|
18
18
|
|
19
|
-
$ mine my_library --
|
19
|
+
$ mine my_library --ore-tasks --rspec
|
20
20
|
|
21
21
|
Build the library:
|
22
22
|
|
@@ -29,10 +29,10 @@ post_install_message: |
|
|
29
29
|
**************************************************************************
|
30
30
|
|
31
31
|
dependencies:
|
32
|
-
ore-core: ~> 0.1.
|
32
|
+
ore-core: ~> 0.1.2
|
33
33
|
thor: ~> 0.14.3
|
34
34
|
|
35
35
|
development_dependencies:
|
36
|
-
ore-tasks: ~> 0.
|
36
|
+
ore-tasks: ~> 0.4.0
|
37
37
|
rspec: ~> 2.4.0
|
38
38
|
yard: ~> 0.6.1
|
data/lib/ore/cli.rb
CHANGED
@@ -9,7 +9,7 @@ module Ore
|
|
9
9
|
|
10
10
|
include Config
|
11
11
|
|
12
|
-
default_task :
|
12
|
+
default_task :gem
|
13
13
|
|
14
14
|
map '-l' => :list
|
15
15
|
map '-u' => :update
|
@@ -108,9 +108,9 @@ module Ore
|
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
-
desc '
|
111
|
+
desc 'gem', 'Builds a RubyGem'
|
112
112
|
|
113
|
-
def
|
113
|
+
def gem
|
114
114
|
require 'ore/project'
|
115
115
|
|
116
116
|
Project.find.build!
|
@@ -241,7 +241,7 @@ module Ore
|
|
241
241
|
# The specified type of markup.
|
242
242
|
#
|
243
243
|
# @return [Boolean]
|
244
|
-
# Specifies whether the file
|
244
|
+
# Specifies whether the file contains the given formatting.
|
245
245
|
#
|
246
246
|
def formatted_like?(path,markup)
|
247
247
|
@@markups[markup].include?(File.extname(path))
|
@@ -9,7 +9,7 @@ module Ore
|
|
9
9
|
# name.
|
10
10
|
# * `[namespace_path]` - The full directory path derived from the
|
11
11
|
# project name.
|
12
|
-
# * `[namespace_dir]` - The last directory name
|
12
|
+
# * `[namespace_dir]` - The last directory name derived from the
|
13
13
|
# project name.
|
14
14
|
#
|
15
15
|
module Interpolations
|
data/ore.gemspec
CHANGED
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 5
|
8
|
-
- 0
|
9
|
-
version: 0.5.0
|
4
|
+
prerelease:
|
5
|
+
version: 0.6.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Postmodern
|
@@ -14,7 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
13
|
+
date: 2011-02-12 00:00:00 -08:00
|
18
14
|
default_executable: ore
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
@@ -25,11 +21,7 @@ dependencies:
|
|
25
21
|
requirements:
|
26
22
|
- - ~>
|
27
23
|
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 0
|
30
|
-
- 1
|
31
|
-
- 1
|
32
|
-
version: 0.1.1
|
24
|
+
version: 0.1.2
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
35
27
|
- !ruby/object:Gem::Dependency
|
@@ -40,10 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ~>
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
- 14
|
46
|
-
- 3
|
47
35
|
version: 0.14.3
|
48
36
|
type: :runtime
|
49
37
|
version_requirements: *id002
|
@@ -55,11 +43,7 @@ dependencies:
|
|
55
43
|
requirements:
|
56
44
|
- - ~>
|
57
45
|
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
- 0
|
60
|
-
- 3
|
61
|
-
- 0
|
62
|
-
version: 0.3.0
|
46
|
+
version: 0.4.0
|
63
47
|
type: :development
|
64
48
|
version_requirements: *id003
|
65
49
|
- !ruby/object:Gem::Dependency
|
@@ -70,10 +54,6 @@ dependencies:
|
|
70
54
|
requirements:
|
71
55
|
- - ~>
|
72
56
|
- !ruby/object:Gem::Version
|
73
|
-
segments:
|
74
|
-
- 2
|
75
|
-
- 4
|
76
|
-
- 0
|
77
57
|
version: 2.4.0
|
78
58
|
type: :development
|
79
59
|
version_requirements: *id004
|
@@ -85,15 +65,12 @@ dependencies:
|
|
85
65
|
requirements:
|
86
66
|
- - ~>
|
87
67
|
- !ruby/object:Gem::Version
|
88
|
-
segments:
|
89
|
-
- 0
|
90
|
-
- 6
|
91
|
-
- 1
|
92
68
|
version: 0.6.1
|
93
69
|
type: :development
|
94
70
|
version_requirements: *id005
|
95
71
|
description: Ore is a simple RubyGem building solution. Ore handles the creation of Gem::Specification objects as well as building '.gem' files. Ore allows the developer to keep all of the project information in a single YAML file.
|
96
|
-
email:
|
72
|
+
email:
|
73
|
+
- postmodern.mod3@gmail.com
|
97
74
|
executables:
|
98
75
|
- mine
|
99
76
|
- ore
|
@@ -105,6 +82,7 @@ extra_rdoc_files:
|
|
105
82
|
- LICENSE.txt
|
106
83
|
files:
|
107
84
|
- .document
|
85
|
+
- .gemtest
|
108
86
|
- .rspec
|
109
87
|
- .yardopts
|
110
88
|
- ChangeLog.md
|
@@ -132,9 +110,9 @@ files:
|
|
132
110
|
- data/ore/templates/bundler/Gemfile.erb
|
133
111
|
- data/ore/templates/bundler/_development_dependencies.erb
|
134
112
|
- data/ore/templates/bundler/_gitignore.erb
|
113
|
+
- data/ore/templates/bundler/_tasks.erb
|
135
114
|
- data/ore/templates/bundler/template.yml
|
136
115
|
- data/ore/templates/gem_test/.gemtest
|
137
|
-
- data/ore/templates/gem_test/_tasks.erb
|
138
116
|
- data/ore/templates/jeweler_tasks/_development_dependencies.erb
|
139
117
|
- data/ore/templates/jeweler_tasks/_gemfile.erb
|
140
118
|
- data/ore/templates/jeweler_tasks/_tasks.erb
|
@@ -151,6 +129,7 @@ files:
|
|
151
129
|
- data/ore/templates/rspec/spec/[namespace_dir]_spec.rb.erb
|
152
130
|
- data/ore/templates/rspec/spec/spec_helper.rb.erb
|
153
131
|
- data/ore/templates/rspec/template.yml
|
132
|
+
- data/ore/templates/rvmrc/.rvmrc.erb
|
154
133
|
- data/ore/templates/test_unit/test/helper.rb.erb
|
155
134
|
- data/ore/templates/test_unit/test/test_[name].rb.erb
|
156
135
|
- data/ore/templates/yard/.yardopts.erb
|
@@ -174,7 +153,7 @@ files:
|
|
174
153
|
- spec/generator_spec.rb
|
175
154
|
- spec/helpers/generator.rb
|
176
155
|
- spec/spec_helper.rb
|
177
|
-
has_rdoc:
|
156
|
+
has_rdoc: true
|
178
157
|
homepage: http://github.com/ruby-ore/ore
|
179
158
|
licenses:
|
180
159
|
- MIT
|
@@ -182,7 +161,7 @@ post_install_message: |
|
|
182
161
|
**************************************************************************
|
183
162
|
Generate a new Ruby library:
|
184
163
|
|
185
|
-
$ mine my_library --
|
164
|
+
$ mine my_library --ore-tasks --rspec
|
186
165
|
|
187
166
|
Build the library:
|
188
167
|
|
@@ -203,21 +182,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
182
|
requirements:
|
204
183
|
- - ">="
|
205
184
|
- !ruby/object:Gem::Version
|
206
|
-
segments:
|
207
|
-
- 0
|
208
185
|
version: "0"
|
209
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
187
|
none: false
|
211
188
|
requirements:
|
212
189
|
- - ">="
|
213
190
|
- !ruby/object:Gem::Version
|
214
|
-
segments:
|
215
|
-
- 0
|
216
191
|
version: "0"
|
217
192
|
requirements: []
|
218
193
|
|
219
194
|
rubyforge_project: ore
|
220
|
-
rubygems_version: 1.
|
195
|
+
rubygems_version: 1.5.0
|
221
196
|
signing_key:
|
222
197
|
specification_version: 3
|
223
198
|
summary: Mine raw RubyGems from YAML
|