simplerb 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d63903a64cc0f99c63825674f533ceb919632d0a
4
- data.tar.gz: 4c2206290324359ae62237dfe82a0c3628e88d8a
3
+ metadata.gz: 19849c1f73fdbd96fadb77b33b646879b59ad2fd
4
+ data.tar.gz: b7f7f739403ef1851547724c1e22366bc2c6d79d
5
5
  SHA512:
6
- metadata.gz: d0fe75aed70c0b085a98e49878881d25031254cb8e88e5c2e9517454ed2879db0bd8764fc4d9605d67ccfad7447f3290a768da47145b6dc50df672bbafe02cb6
7
- data.tar.gz: 7078da807ba1767bb0224c0ef210b4fb089b23496f97e1fd0a9d06af5cb9f0c7c76d0a8758af202771cb999ee0af997cbdcdc97683ac8201defe20226a715a5a
6
+ metadata.gz: fbb2e1461af5cbc3c29008a2e2ff728b67d0795278c4e873efbc99acac2354e8caa771b1e048208e4575a53bf5ae4accca4e136fec83f4304f238796256f3569
7
+ data.tar.gz: 014e89bbd3a386f33a274290b45979a3438b59dd75ab549f5ab5f44cda93104972aa4f4ae9850e307a4ef2b6a509e929d61bc94135b545698f307b2ce3be4615
data/lib/simplerb/cli.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'thor'
2
2
  require 'thor/actions'
3
+ require 'pathname'
3
4
 
4
5
  module Simplerb
5
6
  class CLI < Thor
@@ -7,11 +8,16 @@ module Simplerb
7
8
 
8
9
  desc 'new NAME', 'create a new Simplerb project called NAME'
9
10
  def new(name)
10
- self.destination_root = Pathname.pwd.join(name)
11
+ target = Pathname.pwd.join(name)
12
+ self.destination_root = target
11
13
  options = { name: name }
12
- directory('views', options)
13
- directory('public', options)
14
- template('config.ru.tt', options)
14
+ directory 'views', options
15
+ directory 'public', options
16
+ template 'Gemfile.tt', options
17
+ template 'config.ru.tt', options
18
+ inside target do
19
+ run 'bundle install'
20
+ end
15
21
  end
16
22
 
17
23
  desc 'server', 'start a local server'
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'simplerb'
@@ -1,3 +1,3 @@
1
1
  module Simplerb
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplerb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Ongaro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-01 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description: Simplerb is a super simple and minimal framework for generating dynamic
42
56
  websites "PHP-style" but with Ruby and ERB. Its main purpose is to help teaching
43
57
  web development to beginners.
@@ -51,6 +65,7 @@ files:
51
65
  - bin/simplerb
52
66
  - lib/simplerb.rb
53
67
  - lib/simplerb/cli.rb
68
+ - lib/simplerb/templates/Gemfile.tt
54
69
  - lib/simplerb/templates/config.ru.tt
55
70
  - lib/simplerb/templates/public/application.css.tt
56
71
  - lib/simplerb/templates/views/index.erb.tt