netzke-testing 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/config/routes.rb +8 -0
  4. data/lib/netzke/testing/version.rb +1 -1
  5. data/netzke-testing.gemspec +3 -4
  6. data/spec/features/foo_spec.rb +7 -0
  7. data/spec/features/javascripts/foo.js.coffee +6 -0
  8. data/spec/rails_app/Gemfile +47 -0
  9. data/spec/rails_app/Gemfile.lock +171 -0
  10. data/spec/rails_app/README.rdoc +28 -0
  11. data/spec/rails_app/Rakefile +6 -0
  12. data/spec/rails_app/app/assets/javascripts/application.js +16 -0
  13. data/spec/rails_app/app/assets/javascripts/custom.js +0 -0
  14. data/spec/rails_app/app/assets/stylesheets/application.css +15 -0
  15. data/spec/rails_app/app/components/foo.rb +6 -0
  16. data/spec/rails_app/app/controllers/application_controller.rb +5 -0
  17. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  18. data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
  19. data/spec/rails_app/bin/bundle +3 -0
  20. data/spec/rails_app/bin/rails +8 -0
  21. data/spec/rails_app/bin/rake +8 -0
  22. data/spec/rails_app/bin/setup +29 -0
  23. data/spec/rails_app/bin/spring +18 -0
  24. data/spec/rails_app/config.ru +4 -0
  25. data/spec/rails_app/config/application.rb +29 -0
  26. data/spec/rails_app/config/boot.rb +5 -0
  27. data/spec/rails_app/config/database.yml +25 -0
  28. data/spec/rails_app/config/environment.rb +5 -0
  29. data/spec/rails_app/config/environments/development.rb +41 -0
  30. data/spec/rails_app/config/environments/production.rb +79 -0
  31. data/spec/rails_app/config/environments/test.rb +42 -0
  32. data/spec/rails_app/config/initializers/assets.rb +11 -0
  33. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  34. data/spec/rails_app/config/initializers/cookies_serializer.rb +3 -0
  35. data/spec/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/spec/rails_app/config/initializers/inflections.rb +16 -0
  37. data/spec/rails_app/config/initializers/mime_types.rb +4 -0
  38. data/spec/rails_app/config/initializers/netzke_testing.rb +4 -0
  39. data/spec/rails_app/config/initializers/session_store.rb +3 -0
  40. data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
  41. data/spec/rails_app/config/locales/en.yml +23 -0
  42. data/spec/rails_app/config/routes.rb +3 -0
  43. data/spec/rails_app/config/secrets.yml +22 -0
  44. data/spec/rails_app/db/development.sqlite3 +0 -0
  45. data/spec/rails_app/db/seeds.rb +7 -0
  46. data/spec/rails_app/db/test.sqlite3 +0 -0
  47. data/spec/rails_app/log/development.log +518 -0
  48. data/spec/rails_app/log/test.log +431 -0
  49. data/spec/rails_app/public/404.html +67 -0
  50. data/spec/rails_app/public/422.html +67 -0
  51. data/spec/rails_app/public/500.html +66 -0
  52. data/spec/rails_app/public/favicon.ico +0 -0
  53. data/spec/rails_app/public/robots.txt +5 -0
  54. data/spec/rails_app/test/test_helper.rb +10 -0
  55. data/spec/rails_app/tmp/cache/assets/test/sprockets/1ec8d2bd73a25dacc03b06d7e561bab0 +0 -0
  56. data/spec/rails_app/tmp/cache/assets/test/sprockets/3055607d4a01c24bb30f86d38b66be76 +0 -0
  57. data/spec/rails_app/tmp/cache/assets/test/sprockets/364f56c42953643bff73d0d14051f406 +0 -0
  58. data/spec/rails_app/tmp/cache/assets/test/sprockets/48d1d24065c75bfe3bbf00f303e233d0 +0 -0
  59. data/spec/rails_app/tmp/cache/assets/test/sprockets/4d2a90e455a595f51101e7e94572384e +0 -0
  60. data/spec/rails_app/tmp/cache/assets/test/sprockets/5da2225b8b1ca6c070d06b98bbb94452 +0 -0
  61. data/spec/rails_app/tmp/cache/assets/test/sprockets/71ff3ab765090b6daa27969f6eb56fd0 +0 -0
  62. data/spec/rails_app/tmp/cache/assets/test/sprockets/7250cf6654022ff231aed2eaa0ce7b5f +0 -0
  63. data/spec/rails_app/tmp/cache/assets/test/sprockets/78fe20223c36898325a9c4b2c5b9523f +0 -0
  64. data/spec/rails_app/tmp/cache/assets/test/sprockets/83ea57e5cb665b7643248a9129870519 +0 -0
  65. data/spec/rails_app/tmp/cache/assets/test/sprockets/8411ea481fc20d345affc9abebbea601 +0 -0
  66. data/spec/rails_app/tmp/cache/assets/test/sprockets/89f9660384238597a59e787c66e0b2cd +0 -0
  67. data/spec/rails_app/tmp/cache/assets/test/sprockets/8aac9881e31c9e101aee1d7b926c9b5d +0 -0
  68. data/spec/rails_app/tmp/cache/assets/test/sprockets/8ffe76c9f2babb34fe924c4bc1fb9b58 +0 -0
  69. data/spec/rails_app/tmp/cache/assets/test/sprockets/91bc8d8ad6e413fa5ab8aba410a129a3 +0 -0
  70. data/spec/rails_app/tmp/cache/assets/test/sprockets/9ae207cbf1388d2848f50413af97e3ca +0 -0
  71. data/spec/rails_app/tmp/cache/assets/test/sprockets/9b26c4899cfc5eefc7ae82ccf78e667d +0 -0
  72. data/spec/rails_app/tmp/cache/assets/test/sprockets/a9e045ed0da1e7aeec42ecbaa004f374 +0 -0
  73. data/spec/rails_app/tmp/cache/assets/test/sprockets/b0991ffa51c1c366941a555c3643078a +0 -0
  74. data/spec/rails_app/tmp/cache/assets/test/sprockets/b7732372d38c46ae99328022e1fd86c3 +0 -0
  75. data/spec/rails_app/tmp/cache/assets/test/sprockets/cc3e6fbec60851d530af0cb3927ae723 +0 -0
  76. data/spec/rails_app/tmp/cache/assets/test/sprockets/d1f64ebeb7f5b9680c8c563659247872 +0 -0
  77. data/spec/rails_app/tmp/cache/assets/test/sprockets/ddf4385a5814c1c034410ffd071fbac4 +0 -0
  78. data/spec/rails_app/tmp/cache/assets/test/sprockets/e032da315be18f628acb87d4f469e052 +0 -0
  79. data/spec/rails_app/tmp/cache/assets/test/sprockets/e3c7e415a4520993c2e0029aedbf4890 +0 -0
  80. data/spec/rails_app/tmp/cache/assets/test/sprockets/ea8bddcc0e2b1aa79353e4a5d62928fb +0 -0
  81. data/spec/rails_app/tmp/cache/assets/test/sprockets/f3d58f13d1651ab6ed838874cbf4bfbe +0 -0
  82. data/spec/spec_helper.rb +43 -0
  83. data/spec/testing_controller_spec.rb +28 -0
  84. metadata +162 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea13495205fe05c1f7976b36cd34143f41200d2b
