packr-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.travis.yml +10 -0
- data/Gemfile +12 -0
- data/Guardfile +10 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +26 -0
- data/Rakefile +9 -0
- data/lib/packr-rails.rb +1 -0
- data/lib/packr/rails.rb +10 -0
- data/lib/packr/rails/compressor.rb +16 -0
- data/lib/packr/rails/railtie.rb +51 -0
- data/lib/packr/rails/template.rb +36 -0
- data/lib/packr/rails/version.rb +5 -0
- data/packr-rails.gemspec +34 -0
- data/spec/fixtures/rails_project/.gitignore +5 -0
- data/spec/fixtures/rails_project/Gemfile +16 -0
- data/spec/fixtures/rails_project/README +261 -0
- data/spec/fixtures/rails_project/Rakefile +7 -0
- data/spec/fixtures/rails_project/app/assets/images/rails.png +0 -0
- data/spec/fixtures/rails_project/app/assets/javascripts/application.js +9 -0
- data/spec/fixtures/rails_project/app/assets/javascripts/test_a.js +8 -0
- data/spec/fixtures/rails_project/app/assets/javascripts/test_b.js.packr +8 -0
- data/spec/fixtures/rails_project/app/assets/stylesheets/application.css +7 -0
- data/spec/fixtures/rails_project/app/controllers/application_controller.rb +3 -0
- data/spec/fixtures/rails_project/app/helpers/application_helper.rb +2 -0
- data/spec/fixtures/rails_project/app/mailers/.gitkeep +0 -0
- data/spec/fixtures/rails_project/app/models/.gitkeep +0 -0
- data/spec/fixtures/rails_project/app/views/layouts/application.html.erb +14 -0
- data/spec/fixtures/rails_project/config.ru +4 -0
- data/spec/fixtures/rails_project/config/application.rb +48 -0
- data/spec/fixtures/rails_project/config/boot.rb +6 -0
- data/spec/fixtures/rails_project/config/database.yml +25 -0
- data/spec/fixtures/rails_project/config/environment.rb +5 -0
- data/spec/fixtures/rails_project/config/environments/development.rb +30 -0
- data/spec/fixtures/rails_project/config/environments/production.rb +60 -0
- data/spec/fixtures/rails_project/config/environments/test.rb +42 -0
- data/spec/fixtures/rails_project/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/fixtures/rails_project/config/initializers/inflections.rb +10 -0
- data/spec/fixtures/rails_project/config/initializers/mime_types.rb +5 -0
- data/spec/fixtures/rails_project/config/initializers/secret_token.rb +7 -0
- data/spec/fixtures/rails_project/config/initializers/session_store.rb +8 -0
- data/spec/fixtures/rails_project/config/initializers/wrap_parameters.rb +14 -0
- data/spec/fixtures/rails_project/config/locales/en.yml +5 -0
- data/spec/fixtures/rails_project/config/routes.rb +58 -0
- data/spec/fixtures/rails_project/db/seeds.rb +7 -0
- data/spec/fixtures/rails_project/doc/README_FOR_APP +2 -0
- data/spec/fixtures/rails_project/lib/assets/.gitkeep +0 -0
- data/spec/fixtures/rails_project/lib/tasks/.gitkeep +0 -0
- data/spec/fixtures/rails_project/log/.gitkeep +0 -0
- data/spec/fixtures/rails_project/public/404.html +26 -0
- data/spec/fixtures/rails_project/public/422.html +26 -0
- data/spec/fixtures/rails_project/public/500.html +26 -0
- data/spec/fixtures/rails_project/public/favicon.ico +0 -0
- data/spec/fixtures/rails_project/public/index.html +241 -0
- data/spec/fixtures/rails_project/public/robots.txt +5 -0
- data/spec/fixtures/rails_project/script/rails +6 -0
- data/spec/fixtures/rails_project/test/fixtures/.gitkeep +0 -0
- data/spec/fixtures/rails_project/test/functional/.gitkeep +0 -0
- data/spec/fixtures/rails_project/test/integration/.gitkeep +0 -0
- data/spec/fixtures/rails_project/test/performance/browsing_test.rb +12 -0
- data/spec/fixtures/rails_project/test/test_helper.rb +13 -0
- data/spec/fixtures/rails_project/test/unit/.gitkeep +0 -0
- data/spec/fixtures/rails_project/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/fixtures/rails_project/vendor/plugins/.gitkeep +0 -0
- data/spec/packr-rails_spec.rb +77 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support/common_spec_helpers.rb +48 -0
- data/spec/support/rails_project_spec_helpers.rb +141 -0
- metadata +303 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require 'minitest/unit'
|
4
|
+
require 'minitest/spec'
|
5
|
+
require 'minitest/pride'
|
6
|
+
require 'minitest/mock'
|
7
|
+
|
8
|
+
ENV['RAILS_ENV'] = 'test'
|
9
|
+
|
10
|
+
require 'rails'
|
11
|
+
require 'rails/test_help'
|
12
|
+
require 'packr-rails'
|
13
|
+
|
14
|
+
Rails.backtrace_cleaner.remove_silencers!
|
15
|
+
|
16
|
+
# Set locations of local gems in this hash.
|
17
|
+
# They will be added/replaced in the generated Gemfiles.
|
18
|
+
# You should also set them in the local Gemfile.
|
19
|
+
$gem_locations = {
|
20
|
+
"packr-rails" => File.expand_path("../../", __FILE__)
|
21
|
+
}
|
22
|
+
|
23
|
+
# Load support files.
|
24
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require File.expand_path(f) }
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module CommonSpecHelpers
|
2
|
+
|
3
|
+
def fixture_path(path)
|
4
|
+
File.expand_path("../../fixtures/#{path}", __FILE__)
|
5
|
+
end
|
6
|
+
|
7
|
+
def with_constants(constants, &block)
|
8
|
+
saved_constants = {}
|
9
|
+
constants.each do |constant, value|
|
10
|
+
saved_constants[constant] = Object.const_get(constant)
|
11
|
+
silence_all_warnings do
|
12
|
+
Object.const_set(constant, value)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
begin
|
17
|
+
block.call
|
18
|
+
ensure
|
19
|
+
constants.each do |constant, value|
|
20
|
+
silence_all_warnings do
|
21
|
+
Object.const_set(constant, saved_constants[constant])
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def with_values(object, new_values)
|
28
|
+
old_values = {}
|
29
|
+
new_values.each do |key, value|
|
30
|
+
old_values[key] = object.send key
|
31
|
+
object.send :"#{key}=", value
|
32
|
+
end
|
33
|
+
yield
|
34
|
+
ensure
|
35
|
+
old_values.each do |key, value|
|
36
|
+
object.send :"#{key}=", value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def silence_all_warnings
|
41
|
+
# Ruby 1.8: Kernel.silence_warnings { yield }
|
42
|
+
old_verbose = $VERBOSE
|
43
|
+
$VERBOSE = nil
|
44
|
+
yield
|
45
|
+
$VERBOSE = old_verbose
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,141 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'tmpdir'
|
3
|
+
require 'sprockets/helpers/rails_helper'
|
4
|
+
require 'support/common_spec_helpers'
|
5
|
+
|
6
|
+
# Source:
|
7
|
+
# - https://github.com/rails/sass-rails
|
8
|
+
|
9
|
+
module RailsProjectSpecHelpers
|
10
|
+
|
11
|
+
include ::CommonSpecHelpers
|
12
|
+
|
13
|
+
class ExecutionError < StandardError
|
14
|
+
attr_accessor :output
|
15
|
+
def initialize(message, output = nil)
|
16
|
+
super(message)
|
17
|
+
self.output = output
|
18
|
+
end
|
19
|
+
def message
|
20
|
+
"#{super}\nOutput was:\n#{output}"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module SilentError
|
25
|
+
attr_accessor :output
|
26
|
+
def message
|
27
|
+
"#{super}\nOutput was:\n#{output}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def silently
|
32
|
+
output = StringIO.new
|
33
|
+
$stderr, old_stderr = output, $stderr
|
34
|
+
$stdout, old_stdout = output, $stdout
|
35
|
+
begin
|
36
|
+
yield
|
37
|
+
rescue ExecutionError => e
|
38
|
+
raise
|
39
|
+
rescue => e
|
40
|
+
e.extend(SilentError)
|
41
|
+
e.output = output.string
|
42
|
+
raise
|
43
|
+
end
|
44
|
+
ensure
|
45
|
+
$stderr = old_stderr
|
46
|
+
$stdout = old_stdout
|
47
|
+
end
|
48
|
+
|
49
|
+
protected
|
50
|
+
|
51
|
+
def assert_file_exists(filename)
|
52
|
+
assert File.exists?(filename), "could not find #{filename}. PWD=#{Dir.pwd}\nDid find: #{Dir.glob(File.dirname(filename)+"/*").join(", ")}"
|
53
|
+
end
|
54
|
+
|
55
|
+
def assert_not_output(match)
|
56
|
+
$last_ouput.must_match(match)
|
57
|
+
end
|
58
|
+
|
59
|
+
def assert_output(match)
|
60
|
+
assert $last_ouput.to_s =~ match, "#{match} was not found in #{$last_ouput.inspect}"
|
61
|
+
end
|
62
|
+
|
63
|
+
# Copies a rails app fixture to a temp directory
|
64
|
+
# and changes to that directory during the yield.
|
65
|
+
#
|
66
|
+
# Automatically changes back to the working directory
|
67
|
+
# and removes the temp directory when done.
|
68
|
+
#
|
69
|
+
def within_rails_app(name, without_gems = [], gem_locations = $gem_locations)
|
70
|
+
sourcedir = fixture_path(name)
|
71
|
+
Dir.mktmpdir do |tmpdir|
|
72
|
+
FileUtils.cp_r "#{sourcedir}/.", tmpdir
|
73
|
+
Dir.chdir(tmpdir) do
|
74
|
+
gem_locations.each { |name, path| modify_gem_location(name, path) }
|
75
|
+
without_gems.each { |name| remove_gem(name) }
|
76
|
+
runcmd "bundle install --verbose"
|
77
|
+
yield
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
def process_gemfile(gemfile = "Gemfile", &block)
|
83
|
+
gem_contents = File.readlines(gemfile)
|
84
|
+
gem_contents.map!(&block)
|
85
|
+
gem_contents.compact!
|
86
|
+
File.open(gemfile, "w") do |f|
|
87
|
+
f.print(gem_contents.join(""))
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def modify_gem_location(gemname, path, gemfile = "Gemfile")
|
92
|
+
found = false
|
93
|
+
process_gemfile(gemfile) do |line|
|
94
|
+
if line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/
|
95
|
+
found = true
|
96
|
+
%Q{gem "#{gemname}", :path => #{path.inspect}\n}
|
97
|
+
else
|
98
|
+
line
|
99
|
+
end
|
100
|
+
end
|
101
|
+
unless found
|
102
|
+
File.open(gemfile, "a") do |f|
|
103
|
+
f.print(%Q{\ngem "#{gemname}", :path => #{path.inspect}\n})
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
def remove_gem(gemname)
|
109
|
+
process_gemfile(gemfile) do |line|
|
110
|
+
line unless line =~ /gem *(["'])#{Regexp.escape(gemname)}\1/
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# Executes a system command
|
115
|
+
# Raises an error if it does not complete successfully
|
116
|
+
# Returns the output as a string if it does complete successfully
|
117
|
+
#
|
118
|
+
def runcmd(cmd, working_directory = Dir.pwd, clean_env = true, gemfile = "Gemfile", env = {})
|
119
|
+
# There's a bug in bundler where with_clean_env doesn't clear out the BUNDLE_GEMFILE environment setting
|
120
|
+
# https://github.com/carlhuda/bundler/issues/1133
|
121
|
+
env["BUNDLE_GEMFILE"] = "#{working_directory}/#{gemfile}" if clean_env
|
122
|
+
todo = Proc.new do
|
123
|
+
r, w = IO.pipe
|
124
|
+
pid = Kernel.spawn(env, cmd, :out =>w , :err => w, :chdir => working_directory)
|
125
|
+
w.close
|
126
|
+
Process.wait
|
127
|
+
output = r.read
|
128
|
+
r.close
|
129
|
+
unless $?.exitstatus == 0
|
130
|
+
raise ExecutionError, "Command failed with exit status #{$?.exitstatus}: #{cmd}", output
|
131
|
+
end
|
132
|
+
$last_ouput = output
|
133
|
+
end
|
134
|
+
if clean_env
|
135
|
+
Bundler.with_clean_env(&todo)
|
136
|
+
else
|
137
|
+
todo.call
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
end
|
metadata
ADDED
@@ -0,0 +1,303 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: packr-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Merchii
|
9
|
+
- Jonas Grimfelt
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
|
14
|
+
date: 2011-09-17 00:00:00 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: grimen-packr
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 3.1.2
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: railties
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 3.1.0
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: actionpack
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.1.0
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rake
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: "0"
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: bundler
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: minitest
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: guard
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *id007
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: guard-bundler
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: "0"
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *id008
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: guard-minitest
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "0"
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: *id009
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: mocha
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: "0"
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: *id010
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sqlite3
|
128
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: "0"
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: *id011
|
137
|
+
description: Rails Asset Pipeline transformer for javascript compession/obfuscation using Packr.
|
138
|
+
email:
|
139
|
+
- jonas@merchii.com
|
140
|
+
- grimen@gmail.com
|
141
|
+
executables: []
|
142
|
+
|
143
|
+
extensions: []
|
144
|
+
|
145
|
+
extra_rdoc_files: []
|
146
|
+
|
147
|
+
files:
|
148
|
+
- .gitignore
|
149
|
+
- .travis.yml
|
150
|
+
- Gemfile
|
151
|
+
- Guardfile
|
152
|
+
- MIT-LICENSE
|
153
|
+
- README.textile
|
154
|
+
- Rakefile
|
155
|
+
- lib/packr-rails.rb
|
156
|
+
- lib/packr/rails.rb
|
157
|
+
- lib/packr/rails/compressor.rb
|
158
|
+
- lib/packr/rails/railtie.rb
|
159
|
+
- lib/packr/rails/template.rb
|
160
|
+
- lib/packr/rails/version.rb
|
161
|
+
- packr-rails.gemspec
|
162
|
+
- spec/fixtures/rails_project/.gitignore
|
163
|
+
- spec/fixtures/rails_project/Gemfile
|
164
|
+
- spec/fixtures/rails_project/README
|
165
|
+
- spec/fixtures/rails_project/Rakefile
|
166
|
+
- spec/fixtures/rails_project/app/assets/images/rails.png
|
167
|
+
- spec/fixtures/rails_project/app/assets/javascripts/application.js
|
168
|
+
- spec/fixtures/rails_project/app/assets/javascripts/test_a.js
|
169
|
+
- spec/fixtures/rails_project/app/assets/javascripts/test_b.js.packr
|
170
|
+
- spec/fixtures/rails_project/app/assets/stylesheets/application.css
|
171
|
+
- spec/fixtures/rails_project/app/controllers/application_controller.rb
|
172
|
+
- spec/fixtures/rails_project/app/helpers/application_helper.rb
|
173
|
+
- spec/fixtures/rails_project/app/mailers/.gitkeep
|
174
|
+
- spec/fixtures/rails_project/app/models/.gitkeep
|
175
|
+
- spec/fixtures/rails_project/app/views/layouts/application.html.erb
|
176
|
+
- spec/fixtures/rails_project/config.ru
|
177
|
+
- spec/fixtures/rails_project/config/application.rb
|
178
|
+
- spec/fixtures/rails_project/config/boot.rb
|
179
|
+
- spec/fixtures/rails_project/config/database.yml
|
180
|
+
- spec/fixtures/rails_project/config/environment.rb
|
181
|
+
- spec/fixtures/rails_project/config/environments/development.rb
|
182
|
+
- spec/fixtures/rails_project/config/environments/production.rb
|
183
|
+
- spec/fixtures/rails_project/config/environments/test.rb
|
184
|
+
- spec/fixtures/rails_project/config/initializers/backtrace_silencers.rb
|
185
|
+
- spec/fixtures/rails_project/config/initializers/inflections.rb
|
186
|
+
- spec/fixtures/rails_project/config/initializers/mime_types.rb
|
187
|
+
- spec/fixtures/rails_project/config/initializers/secret_token.rb
|
188
|
+
- spec/fixtures/rails_project/config/initializers/session_store.rb
|
189
|
+
- spec/fixtures/rails_project/config/initializers/wrap_parameters.rb
|
190
|
+
- spec/fixtures/rails_project/config/locales/en.yml
|
191
|
+
- spec/fixtures/rails_project/config/routes.rb
|
192
|
+
- spec/fixtures/rails_project/db/seeds.rb
|
193
|
+
- spec/fixtures/rails_project/doc/README_FOR_APP
|
194
|
+
- spec/fixtures/rails_project/lib/assets/.gitkeep
|
195
|
+
- spec/fixtures/rails_project/lib/tasks/.gitkeep
|
196
|
+
- spec/fixtures/rails_project/log/.gitkeep
|
197
|
+
- spec/fixtures/rails_project/public/404.html
|
198
|
+
- spec/fixtures/rails_project/public/422.html
|
199
|
+
- spec/fixtures/rails_project/public/500.html
|
200
|
+
- spec/fixtures/rails_project/public/favicon.ico
|
201
|
+
- spec/fixtures/rails_project/public/index.html
|
202
|
+
- spec/fixtures/rails_project/public/robots.txt
|
203
|
+
- spec/fixtures/rails_project/script/rails
|
204
|
+
- spec/fixtures/rails_project/test/fixtures/.gitkeep
|
205
|
+
- spec/fixtures/rails_project/test/functional/.gitkeep
|
206
|
+
- spec/fixtures/rails_project/test/integration/.gitkeep
|
207
|
+
- spec/fixtures/rails_project/test/performance/browsing_test.rb
|
208
|
+
- spec/fixtures/rails_project/test/test_helper.rb
|
209
|
+
- spec/fixtures/rails_project/test/unit/.gitkeep
|
210
|
+
- spec/fixtures/rails_project/vendor/assets/stylesheets/.gitkeep
|
211
|
+
- spec/fixtures/rails_project/vendor/plugins/.gitkeep
|
212
|
+
- spec/packr-rails_spec.rb
|
213
|
+
- spec/spec_helper.rb
|
214
|
+
- spec/support/common_spec_helpers.rb
|
215
|
+
- spec/support/rails_project_spec_helpers.rb
|
216
|
+
homepage: http://github.com/merchii/packr-rails
|
217
|
+
licenses: []
|
218
|
+
|
219
|
+
post_install_message:
|
220
|
+
rdoc_options: []
|
221
|
+
|
222
|
+
require_paths:
|
223
|
+
- lib
|
224
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
hash: -3387833452252416100
|
230
|
+
segments:
|
231
|
+
- 0
|
232
|
+
version: "0"
|
233
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
|
+
none: false
|
235
|
+
requirements:
|
236
|
+
- - ">="
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
hash: -3387833452252416100
|
239
|
+
segments:
|
240
|
+
- 0
|
241
|
+
version: "0"
|
242
|
+
requirements: []
|
243
|
+
|
244
|
+
rubyforge_project: packr-rails
|
245
|
+
rubygems_version: 1.8.10
|
246
|
+
signing_key:
|
247
|
+
specification_version: 3
|
248
|
+
summary: Rails Asset Pipeline transformer for javascript compession/obfuscation using Packr.
|
249
|
+
test_files:
|
250
|
+
- spec/fixtures/rails_project/.gitignore
|
251
|
+
- spec/fixtures/rails_project/Gemfile
|
252
|
+
- spec/fixtures/rails_project/README
|
253
|
+
- spec/fixtures/rails_project/Rakefile
|
254
|
+
- spec/fixtures/rails_project/app/assets/images/rails.png
|
255
|
+
- spec/fixtures/rails_project/app/assets/javascripts/application.js
|
256
|
+
- spec/fixtures/rails_project/app/assets/javascripts/test_a.js
|
257
|
+
- spec/fixtures/rails_project/app/assets/javascripts/test_b.js.packr
|
258
|
+
- spec/fixtures/rails_project/app/assets/stylesheets/application.css
|
259
|
+
- spec/fixtures/rails_project/app/controllers/application_controller.rb
|
260
|
+
- spec/fixtures/rails_project/app/helpers/application_helper.rb
|
261
|
+
- spec/fixtures/rails_project/app/mailers/.gitkeep
|
262
|
+
- spec/fixtures/rails_project/app/models/.gitkeep
|
263
|
+
- spec/fixtures/rails_project/app/views/layouts/application.html.erb
|
264
|
+
- spec/fixtures/rails_project/config.ru
|
265
|
+
- spec/fixtures/rails_project/config/application.rb
|
266
|
+
- spec/fixtures/rails_project/config/boot.rb
|
267
|
+
- spec/fixtures/rails_project/config/database.yml
|
268
|
+
- spec/fixtures/rails_project/config/environment.rb
|
269
|
+
- spec/fixtures/rails_project/config/environments/development.rb
|
270
|
+
- spec/fixtures/rails_project/config/environments/production.rb
|
271
|
+
- spec/fixtures/rails_project/config/environments/test.rb
|
272
|
+
- spec/fixtures/rails_project/config/initializers/backtrace_silencers.rb
|
273
|
+
- spec/fixtures/rails_project/config/initializers/inflections.rb
|
274
|
+
- spec/fixtures/rails_project/config/initializers/mime_types.rb
|
275
|
+
- spec/fixtures/rails_project/config/initializers/secret_token.rb
|
276
|
+
- spec/fixtures/rails_project/config/initializers/session_store.rb
|
277
|
+
- spec/fixtures/rails_project/config/initializers/wrap_parameters.rb
|
278
|
+
- spec/fixtures/rails_project/config/locales/en.yml
|
279
|
+
- spec/fixtures/rails_project/config/routes.rb
|
280
|
+
- spec/fixtures/rails_project/db/seeds.rb
|
281
|
+
- spec/fixtures/rails_project/doc/README_FOR_APP
|
282
|
+
- spec/fixtures/rails_project/lib/assets/.gitkeep
|
283
|
+
- spec/fixtures/rails_project/lib/tasks/.gitkeep
|
284
|
+
- spec/fixtures/rails_project/log/.gitkeep
|
285
|
+
- spec/fixtures/rails_project/public/404.html
|
286
|
+
- spec/fixtures/rails_project/public/422.html
|
287
|
+
- spec/fixtures/rails_project/public/500.html
|
288
|
+
- spec/fixtures/rails_project/public/favicon.ico
|
289
|
+
- spec/fixtures/rails_project/public/index.html
|
290
|
+
- spec/fixtures/rails_project/public/robots.txt
|
291
|
+
- spec/fixtures/rails_project/script/rails
|
292
|
+
- spec/fixtures/rails_project/test/fixtures/.gitkeep
|
293
|
+
- spec/fixtures/rails_project/test/functional/.gitkeep
|
294
|
+
- spec/fixtures/rails_project/test/integration/.gitkeep
|
295
|
+
- spec/fixtures/rails_project/test/performance/browsing_test.rb
|
296
|
+
- spec/fixtures/rails_project/test/test_helper.rb
|
297
|
+
- spec/fixtures/rails_project/test/unit/.gitkeep
|
298
|
+
- spec/fixtures/rails_project/vendor/assets/stylesheets/.gitkeep
|
299
|
+
- spec/fixtures/rails_project/vendor/plugins/.gitkeep
|
300
|
+
- spec/packr-rails_spec.rb
|
301
|
+
- spec/spec_helper.rb
|
302
|
+
- spec/support/common_spec_helpers.rb
|
303
|
+
- spec/support/rails_project_spec_helpers.rb
|