Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rubyworks/mast
base: 6f69833577
...
head fork: rubyworks/mast
compare: 21103aca72
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 10 files changed
  • 0 commit comments
  • 1 contributor
View
1  .gitignore
@@ -8,3 +8,4 @@ pkg
tmp
web
work/sandbox
+DEMO.*
View
17 Assembly
@@ -6,17 +6,20 @@ github:
gh_pages: web
dnote:
- title: Developer's Notes
- output: log/NOTES.rdoc
+ title: Source Notes
+ output: log/notes.html
#locat:
# output : ~
# active : true
+qed:
+ files: demo/
+
qedoc:
- files: qed/
- title: Mast Demonstrandum
- output: QED.rdoc
+ files: demo/
+ title: Mast Demonstration
+ output: DEMO.rdoc
# todo: use ronn service when available
ronn:
@@ -27,8 +30,8 @@ ronn:
vclog:
output:
- - log/History.rdoc
- - log/Changes.rdoc
+ - log/history.html
+ - log/changes.html
email:
mailto:
View
0  QED.rdoc → DEMO.rdoc
File renamed without changes
View
8 MANIFEST
@@ -1,6 +1,10 @@
-#!mast .ruby .yardopts bin lib man spec test [A-Z]*.*
+#!mast .ruby .yardopts bin demo lib man spec test [A-Z]*.*
.ruby
bin/mast
+demo/cli/applique/env.rb
+demo/cli/overview.rdoc
+demo/functional/02_manifest.rdoc
+demo/functional/applique/rules.rb
lib/mast/cli.rb
lib/mast/core_ext.rb
lib/mast/manifest.rb
@@ -11,6 +15,6 @@ man/man1/mast.1
man/man1/mast.1.html
man/man1/mast.1.ronn
HISTORY.rdoc
+DEMO.rdoc
README.rdoc
-QED.rdoc
COPYING.rdoc
View
0  qed/cli/applique/env.rb → demo/cli/applique/env.rb
File renamed without changes
View
0  qed/cli/overview.rdoc → demo/cli/overview.rdoc
File renamed without changes
View
0  qed/functional/02_manifest.rdoc → demo/functional/02_manifest.rdoc
File renamed without changes
View
0  qed/functional/applique/rules.rb → demo/functional/applique/rules.rb
File renamed without changes
View
3  lib/mast/cli.rb
@@ -157,7 +157,8 @@ def generate
# Update a MANIFEST file for this package.
def update
- if manifest.verify
+ if manifest.verify
+ manifest.touch
else
begin
diff = manifest.diff
View
18 lib/mast/manifest.rb
@@ -170,9 +170,14 @@ def read?
@read
end
+ #
+ def exist?
+ file and FileTest.file?(file)
+ end
+
# Is the current mainfest in need of updating?
def changed?
- raise NoManifestError unless file and FileTest.file?(file)
+ raise NoManifestError unless exist? #file and FileTest.file?(file)
txt = File.read(file)
out = StringIO.new #('', 'w')
generate(out)
@@ -203,11 +208,16 @@ def update
save
end
+ #
+ def touch
+ FileUtils.touch(file) if File.exist?(file)
+ end
+
# Save as file.
def save
- File.open(file, 'w') do |file|
- file << topline_string
- output(file)
+ File.open(file, 'w') do |f|
+ f << topline_string
+ output(f)
end
return file
end

No commit comments for this range

Something went wrong with that request. Please try again.