4
- data.tar.gz: c354096fd07fdd06bf4389aa3d6cd9031c2fafda
3
+ metadata.gz: dacf19b8380f7bf27df42953a412175456e55f30
4
+ data.tar.gz: f33cde1510c5cf46394c957ad1946745616aa8cd
5
5
  SHA512:
6
- metadata.gz: c06164d28a58334f0ce6547ae865497ce30cfacb5fa34ffb36bdb40c6de8b0129c74baea2840070c7ff3ae3f1822bd872eb9235f54d5bb96ee6c9b851c2162c9
7
- data.tar.gz: 5156735b1704e0bed07d6d816b899f9f547a777fdf87db1df71df1abc1f7824624bcedec7921b18b32bd55fd69df15eaf26cdf4b4d1682f3c3643ee585907e2b
6
+ metadata.gz: e4a5d8b1458bcf514fe87943324815523478df332ad86c51ae73e297829ed55e7e8744a9aa8a0853014d9dfd61472540004c3f12830fb0311138e731d4ee3813
7
+ data.tar.gz: e6de38582c94bb11c54ade8a4925b4610d24678762cfc62ed3dec8f4cd2a3cda2ecb456dc07fe7be469c19d3f42fda9a24614d923a1ce3cf4b80bf51ea6e6fe2
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Max Gorin
1
+ Copyright (c) 2015 Max Gorin
2
2
 
