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 ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - jruby
7
+ - rbx-18mode
8
+ - rbx-19mode
9
+ - ruby-head
10
+ - ree
data/Gemfile.lock CHANGED
@@ -8,13 +8,15 @@ PATH
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- guard (0.7.0)
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.6.0)
16
- rack (1.3.0)
17
- rack-test (0.5.7)
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 - ATTENTION, this stuff aint working yet :)
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
- match 'combot', :to => Rack::Combobot.configure(:root => "/public")
14
+ match '/combobot', :to => Rack::Combobot.configure(:root => RAILS_ROOT + "/public")
15
15
  ```
data/lib/rack/combobot.rb CHANGED
@@ -9,7 +9,7 @@ module Rack
9
9
  end
10
10
 
11
11
  MIME_TYPES = {
12
- "js" => "css/javascript",
12
+ "js" => "text/javascript",
13
13
  "css" => "text/css"
14
14
  }
15
15
 
@@ -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.1"
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"
@@ -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" => "css/javascript"},
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.1
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-04 00:00:00.000000000 Z
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: &2153038700 !ruby/object:Gem::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: *2153038700
25
+ version_requirements: *2152913280
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rack
28
- requirement: &2153038000 !ruby/object:Gem::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: *2153038000
36
+ version_requirements: *2152912480
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
39
- requirement: &2153037580 !ruby/object:Gem::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: *2153037580
47
+ version_requirements: *2152910980
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rack-test
50
- requirement: &2153037120 !ruby/object:Gem::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: *2153037120
58
+ version_requirements: *2152902700
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: guard
61
- requirement: &2153036680 !ruby/object:Gem::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: *2153036680
69
+ version_requirements: *2152901820
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: guard-minitest
72
- requirement: &2153036220 !ruby/object:Gem::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: *2153036220
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