p 0.1.4 → 0.1.5
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/Gemfile.lock +1 -1
- data/lib/p.rb +1 -1
- data/lib/templates/sinatra.rb +20 -0
- data/lib/templates/sinatra/Gemfile +4 -0
- data/lib/templates/sinatra/README.erb +6 -0
- data/lib/templates/sinatra/Rakefile +7 -0
- data/lib/templates/sinatra/app.erb +6 -0
- data/lib/templates/sinatra/test.erb +9 -0
- data/lib/templates/sinatra/test_helper.erb +10 -0
- metadata +9 -2
data/Gemfile.lock
CHANGED
data/lib/p.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
file "README.md" do
|
2
|
+
source "README.erb"
|
3
|
+
end
|
4
|
+
|
5
|
+
file "Gemfile"
|
6
|
+
file "Rakefile"
|
7
|
+
|
8
|
+
file "#{@name.snakecase}.rb" do
|
9
|
+
source "app.erb"
|
10
|
+
end
|
11
|
+
|
12
|
+
directory "test"
|
13
|
+
|
14
|
+
file "test/test_helper.rb" do
|
15
|
+
source "test_helper.erb"
|
16
|
+
end
|
17
|
+
|
18
|
+
file "test/#{@name.snakecase}_test.rb" do
|
19
|
+
source "test.erb"
|
20
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<%= @name.camelcase %>
|
2
|
+
<%= "=" * @name.camelcase.length %>
|
3
|
+
|
4
|
+
* Run `bundle install` to install the necessary gems
|
5
|
+
* Run `rake` to run the test suite - everything should pass!
|
6
|
+
* Run `ruby <%= @name.snakecase %>.rb` to start the Sinatra app, and you should see `TODO` when you visit `http://localhost:4567/`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: p
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -79,6 +79,13 @@ files:
|
|
79
79
|
- lib/templates/gem/Rakefile
|
80
80
|
- lib/templates/gem/test.erb
|
81
81
|
- lib/templates/gem.rb
|
82
|
+
- lib/templates/sinatra/app.erb
|
83
|
+
- lib/templates/sinatra/Gemfile
|
84
|
+
- lib/templates/sinatra/Rakefile
|
85
|
+
- lib/templates/sinatra/README.erb
|
86
|
+
- lib/templates/sinatra/test.erb
|
87
|
+
- lib/templates/sinatra/test_helper.erb
|
88
|
+
- lib/templates/sinatra.rb
|
82
89
|
- Gemfile
|
83
90
|
- Gemfile.lock
|
84
91
|
- Rakefile
|