topkit 0.1.0 → 1.0.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/{LICENSE.txt → LICENSE.md} +1 -1
  4. data/README.md +10 -24
  5. data/Rakefile +1 -0
  6. data/bin/ripen +248 -0
  7. data/bin/topkit +111 -7
  8. data/lib/templates/database.yml +9 -0
  9. data/lib/templates/developer/database.yml +7 -0
  10. data/lib/templates/developer/topkit.yml +3 -0
  11. data/lib/templates/nginx.conf +27 -0
  12. data/lib/templates/topkit.yml +14 -0
  13. data/lib/templates/unicorn.rb +8 -0
  14. data/lib/templates/unicorn_init +84 -0
  15. data/lib/topkit/developer/base.rb +156 -0
  16. data/lib/topkit/developer/database.rb +17 -0
  17. data/lib/topkit/developer/installer.rb +46 -0
  18. data/lib/topkit/developer/site.rb +193 -0
  19. data/lib/topkit/developer/symlinks.rb +53 -0
  20. data/lib/topkit/developer/user.rb +53 -0
  21. data/lib/topkit/server/base.rb +84 -0
  22. data/lib/topkit/server/console.rb +11 -0
  23. data/lib/topkit/server/installer.rb +117 -0
  24. data/lib/topkit/server/symlinks.rb +53 -0
  25. data/lib/topkit/server/updater.rb +21 -0
  26. data/lib/topkit/version.rb +1 -1
  27. data/lib/topkit.rb +23 -2
  28. data/topkit.gemspec +10 -10
  29. metadata +50 -46
  30. data/lib/topkit/actions.rb +0 -41
  31. data/lib/topkit/app_builder.rb +0 -112
  32. data/lib/topkit/generators/app_generator.rb +0 -109
  33. data/templates/Gemfile_clean +0 -41
  34. data/templates/_footer.html.erb +0 -2
  35. data/templates/_header.html.erb +0 -2
  36. data/templates/_status.html.erb +0 -6
  37. data/templates/application_layout.html.erb +0 -35
  38. data/templates/database.pg.yml.erb +0 -55
  39. data/templates/database_cleaner_rspec.rb +0 -21
  40. data/templates/topkit_gitignore +0 -2
  41. data/test/lib/topkit/version_test.rb +0 -7
  42. data/test/test_helper.rb +0 -3
