cuba-generator 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4eec12e492f60c19414252cf7e9f5f0a6924de1
4
- data.tar.gz: be9ea2e861b2a729bdf278f09429a3effaab8384
3
+ metadata.gz: 9771008b2702dc2a5fdaeb0ada51977ef1c19814
4
+ data.tar.gz: 41f39381cd50f9d1d378dd87dbdf657577a319f9
5
5
  SHA512:
6
- metadata.gz: b2808fc78401343a3b0901b7912691fc2c574629571324ed881d06ed871b3f1a3f68172080dd4ea198aa0ec1232f8750f254ee893f0052e76794b313d2093bdc
7
- data.tar.gz: fd9495af1c195e0ca9164d37ba006418a1417a8814363b98d71d29c1d9b3198e28c9e0407f30de835377ae389b952e7b48792e1133c2c63cec3bcc90535f24f9
6
+ metadata.gz: b75272fb8da45a19a6b606879ec0cd8e1467b50f7b4650d8234e8751bf46bfbbb1ecdc0acb9715da8f4072017b4cbf58d61a7f0c99b27a4a2fe0ebe8417b5485
7
+ data.tar.gz: 58787eb3076556e6a951567f85f6c7926664b98517fedf2a9493550d0ebac4d1a6d48bfbdbac1f139096b5aa7e20a8f96b90c838d2b875c49d9304f756432644
data/README.md CHANGED
@@ -24,3 +24,7 @@ This will create your cuba project with its 2 files:
24
24
  3. Commit your changes (`git commit -am 'Add some feature'`)
25
25
  4. Push to the branch (`git push origin my-new-feature`)
26
26
  5. Create a new Pull Request
27
+
28
+ ## Thanks
29
+
30
+ This project is inspired from [cuba-libre](https://github.com/gdurelle/cuba-libre).
@@ -1,5 +1,5 @@
1
1
  module Cuba
2
2
  class Generator
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -15,26 +15,23 @@ Cuba.use Rack::Session::Cookie, :secret => "#{SecureRandom.base64(64)}"
15
15
 
16
16
  # This plugin uses Tilt, which serves as an interface to a bunch of different Ruby template engines
17
17
  # (ERB, Haml, Sass, CoffeeScript, etc.), so you can use the template engine of your choice.
18
- # require 'slim'
19
- # Cuba.settings[:render][:template_engine] = 'slim'
20
18
 
21
- # Cuba.settings[:render][:template_engine] = "slim"
22
- # Cuba.settings[:render][:views] = "./views/admin/"
23
- # Cuba.settings[:render][:layout] = "admin"
19
+ # require 'erb'
20
+ # Cuba.settings[:render][:template_engine] = "erb"
21
+ # Cuba.settings[:render][:views] = "./views
24
22
 
25
23
  # To launch just type: 'rackup' in your console
26
24
  Cuba.define do
27
25
  on get do
28
26
  on "#{project_name}" do
29
- on root do
30
- res.write 'Hello world!'
31
- end
27
+ res.write 'Hello world!'
32
28
  end
33
29
 
34
30
  on root do
35
31
  res.redirect "/#{project_name}"
36
32
  end
33
+
37
34
  end
38
35
  end
39
36
  TEMPLATE
40
- %>
37
+ %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuba-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serdar Dogruyol