architecture-js 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -1
- data/Gemfile.lock +0 -2
- data/README.md +9 -2
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/architecture-js.gemspec +41 -8
- data/lib/architecture-js/dependencies.rb +0 -2
- data/lib/architecture-js/project.rb +6 -2
- data/lib/architecture-js.rb +2 -0
- data/lib/sprockets/CHANGELOG +22 -0
- data/lib/sprockets/LICENSE +20 -0
- data/lib/sprockets/README.markdown +230 -0
- data/lib/sprockets/lib/sprockets/concatenation.rb +36 -0
- data/lib/sprockets/lib/sprockets/environment.rb +52 -0
- data/lib/sprockets/lib/sprockets/error.rb +5 -0
- data/lib/sprockets/lib/sprockets/pathname.rb +37 -0
- data/lib/sprockets/lib/sprockets/preprocessor.rb +96 -0
- data/lib/sprockets/lib/sprockets/secretary.rb +110 -0
- data/lib/sprockets/lib/sprockets/source_file.rb +56 -0
- data/lib/sprockets/lib/sprockets/source_line.rb +85 -0
- data/lib/sprockets/lib/sprockets/version.rb +9 -0
- data/lib/sprockets/lib/sprockets.rb +42 -0
- data/lib/sprockets/test/fixtures/assets/images/script_with_assets/one.png +1 -0
- data/lib/sprockets/test/fixtures/assets/images/script_with_assets/two.png +1 -0
- data/lib/sprockets/test/fixtures/assets/stylesheets/script_with_assets.css +1 -0
- data/lib/sprockets/test/fixtures/constants.yml +1 -0
- data/lib/sprockets/test/fixtures/double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false.js +8 -0
- data/lib/sprockets/test/fixtures/double_slash_comments_that_are_not_requires_should_be_removed_by_default.js +2 -0
- data/lib/sprockets/test/fixtures/multiline_comments_should_be_removed_by_default.js +4 -0
- data/lib/sprockets/test/fixtures/requiring_a_file_after_it_has_already_been_required_should_do_nothing.js +5 -0
- data/lib/sprockets/test/fixtures/requiring_a_file_that_does_not_exist_should_raise_an_error.js +1 -0
- data/lib/sprockets/test/fixtures/requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents.js +3 -0
- data/lib/sprockets/test/fixtures/requiring_the_current_file_should_do_nothing.js +1 -0
- data/lib/sprockets/test/fixtures/src/constants.yml +3 -0
- data/lib/sprockets/test/fixtures/src/foo/bar.js +4 -0
- data/lib/sprockets/test/fixtures/src/foo/foo.js +1 -0
- data/lib/sprockets/test/fixtures/src/foo.js +1 -0
- data/lib/sprockets/test/fixtures/src/script_with_assets.js +3 -0
- data/lib/sprockets/test/fixtures/src/script_with_comments.js +13 -0
- data/lib/sprockets/test/test_concatenation.rb +28 -0
- data/lib/sprockets/test/test_environment.rb +64 -0
- data/lib/sprockets/test/test_helper.rb +55 -0
- data/lib/sprockets/test/test_pathname.rb +43 -0
- data/lib/sprockets/test/test_preprocessor.rb +107 -0
- data/lib/sprockets/test/test_secretary.rb +89 -0
- data/lib/sprockets/test/test_source_file.rb +34 -0
- data/lib/sprockets/test/test_source_line.rb +89 -0
- data/spec/fixtures/underscore_template.js +5 -0
- data/spec/project_spec.rb +22 -0
- metadata +60 -43
@@ -0,0 +1,107 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class PreprocessorTest < Test::Unit::TestCase
|
4
|
+
def setup
|
5
|
+
@environment = environment_for_fixtures
|
6
|
+
@preprocessor = Sprockets::Preprocessor.new(@environment)
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_double_slash_comments_that_are_not_requires_should_be_removed_by_default
|
10
|
+
require_file_for_this_test
|
11
|
+
assert_concatenation_does_not_contain_line "// This is a double-slash comment that should not appear in the resulting output file."
|
12
|
+
assert_concatenation_contains_line "/* This is a slash-star comment that should not appear in the resulting output file. */"
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false
|
16
|
+
@preprocessor = Sprockets::Preprocessor.new(@environment, :strip_comments => false)
|
17
|
+
require_file_for_this_test
|
18
|
+
assert_concatenation_contains_line "// This is a double-slash comment that should appear in the resulting output file."
|
19
|
+
assert_concatenation_contains_line "/* This is a slash-star comment that should appear in the resulting output file. */"
|
20
|
+
|
21
|
+
assert_concatenation_contains_line "/* This is multiline slash-star comment"
|
22
|
+
assert_concatenation_contains_line "* that should appear in the resulting"
|
23
|
+
assert_concatenation_contains_line "* output file */"
|
24
|
+
|
25
|
+
assert_concatenation_contains_line "This is not a PDoc comment that should appear in the resulting output file."
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_multiline_comments_should_be_removed_by_default
|
29
|
+
require_file_for_this_test
|
30
|
+
assert_concatenation_does_not_contain_line "/**"
|
31
|
+
assert_concatenation_does_not_contain_line " * This is a PDoc comment"
|
32
|
+
assert_concatenation_does_not_contain_line " * that should appear in the resulting output file."
|
33
|
+
assert_concatenation_does_not_contain_line "**/"
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents
|
37
|
+
require_file_for_this_test
|
38
|
+
assert_concatenation_contains <<-LINES
|
39
|
+
var before_require;
|
40
|
+
var Foo = { };
|
41
|
+
var after_require;
|
42
|
+
LINES
|
43
|
+
end
|
44
|
+
|
45
|
+
def test_requiring_a_file_that_does_not_exist_should_raise_an_error
|
46
|
+
assert_raises(Sprockets::LoadError) do
|
47
|
+
require_file_for_this_test
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_requiring_the_current_file_should_do_nothing
|
52
|
+
require_file_for_this_test
|
53
|
+
assert_equal "", output_text
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_requiring_a_file_after_it_has_already_been_required_should_do_nothing
|
57
|
+
require_file_for_this_test
|
58
|
+
assert_concatenation_contains <<-LINES
|
59
|
+
var before_first_require;
|
60
|
+
var Foo = { };
|
61
|
+
var after_first_require_and_before_second_require;
|
62
|
+
var after_second_require;
|
63
|
+
LINES
|
64
|
+
end
|
65
|
+
|
66
|
+
protected
|
67
|
+
attr_reader :environment, :preprocessor
|
68
|
+
|
69
|
+
def concatenation
|
70
|
+
preprocessor.concatenation
|
71
|
+
end
|
72
|
+
|
73
|
+
def output_text
|
74
|
+
preprocessor.concatenation.to_s
|
75
|
+
end
|
76
|
+
|
77
|
+
def source_lines_matching(line)
|
78
|
+
concatenation.source_lines.select { |source_line| source_line.line.strip == line }
|
79
|
+
end
|
80
|
+
|
81
|
+
def require_file(location)
|
82
|
+
preprocessor.require(environment.find(location).source_file)
|
83
|
+
end
|
84
|
+
|
85
|
+
def require_file_for_this_test
|
86
|
+
require_file(file_for_this_test)
|
87
|
+
end
|
88
|
+
|
89
|
+
def file_for_this_test
|
90
|
+
caller.map { |c| c[/`(.*?)'$/, 1] }.grep(/^test_/).first[5..-1] + ".js"
|
91
|
+
end
|
92
|
+
|
93
|
+
def assert_concatenation_does_not_contain_line(line)
|
94
|
+
assert source_lines_matching(line).empty?, "Expected #{line.inspect} to not exist"
|
95
|
+
end
|
96
|
+
|
97
|
+
def assert_concatenation_contains_line(line)
|
98
|
+
assert source_lines_matching(line).any?, "Expected #{line.inspect} to exist"
|
99
|
+
end
|
100
|
+
|
101
|
+
def assert_concatenation_contains(indented_text)
|
102
|
+
lines = indented_text.split($/)
|
103
|
+
initial_indent = lines.first[/^\s*/].length
|
104
|
+
unindented_text = lines.map { |line| line[initial_indent..-1] }.join($/)
|
105
|
+
assert output_text[unindented_text]
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class SecretaryTest < Test::Unit::TestCase
|
4
|
+
def test_load_locations_are_not_expanded_when_expand_paths_is_false
|
5
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH)
|
6
|
+
secretary.add_load_location("src/**/", :expand_paths => false)
|
7
|
+
|
8
|
+
assert_equal [File.join(FIXTURES_PATH, "src/**"), FIXTURES_PATH],
|
9
|
+
secretary.environment.load_path.map { |pathname| pathname.absolute_location }
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_load_locations_are_expanded_when_expand_paths_is_true
|
13
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH)
|
14
|
+
secretary.add_load_location("src/**/", :expand_paths => true)
|
15
|
+
|
16
|
+
assert_equal [File.join(FIXTURES_PATH, "src", "foo"), File.join(FIXTURES_PATH, "src"), FIXTURES_PATH],
|
17
|
+
secretary.environment.load_path.map { |pathname| pathname.absolute_location }
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_source_files_are_not_expanded_when_expand_paths_is_false
|
21
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH)
|
22
|
+
assert_raises(Sprockets::LoadError) do
|
23
|
+
secretary.add_source_file("src/f*.js", :expand_paths => false)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_source_files_are_expanded_when_expand_paths_is_true
|
28
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH)
|
29
|
+
secretary.add_source_file("src/f*.js", :expand_paths => true)
|
30
|
+
|
31
|
+
assert_equal [File.join(FIXTURES_PATH, "src", "foo.js")],
|
32
|
+
secretary.preprocessor.source_files.map { |source_file| source_file.pathname.absolute_location }
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_install_assets_into_empty_directory
|
36
|
+
with_temporary_directory do |temp|
|
37
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH, :asset_root => temp)
|
38
|
+
secretary.add_source_file("src/script_with_assets.js")
|
39
|
+
|
40
|
+
assert_equal [], Dir[File.join(temp, "**", "*")]
|
41
|
+
secretary.install_assets
|
42
|
+
assert_equal paths_relative_to(temp,
|
43
|
+
"images", "images/script_with_assets", "images/script_with_assets/one.png",
|
44
|
+
"images/script_with_assets/two.png", "stylesheets", "stylesheets/script_with_assets.css"),
|
45
|
+
Dir[File.join(temp, "**", "*")].sort
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def test_install_assets_into_nonexistent_directory
|
50
|
+
with_temporary_directory do |temp|
|
51
|
+
temp = File.join(temp, "assets")
|
52
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH, :asset_root => temp)
|
53
|
+
secretary.add_source_file("src/script_with_assets.js")
|
54
|
+
|
55
|
+
assert_equal [], Dir[File.join(temp, "**", "*")]
|
56
|
+
secretary.install_assets
|
57
|
+
assert_equal paths_relative_to(temp,
|
58
|
+
"images", "images/script_with_assets", "images/script_with_assets/one.png",
|
59
|
+
"images/script_with_assets/two.png", "stylesheets", "stylesheets/script_with_assets.css"),
|
60
|
+
Dir[File.join(temp, "**", "*")].sort
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_install_assets_into_subdirectories_that_already_exist
|
65
|
+
with_temporary_directory do |temp|
|
66
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH, :asset_root => temp)
|
67
|
+
secretary.add_source_file("src/script_with_assets.js")
|
68
|
+
|
69
|
+
FileUtils.mkdir_p(File.join(temp, "images", "script_with_assets"))
|
70
|
+
assert_equal paths_relative_to(temp, "images", "images/script_with_assets"), Dir[File.join(temp, "**", "*")]
|
71
|
+
secretary.install_assets
|
72
|
+
assert_equal paths_relative_to(temp,
|
73
|
+
"images", "images/script_with_assets", "images/script_with_assets/one.png",
|
74
|
+
"images/script_with_assets/two.png", "stylesheets", "stylesheets/script_with_assets.css"),
|
75
|
+
Dir[File.join(temp, "**", "*")].sort
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def test_secretary_passes_strip_comments_option_through_to_preprocessor
|
80
|
+
secretary = Sprockets::Secretary.new(:root => FIXTURES_PATH, :strip_comments => false)
|
81
|
+
secretary.add_source_file("src/script_with_comments.js")
|
82
|
+
assert_equal content_of_fixture("src/script_with_comments.js"), secretary.concatenation.to_s
|
83
|
+
end
|
84
|
+
|
85
|
+
protected
|
86
|
+
def paths_relative_to(root, *paths)
|
87
|
+
paths.map { |path| File.join(root, path) }
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
require "enumerator"
|
3
|
+
Enumerator = Enumerable::Enumerator unless defined?(Enumerator) # for 1.9.1 compatibility
|
4
|
+
|
5
|
+
class SourceFileTest < Test::Unit::TestCase
|
6
|
+
def setup
|
7
|
+
@environment = environment_for_fixtures
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_each_source_line
|
11
|
+
source_file_lines = Enumerator.new(source_file("src/foo/bar.js"), :each_source_line).to_a
|
12
|
+
assert_equal content_of_fixture("src/foo/bar.js"), source_file_lines.map { |line| line.line }.join
|
13
|
+
assert_equal 4, source_file_lines.length
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_find_should_return_pathname_for_file_relative_to_the_current_pathname
|
17
|
+
assert_absolute_location_ends_with "test/fixtures/src/foo/bar.js", source_file("src/foo/foo.js").find("bar.js")
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_find_should_return_nil_for_nonexistent_file
|
21
|
+
assert_nil source_file("src/foo/foo.js").find("nonexistent.js")
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_equality_of_source_files
|
25
|
+
assert_equal source_file("src/foo/foo.js"), source_file("src/foo/foo.js")
|
26
|
+
assert_equal source_file("src/foo/foo.js"), source_file("src/foo/../foo/foo.js")
|
27
|
+
assert_not_equal source_file("src/foo/foo.js"), source_file("src/foo.js")
|
28
|
+
assert_not_equal source_file("src/foo/foo.js"), source_file("src/foo/bar.js")
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_mtime_should_return_now_if_file_does_not_exist
|
32
|
+
assert source_file("src/foo/nonexistent.js").mtime.instance_of?(Time)
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class SourceLineTest < Test::Unit::TestCase
|
4
|
+
def test_line_that_begins_with_double_slash_should_be_a_comment
|
5
|
+
assert source_line("//").comment?
|
6
|
+
assert source_line("//test").comment?
|
7
|
+
assert source_line("//= require").comment?
|
8
|
+
assert source_line("//= require <foo>").comment?
|
9
|
+
assert source_line(" //").comment?
|
10
|
+
assert source_line("\t//").comment?
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_line_that_begins_a_multiline_comment
|
14
|
+
assert source_line(" /*").begins_multiline_comment?
|
15
|
+
assert source_line(" /**").begins_multiline_comment?
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_line_that_begins_a_pdoc_comment
|
19
|
+
assert !source_line(" /*").begins_pdoc_comment?
|
20
|
+
assert source_line(" /**").begins_pdoc_comment?
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_line_that_ends_a_multiline_comment
|
24
|
+
assert source_line(" */").ends_multiline_comment?
|
25
|
+
assert source_line(" **/").ends_multiline_comment?
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_line_that_ends_a_pdoc_comment
|
29
|
+
assert !source_line(" */").ends_pdoc_comment?
|
30
|
+
assert source_line(" **/").ends_pdoc_comment?
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_line_that_contains_but_does_not_begin_with_double_slash_should_not_be_a_comment
|
34
|
+
assert !source_line("f //").comment?
|
35
|
+
assert !source_line("f //= require <foo>").comment?
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_comment_should_be_extracted_from_comment_lines
|
39
|
+
assert_equal "test", source_line("//test").comment
|
40
|
+
assert_equal " test", source_line("// test").comment
|
41
|
+
assert_equal nil, source_line("f //test").comment
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_line_that_contains_require_comment_should_be_a_require
|
45
|
+
assert source_line("//= require <foo>").require?
|
46
|
+
assert !source_line("//= require<foo>").require?
|
47
|
+
assert source_line("//= require \"foo\"").require?
|
48
|
+
assert !source_line("//= require <foo> f").require?
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_require_should_be_extracted_from_require_lines
|
52
|
+
assert_nil source_line("//= require").require
|
53
|
+
assert_equal "<foo>", source_line("//= require <foo>").require
|
54
|
+
assert_equal "<foo>", source_line("//= require <foo> ").require
|
55
|
+
assert_equal "\"foo\"", source_line("//= require \"foo\"").require
|
56
|
+
end
|
57
|
+
|
58
|
+
def test_line_that_contains_a_provide_comment_should_be_a_provide
|
59
|
+
assert source_line("//= provide \"../assets\"").provide?
|
60
|
+
assert !source_line("//= provide").provide?
|
61
|
+
assert !source_line("//= provide <../assets>").provide?
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_provide_should_be_extracted_from_provide_lines
|
65
|
+
assert_nil source_line("//= provide").provide
|
66
|
+
assert_equal "../assets", source_line("//= provide \"../assets\"").provide
|
67
|
+
end
|
68
|
+
|
69
|
+
def test_inspect_should_include_source_file_location_and_line_number
|
70
|
+
environment = environment_for_fixtures
|
71
|
+
pathname = Sprockets::Pathname.new(environment, "/a/b/c.js")
|
72
|
+
source_file = Sprockets::SourceFile.new(environment, pathname)
|
73
|
+
assert_equal "line 25 of #{File.expand_path("/a/b/c.js")}", source_line("hello", source_file, 25).inspect
|
74
|
+
end
|
75
|
+
|
76
|
+
def test_interpolation_of_constants
|
77
|
+
assert_equal %(var VERSION = "1.0";\n), source_line('var VERSION = "<%= VERSION %>";').to_s("VERSION" => "1.0")
|
78
|
+
end
|
79
|
+
|
80
|
+
def test_interpolation_of_missing_constant_raises_undefined_constant_error
|
81
|
+
assert_raises(Sprockets::UndefinedConstantError) do
|
82
|
+
source_line('<%= NONEXISTENT %>').to_s("VERSION" => "1.0")
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def test_to_s_should_strip_trailing_whitespace_before_adding_line_ending
|
87
|
+
assert_equal "hello();\n", source_line("hello(); \t \r\n").to_s({})
|
88
|
+
end
|
89
|
+
end
|
data/spec/project_spec.rb
CHANGED
@@ -152,4 +152,26 @@ describe ArchitectureJS::Project do
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
+
context "when compiling underscore template patterns" do
|
156
|
+
before :each do
|
157
|
+
FileUtils.mkdir("#{TMP_DIR}")
|
158
|
+
suppress_output do
|
159
|
+
@project = ArchitectureJS::Project.new({ name: 'myapp' },TMP_DIR)
|
160
|
+
@project.raise_errors = true
|
161
|
+
@project.create
|
162
|
+
FileUtils.cp "#{FIXTURES}/underscore_template.js", "#{TMP_DIR}/src/underscore_template.js"
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
after :each do
|
167
|
+
FileUtils.rm_rf "#{TMP_DIR}" if File.exists? "#{TMP_DIR}"
|
168
|
+
end
|
169
|
+
|
170
|
+
it 'should compile underscore.js template patterns' do
|
171
|
+
lambda {
|
172
|
+
suppress_output { @project.update }
|
173
|
+
}.should_not raise_error
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
155
177
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: architecture-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-18 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fssm
|
16
|
-
requirement: &
|
16
|
+
requirement: &70326224495540 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.2.8.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70326224495540
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jsmin
|
27
|
-
requirement: &
|
27
|
+
requirement: &70326224495060 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,21 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: sprockets
|
38
|
-
requirement: &70326752954460 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - =
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.0.2
|
44
|
-
type: :runtime
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *70326752954460
|
35
|
+
version_requirements: *70326224495060
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: rspec
|
49
|
-
requirement: &
|
38
|
+
requirement: &70326224475980 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ~>
|
@@ -54,10 +43,10 @@ dependencies:
|
|
54
43
|
version: 2.8.0
|
55
44
|
type: :development
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *70326224475980
|
58
47
|
- !ruby/object:Gem::Dependency
|
59
48
|
name: bundler
|
60
|
-
requirement: &
|
49
|
+
requirement: &70326224475380 !ruby/object:Gem::Requirement
|
61
50
|
none: false
|
62
51
|
requirements:
|
63
52
|
- - ~>
|
@@ -65,10 +54,10 @@ dependencies:
|
|
65
54
|
version: 1.0.0
|
66
55
|
type: :development
|
67
56
|
prerelease: false
|
68
|
-
version_requirements: *
|
57
|
+
version_requirements: *70326224475380
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: jeweler
|
71
|
-
requirement: &
|
60
|
+
requirement: &70326224474780 !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
62
|
requirements:
|
74
63
|
- - ~>
|
@@ -76,10 +65,10 @@ dependencies:
|
|
76
65
|
version: 1.8.3
|
77
66
|
type: :development
|
78
67
|
prerelease: false
|
79
|
-
version_requirements: *
|
68
|
+
version_requirements: *70326224474780
|
80
69
|
- !ruby/object:Gem::Dependency
|
81
70
|
name: ZenTest
|
82
|
-
requirement: &
|
71
|
+
requirement: &70326224474200 !ruby/object:Gem::Requirement
|
83
72
|
none: false
|
84
73
|
requirements:
|
85
74
|
- - ~>
|
@@ -87,10 +76,10 @@ dependencies:
|
|
87
76
|
version: 4.6.2
|
88
77
|
type: :development
|
89
78
|
prerelease: false
|
90
|
-
version_requirements: *
|
79
|
+
version_requirements: *70326224474200
|
91
80
|
- !ruby/object:Gem::Dependency
|
92
81
|
name: autotest-growl
|
93
|
-
requirement: &
|
82
|
+
requirement: &70326224473720 !ruby/object:Gem::Requirement
|
94
83
|
none: false
|
95
84
|
requirements:
|
96
85
|
- - ~>
|
@@ -98,10 +87,10 @@ dependencies:
|
|
98
87
|
version: 0.2.16
|
99
88
|
type: :development
|
100
89
|
prerelease: false
|
101
|
-
version_requirements: *
|
90
|
+
version_requirements: *70326224473720
|
102
91
|
- !ruby/object:Gem::Dependency
|
103
92
|
name: jsmin
|
104
|
-
requirement: &
|
93
|
+
requirement: &70326224473160 !ruby/object:Gem::Requirement
|
105
94
|
none: false
|
106
95
|
requirements:
|
107
96
|
- - ! '>='
|
@@ -109,10 +98,10 @@ dependencies:
|
|
109
98
|
version: '0'
|
110
99
|
type: :runtime
|
111
100
|
prerelease: false
|
112
|
-
version_requirements: *
|
101
|
+
version_requirements: *70326224473160
|
113
102
|
- !ruby/object:Gem::Dependency
|
114
103
|
name: fssm
|
115
|
-
requirement: &
|
104
|
+
requirement: &70326224472680 !ruby/object:Gem::Requirement
|
116
105
|
none: false
|
117
106
|
requirements:
|
118
107
|
- - ! '>='
|
@@ -120,18 +109,7 @@ dependencies:
|
|
120
109
|
version: '0'
|
121
110
|
type: :runtime
|
122
111
|
prerelease: false
|
123
|
-
version_requirements: *
|
124
|
-
- !ruby/object:Gem::Dependency
|
125
|
-
name: sprockets
|
126
|
-
requirement: &70326752924120 !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
|
-
requirements:
|
129
|
-
- - =
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 1.0.2
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: *70326752924120
|
112
|
+
version_requirements: *70326224472680
|
135
113
|
description: Architecture.js helps you generate scaffolding, manage third-party packages,
|
136
114
|
compile, and compress your application.
|
137
115
|
email: daytonn@gmail.com
|
@@ -160,6 +138,44 @@ files:
|
|
160
138
|
- lib/architecture-js/helpers.rb
|
161
139
|
- lib/architecture-js/notification.rb
|
162
140
|
- lib/architecture-js/project.rb
|
141
|
+
- lib/sprockets/CHANGELOG
|
142
|
+
- lib/sprockets/LICENSE
|
143
|
+
- lib/sprockets/README.markdown
|
144
|
+
- lib/sprockets/lib/sprockets.rb
|
145
|
+
- lib/sprockets/lib/sprockets/concatenation.rb
|
146
|
+
- lib/sprockets/lib/sprockets/environment.rb
|
147
|
+
- lib/sprockets/lib/sprockets/error.rb
|
148
|
+
- lib/sprockets/lib/sprockets/pathname.rb
|
149
|
+
- lib/sprockets/lib/sprockets/preprocessor.rb
|
150
|
+
- lib/sprockets/lib/sprockets/secretary.rb
|
151
|
+
- lib/sprockets/lib/sprockets/source_file.rb
|
152
|
+
- lib/sprockets/lib/sprockets/source_line.rb
|
153
|
+
- lib/sprockets/lib/sprockets/version.rb
|
154
|
+
- lib/sprockets/test/fixtures/assets/images/script_with_assets/one.png
|
155
|
+
- lib/sprockets/test/fixtures/assets/images/script_with_assets/two.png
|
156
|
+
- lib/sprockets/test/fixtures/assets/stylesheets/script_with_assets.css
|
157
|
+
- lib/sprockets/test/fixtures/constants.yml
|
158
|
+
- lib/sprockets/test/fixtures/double_slash_comments_that_are_not_requires_should_be_ignored_when_strip_comments_is_false.js
|
159
|
+
- lib/sprockets/test/fixtures/double_slash_comments_that_are_not_requires_should_be_removed_by_default.js
|
160
|
+
- lib/sprockets/test/fixtures/multiline_comments_should_be_removed_by_default.js
|
161
|
+
- lib/sprockets/test/fixtures/requiring_a_file_after_it_has_already_been_required_should_do_nothing.js
|
162
|
+
- lib/sprockets/test/fixtures/requiring_a_file_that_does_not_exist_should_raise_an_error.js
|
163
|
+
- lib/sprockets/test/fixtures/requiring_a_single_file_should_replace_the_require_comment_with_the_file_contents.js
|
164
|
+
- lib/sprockets/test/fixtures/requiring_the_current_file_should_do_nothing.js
|
165
|
+
- lib/sprockets/test/fixtures/src/constants.yml
|
166
|
+
- lib/sprockets/test/fixtures/src/foo.js
|
167
|
+
- lib/sprockets/test/fixtures/src/foo/bar.js
|
168
|
+
- lib/sprockets/test/fixtures/src/foo/foo.js
|
169
|
+
- lib/sprockets/test/fixtures/src/script_with_assets.js
|
170
|
+
- lib/sprockets/test/fixtures/src/script_with_comments.js
|
171
|
+
- lib/sprockets/test/test_concatenation.rb
|
172
|
+
- lib/sprockets/test/test_environment.rb
|
173
|
+
- lib/sprockets/test/test_helper.rb
|
174
|
+
- lib/sprockets/test/test_pathname.rb
|
175
|
+
- lib/sprockets/test/test_preprocessor.rb
|
176
|
+
- lib/sprockets/test/test_secretary.rb
|
177
|
+
- lib/sprockets/test/test_source_file.rb
|
178
|
+
- lib/sprockets/test/test_source_line.rb
|
163
179
|
- repository/modjs/plugins/jquery-elements.js
|
164
180
|
- spec/.DS_Store
|
165
181
|
- spec/architect_spec.rb
|
@@ -182,6 +198,7 @@ files:
|
|
182
198
|
- spec/fixtures/test_framework.rb
|
183
199
|
- spec/fixtures/test_template_options.js
|
184
200
|
- spec/fixtures/test_template_two.js
|
201
|
+
- spec/fixtures/underscore_template.js
|
185
202
|
- spec/fixtures/update.architecture
|
186
203
|
- spec/fixtures/update.js
|
187
204
|
- spec/generator_spec.rb
|
@@ -205,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
222
|
version: '0'
|
206
223
|
segments:
|
207
224
|
- 0
|
208
|
-
hash:
|
225
|
+
hash: 2340740664234039827
|
209
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
227
|
none: false
|
211
228
|
requirements:
|