3
3
  MIT License
4
4
 
data/config/routes.rb ADDED
@@ -0,0 +1,8 @@
1
+ Rails.application.routes.draw do
2
+ # get "netzke_testing/components/:component", controller: :netzke_testing, action: :components
3
+ # get "netzke_testing/specs"
4
+ if Rails.env.test? || Rails.env.development?
5
+ get 'netzke/components/:class' => 'netzke/testing#components', as: :netzke_components
6
+ get 'netzke/specs/*name' => 'netzke/testing#specs', as: :netzke_specs
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module Netzke
2
2
  module Testing
3
- VERSION = "0.11.0"
3
+ VERSION = "0.11.1"
4
4
  end
5
5
  end
@@ -13,9 +13,8 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "http://netzke.org"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.files = Dir["{app,javascripts,lib,stylesheets,tasks}/**/*", "[A-Z]*", "init.rb"] - ["Gemfile.lock"]
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
+ spec.files = Dir["{app,config,lib,spec}/**/*", "[A-Z]*"] - ["Gemfile.lock"]
17
+ spec.test_files = spec.files.grep(%r{^(spec)/})
19
18
  spec.require_paths = ["lib"]
20
19
 
21
20
  spec.add_development_dependency "bundler", "~> 1.3"
@@ -26,5 +25,5 @@ Gem::Specification.new do |spec|
26
25
  spec.add_development_dependency 'selenium-webdriver'
27
26
  spec.add_development_dependency "rspec-rails"
28
27
  spec.add_development_dependency "coffee-script"
29
- spec.add_development_dependency 'netzke-core', '0.11.0'
28
+ spec.add_development_dependency 'netzke-core', '~> 0.11.0'
30
29
  end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ feature "Foo", js: true do
