zwr 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/zwr +6 -3
  3. data/lib/tasks/zwr.rake +4 -4
  4. data/zwr.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26b08aa86640c5159a8375a309303fa5f537e412
4
- data.tar.gz: 666126eec7a5e7d7c65528d9a4d18dc2cea4e7e2
3
+ metadata.gz: 332a0129734efb42cbb5a1e0a7f585b39cb6b554
4
+ data.tar.gz: d2d83a56c689f8459698dacb9ab50ca4c6f5a660
5
5
  SHA512:
6
- metadata.gz: 0ceef84fbd099e21d6bec6b68fbc8f748d378c79c13ff58f81f2e94647db1a978511d90e7b2f259105432209d138a38107272488a0456a4bd27b05a2acea1582
7
- data.tar.gz: 20dce5e9889b78d5318273a781a496ff31004917d0dae7b704b0e00644e63e243072d0ad9318522c1c5af5b2a9f0a1effcbea0dddeb75de462de571c9dfad572
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/tst.git`
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.haml')
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 Tst
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
- Tst
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'zwr'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.date = '2014-10-26'
5
5
  s.summary = "All the Zwr needs"
6
6
  s.description = "A gem in which I jam what I commonly use."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zwr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko