Permalink
Browse files

Simplify project config. [admin]

  • Loading branch information...
1 parent 9d1c1f4 commit bfbdef9c99aff14b880f5f7214780e7a84dcc939 @trans trans committed Nov 21, 2013
Showing with 110 additions and 131 deletions.
  1. +42 −0 Assembly.rb
  2. +0 −73 Config.rb
  3. +13 −0 Rakefile
  4. +0 −56 Rulefile
  5. +16 −0 etc/qed.rb
  6. +5 −2 { → work/deprecated}/Assembly
  7. +34 −0 work/deprecated/Rulefile
View
42 Assembly.rb
@@ -0,0 +1,42 @@
+#!/usr/bin/env ruby
+
+# Detroit assembly.
+
+service :gem do |s|
+ s.gemspec = '.gemspec'
+end
+
+service :github do |s|
+ s.folder = 'web'
+end
+
+service :dnote do |s|
+ s.title = 'Source Notes'
+ s.output = 'log/notes.html'
+end
+
+service :locat do |s|
+ s.output = 'log/locat.html'
+end
+
+service :qedoc do |s|
+ s.files = "demo/"
+ s.output = "DEMO.md"
+ s.title = "OStruct2"
+end
+
+service :vclog do |s|
+ s.output = ['log/history.html',
+ 'log/changes.html']
+end
+
+service :email do |s|
+ s.mailto = ['ruby-talk@ruby-lang.org',
+ 'rubyworks-mailinglist@googlegroups.com']
+end
+
+service :yard do |s|
+ s.yardopts = true
+ s.priority = -1
+end
+
View
73 Config.rb
@@ -1,73 +0,0 @@
-#!/usr/bin/env ruby
-
-#
-# QED test coverage report using SimpleCov.
-#
-# Use `$properties.coverage_folder` to set directory in which to store
-# coverage report this defaults to `log/coverage`.
-#
-# IMPORTANT! Unfortunately this will not give us a reliable report
-# b/c QED uses the RC gem, so SimpleCov can't differentiate the two.
-#
-config 'qed', profile: 'cov' do
- #puts "QED w/coverage!"
- dir = $properties.coverage_folder
- require 'simplecov'
- SimpleCov.command_name 'QED'
- SimpleCov.start do
- coverage_dir(dir || 'log/coverage')
- #add_group "Label", "lib/qed/directory"
- end
-end
-
-#
-# Pry
-#
-config 'pry' do
- puts "RC on Pry!"
- $LOAD_PATH.unshift('lib')
-end
-
-#
-# Rake tasks
-#
-config 'rake' do
- desc 'run unit tests'
- task 'test' do
- sh 'qed'
- end
-end
-
-=begin
-#
-# Detroit assembly.
-#
-config 'detroit' do
- service :email do |s|
- s.mailto = ['ruby-talk@ruby-lang.org',
- 'rubyworks-mailinglist@googlegroups.com']
- end
-
- service :gem do |s|
- s.gemspec = 'pkg/ostruct2.gemspec'
- end
-
- service :github do |s|
- s.folder = 'web'
- end
-
- service :dnote do |s|
- s.title = 'Source Notes'
- s.output = 'log/notes.html'
- end
-
- service :locat do |s|
- s.output = 'log/locat.html'
- end
-
- service :vclog do |s|
- s.output = ['log/history.html',
- 'log/changes.html']
- end
-end
-=end
View
13 Rakefile
@@ -0,0 +1,13 @@
+#!/usr/bin/env ruby
+
+default :test
+
+desc 'run unit tests'
+task 'test' do
+ sh 'qed'
+end
+
+task :prep do
+ sh 'mast -u'
+ sh 'index -u var'
+end
View
56 Rulefile
@@ -1,56 +0,0 @@
-#!/usr/bin/env ruby
-
-# TODO: Do things in ruby where possible instead of shelling out!
-
-ignore 'doc', 'log', 'pkg', 'tmp', 'site', 'web', 'work'
-
-# TODO: Eventually Fire should provide access to metadata via a utility method.
-version = File.read('meta/version').strip
-
-desc "update manifest"
-task 'manifest' do
- system 'mast -u'
-end
-
-desc "release and tag"
-task 'release' do
- exit -1 unless system('detroit release')
- system 'vclog-news | git tag -a -F - #{version}'
-end
-
-file 'meta' do
- system 'dotruby source meta'
-end
-
-file 'lib' do
- exit -1 unless system('detroit test')
-end
-
-file 'demo' do
- exit -1 unless system('detroit test')
-end
-
-=begin
-state :create_project do
- ! File.exist?('.ruby')
- # gem install dotruby
-end
-
-rule :create_project do
- system '$EDITOR ruby.yaml'
- #break unless ask('creating new project?')
- #meta = YAML.load_file('ruby.yaml')
- #name = ARGV[1] || File.basename(Dir.pwd)
- #meta['name'] = name
- #meta.each do |k,v|
- # case v2 = ask("#{k} (#{v}):")
- # when nil, ''
- # when '`' then exit
- # when '!' then exit -1
- # else
- # meta[k] = YAML.load(v2)
- # end
- #end
-end
-=end
-
View
16 etc/qed.rb
@@ -0,0 +1,16 @@
+#
+# QED test coverage report using SimpleCov.
+#
+# Use `$properties.coverage_folder` to set directory in which to store
+# coverage report this defaults to `log/coverage`.
+#
+QED.configure 'coverage' do
+ dir = $properties.coverage_folder
+ require 'simplecov'
+ SimpleCov.command_name 'QED'
+ SimpleCov.start do
+ coverage_dir(dir || 'log/coverage')
+ #add_group "Label", "lib/qed/directory"
+ end
+end
+
View
7 Assembly → work/deprecated/Assembly
@@ -6,8 +6,8 @@ gem:
active: true
dnote:
- service : DNote
- labels : ~
+ title: Source Notes
+ labels: ~
output:
log/dnote.html
@@ -28,6 +28,9 @@ email:
- ruby-talk@ruby-lang.org
- rubyworks-mailinglist@googlegroups.com
+locat:
+ output: log/locat.html
+
#vclog:
# active: false
# output:
View
34 work/deprecated/Rulefile
@@ -0,0 +1,34 @@
+#!/usr/bin/env ruby
+
+# TODO: Do things in ruby where possible instead of shelling out!
+
+ignore 'doc', 'log', 'pkg', 'tmp', 'site', 'web', 'work'
+
+# TODO: Eventually Fire should provide access to metadata via a utility method.
+version = File.read('var/version').strip
+
+#desc "update manifest"
+#task 'manifest' do
+# system 'mast -u'
+#end
+
+#desc "release and tag"
+#task 'release' do
+# exit -1 unless system('detroit release')
+# system 'vclog-news | git tag -a -F - #{version}'
+#end
+
+file 'var' do
+ system 'index -u var'
+end
+
+file 'lib' do
+ #exit -1 unless system('detroit test')
+ exit -1 unless system('qed')
+end
+
+file 'demo' do
+ #exit -1 unless system('detroit test')
+ exit -1 unless system('qed')
+end
+

0 comments on commit bfbdef9

Please sign in to comment.