lucie-bin 0.0.9 → 0.0.10

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: 4c1d8aec9cbc0868e54162ca068f6088450f42d3
4
- data.tar.gz: 107405c38a28205a58a0ea7a4bbfc329e6ca945d
3
+ metadata.gz: 1ce9f298d9afe758014f16346b2d83edffe68109
4
+ data.tar.gz: 8b25a86f5dbfe24000f8c153f099c3aea391eb95
5
5
  SHA512:
6
- metadata.gz: 2ea057ff7fe8c81f4cb9d4cf473b15591a4174024993eb05900aa7c1b1c9499af8ae33d3d516369f91640d9b98865d9f110d7587488022b618d263fcc1f7f17e
7
- data.tar.gz: 26b8b94e51e103e04e5a49cbab96d16a5ab9809c57b7e5ebf60c6e244c621deda6405c32577c647d764ea328b58e507979bc7cf0df4c0499bffab11b825b6bb5
6
+ metadata.gz: 484b1d2f864e613612111d680287eba9b8575a6f52f11dea79b38fc80d985245ca8b6a20759eaadeb918b0c8dd97d5f84d9413d44b468f4e16990d4a121d7324
7
+ data.tar.gz: 4d4a9eff91101accb048da918866b83e605cf0b42e33ffe72f5301a5ebb11af795e0532602a2f35e71ee67cfdbf082ffb1aa239852819f2573f22e29be978bb2
@@ -8,9 +8,13 @@ class NewController < Controller::Base
8
8
 
9
9
  template("new/bin/bin.tt", "#{@project_name}/bin/#{@project_name}")
10
10
  template("new/app/application_controller.rb.tt", "#{@project_name}/app/controllers/application_controller.rb")
11
+ template("new/app/boot.rb.tt", "#{@project_name}/app/boot.rb")
11
12
  template("new/Gemfile.tt", "#{@project_name}/Gemfile")
13
+ template("new/Rakefile.tt", "#{@project_name}/Rakefile")
12
14
 
13
15
  File.chmod(0755, "#{app.pwd}/#{@project_name}/bin/#{@project_name}")
16
+
17
+ system "cd #{app.pwd}/#{@project_name} && rake setup"
14
18
  end
15
19
 
16
20
  def no_method
@@ -1,4 +1,3 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "lucie-lib", "~><%= @lucie_version %>"
4
- # gem "lucie-cmd", "~><%= @lucie_version %>"
3
+ gem "lucie", "~><%= @lucie_version %>"
@@ -0,0 +1,8 @@
1
+ task :setup do
2
+ version = ENV["RUBY_VERSION"]
3
+ File.open ".ruby-version", "w" do |f|
4
+ puts "Fix the ruby version in .ruby-version file"
5
+ f << version
6
+ end
7
+ system "rvm #{version} do bundle install"
8
+ end
@@ -0,0 +1,11 @@
1
+ Signal.trap("INT") { exit 1 }
2
+
3
+ # Should not buffer stdout and strerr
4
+ $stdout.sync = true
5
+ $stderr.sync = true
6
+
7
+ require "rubygems"
8
+ require "bundler/setup"
9
+ require "lucie"
10
+
11
+ App.run()
@@ -1,14 +1,5 @@
1
- #!/usr/bin/env ruby
1
+ #!/bin/bash
2
2
 
3
- Signal.trap("INT") { exit 1 }
4
-
5
- # Should not buffer stdout and strerr
6
- $stdout.sync = true
7
- $stderr.sync = true
8
-
9
- require "rubygems"
10
- require "bundler"
11
- require "lucie"
12
- Bundler.require(:default)
13
-
14
- App.run()
3
+ CURRENT_FILE="$( dirname "${BASH_SOURCE[0]}" )"
4
+ VERSION="$( cat "$CURRENT_FILE/../.ruby-version" )"
5
+ cd "$CURRENT_FILE/../" && rvm $VERSION do bundle exec ruby app/boot.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucie-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nucc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-15 00:00:00.000000000 Z
11
+ date: 2013-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lucie-lib
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.9
19
+ version: 0.0.10
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.9
26
+ version: 0.0.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,7 +78,9 @@ files:
78
78
  - Rakefile
79
79
  - app/controllers/new_controller.rb
80
80
  - app/templates/new/Gemfile.tt
81
+ - app/templates/new/Rakefile.tt
81
82
  - app/templates/new/app/application_controller.rb.tt
83
+ - app/templates/new/app/boot.rb.tt
82
84
  - app/templates/new/bin/bin.tt
83
85
  - bin/lucie
84
86
  - lucie-bin.gemspec