zwr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/zwr +6 -3
- data/lib/tasks/zwr.rake +4 -4
- data/zwr.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 332a0129734efb42cbb5a1e0a7f585b39cb6b554
|
4
|
+
data.tar.gz: d2d83a56c689f8459698dacb9ab50ca4c6f5a660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3aa135df0bc04d4901ccb0c1a2b9ce42b28983c4788c1e4611ca9f6666b71deac29218982d8569b36cab50db67befc8d77edadbb9f93d7576fd99cab10db837
|
7
|
+
data.tar.gz: 11c355f2f1743ef50100dacd09063fa583b532f7fdd743f0e1bcb050a9608ac56d222bec7a912b359c62f8744c7ce2c7e33063ed3ac76cd2ad6e32e89e8214fd
|
data/bin/zwr
CHANGED
@@ -85,7 +85,7 @@ when 'new'
|
|
85
85
|
`bundle install`
|
86
86
|
end
|
87
87
|
putsv "zwring..."
|
88
|
-
`rake zwr:install`
|
88
|
+
puts `rake zwr:install`
|
89
89
|
putsv "git it up"
|
90
90
|
`git init`
|
91
91
|
`git add -A`
|
@@ -93,8 +93,11 @@ when 'new'
|
|
93
93
|
`git remote add origin git@github.com:zmilojko/#{ARGV[1]}.git`
|
94
94
|
putsv "database generation"
|
95
95
|
`rake db:migrate`
|
96
|
-
|
96
|
+
putsv "praxing"
|
97
|
+
`prax link`
|
98
|
+
`prax start`
|
97
99
|
puts "Completed. If there was no errors above, you should be good to go!"
|
100
|
+
puts "In your browser, open http://#{ARGV[1]}.dev"
|
98
101
|
end
|
99
102
|
when 'deploy'
|
100
103
|
if ARGV.length < 2
|
@@ -113,7 +116,7 @@ when 'deploy'
|
|
113
116
|
else
|
114
117
|
Dir.chdir "/var/rails_apps"
|
115
118
|
putsv "Deploying new project #{ARGV[1]}"
|
116
|
-
`git clone git@github.com:zmilojko
|
119
|
+
`git clone git@github.com:zmilojko/#{ARGV[1]}.git`
|
117
120
|
Dir.chdir "/var/rails_apps/#{ARGV[1]}"
|
118
121
|
`cd /var/rails_apps/#{ARGV[1]} ; git checkout production`
|
119
122
|
`bundle install`
|
data/lib/tasks/zwr.rake
CHANGED
@@ -5,14 +5,15 @@ require 'rake'
|
|
5
5
|
namespace :zwr do
|
6
6
|
desc "installs zwr gem and features into a new app"
|
7
7
|
task :install do
|
8
|
+
projectname = Rails.root.basename.to_s
|
8
9
|
puts "placing default favicon"
|
9
10
|
FileUtils.cp "#{File.dirname( __FILE__ )}/../../app/assets/images/favicon.ico", Rails.root.join('public')
|
10
|
-
File.delete Rails.root.join('app/views/layouts/application.html.
|
11
|
+
File.delete Rails.root.join('app/views/layouts/application.html.erb')
|
11
12
|
File.write(Rails.root.join('app/views/layouts/application.html.haml'),<<-FILE_CONTENT.strip_heredoc)
|
12
13
|
!!!
|
13
14
|
%html
|
14
15
|
%head
|
15
|
-
%title
|
16
|
+
%title #{projectname.capitalize}
|
16
17
|
%meta(name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")
|
17
18
|
-# android stand alone mode
|
18
19
|
%meta(name="mobile-web-app-capable" content="yes")
|
@@ -43,7 +44,7 @@ namespace :zwr do
|
|
43
44
|
.navbar-header.pull-left
|
44
45
|
%a.navbar-brand(href="#")
|
45
46
|
=image_tag "logo.png", height: '20'
|
46
|
-
|
47
|
+
#{projectname.capitalize}
|
47
48
|
-# Sticky menu, on the right
|
48
49
|
#navbar-steady.navbar-header.pull-right
|
49
50
|
%ul.nav.navbar-nav.pull-left
|
@@ -94,7 +95,6 @@ namespace :zwr do
|
|
94
95
|
%a(href="#") Right 2
|
95
96
|
= yield
|
96
97
|
FILE_CONTENT
|
97
|
-
File.delete Rails.root.join('app/views/layouts/application.html.erb')
|
98
98
|
File.delete Rails.root.join('app/assets/javascripts/application.js')
|
99
99
|
File.write(Rails.root.join('app/assets/javascripts/app.js.coffee'), <<-FILE_CONTENT.strip_heredoc)
|
100
100
|
#= require angular
|
data/zwr.gemspec
CHANGED