smart_asset 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +10 -0
  2. data/Gemfile +3 -0
  3. data/LICENSE +2 -2
  4. data/Rakefile +1 -0
  5. data/bin/smart_asset +1 -1
  6. data/lib/smart_asset.rb +2 -6
  7. data/lib/smart_asset/adapters/stasis.rb +43 -0
  8. data/smart_asset.gemspec +25 -0
  9. data/spec/fixtures/all_frameworks/assets.yml +20 -0
  10. data/spec/fixtures/all_frameworks/test.html.erb +3 -0
  11. data/spec/fixtures/assets.yml +27 -0
  12. data/spec/fixtures/assets/javascripts/jquery/jquery.js +7179 -0
  13. data/spec/fixtures/assets/javascripts/underscore.js +722 -0
  14. data/spec/fixtures/assets/stylesheets/960.css +648 -0
  15. data/spec/fixtures/assets/stylesheets/blueprint/blueprint.css +265 -0
  16. data/spec/fixtures/development_output.txt +5 -0
  17. data/spec/fixtures/frameworks.yml +32 -0
  18. data/spec/fixtures/production_output.txt +3 -0
  19. data/spec/fixtures/rails2/application_controller.rb +17 -0
  20. data/spec/fixtures/rails2/environment.rb +42 -0
  21. data/spec/fixtures/rails2/init.rb +1 -0
  22. data/spec/fixtures/rails2/routes.rb +47 -0
  23. data/spec/fixtures/rails3/Gemfile +34 -0
  24. data/spec/fixtures/rails3/application.rb +47 -0
  25. data/spec/fixtures/rails3/application_controller.rb +11 -0
  26. data/spec/fixtures/rails3/routes.rb +61 -0
  27. data/spec/fixtures/sinatra/application.rb +19 -0
  28. data/spec/run +39 -0
  29. data/spec/smart_asset/adapters/rails2_spec.rb +46 -0
  30. data/spec/smart_asset/adapters/rails3_spec.rb +46 -0
  31. data/spec/smart_asset/adapters/sinatra_spec.rb +47 -0
  32. data/spec/smart_asset_spec.rb +403 -0
  33. data/spec/spec_helper.rb +27 -0
  34. metadata +113 -59
  35. data/lib/smart_asset/gems.rb +0 -45
  36. data/lib/smart_asset/version.rb +0 -3
@@ -0,0 +1,27 @@
1
+ require "pp"
2
+ require "stringio"
3
+
4
+ require "bundler/setup"
5
+
6
+ $root = File.expand_path('../../', __FILE__)
7
+
8
+ gem('framework_fixture', '0.1.3')
9
+ require 'framework_fixture'
10
+
11
+ FrameworkFixture.generate File.dirname(__FILE__) + '/fixtures'
12
+
13
+ require 'rack/test'
14
+
15
+ unless FrameworkFixture.framework
16
+ require "#{$root}/lib/smart_asset"
17
+ end
18
+
19
+ def capture_stdout
20
+ old = $stdout
21
+ out = StringIO.new
22
+ $stdout = out
23
+ yield
24
+ return out
25
+ ensure
26
+ $stdout = old
27
+ end
metadata CHANGED
@@ -1,92 +1,146 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: smart_asset
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 4
9
- version: 0.5.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.5
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Winton Welsh
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-20 00:00:00 -08:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rspec
12
+ date: 2011-11-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: framework_fixture
16
+ requirement: &70293721272280 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
22
23
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: *70293721272280
25
+ - !ruby/object:Gem::Dependency
26
+ name: rack-test
27
+ requirement: &70293721271680 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70293721271680
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70293721270920 !ruby/object:Gem::Requirement
24
39
  none: false
25
- requirements:
26
- - - "="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 3
31
- - 1
32
- version: 1.3.1
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '1.0'
33
44
  type: :development
34
- version_requirements: *id001
35
- description: ""
36
- email:
45
+ prerelease: false
46
+ version_requirements: *70293721270920
47
+ description: Smart asset packaging for Rails, Sinatra, and Stasis.
48
+ email:
37
49
  - mail@wintoni.us
38
- executables:
50
+ executables:
39
51
  - closure_compiler.jar
40
52
  - smart_asset
41
53
  - yui_compressor.jar
42
54
  extensions: []
43
-
44
55
  extra_rdoc_files: []
45
-
46
- files:
56
+ files:
57
+ - .gitignore
58
+ - Gemfile
59
+ - LICENSE
60
+ - README.md
61
+ - Rakefile
47
62
  - bin/closure_compiler.jar
48
63
  - bin/smart_asset
49
64
  - bin/yui_compressor.jar
65
+ - lib/smart_asset.rb
50
66
  - lib/smart_asset/adapters/rails2.rb
51
67
  - lib/smart_asset/adapters/rails3.rb
52
68
  - lib/smart_asset/adapters/sinatra.rb
53
- - lib/smart_asset/gems.rb
69
+ - lib/smart_asset/adapters/stasis.rb
54
70
  - lib/smart_asset/helper.rb
