startbrick 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -29,14 +29,12 @@ Install the gem with
29
29
 
30
30
  Startbrick works with Rails 3.
31
31
 
32
- To use Startbrick, put this line the Gemfile of your Rails app:
32
+ To use startbrick, start your Rails app with this command:
33
33
 
34
- gem 'startbrick'
35
-
36
- and start your Rails app like this:
37
-
38
- rails s Startbrick
34
+ startbrick
39
35
 
36
+ You can add any of the arguments that you can pass to the `rails s`
37
+ command.
40
38
 
41
39
  ## Optional .startbrick script
42
40
 
data/bin/startbrick ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ rails = `which rails`.chomp
3
+ cmd = "ruby -rstartbrick #{rails} s #{ARGV.join(' ')} Startbrick"
4
+ puts cmd
5
+ `#{cmd}`
@@ -1,3 +1,3 @@
1
1
  module Startbrick
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/startbrick.gemspec CHANGED
@@ -4,11 +4,13 @@ require 'startbrick/version'
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "startbrick"
6
6
  s.description = "WEBrick wrapper"
7
- s.files = `git ls-files`.split("\n")
8
7
  s.version = Startbrick::VERSION
9
8
  s.summary = s.description
10
9
  s.authors = ["Daniel Choi"]
11
10
  s.email = ["dhchoi@gmail.com"]
12
11
  s.homepage = "https://github.com/danchoi/startbrick"
13
12
 
13
+ s.files = `git ls-files`.split("\n")
14
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
+
14
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: startbrick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,12 +14,14 @@ dependencies: []
14
14
  description: WEBrick wrapper
15
15
  email:
16
16
  - dhchoi@gmail.com
17
- executables: []
17
+ executables:
18
+ - startbrick
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
21
22
  - README.md
22
23
  - Rakefile
24
+ - bin/startbrick
23
25
  - lib/startbrick.rb
24
26
  - lib/startbrick/version.rb
25
27
  - startbrick.gemspec