r4 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/README.md +64 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/r4 +4 -0
- data/bin/setup +7 -0
- data/lib/r4.rb +5 -0
- data/lib/r4/config.rb +12 -0
- data/lib/r4/installations/default.rb +44 -0
- data/lib/r4/installations/testing.rb +4 -0
- data/lib/r4/odin.rb +76 -0
- data/lib/r4/recipes/bootstrap.rb +9 -0
- data/lib/r4/recipes/bootstrap_app.rb +10 -0
- data/lib/r4/recipes/devise.rb +94 -0
- data/lib/r4/recipes/exception_notification.rb +10 -0
- data/lib/r4/recipes/gemfile.rb +34 -0
- data/lib/r4/recipes/gitignore.rb +8 -0
- data/lib/r4/recipes/install_questions.rb +20 -0
- data/lib/r4/recipes/lazy_high_charts.rb +18 -0
- data/lib/r4/recipes/mysql.rb +22 -0
- data/lib/r4/recipes/rspec_generators.rb +18 -0
- data/lib/r4/recipes/upload_app.rb +9 -0
- data/lib/r4/recipes/wicked_pdf.rb +35 -0
- data/lib/r4/recipes/xlsx_support.rb +6 -0
- data/lib/r4/starter.rb +116 -0
- data/lib/r4/template/.ruby-version +1 -0
- data/lib/r4/template/app/assets/javascripts/main.js.rb +11 -0
- data/lib/r4/template/app/assets/stylesheets/custom.css.scss +128 -0
- data/lib/r4/template/app/assets/stylesheets/main.css.scss +7 -0
- data/lib/r4/template/app/assets/stylesheets/theme.css +7089 -0
- data/lib/r4/template/app/assets/stylesheets/timepress.css.scss +127 -0
- data/lib/r4/template/app/controllers/users_controller.rb +106 -0
- data/lib/r4/template/app/views/layouts/application.html.erb +64 -0
- data/lib/r4/template/app/views/users/_form.html.erb +64 -0
- data/lib/r4/template/app/views/users/edit.html.erb +10 -0
- data/lib/r4/template/app/views/users/edit_password.html.erb +49 -0
- data/lib/r4/template/app/views/users/index.html.erb +36 -0
- data/lib/r4/template/app/views/users/index.json.jbuilder +4 -0
- data/lib/r4/template/app/views/users/new.html.erb +9 -0
- data/lib/r4/template/app/views/users/show.html.erb +14 -0
- data/lib/r4/template/app/views/users/show.json.jbuilder +1 -0
- data/lib/r4/template/config/initializers/html_helpers.rb +99 -0
- data/lib/r4/template/config/locales/cs.yml +307 -0
- data/lib/r4/template/lib/tasks/bootstrap.rake +20 -0
- data/lib/r4/template/lib/tasks/upload.rake +24 -0
- data/lib/r4/version.rb +3 -0
- data/r4.gemspec +29 -0
- metadata +136 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
namespace :server do
|
2
|
+
SERVER = "USER_NAME@SERVER_NAME"
|
3
|
+
PORT = "PORT_NUMBER"
|
4
|
+
SSH = "-p#{PORT} #{SERVER}"
|
5
|
+
SERVER_DIR = '/home/www/PROJECT_DIR'
|
6
|
+
|
7
|
+
desc "Uploads to #{SERVER} server"
|
8
|
+
task :upload => :environment do
|
9
|
+
|
10
|
+
puts "Really upload to \033[0;37m#{SERVER_DIR}\033[0;32m ?"
|
11
|
+
STDIN.gets
|
12
|
+
|
13
|
+
puts 'Pull from git'
|
14
|
+
`git pull`
|
15
|
+
|
16
|
+
puts 'Push to git'
|
17
|
+
`git push`
|
18
|
+
|
19
|
+
print 'Assets change? '
|
20
|
+
puts change_assets = !!(`git diff --name-only HEAD^` =~ /assets/)
|
21
|
+
|
22
|
+
system %Q(ssh -t #{SSH} "source .zshrc && deploy.sh #{SERVER_DIR} #{change_assets}")
|
23
|
+
end
|
24
|
+
end
|
data/lib/r4/version.rb
ADDED
data/r4.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'r4/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "r4"
|
8
|
+
spec.version = R4::VERSION
|
9
|
+
spec.authors = ["mousse"]
|
10
|
+
spec.email = ["mousse@timepress.cz"]
|
11
|
+
|
12
|
+
if spec.respond_to?(:metadata)
|
13
|
+
#spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
|
14
|
+
end
|
15
|
+
|
16
|
+
spec.summary = %q{Rails generator using Thor gem for private usage mostly}
|
17
|
+
spec.description = %q{Anyone can use it for inspiration}
|
18
|
+
spec.homepage = "http://www.timepress.cz"
|
19
|
+
spec.license = "MIT"
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
#spec.bindir = "exe"
|
23
|
+
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.8"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_runtime_dependency "thor"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: r4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- mousse
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Anyone can use it for inspiration
|
56
|
+
email:
|
57
|
+
- mousse@timepress.cz
|
58
|
+
executables:
|
59
|
+
- console
|
60
|
+
- r4
|
61
|
+
- setup
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- Gemfile
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/console
|
69
|
+
- bin/r4
|
70
|
+
- bin/setup
|
71
|
+
- lib/r4.rb
|
72
|
+
- lib/r4/config.rb
|
73
|
+
- lib/r4/installations/default.rb
|
74
|
+
- lib/r4/installations/testing.rb
|
75
|
+
- lib/r4/odin.rb
|
76
|
+
- lib/r4/recipes/bootstrap.rb
|
77
|
+
- lib/r4/recipes/bootstrap_app.rb
|
78
|
+
- lib/r4/recipes/devise.rb
|
79
|
+
- lib/r4/recipes/exception_notification.rb
|
80
|
+
- lib/r4/recipes/gemfile.rb
|
81
|
+
- lib/r4/recipes/gitignore.rb
|
82
|
+
- lib/r4/recipes/install_questions.rb
|
83
|
+
- lib/r4/recipes/lazy_high_charts.rb
|
84
|
+
- lib/r4/recipes/mysql.rb
|
85
|
+
- lib/r4/recipes/rspec_generators.rb
|
86
|
+
- lib/r4/recipes/upload_app.rb
|
87
|
+
- lib/r4/recipes/wicked_pdf.rb
|
88
|
+
- lib/r4/recipes/xlsx_support.rb
|
89
|
+
- lib/r4/starter.rb
|
90
|
+
- lib/r4/template/.ruby-version
|
91
|
+
- lib/r4/template/app/assets/javascripts/main.js.rb
|
92
|
+
- lib/r4/template/app/assets/stylesheets/custom.css.scss
|
93
|
+
- lib/r4/template/app/assets/stylesheets/main.css.scss
|
94
|
+
- lib/r4/template/app/assets/stylesheets/theme.css
|
95
|
+
- lib/r4/template/app/assets/stylesheets/timepress.css.scss
|
96
|
+
- lib/r4/template/app/controllers/users_controller.rb
|
97
|
+
- lib/r4/template/app/views/layouts/application.html.erb
|
98
|
+
- lib/r4/template/app/views/users/_form.html.erb
|
99
|
+
- lib/r4/template/app/views/users/edit.html.erb
|
100
|
+
- lib/r4/template/app/views/users/edit_password.html.erb
|
101
|
+
- lib/r4/template/app/views/users/index.html.erb
|
102
|
+
- lib/r4/template/app/views/users/index.json.jbuilder
|
103
|
+
- lib/r4/template/app/views/users/new.html.erb
|
104
|
+
- lib/r4/template/app/views/users/show.html.erb
|
105
|
+
- lib/r4/template/app/views/users/show.json.jbuilder
|
106
|
+
- lib/r4/template/config/initializers/html_helpers.rb
|
107
|
+
- lib/r4/template/config/locales/cs.yml
|
108
|
+
- lib/r4/template/lib/tasks/bootstrap.rake
|
109
|
+
- lib/r4/template/lib/tasks/upload.rake
|
110
|
+
- lib/r4/version.rb
|
111
|
+
- r4.gemspec
|
112
|
+
homepage: http://www.timepress.cz
|
113
|
+
licenses:
|
114
|
+
- MIT
|
115
|
+
metadata: {}
|
116
|
+
post_install_message:
|
117
|
+
rdoc_options: []
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubyforge_project:
|
132
|
+
rubygems_version: 2.4.6
|
133
|
+
signing_key:
|
134
|
+
specification_version: 4
|
135
|
+
summary: Rails generator using Thor gem for private usage mostly
|
136
|
+
test_files: []
|