coherent 0.1.0 → 0.1.1
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/app_generators/coherent/coherent_generator.rb +3 -23
- data/app_generators/coherent/templates/distil.yml.erb +2 -1
- data/coherent.gemspec +3 -9
- metadata +4 -9
- data/generators/coherent_library/USAGE +0 -5
- data/generators/coherent_library/coherent_library_generator.rb +0 -44
- data/vendor/Makefile +0 -4
- data/vendor/checkout_coherent.sh +0 -6
- data/vendor/extconf.rb +0 -3
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ begin
|
|
13
13
|
gem.files= Dir['lib/**/*', 'app_generators/**/*', 'generators/**/*', 'bin/*', '[A-Za-z]*', 'vendor/**/*']
|
14
14
|
gem.files.reject! { |f| File.directory?(f) }
|
15
15
|
gem.add_dependency('distil', '>= 0.7.0')
|
16
|
-
gem.extensions= ['vendor/extconf.rb']
|
16
|
+
# gem.extensions= ['vendor/extconf.rb']
|
17
17
|
|
18
18
|
# gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
19
19
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -5,15 +5,14 @@ class CoherentGenerator < CoherentBaseGenerator
|
|
5
5
|
DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'],
|
6
6
|
Config::CONFIG['ruby_install_name'])
|
7
7
|
|
8
|
-
|
8
|
+
COHERENT_URL = ""
|
9
|
+
COHERENT_FOLDER = "ext/coherent"
|
9
10
|
|
10
11
|
default_options :author => nil,
|
11
|
-
:coherent_project => COHERENT_SOURCE,
|
12
|
-
:copy_coherent => true,
|
13
12
|
:nib_name => 'main'
|
14
13
|
|
15
14
|
|
16
|
-
attr_reader :name, :
|
15
|
+
attr_reader :name, :nib_name
|
17
16
|
|
18
17
|
def initialize(runtime_args, runtime_options = {})
|
19
18
|
super
|
@@ -31,11 +30,6 @@ class CoherentGenerator < CoherentBaseGenerator
|
|
31
30
|
|
32
31
|
copy_template_folder m
|
33
32
|
m.dependency "nib", [nib_name], :destination=>destination_root
|
34
|
-
|
35
|
-
if (copy_coherent)
|
36
|
-
m.dependency "coherent_library", [], :source=>COHERENT_SOURCE,
|
37
|
-
:destination=>destination_path(coherent_project)
|
38
|
-
end
|
39
33
|
end
|
40
34
|
end
|
41
35
|
|
@@ -56,19 +50,11 @@ EOS
|
|
56
50
|
# opts.on("-a", "--author=\"Your Name\"", String,
|
57
51
|
# "Some comment about this option",
|
58
52
|
# "Default: none") { |o| options[:author] = o }
|
59
|
-
opts.on("-lib", "--lib=\"Location of Coherent Project\"", String,
|
60
|
-
"This is where the Coherent project folder lives",
|
61
|
-
"Default: source from the tools gem") { |o|
|
62
|
-
options[:coherent_project] = o
|
63
|
-
}
|
64
53
|
opts.on("-nib", "--nib=\"Name of the Primary NIB\"", String,
|
65
54
|
"The name used for the primary NIB for the app.",
|
66
55
|
"Default: main") { |o|
|
67
56
|
options[:nib_name] = o
|
68
57
|
}
|
69
|
-
opts.on("-copy", "--[no-]copy", "Copy the coherent library") { |o|
|
70
|
-
options[:copy_coherent]= o
|
71
|
-
}
|
72
58
|
opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.")
|
73
59
|
end
|
74
60
|
|
@@ -77,13 +63,7 @@ EOS
|
|
77
63
|
# Templates can access these value via the attr_reader-generated methods, but not the
|
78
64
|
# raw instance variable value.
|
79
65
|
# @author = options[:author]
|
80
|
-
@copy_coherent= options[:copy_coherent]
|
81
66
|
@nib_name= options[:nib_name]
|
82
|
-
if (@copy_coherent)
|
83
|
-
@coherent_project= "ext/coherent"
|
84
|
-
else
|
85
|
-
@coherent_project= options[:coherent_project]
|
86
|
-
end
|
87
67
|
end
|
88
68
|
|
89
69
|
# Installation skeleton. Intermediate directories are automatically
|
@@ -3,7 +3,8 @@ version: 1.0.0
|
|
3
3
|
notice: src/NOTICE
|
4
4
|
output folder: build/res/latest
|
5
5
|
remove prefix: src
|
6
|
-
external projects:
|
6
|
+
external projects:
|
7
|
+
ext/coherent: http://coherent.googlecode.com/svn/trunk
|
7
8
|
|
8
9
|
# This is the main target for your application. This target will yield optimised
|
9
10
|
# CSS and Javascript files for all of your assets. In addition, it will emit
|
data/coherent.gemspec
CHANGED
@@ -5,16 +5,15 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{coherent}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Watkins"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-22}
|
13
13
|
s.default_executable = %q{coherent}
|
14
14
|
s.description = %q{Tools for building Coherent application or modules.}
|
15
15
|
s.email = %q{jeff@metrocat.org}
|
16
16
|
s.executables = ["coherent"]
|
17
|
-
s.extensions = ["vendor/extconf.rb"]
|
18
17
|
s.extra_rdoc_files = [
|
19
18
|
"LICENSE",
|
20
19
|
"README.rdoc"
|
@@ -37,8 +36,6 @@ Gem::Specification.new do |s|
|
|
37
36
|
"generators/class/USAGE",
|
38
37
|
"generators/class/class_generator.rb",
|
39
38
|
"generators/class/templates/@name@.js.erb",
|
40
|
-
"generators/coherent_library/USAGE",
|
41
|
-
"generators/coherent_library/coherent_library_generator.rb",
|
42
39
|
"generators/gallery_sample/USAGE",
|
43
40
|
"generators/gallery_sample/gallery_sample_generator.rb",
|
44
41
|
"generators/gallery_sample/templates/src/nibs/@name@/@name@.css",
|
@@ -57,10 +54,7 @@ Gem::Specification.new do |s|
|
|
57
54
|
"generators/nib/templates/@name@.css.erb",
|
58
55
|
"generators/nib/templates/@name@.html.erb",
|
59
56
|
"generators/nib/templates/@name@.jsnib.erb",
|
60
|
-
"lib/coherent.rb"
|
61
|
-
"vendor/Makefile",
|
62
|
-
"vendor/checkout_coherent.sh",
|
63
|
-
"vendor/extconf.rb"
|
57
|
+
"lib/coherent.rb"
|
64
58
|
]
|
65
59
|
s.homepage = %q{http://coherentjs.org}
|
66
60
|
s.rdoc_options = ["--charset=UTF-8"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coherent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Watkins
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-22 00:00:00 -08:00
|
13
13
|
default_executable: coherent
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -26,8 +26,8 @@ description: Tools for building Coherent application or modules.
|
|
26
26
|
email: jeff@metrocat.org
|
27
27
|
executables:
|
28
28
|
- coherent
|
29
|
-
extensions:
|
30
|
-
|
29
|
+
extensions: []
|
30
|
+
|
31
31
|
extra_rdoc_files:
|
32
32
|
- LICENSE
|
33
33
|
- README.rdoc
|
@@ -49,8 +49,6 @@ files:
|
|
49
49
|
- generators/class/USAGE
|
50
50
|
- generators/class/class_generator.rb
|
51
51
|
- generators/class/templates/@name@.js.erb
|
52
|
-
- generators/coherent_library/USAGE
|
53
|
-
- generators/coherent_library/coherent_library_generator.rb
|
54
52
|
- generators/gallery_sample/USAGE
|
55
53
|
- generators/gallery_sample/gallery_sample_generator.rb
|
56
54
|
- generators/gallery_sample/templates/src/nibs/@name@/@name@.css
|
@@ -70,9 +68,6 @@ files:
|
|
70
68
|
- generators/nib/templates/@name@.html.erb
|
71
69
|
- generators/nib/templates/@name@.jsnib.erb
|
72
70
|
- lib/coherent.rb
|
73
|
-
- vendor/Makefile
|
74
|
-
- vendor/checkout_coherent.sh
|
75
|
-
- vendor/extconf.rb
|
76
71
|
has_rdoc: true
|
77
72
|
homepage: http://coherentjs.org
|
78
73
|
licenses: []
|
@@ -1,44 +0,0 @@
|
|
1
|
-
require "#{File.dirname(__FILE__)}/../../lib/coherent"
|
2
|
-
|
3
|
-
class CoherentLibraryGenerator < CoherentBaseGenerator
|
4
|
-
|
5
|
-
default_options :author => nil
|
6
|
-
|
7
|
-
def initialize(runtime_args, runtime_options = {})
|
8
|
-
super
|
9
|
-
extract_options
|
10
|
-
end
|
11
|
-
|
12
|
-
def manifest
|
13
|
-
record do |m|
|
14
|
-
copy_template_folder m
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
protected
|
19
|
-
def banner
|
20
|
-
<<-EOS
|
21
|
-
Creates a ...
|
22
|
-
|
23
|
-
USAGE: #{$0} #{spec.name} name
|
24
|
-
EOS
|
25
|
-
end
|
26
|
-
|
27
|
-
def add_options!(opts)
|
28
|
-
# opts.separator ''
|
29
|
-
# opts.separator 'Options:'
|
30
|
-
# For each option below, place the default
|
31
|
-
# at the top of the file next to "default_options"
|
32
|
-
# opts.on("-a", "--author=\"Your Name\"", String,
|
33
|
-
# "Some comment about this option",
|
34
|
-
# "Default: none") { |o| options[:author] = o }
|
35
|
-
# opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.")
|
36
|
-
end
|
37
|
-
|
38
|
-
def extract_options
|
39
|
-
# for each option, extract it into a local variable (and create an "attr_reader :author" at the top)
|
40
|
-
# Templates can access these value via the attr_reader-generated methods, but not the
|
41
|
-
# raw instance variable value.
|
42
|
-
# @author = options[:author]
|
43
|
-
end
|
44
|
-
end
|
data/vendor/Makefile
DELETED
data/vendor/checkout_coherent.sh
DELETED
data/vendor/extconf.rb
DELETED