55
- - lib/smart_asset/version.rb
56
- - lib/smart_asset.rb
57
- - LICENSE
58
- - README.md
59
- has_rdoc: true
71
+ - smart_asset.gemspec
72
+ - spec/fixtures/all_frameworks/assets.yml
73
+ - spec/fixtures/all_frameworks/test.html.erb
74
+ - spec/fixtures/assets.yml
75
+ - spec/fixtures/assets/javascripts/jquery/jquery.js
76
+ - spec/fixtures/assets/javascripts/underscore.js
77
+ - spec/fixtures/assets/stylesheets/960.css
78
+ - spec/fixtures/assets/stylesheets/blueprint/blueprint.css
79
+ - spec/fixtures/development_output.txt
80
+ - spec/fixtures/frameworks.yml
81
+ - spec/fixtures/production_output.txt
82
+ - spec/fixtures/rails2/application_controller.rb
83
+ - spec/fixtures/rails2/environment.rb
84
+ - spec/fixtures/rails2/init.rb
85
+ - spec/fixtures/rails2/routes.rb
86
+ - spec/fixtures/rails3/Gemfile
87
+ - spec/fixtures/rails3/application.rb
88
+ - spec/fixtures/rails3/application_controller.rb
89
+ - spec/fixtures/rails3/routes.rb
90
+ - spec/fixtures/sinatra/application.rb
91
+ - spec/run
92
+ - spec/smart_asset/adapters/rails2_spec.rb
93
+ - spec/smart_asset/adapters/rails3_spec.rb
94
+ - spec/smart_asset/adapters/sinatra_spec.rb
95
+ - spec/smart_asset_spec.rb
96
+ - spec/spec_helper.rb
60
97
  homepage: http://github.com/winton/smart_asset
61
98
  licenses: []
62
-
63
99
  post_install_message:
64
100
  rdoc_options: []
65
-
66
- require_paths:
101
+ require_paths:
67
102
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
103
+ required_ruby_version: !ruby/object:Gem::Requirement
69
104
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- version: "0"
76
- required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
110
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- version: "0"
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
84
115
  requirements: []
85
-
86
116
  rubyforge_project:
87
- rubygems_version: 1.3.7
117
+ rubygems_version: 1.8.10
88
118
  signing_key:
89
119
  specification_version: 3
90
- summary: ""
91
- test_files: []
92
-
120
+ summary: Smart asset packaging for Rails, Sinatra, and Stasis
121
+ test_files:
122
+ - spec/fixtures/all_frameworks/assets.yml
123
+ - spec/fixtures/all_frameworks/test.html.erb
124
+ - spec/fixtures/assets.yml
125
+ - spec/fixtures/assets/javascripts/jquery/jquery.js
126
+ - spec/fixtures/assets/javascripts/underscore.js
127
+ - spec/fixtures/assets/stylesheets/960.css
128
+ - spec/fixtures/assets/stylesheets/blueprint/blueprint.css
129
+ - spec/fixtures/development_output.txt
130
+ - spec/fixtures/frameworks.yml
131
+ - spec/fixtures/production_output.txt
132
+ - spec/fixtures/rails2/application_controller.rb
133
+ - spec/fixtures/rails2/environment.rb
134
+ - spec/fixtures/rails2/init.rb
135
+ - spec/fixtures/rails2/routes.rb
136
+ - spec/fixtures/rails3/Gemfile
137
+ - spec/fixtures/rails3/application.rb
138
+ - spec/fixtures/rails3/application_controller.rb
139
+ - spec/fixtures/rails3/routes.rb
140
+ - spec/fixtures/sinatra/application.rb
141
+ - spec/run
142
+ - spec/smart_asset/adapters/rails2_spec.rb
143
+ - spec/smart_asset/adapters/rails3_spec.rb
144
+ - spec/smart_asset/adapters/sinatra_spec.rb
145
+ - spec/smart_asset_spec.rb
146
+ - spec/spec_helper.rb
@@ -1,45 +0,0 @@
1
- unless defined?(SmartAsset::Gems)
2
-
3
- require 'rubygems'
4
-
5
- class SmartAsset
6
- class Gems
7
-
8
- VERSIONS = {
9
- :framework_fixture => '0.1.3',
10
- :'rack-test' => '0.5.7',
11
- :rake => '=0.8.7',
12
- :rspec => '=1.3.1'
13
- }
14
-
15
- TYPES = {
16
- :gemspec => [],
17
- :gemspec_dev => [ :rspec ],
18
- :lib => [],
19
- :rake => [ :rake, :rspec ],
20
- :spec_first => [ :framework_fixture ],
21
- :spec => [ :'rack-test', :rspec ]
22
- }
23
-
24
- class <<self
25
-
26
- def lockfile
27
- file = File.expand_path('../../../gems', __FILE__)
28
- unless File.exists?(file)
29
- File.open(file, 'w') do |f|
30
- Gem.loaded_specs.each do |key, value|
31
- f.puts "#{key} #{value.version.version}"
32
- end
33
- end
34
- end
35
- end
36
-
37
- def require(type=nil)
38
- (TYPES[type] || TYPES.values.flatten.compact).each do |name|
39
- gem name.to_s, VERSIONS[name]
40
- end
41
- end
42
- end
43
- end
44
- end
45
- end
@@ -1,3 +0,0 @@
1
- class SmartAsset
2
- VERSION = "0.5.4" unless defined?(::SmartAsset::VERSION)
3
- end