rack-combobot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +10 -0
- data/Gemfile.lock +6 -4
- data/README.md +4 -4
- data/lib/rack/combobot.rb +1 -1
- data/rack-combobot.gemspec +1 -1
- data/spec/rack_combobot_spec.rb +1 -1
- metadata +15 -14
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -8,13 +8,15 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
11
|
+
ffi (1.0.11)
|
12
|
+
guard (0.10.0)
|
13
|
+
ffi (>= 0.5.0)
|
12
14
|
thor (~> 0.14.6)
|
13
15
|
guard-minitest (0.4.0)
|
14
16
|
guard (~> 0.4)
|
15
|
-
minitest (2.
|
16
|
-
rack (1.
|
17
|
-
rack-test (0.
|
17
|
+
minitest (2.10.0)
|
18
|
+
rack (1.4.0)
|
19
|
+
rack-test (0.6.1)
|
18
20
|
rack (>= 1.0)
|
19
21
|
rake (0.9.2.2)
|
20
22
|
thor (0.14.6)
|
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
# rack-combobot -
|
1
|
+
# rack-combobot [![Build Status](https://secure.travis-ci.org/hojberg/rack-combobot.png)](http://travis-ci.org/hojberg/rack-combobot)
|
2
2
|
|
3
3
|
Asset combinator for rack
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
gem install rack-combobot
|
7
|
+
`gem install rack-combobot`
|
8
8
|
|
9
|
-
### Rails apps
|
9
|
+
### Usage in Rails apps
|
10
10
|
|
11
11
|
In your routes.rb file add the following route
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
|
14
|
+
match '/combobot', :to => Rack::Combobot.configure(:root => RAILS_ROOT + "/public")
|
15
15
|
```
|
data/lib/rack/combobot.rb
CHANGED
data/rack-combobot.gemspec
CHANGED
@@ -4,7 +4,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "rack-combobot"
|
7
|
-
s.version = "0.0.
|
7
|
+
s.version = "0.0.2"
|
8
8
|
s.authors = ["Simon Højberg", "Christopher Meiklejohn"]
|
9
9
|
s.email = ["r.hackr@gmail.com", "christopher.meiklejohn@gmail.com"]
|
10
10
|
s.homepage = "https://github.com/hojberg/rack-combobot"
|
data/spec/rack_combobot_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe "combing assets from query string" do
|
|
12
12
|
"QUERY_STRING" => "js1.js&js2.js"
|
13
13
|
}).must_equal([
|
14
14
|
200,
|
15
|
-
{"Content-Type" => "
|
15
|
+
{"Content-Type" => "text/javascript"},
|
16
16
|
"function lorem() { return \"a\"; }\nfunction ipsum() { return \"b\"; }\n"
|
17
17
|
])
|
18
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-combobot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &2152913280 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2152913280
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rack
|
28
|
-
requirement: &
|
28
|
+
requirement: &2152912480 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2152912480
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: minitest
|
39
|
-
requirement: &
|
39
|
+
requirement: &2152910980 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2152910980
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rack-test
|
50
|
-
requirement: &
|
50
|
+
requirement: &2152902700 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2152902700
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: guard
|
61
|
-
requirement: &
|
61
|
+
requirement: &2152901820 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *2152901820
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: guard-minitest
|
72
|
-
requirement: &
|
72
|
+
requirement: &2152900400 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ! '>='
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *2152900400
|
81
81
|
description: combines assets to server 1 file
|
82
82
|
email:
|
83
83
|
- r.hackr@gmail.com
|
@@ -88,6 +88,7 @@ extra_rdoc_files: []
|
|
88
88
|
files:
|
89
89
|
- .gitignore
|
90
90
|
- .rbenv-version
|
91
|
+
- .travis.yml
|
91
92
|
- Gemfile
|
92
93
|
- Gemfile.lock
|
93
94
|
- Guardfile
|