r5 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +4 -0
  3. data/README.md +69 -0
  4. data/Rakefile +2 -0
  5. data/bin/console +14 -0
  6. data/bin/r5 +4 -0
  7. data/bin/setup +7 -0
  8. data/lib/r5.rb +5 -0
  9. data/lib/r5/config.rb +12 -0
  10. data/lib/r5/installations/default.rb +53 -0
  11. data/lib/r5/installations/testing.rb +4 -0
  12. data/lib/r5/odin.rb +76 -0
  13. data/lib/r5/recipes/bootstrap.rb +9 -0
  14. data/lib/r5/recipes/bootstrap_app.rb +10 -0
  15. data/lib/r5/recipes/devise.rb +94 -0
  16. data/lib/r5/recipes/exception_notification.rb +10 -0
  17. data/lib/r5/recipes/gemfile.rb +41 -0
  18. data/lib/r5/recipes/gitignore.rb +8 -0
  19. data/lib/r5/recipes/install_questions.rb +20 -0
  20. data/lib/r5/recipes/lazy_high_charts.rb +18 -0
  21. data/lib/r5/recipes/mail_settings.rb +22 -0
  22. data/lib/r5/recipes/mysql.rb +22 -0
  23. data/lib/r5/recipes/rspec_generators.rb +18 -0
  24. data/lib/r5/recipes/upload_app.rb +9 -0
  25. data/lib/r5/recipes/wicked_pdf.rb +35 -0
  26. data/lib/r5/recipes/xlsx_support.rb +6 -0
  27. data/lib/r5/starter.rb +116 -0
  28. data/lib/r5/template/.ruby-version +1 -0
  29. data/lib/r5/template/app/assets/javascripts/main.js.rb +11 -0
  30. data/lib/r5/template/app/assets/stylesheets/custom.css.scss +128 -0
  31. data/lib/r5/template/app/assets/stylesheets/main.css.scss +7 -0
  32. data/lib/r5/template/app/assets/stylesheets/theme.css +7089 -0
  33. data/lib/r5/template/app/assets/stylesheets/timepress.css.scss +127 -0
  34. data/lib/r5/template/app/controllers/users_controller.rb +106 -0
  35. data/lib/r5/template/app/views/layouts/application.html.erb +64 -0
  36. data/lib/r5/template/app/views/users/_form.html.erb +64 -0
  37. data/lib/r5/template/app/views/users/edit.html.erb +10 -0
  38. data/lib/r5/template/app/views/users/edit_password.html.erb +49 -0
  39. data/lib/r5/template/app/views/users/index.html.erb +36 -0
  40. data/lib/r5/template/app/views/users/index.json.jbuilder +4 -0
  41. data/lib/r5/template/app/views/users/new.html.erb +9 -0
  42. data/lib/r5/template/app/views/users/show.html.erb +14 -0
  43. data/lib/r5/template/app/views/users/show.json.jbuilder +1 -0
  44. data/lib/r5/template/config/initializers/html_helpers.rb +99 -0
  45. data/lib/r5/template/config/locales/cs.yml +307 -0
  46. data/lib/r5/template/lib/tasks/bootstrap.rake +20 -0
  47. data/lib/r5/template/lib/tasks/upload.rake +24 -0
  48. data/lib/r5/version.rb +3 -0
  49. data/r5.gemspec +29 -0
  50. metadata +137 -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
@@ -0,0 +1,3 @@
1
+ module R5
2
+ VERSION = "0.1.5"
3
+ end
@@ -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 'r5/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "r5"
8
+ spec.version = R5::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,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: r5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - mousse
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-27 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
+ - r5
61
+ - setup
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - Gemfile
66
+ - README.md
67
+ - Rakefile
68
+ - bin/console
69
+ - bin/r5
70
+ - bin/setup
71
+ - lib/r5.rb
72
+ - lib/r5/config.rb
73
+ - lib/r5/installations/default.rb
74
+ - lib/r5/installations/testing.rb
75
+ - lib/r5/odin.rb
76
+ - lib/r5/recipes/bootstrap.rb
77
+ - lib/r5/recipes/bootstrap_app.rb
78
+ - lib/r5/recipes/devise.rb
79
+ - lib/r5/recipes/exception_notification.rb
80
+ - lib/r5/recipes/gemfile.rb
81
+ - lib/r5/recipes/gitignore.rb
82
+ - lib/r5/recipes/install_questions.rb
83
+ - lib/r5/recipes/lazy_high_charts.rb
84
+ - lib/r5/recipes/mail_settings.rb
85
+ - lib/r5/recipes/mysql.rb
86
+ - lib/r5/recipes/rspec_generators.rb
87
+ - lib/r5/recipes/upload_app.rb
88
+ - lib/r5/recipes/wicked_pdf.rb
89
+ - lib/r5/recipes/xlsx_support.rb
90
+ - lib/r5/starter.rb
91
+ - lib/r5/template/.ruby-version
92
+ - lib/r5/template/app/assets/javascripts/main.js.rb
93
+ - lib/r5/template/app/assets/stylesheets/custom.css.scss
94
+ - lib/r5/template/app/assets/stylesheets/main.css.scss
95
+ - lib/r5/template/app/assets/stylesheets/theme.css
96
+ - lib/r5/template/app/assets/stylesheets/timepress.css.scss
97
+ - lib/r5/template/app/controllers/users_controller.rb
98
+ - lib/r5/template/app/views/layouts/application.html.erb
99
+ - lib/r5/template/app/views/users/_form.html.erb
100
+ - lib/r5/template/app/views/users/edit.html.erb
101
+ - lib/r5/template/app/views/users/edit_password.html.erb
102
+ - lib/r5/template/app/views/users/index.html.erb
103
+ - lib/r5/template/app/views/users/index.json.jbuilder
104
+ - lib/r5/template/app/views/users/new.html.erb
105
+ - lib/r5/template/app/views/users/show.html.erb
106
+ - lib/r5/template/app/views/users/show.json.jbuilder
107
+ - lib/r5/template/config/initializers/html_helpers.rb
108
+ - lib/r5/template/config/locales/cs.yml
109
+ - lib/r5/template/lib/tasks/bootstrap.rake
110
+ - lib/r5/template/lib/tasks/upload.rake
111
+ - lib/r5/version.rb
112
+ - r5.gemspec
113
+ homepage: http://www.timepress.cz
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubyforge_project:
133
+ rubygems_version: 2.5.1
134
+ signing_key:
135
+ specification_version: 4
136
+ summary: Rails generator using Thor gem for private usage mostly
137
+ test_files: []