jammit-core 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/LICENSE +22 -0
  2. data/README +24 -0
  3. data/README.rdoc +17 -0
  4. data/Rakefile +59 -0
  5. data/VERSION +1 -0
  6. data/bin/jammit +13 -0
  7. data/lib/assets.example.yml +14 -0
  8. data/lib/jammit-core.rb +219 -0
  9. data/lib/jammit-core/cli.rb +87 -0
  10. data/lib/jammit-core/command_line.rb +79 -0
  11. data/lib/jammit-core/compressor.rb +214 -0
  12. data/lib/jammit-core/config.rb +82 -0
  13. data/lib/jammit-core/dependencies.rb +23 -0
  14. data/lib/jammit-core/helper.rb +77 -0
  15. data/lib/jammit-core/jst.js +1 -0
  16. data/lib/jammit-core/packager.rb +163 -0
  17. data/lib/jammit-core/routes.rb +16 -0
  18. data/lib/jammit-core/ui.rb +55 -0
  19. data/test/config/assets-broken.yml +16 -0
  20. data/test/config/assets-closure.yml +16 -0
  21. data/test/config/assets-compression-disabled.yml +16 -0
  22. data/test/config/assets-css.yml +6 -0
  23. data/test/config/assets-erb.yml +13 -0
  24. data/test/config/assets-no-java.yml +16 -0
  25. data/test/config/assets.yml +13 -0
  26. data/test/fixtures/jammed/test-closure.js +1 -0
  27. data/test/fixtures/jammed/test-datauri.css +1 -0
  28. data/test/fixtures/jammed/test-line-break.css +8 -0
  29. data/test/fixtures/jammed/test-mhtml.css +17 -0
  30. data/test/fixtures/jammed/test-uncompressed.css +36 -0
  31. data/test/fixtures/jammed/test-uncompressed.js +13 -0
  32. data/test/fixtures/jammed/test.css +1 -0
  33. data/test/fixtures/jammed/test.js +1 -0
  34. data/test/fixtures/jammed/test.jst +6 -0
  35. data/test/fixtures/jammed/test2.jst +6 -0
  36. data/test/fixtures/src/test1.css +11 -0
  37. data/test/fixtures/src/test1.js +8 -0
  38. data/test/fixtures/src/test1.jst +1 -0
  39. data/test/fixtures/src/test2.css +20 -0
  40. data/test/fixtures/src/test2.js +5 -0
  41. data/test/fixtures/src/test2.jst +5 -0
  42. data/test/fixtures/src/test_fonts.css +5 -0
  43. data/test/fixtures/tags/css_includes.html +6 -0
  44. data/test/fixtures/tags/css_individual_includes.html +3 -0
  45. data/test/fixtures/tags/css_plain_includes.html +1 -0
  46. data/test/fixtures/tags/css_print.html +6 -0
  47. data/test/public/embed/DroidSansMono.eot +0 -0
  48. data/test/public/embed/DroidSansMono.ttf +0 -0
  49. data/test/public/embed/asterisk_orange.png +0 -0
  50. data/test/public/embed/asterisk_yellow.png +0 -0
  51. data/test/test_helper.rb +44 -0
  52. data/test/unit/command_line_test.rb +28 -0
  53. data/test/unit/test_closure_compressor.rb +24 -0
  54. data/test/unit/test_compressor.rb +24 -0
  55. data/test/unit/test_configuration.rb +71 -0
  56. data/test/unit/test_in_the_wrong_directory.rb +40 -0
  57. data/test/unit/test_jammit_helpers.rb +44 -0
  58. data/test/unit/test_packager.rb +77 -0
  59. metadata +187 -0
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jammit-core
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Christocracy
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-08 00:00:00 -05:00
18
+ default_executable: jammit
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: thoughtbot-shoulda
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :development
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: yui-compressor
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ version: "0"
42
+ type: :runtime
43
+ version_requirements: *id002
44
+ - !ruby/object:Gem::Dependency
45
+ name: closure-compiler
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ type: :runtime
55
+ version_requirements: *id003
56
+ - !ruby/object:Gem::Dependency
57
+ name: extlib
58
+ prerelease: false
59
+ requirement: &id004 !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ type: :runtime
67
+ version_requirements: *id004
68
+ - !ruby/object:Gem::Dependency
69
+ name: json
70
+ prerelease: false
71
+ requirement: &id005 !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ type: :runtime
79
+ version_requirements: *id005
80
+ description: A non-Rails fork of the Jammit asset-packager for use with any Ruby framework
81
+ email: christocracy@gmail.com
82
+ executables:
83
+ - jammit
84
+ extensions: []
85
+
86
+ extra_rdoc_files:
87
+ - LICENSE
88
+ - README
89
+ - README.rdoc
90
+ files:
91
+ - LICENSE
92
+ - README
93
+ - README.rdoc
94
+ - Rakefile
95
+ - VERSION
96
+ - bin/jammit
97
+ - lib/assets.example.yml
98
+ - lib/jammit-core.rb
99
+ - lib/jammit-core/cli.rb
100
+ - lib/jammit-core/command_line.rb
101
+ - lib/jammit-core/compressor.rb
102
+ - lib/jammit-core/config.rb
103
+ - lib/jammit-core/dependencies.rb
104
+ - lib/jammit-core/helper.rb
105
+ - lib/jammit-core/jst.js
106
+ - lib/jammit-core/packager.rb
107
+ - lib/jammit-core/routes.rb
108
+ - lib/jammit-core/ui.rb
109
+ - test/config/assets-broken.yml
110
+ - test/config/assets-closure.yml
111
+ - test/config/assets-compression-disabled.yml
112
+ - test/config/assets-css.yml
113
+ - test/config/assets-erb.yml
114
+ - test/config/assets-no-java.yml
115
+ - test/config/assets.yml
116
+ - test/fixtures/jammed/test-closure.js
117
+ - test/fixtures/jammed/test-datauri.css
118
+ - test/fixtures/jammed/test-line-break.css
119
+ - test/fixtures/jammed/test-mhtml.css
120
+ - test/fixtures/jammed/test-uncompressed.css
121
+ - test/fixtures/jammed/test-uncompressed.js
122
+ - test/fixtures/jammed/test.css
123
+ - test/fixtures/jammed/test.js
124
+ - test/fixtures/jammed/test.jst
125
+ - test/fixtures/jammed/test2.jst
126
+ - test/fixtures/src/test1.css
127
+ - test/fixtures/src/test1.js
128
+ - test/fixtures/src/test1.jst
129
+ - test/fixtures/src/test2.css
130
+ - test/fixtures/src/test2.js
131
+ - test/fixtures/src/test2.jst
132
+ - test/fixtures/src/test_fonts.css
133
+ - test/fixtures/tags/css_includes.html
134
+ - test/fixtures/tags/css_individual_includes.html
135
+ - test/fixtures/tags/css_plain_includes.html
136
+ - test/fixtures/tags/css_print.html
137
+ - test/public/embed/DroidSansMono.eot
138
+ - test/public/embed/DroidSansMono.ttf
139
+ - test/public/embed/asterisk_orange.png
140
+ - test/public/embed/asterisk_yellow.png
141
+ - test/test_helper.rb
142
+ - test/unit/command_line_test.rb
143
+ - test/unit/test_closure_compressor.rb
144
+ - test/unit/test_compressor.rb
145
+ - test/unit/test_configuration.rb
146
+ - test/unit/test_in_the_wrong_directory.rb
147
+ - test/unit/test_jammit_helpers.rb
148
+ - test/unit/test_packager.rb
149
+ has_rdoc: true
150
+ homepage: http://github.com/christocracy/jammit-core
151
+ licenses: []
152
+
153
+ post_install_message:
154
+ rdoc_options:
155
+ - --charset=UTF-8
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ segments:
163
+ - 0
164
+ version: "0"
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ segments:
170
+ - 0
171
+ version: "0"
172
+ requirements: []
173
+
174
+ rubyforge_project:
175
+ rubygems_version: 1.3.6
176
+ signing_key:
177
+ specification_version: 3
178
+ summary: A non-Rails fork of the Jammit asset-packager
179
+ test_files:
180
+ - test/test_helper.rb
181
+ - test/unit/command_line_test.rb
182
+ - test/unit/test_closure_compressor.rb
183
+ - test/unit/test_compressor.rb
184
+ - test/unit/test_configuration.rb
185
+ - test/unit/test_in_the_wrong_directory.rb
186
+ - test/unit/test_jammit_helpers.rb
187
+ - test/unit/test_packager.rb