4
+ it 'runs JS specs' do
5
+ run_mocha_spec "foo"
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ describe 'Foo', ->
2
+ afterEach (done) ->
3
+ done()
4
+
5
+ it 'shows as a panel with title "Test component"', ->
6
+ expectToSee header "Test component"
@@ -0,0 +1,47 @@
1
+ source 'https://rubygems.org'
2
+
3
+
4
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
+ gem 'rails', '4.2.0'
6
+ # Use sqlite3 as the database for Active Record
7
+ gem 'sqlite3'
8
+ # Use SCSS for stylesheets
9
+ gem 'sass-rails', '~> 5.0'
10
+ # Use Uglifier as compressor for JavaScript assets
11
+ gem 'uglifier', '>= 1.3.0'
12
+ # Use CoffeeScript for .coffee assets and views
13
+ gem 'coffee-rails', '~> 4.1.0'
14
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
15
+ # gem 'therubyracer', platforms: :ruby
16
+
17
+ # Use jquery as the JavaScript library
18
+ gem 'jquery-rails'
19
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
20
+ gem 'turbolinks'
21
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
22
+ gem 'jbuilder', '~> 2.0'
23
+ # bundle exec rake doc:rails generates the API under doc/api.
24
+ gem 'sdoc', '~> 0.4.0', group: :doc
25
+
26
+ # Use ActiveModel has_secure_password
27
+ # gem 'bcrypt', '~> 3.1.7'
28
+
29
+ # Use Unicorn as the app server
30
+ # gem 'unicorn'
31
+
32
+ # Use Capistrano for deployment
33
+ # gem 'capistrano-rails', group: :development
34
+
35
+ gem 'netzke-core'
36
+
37
+ group :development, :test do
38
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
39
+ gem 'byebug'
40
+
41
+ # Access an IRB console on exception pages or by using <%= console %> in views
42
+ gem 'web-console', '~> 2.0'
43
+
44
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
45
+ gem 'spring'
46
+ end
47
+
@@ -0,0 +1,171 @@
1
+ PATH
2
+ remote: ~/code/netzke/netzke-core
3
+ specs:
4
+ netzke-core (0.11.0)
5
+ execjs
6
+ uglifier
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.2.0)
12
+ actionpack (= 4.2.0)
13
+ actionview (= 4.2.0)
14
+ activejob (= 4.2.0)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.0)
18
+ actionview (= 4.2.0)
19
+ activesupport (= 4.2.0)
20
+ rack (~> 1.6.0)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
24
+ actionview (4.2.0)
25
+ activesupport (= 4.2.0)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
30
+ activejob (4.2.0)
31
+ activesupport (= 4.2.0)
32
+ globalid (>= 0.3.0)
33
+ activemodel (4.2.0)
34
+ activesupport (= 4.2.0)
35
+ builder (~> 3.1)
36
+ activerecord (4.2.0)
37
+ activemodel (= 4.2.0)
38
+ activesupport (= 4.2.0)
39
+ arel (~> 6.0)
40
+ activesupport (4.2.0)
41
+ i18n (~> 0.7)
42
+ json (~> 1.7, >= 1.7.7)
43
+ minitest (~> 5.1)
44
+ thread_safe (~> 0.3, >= 0.3.4)
45
+ tzinfo (~> 1.1)
46
+ arel (6.0.0)
47
+ binding_of_caller (0.7.2)
48
+ debug_inspector (>= 0.0.1)
49
+ builder (3.2.2)
50
+ byebug (3.5.1)
51
+ columnize (~> 0.8)
52
+ debugger-linecache (~> 1.2)
53
+ slop (~> 3.6)
54
+ coffee-rails (4.1.0)
55
+ coffee-script (>= 2.2.0)
56
+ railties (>= 4.0.0, < 5.0)
57
+ coffee-script (2.3.0)
58
+ coffee-script-source
59
+ execjs
60
+ coffee-script-source (1.9.0)
61
+ columnize (0.9.0)
62
+ debug_inspector (0.0.2)
63
+ debugger-linecache (1.2.0)
64
+ erubis (2.7.0)
65
+ execjs (2.2.2)
66
+ globalid (0.3.0)
67
+ activesupport (>= 4.1.0)
68
+ hike (1.2.3)
69
+ i18n (0.7.0)
70
+ jbuilder (2.2.6)
71
+ activesupport (>= 3.0.0, < 5)
72
+ multi_json (~> 1.2)
73
+ jquery-rails (4.0.3)
74
+ rails-dom-testing (~> 1.0)
75
+ railties (>= 4.2.0)
76
+ thor (>= 0.14, < 2.0)
77
+ json (1.8.2)
78
+ loofah (2.0.1)
79
+ nokogiri (>= 1.5.9)
80
+ mail (2.6.3)
81
+ mime-types (>= 1.16, < 3)
82
+ mime-types (2.4.3)
83
+ mini_portile (0.6.2)
84
+ minitest (5.5.1)
85
+ multi_json (1.10.1)
86
+ nokogiri (1.6.6.2)
87
+ mini_portile (~> 0.6.0)
88
+ rack (1.6.0)
89
+ rack-test (0.6.3)
90
+ rack (>= 1.0)
91
+ rails (4.2.0)
92
+ actionmailer (= 4.2.0)
93
+ actionpack (= 4.2.0)
94
+ actionview (= 4.2.0)
95
+ activejob (= 4.2.0)
96
+ activemodel (= 4.2.0)
97
+ activerecord (= 4.2.0)
98
+ activesupport (= 4.2.0)
99
+ bundler (>= 1.3.0, < 2.0)
100
+ railties (= 4.2.0)
101
+ sprockets-rails
102
+ rails-deprecated_sanitizer (1.0.3)
103
+ activesupport (>= 4.2.0.alpha)
104
+ rails-dom-testing (1.0.5)
105
+ activesupport (>= 4.2.0.beta, < 5.0)
106
+ nokogiri (~> 1.6.0)
107
+ rails-deprecated_sanitizer (>= 1.0.1)
108
+ rails-html-sanitizer (1.0.1)
109
+ loofah (~> 2.0)
110
+ railties (4.2.0)
111
+ actionpack (= 4.2.0)
112
+ activesupport (= 4.2.0)
113
+ rake (>= 0.8.7)
114
+ thor (>= 0.18.1, < 2.0)
115
+ rake (10.4.2)
116
+ rdoc (4.2.0)
117
+ sass (3.4.11)
118
+ sass-rails (5.0.1)
119
+ railties (>= 4.0.0, < 5.0)
120
+ sass (~> 3.1)
121
+ sprockets (>= 2.8, < 4.0)
122
+ sprockets-rails (>= 2.0, < 4.0)
123
+ tilt (~> 1.1)
124
+ sdoc (0.4.1)
125
+ json (~> 1.7, >= 1.7.7)
126
+ rdoc (~> 4.0)
127
+ slop (3.6.0)
128
+ spring (1.2.0)
129
+ sprockets (2.12.3)
130
+ hike (~> 1.2)
131
+ multi_json (~> 1.0)
132
+ rack (~> 1.0)
133
+ tilt (~> 1.1, != 1.3.0)
134
+ sprockets-rails (2.2.4)
135
+ actionpack (>= 3.0)
136
+ activesupport (>= 3.0)
137
+ sprockets (>= 2.8, < 4.0)
138
+ sqlite3 (1.3.10)
139
+ thor (0.19.1)
140
+ thread_safe (0.3.4)
141
+ tilt (1.4.1)
142
+ turbolinks (2.5.3)
143
+ coffee-rails
144
+ tzinfo (1.2.2)
145
+ thread_safe (~> 0.1)
146
+ uglifier (2.7.0)
147
+ execjs (>= 0.3.0)
148
+ json (>= 1.8.0)
149
+ web-console (2.0.0)
150
+ activemodel (~> 4.0)
151
+ binding_of_caller (>= 0.7.2)
152
+ railties (~> 4.0)
153
+ sprockets-rails (>= 2.0, < 4.0)
154
+
155
+ PLATFORMS
156
+ ruby
157
+
158
+ DEPENDENCIES
159
+ byebug
160
+ coffee-rails (~> 4.1.0)
161
+ jbuilder (~> 2.0)
162
+ jquery-rails
163
+ netzke-core!
164
+ rails (= 4.2.0)
165
+ sass-rails (~> 5.0)
166
+ sdoc (~> 0.4.0)
167
+ spring
168
+ sqlite3
169
+ turbolinks
170
+ uglifier (>= 1.3.0)
171
+ web-console (~> 2.0)
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,16 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
File without changes
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,6 @@
1
+ class Foo < Netzke::Base
2
+ def configure(c)
3
+ super
4
+ c.title = 'Test component'
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ # protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RailsApp</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
6
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
7
+ require_relative '../config/boot'
8
+ require 'rails/commands'
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path("../spring", __FILE__)
4
+ rescue LoadError
5
+ end
6
+ require_relative '../config/boot'
7
+ require 'rake'
8
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end