@@ -1,41 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '4.0.0'
4
-
5
- gem 'unicorn-rails'
6
-
7
- gem 'pg'
8
- gem 'activerecord-postgres-hstore'
9
-
10
- gem 'rails-backbone'
11
- gem 'simple_form'
12
- gem 'truncate_html'
13
- gem 'kaminari'
14
- gem 'devise'
15
-
16
- group :development, :test do
17
- gem 'capybara'
18
- gem 'rspec-rails'
19
- gem 'faker'
20
- gem 'factory_girl_rails'
21
- gem 'shoulda-matchers'
22
- gem 'selenium-webdriver'
23
- end
24
-
25
- group :development do
26
- gem 'annotate'
27
- gem 'seed_scatter'
28
- end
29
-
30
- group :assets do
31
- gem 'jquery-rails'
32
- gem 'sass-rails'
33
- gem 'coffee-rails'
34
- gem 'uglifier'
35
- gem 'compass-rails'
36
- end
37
-
38
- group :test do
39
- gem 'database_cleaner'
40
- gem 'cucumber-rails', :require => false
41
- end
@@ -1,2 +0,0 @@
1
- <footer>
2
- </footer>
@@ -1,2 +0,0 @@
1
- <header>
2
- </header>
@@ -1,6 +0,0 @@
1
- <% flash.each do |level,message| %>
2
- <%= content_tag :div, class: "notice alert alert-#{(level == 'notice') ? 'info' : 'error'}" do %>
3
- <%= link_to '#', class: "close", data: { dismiss: "alert" } %>
4
- <%= content_tag :p, message %>
5
- <% end %>
6
- <% end %>
@@ -1,35 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4
- <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5
- <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
6
- <head>
7
- <meta charset="utf-8">
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9
- <meta name="description" content="">
10
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0">
11
- <meta name="apple-mobile-web-app-capable" content="yes">
12
- <meta name="format-detection" content="telephone=no" />
13
- <title>Topkit</title>
14
- <%= stylesheet_link_tag "application", :media => "all" %>
15
- <%# stylesheet_link_tag "print", :media => "print" %>
16
- <!--[if IE]>
17
- <%# stylesheet_link_tag "ie", :media => "screen, projection" %>
18
- <![endif]-->
19
- <script type="text/javascript">
20
- var BASE_PATH = '<%= ActionController::Base.config.relative_url_root || "" %>';
21
- </script>
22
- <%= csrf_meta_tags %>
23
- </head>
24
- <body>
25
- <div id="container">
26
- <%= render "status" %>
27
- <%= render "header" %>
28
- <div id="content" role="main">
29
- <%= yield %>
30
- </div>
31
- <%= render "footer" %>
32
- </div>
33
- <%= javascript_include_tag "application" %>
34
- </body>
35
- </html>
@@ -1,55 +0,0 @@
1
- # PostgreSQL. Versions 8.2 and up are supported.
2
- #
3
- # Install the pg driver:
4
- # gem install pg
5
- # On Mac OS X with macports:
6
- # gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
7
- # On Windows:
8
- # gem install pg
9
- # Choose the win32 build.
10
- # Install PostgreSQL and put its /bin directory on your path.
11
- #
12
- # Configure Using Gemfile
13
- # gem 'pg'
14
- #
15
- development:
16
- adapter: postgresql
17
- encoding: unicode
18
- database: <%= app_name %>_development
19
- pool: 5
20
- username: root
21
- password: root
22
-
23
- # Connect on a TCP socket. Omitted by default since the client uses a
24
- # domain socket that doesn't need configuration. Windows does not have
25
- # domain sockets, so uncomment these lines.
26
- #host: localhost
27
- #port: 5432
28
-
29
- # Schema search path. The server defaults to $user,public
30
- #schema_search_path: myapp,sharedapp,public
31
-
32
- # Minimum log levels, in increasing order:
33
- # debug5, debug4, debug3, debug2, debug1,
34
- # log, notice, warning, error, fatal, and panic
35
- # The server defaults to notice.
36
- #min_messages: warning
37
-
38
- # Warning: The database defined as "test" will be erased and
39
- # re-generated from your development database when you run "rake".
40
- # Do not set this db to the same as development or production.
41
- test:
42
- adapter: postgresql
43
- encoding: unicode
44
- database: <%= app_name %>_test
45
- pool: 5
46
- username: root
47
- password: root
48
-
49
- production:
50
- adapter: postgresql
51
- encoding: unicode
52
- database: <%= app_name %>_production
53
- pool: 5
54
- username: root
55
- password:
@@ -1,21 +0,0 @@
1
- RSpec.configure do |config|
2
- config.before(:suite) do
3
- DatabaseCleaner.clean_with(:deletion)
4
- end
5
-
6
- config.before(:each) do
7
- DatabaseCleaner.strategy = :transaction
8
- end
9
-
10
- config.before(:each, :js => true) do
11
- DatabaseCleaner.strategy = :deletion
12
- end
13
-
14
- config.before(:each) do
15
- DatabaseCleaner.start
16
- end
17
-
18
- config.after(:each) do
19
- DatabaseCleaner.clean
20
- end
21
- end
@@ -1,2 +0,0 @@
1
- sass-cache
2
- esproj
@@ -1,7 +0,0 @@
1
- require_relative '../../test_helper'
2
-
3
- describe Topkit do
4
- it "is versioned" do
5
- Topkit::VERSION.wont_be_nil
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,3 +0,0 @@
1
- require 'minitest/autorun'
2
- require 'minitest/pride'
3
- require 'topkit'