massimo 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +13 -0
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/bin/massimo +3 -3
- data/lib/massimo/command.rb +3 -2
- data/lib/massimo/resource/base.rb +2 -2
- data/lib/massimo/resource/collection.rb +1 -1
- data/lib/massimo/site.rb +1 -1
- data/lib/massimo.rb +11 -11
- data/massimo.gemspec +15 -14
- data/test/helper.rb +4 -4
- data/test/test_helpers.rb +1 -1
- data/test/test_javascript.rb +1 -1
- data/test/test_page.rb +1 -1
- data/test/test_resource.rb +1 -1
- data/test/test_site.rb +1 -1
- data/test/test_stylesheet.rb +1 -1
- data/test/test_view.rb +1 -1
- metadata +8 -7
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
source "http://gemcutter.org"
|
2
|
+
source "http://gems.github.com"
|
3
|
+
|
4
|
+
gem "activesupport", ">= 3.0.0.beta"
|
5
|
+
gem "sinatra_more", ">= 0.3.39"
|
6
|
+
gem "directory_watcher", ">= 1.3.1"
|
7
|
+
gem "sprockets", ">= 1.0.2"
|
8
|
+
gem "jsmin", ">= 1.0.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "shoulda", ">= 2.10.3"
|
12
|
+
gem "rr", ">= 0.10.9"
|
13
|
+
end
|
data/Rakefile
CHANGED
@@ -10,10 +10,10 @@ begin
|
|
10
10
|
gem.email = "me@petebrowne.com"
|
11
11
|
gem.homepage = "http://github.com/peterbrowne/massimo"
|
12
12
|
gem.authors = [ "Peter Browne" ]
|
13
|
-
gem.add_development_dependency "shoulda", ">= 2.10.
|
14
|
-
gem.add_development_dependency "
|
15
|
-
gem.add_dependency "activesupport", ">=
|
16
|
-
gem.add_dependency "sinatra_more", ">= 0.3.
|
13
|
+
gem.add_development_dependency "shoulda", ">= 2.10.3"
|
14
|
+
gem.add_development_dependency "rr", ">= 0.10.9"
|
15
|
+
gem.add_dependency "activesupport", ">= 3.0.0.beta"
|
16
|
+
gem.add_dependency "sinatra_more", ">= 0.3.39"
|
17
17
|
gem.add_dependency "directory_watcher", ">= 1.3.1"
|
18
18
|
gem.add_dependency "sprockets", ">= 1.0.2"
|
19
19
|
gem.add_dependency "jsmin", ">= 1.0.1"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/bin/massimo
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require File.expand_path(
|
4
|
-
require File.expand_path(
|
3
|
+
require File.expand_path("../../lib/massimo", __FILE__)
|
4
|
+
require File.expand_path("../../lib/massimo/command", __FILE__)
|
5
5
|
|
6
|
-
exit Massimo::Command.new(ARGV).run!
|
6
|
+
exit Massimo::Command.new(ARGV).run!
|
data/lib/massimo/command.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "optparse"
|
2
|
-
require "active_support"
|
3
2
|
require "yaml"
|
3
|
+
require "active_support/backtrace_cleaner"
|
4
|
+
require "active_support/core_ext/hash/keys"
|
4
5
|
begin require "growl"; rescue LoadError; end
|
5
6
|
|
6
7
|
module Massimo
|
@@ -79,7 +80,7 @@ module Massimo
|
|
79
80
|
watcher = DirectoryWatcher.new(
|
80
81
|
".",
|
81
82
|
:interval => 1,
|
82
|
-
:glob => site.all_source_dirs.collect { |dir| File.join(dir,
|
83
|
+
:glob => site.all_source_dirs.collect { |dir| File.join(dir, "**/*") }
|
83
84
|
)
|
84
85
|
|
85
86
|
watcher.add_observer do |*args|
|
data/lib/massimo/site.rb
CHANGED
@@ -93,7 +93,7 @@ module Massimo
|
|
93
93
|
|
94
94
|
# Reload all the files in the source lib dir.
|
95
95
|
def reload_libs
|
96
|
-
reload_files Dir.glob(dir_for(:lib, "
|
96
|
+
reload_files Dir.glob(dir_for(:lib, "**/*.rb"))
|
97
97
|
end
|
98
98
|
|
99
99
|
# Load methods for listing all available files for each Resource type.
|
data/lib/massimo.rb
CHANGED
@@ -5,20 +5,20 @@ require "rubygems"
|
|
5
5
|
require "pathname"
|
6
6
|
require "fileutils"
|
7
7
|
require "singleton"
|
8
|
-
require "active_support"
|
8
|
+
require "active_support/inflector"
|
9
|
+
require "active_support/core_ext/hash/keys"
|
9
10
|
require "sinatra_more"
|
10
11
|
require "sprockets"
|
11
12
|
require "jsmin"
|
12
13
|
require "tilt"
|
13
14
|
|
14
15
|
# Internal
|
15
|
-
|
16
|
-
require
|
17
|
-
require
|
18
|
-
require File.join(lib_dir, "massimo", "site")
|
16
|
+
require "massimo/helpers"
|
17
|
+
require "massimo/templates"
|
18
|
+
require "massimo/site"
|
19
19
|
|
20
20
|
module Massimo
|
21
|
-
VERSION = File.read(File.
|
21
|
+
VERSION = File.read(File.expand_path("../../VERSION", __FILE__)) # :nodoc:
|
22
22
|
|
23
23
|
MissingResource = Class.new(StandardError) # :nodoc:
|
24
24
|
InvalidResource = Class.new(StandardError) # :nodoc:
|
@@ -42,8 +42,8 @@ module Massimo
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
require
|
46
|
-
require
|
47
|
-
require
|
48
|
-
require
|
49
|
-
require
|
45
|
+
require "massimo/resource/base"
|
46
|
+
require "massimo/view"
|
47
|
+
require "massimo/page"
|
48
|
+
require "massimo/stylesheet"
|
49
|
+
require "massimo/javascript"
|
data/massimo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{massimo}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Peter Browne"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-02-22}
|
13
13
|
s.default_executable = %q{massimo}
|
14
14
|
s.description = %q{Massimo builds HTML, Javascript, and CSS Files from your source.}
|
15
15
|
s.email = %q{me@petebrowne.com}
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files = [
|
22
22
|
".document",
|
23
23
|
".gitignore",
|
24
|
+
"Gemfile",
|
24
25
|
"LICENSE",
|
25
26
|
"README.md",
|
26
27
|
"Rakefile",
|
@@ -105,27 +106,27 @@ Gem::Specification.new do |s|
|
|
105
106
|
s.specification_version = 3
|
106
107
|
|
107
108
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
108
|
-
s.add_development_dependency(%q<shoulda>, [">= 2.10.
|
109
|
-
s.add_development_dependency(%q<
|
110
|
-
s.add_runtime_dependency(%q<activesupport>, [">=
|
111
|
-
s.add_runtime_dependency(%q<sinatra_more>, [">= 0.3.
|
109
|
+
s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
|
110
|
+
s.add_development_dependency(%q<rr>, [">= 0.10.9"])
|
111
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta"])
|
112
|
+
s.add_runtime_dependency(%q<sinatra_more>, [">= 0.3.39"])
|
112
113
|
s.add_runtime_dependency(%q<directory_watcher>, [">= 1.3.1"])
|
113
114
|
s.add_runtime_dependency(%q<sprockets>, [">= 1.0.2"])
|
114
115
|
s.add_runtime_dependency(%q<jsmin>, [">= 1.0.1"])
|
115
116
|
else
|
116
|
-
s.add_dependency(%q<shoulda>, [">= 2.10.
|
117
|
-
s.add_dependency(%q<
|
118
|
-
s.add_dependency(%q<activesupport>, [">=
|
119
|
-
s.add_dependency(%q<sinatra_more>, [">= 0.3.
|
117
|
+
s.add_dependency(%q<shoulda>, [">= 2.10.3"])
|
118
|
+
s.add_dependency(%q<rr>, [">= 0.10.9"])
|
119
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta"])
|
120
|
+
s.add_dependency(%q<sinatra_more>, [">= 0.3.39"])
|
120
121
|
s.add_dependency(%q<directory_watcher>, [">= 1.3.1"])
|
121
122
|
s.add_dependency(%q<sprockets>, [">= 1.0.2"])
|
122
123
|
s.add_dependency(%q<jsmin>, [">= 1.0.1"])
|
123
124
|
end
|
124
125
|
else
|
125
|
-
s.add_dependency(%q<shoulda>, [">= 2.10.
|
126
|
-
s.add_dependency(%q<
|
127
|
-
s.add_dependency(%q<activesupport>, [">=
|
128
|
-
s.add_dependency(%q<sinatra_more>, [">= 0.3.
|
126
|
+
s.add_dependency(%q<shoulda>, [">= 2.10.3"])
|
127
|
+
s.add_dependency(%q<rr>, [">= 0.10.9"])
|
128
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0.beta"])
|
129
|
+
s.add_dependency(%q<sinatra_more>, [">= 0.3.39"])
|
129
130
|
s.add_dependency(%q<directory_watcher>, [">= 1.3.1"])
|
130
131
|
s.add_dependency(%q<sprockets>, [">= 1.0.2"])
|
131
132
|
s.add_dependency(%q<jsmin>, [">= 1.0.1"])
|
data/test/helper.rb
CHANGED
@@ -9,7 +9,7 @@ require "assertions"
|
|
9
9
|
require "rr"
|
10
10
|
|
11
11
|
# Load Massimo
|
12
|
-
require File.
|
12
|
+
require File.expand_path("../../lib/massimo", __FILE__)
|
13
13
|
|
14
14
|
class Test::Unit::TestCase
|
15
15
|
include Assertions
|
@@ -17,12 +17,12 @@ class Test::Unit::TestCase
|
|
17
17
|
|
18
18
|
#
|
19
19
|
def source_dir(*subdirs)
|
20
|
-
File.join(
|
20
|
+
File.join("./test/source", *subdirs)
|
21
21
|
end
|
22
22
|
|
23
23
|
#
|
24
24
|
def output_dir(*subdirs)
|
25
|
-
File.join(
|
25
|
+
File.join("./test/output", *subdirs)
|
26
26
|
end
|
27
27
|
|
28
28
|
#
|
@@ -53,7 +53,7 @@ class Test::Unit::TestCase
|
|
53
53
|
|
54
54
|
#
|
55
55
|
def source_page_paths
|
56
|
-
@source_page_paths ||= Pathname.glob(source_dir("pages"
|
56
|
+
@source_page_paths ||= Pathname.glob(source_dir("pages/**/*")).
|
57
57
|
reject { |p| p.basename.to_s =~ /^_/ || File.directory?(p) }.
|
58
58
|
collect { |p| p.basename }
|
59
59
|
end
|
data/test/test_helpers.rb
CHANGED
data/test/test_javascript.rb
CHANGED
data/test/test_page.rb
CHANGED
data/test/test_resource.rb
CHANGED
data/test/test_site.rb
CHANGED
data/test/test_stylesheet.rb
CHANGED
data/test/test_view.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: massimo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Browne
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-22 00:00:00 -06:00
|
13
13
|
default_executable: massimo
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,17 +20,17 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.10.
|
23
|
+
version: 2.10.3
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
26
|
+
name: rr
|
27
27
|
type: :development
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.10.9
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: activesupport
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 3.0.0.beta
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: sinatra_more
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.3.
|
53
|
+
version: 0.3.39
|
54
54
|
version:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: directory_watcher
|
@@ -94,6 +94,7 @@ extra_rdoc_files:
|
|
94
94
|
files:
|
95
95
|
- .document
|
96
96
|
- .gitignore
|
97
|
+
- Gemfile
|
97
98
|
- LICENSE
|
98
99
|
- README.md
|
99
100
|
- Rakefile
|