appril 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/appril.gemspec +0 -1
  3. data/lib/appril/version.rb +1 -1
  4. data/lib/appril.rb +0 -117
  5. metadata +4 -73
  6. data/bin/appril +0 -5
  7. data/boilerplate/app/.gitignore +0 -6
  8. data/boilerplate/app/.pryrc +0 -1
  9. data/boilerplate/app/Gemfile +0 -6
  10. data/boilerplate/app/Rakefile +0 -1
  11. data/boilerplate/app/base/api/base_controller.rb +0 -21
  12. data/boilerplate/app/base/api/index/client.coffee +0 -4
  13. data/boilerplate/app/base/api/index/layout.html +0 -3
  14. data/boilerplate/app/base/api/index/server.rb +0 -3
  15. data/boilerplate/app/base/api/rtcp_controller.rb +0 -22
  16. data/boilerplate/app/base/assets/styles.css +0 -0
  17. data/boilerplate/app/base/boot.rb +0 -2
  18. data/boilerplate/app/base/core.coffee +0 -143
  19. data/boilerplate/app/base/helpers/application_helpers.coffee +0 -1
  20. data/boilerplate/app/base/helpers/application_helpers.rb +0 -4
  21. data/boilerplate/app/base/load.rb +0 -0
  22. data/boilerplate/app/base/models/base_model.rb +0 -0
  23. data/boilerplate/app/base/templates/access_denied.html +0 -3
  24. data/boilerplate/app/base/templates/layout.liquid +0 -11
  25. data/boilerplate/app/base/templates/layouts/main.html +0 -1
  26. data/boilerplate/app/base/templates/layouts/none.html +0 -1
  27. data/boilerplate/app/config/config.rb +0 -9
  28. data/boilerplate/app/config/config.yml +0 -18
  29. data/boilerplate/app/config/env/development.yml +0 -0
  30. data/boilerplate/app/config/env/production.yml +0 -0
  31. data/boilerplate/app/config/env/stage.yml +0 -0
  32. data/boilerplate/app/config/env/test.yml +0 -0
  33. data/boilerplate/app/config.ru +0 -3
  34. data/boilerplate/app/core/Gemfile +0 -4
  35. data/boilerplate/app/core/boot.rb +0 -16
  36. data/boilerplate/app/core/generate_configs.rb +0 -7
  37. data/boilerplate/app/core/load.rb +0 -14
  38. data/boilerplate/app/core/load_controllers.rb +0 -14
  39. data/boilerplate/app/generators/api/client.coffee +0 -4
  40. data/boilerplate/app/generators/api/layout.html +0 -0
  41. data/boilerplate/app/generators/api/server.rb +0 -3
  42. data/boilerplate/app/package.json +0 -10
  43. data/boilerplate/app/public/.ignore +0 -0
  44. data/boilerplate/app/tmp/.ignore +0 -0
  45. data/boilerplate/app/var/.ignore +0 -0
  46. data/boilerplate/app/webpack.config.js +0 -53
  47. data/boilerplate/crudle/Gemfile +0 -7
  48. data/boilerplate/crudle/base/core.coffee +0 -128
  49. data/boilerplate/crudle/base/templates/menu.html +0 -3
  50. data/boilerplate/crudle/generators/api/client.coffee +0 -11
  51. data/boilerplate/crudle/generators/api/editor.html +0 -0
  52. data/boilerplate/crudle/generators/api/server.rb +0 -26
  53. data/boilerplate/crudle/package.json +0 -15
  54. data/boilerplate/crudle/webpack.config.js +0 -54
  55. data/docker/Dockerfile +0 -5
  56. data/docker/run +0 -66
  57. data/docker/skel/build.sh +0 -1
  58. data/docker/skel/cleanup.sh +0 -7
  59. data/docker/skel/config.yml +0 -24
  60. data/docker/skel/prepare_build.sh +0 -5
  61. data/docker/skel/start.sh +0 -1
  62. data/docker/start +0 -7
  63. data/lib/appril/cli/app/install.rb +0 -45
  64. data/lib/appril/cli/app/update.rb +0 -26
  65. data/lib/appril/cli/app.rb +0 -11
  66. data/lib/appril/cli/assertions.rb +0 -60
  67. data/lib/appril/cli/docker/build.rb +0 -150
  68. data/lib/appril/cli/docker/install.rb +0 -21
  69. data/lib/appril/cli/docker/update.rb +0 -24
  70. data/lib/appril/cli/docker.rb +0 -16
  71. data/lib/appril/cli/generator.rb +0 -15
  72. data/lib/appril/cli/helpers.rb +0 -47
  73. data/lib/appril/cli.rb +0 -204
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 264e829d4ca44c9bb4e110f4f1e8685714c98289
4
- data.tar.gz: 7ac85ae6496b3376aa5836926c79e4ff79e332b6
3
+ metadata.gz: d47a90943d25a956a37ce8e88c37f7f4be954cce
4
+ data.tar.gz: ca5f410d38a63d7b7b5cb49eaed0f4d1cfba126c
5
5
  SHA512:
6
- metadata.gz: 37518568d6fda073d37112fc012c054e5c68c3b00a49e864c96f218ca4e43839f60f9b52596f5d7c89fe1a7047649773bfff34bdd4f24f019069c8fe9e3be872
7
- data.tar.gz: d1a9c85eef9e3249f0b417e77f3e9bfc623f91ef89324bd311cc06e9702c5eadbf28545b0d96fdc0dde76eeba9d83cef453df546d660cc52e815f8e8691dfefb
6
+ metadata.gz: 2397c1279c3b253b350ed83a255cda6b96d2fe7f2318a0ec937b2e203906b00a63f9e222901dd1af4c0dc20afe52f9ec9bc2921a3749c33585e9feb7c67fc0ec
7
+ data.tar.gz: 1d51b54ac893d9a1ecb3e04f0382e8271fcfd18976189354f36761b9a0c5ebcf9fa8a7970c48574bce119f561a8e272cf7d1eb869dd613f5fb9f789793f2e39e
data/appril.gemspec CHANGED
@@ -13,7 +13,6 @@ Gem::Specification.new do |spec|
13
13
 
14
14
  spec.files = Dir['**/{*,.[a-z]*}'].reject {|e| e =~ /(gem|lock)\z/}
15
15
  spec.require_paths = ['lib']
16
- spec.executables = Dir['bin/*'].map {|f| File.basename(f)}
17
16
 
18
17
  spec.required_ruby_version = '~> 2.0'
19
18
 
@@ -1,3 +1,3 @@
1
1
  module Appril
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
data/lib/appril.rb CHANGED
@@ -1,123 +1,6 @@
1
1
  require 'rocketio'
2
2
 
3
3
  module Appril
4
- extend self
5
-
6
- def load_config dir, env = RocketIO.environment
7
-
8
- config = load_config_file("#{dir}/config.yml")
9
- config.update(load_config_file("#{dir}/env/#{env}.yml"))
10
- config[:environment] = env.to_s.freeze
11
-
12
- Dir["#{dir}/**/*.yml"].each do |file|
13
- next if File.dirname(file) == './env'
14
-
15
- key = File.basename(file, '.yml')
16
- next if key == 'config' || key == 'appril'
17
-
18
- key_config = load_config_file(file)
19
- key_config_keys = key_config.keys.map(&:to_s)
20
-
21
- config[key] = if key_config_keys.include?(env.to_s)
22
- # current environment found, use it
23
- key_config[env]
24
- else
25
- if RocketIO::ENVIRONMENTS.keys.find {|k| key_config_keys.include?(k)}
26
- # there are some environment(s), but no current one so set current environment to nil
27
- nil
28
- else
29
- # there are no environments, so this config is available on any environment
30
- key_config
31
- end
32
- end
33
-
34
- end
35
-
36
- def config.method_missing key
37
- self[key]
38
- end
39
-
40
- config
41
- end
42
-
43
-
44
- def load_config_file file
45
- RocketIO.indifferent_params(YAML.load(File.read(file)) || {})
46
- end
47
-
48
-
49
- def controllers_map dir
50
- path_to_api = File.expand_path('base/api', dir)
51
- RocketIO.controllers.each_with_object([]) do |controller,o|
52
- next unless controller.superclass == ::BaseController
53
-
54
- o << {
55
- path: controller.dirname.sub(path_to_api, '').gsub(/\A\/|\/\Z/, ''),
56
- url: controller.url,
57
- url_pattern: url_pattern(controller),
58
- name: controller.name.gsub('::', '__'),
59
- api: controller.api
60
- }
61
- end.sort do |a,b|
62
- b[:url].split('/').size <=> a[:url].split('/').size
63
- end
64
- end
65
-
66
-
67
- def webpack_entries dir, controllers
68
- entries = controllers.each_with_object({}) do |controller,o|
69
-
70
- next unless entry = %w[
71
- ./base/api/%s/client.js
72
- ./base/api/%s/client.coffee
73
- ].map {|p| p % controller[:path]}.find {|f| File.file?(File.expand_path(f, dir))}
74
-
75
- o[controller[:path]] = File.join('./base/api', controller[:path], File.basename(entry))
76
- end
77
-
78
- if core = %w[
79
- ./base/core.js
80
- ./base/core.coffee
81
- ].find {|f| File.file?(File.expand_path(f, dir))}
82
- entries[:core] = core
83
- end
84
-
85
- entries
86
- end
87
-
88
-
89
- def generate_configs dir
90
- config = load_config("#{dir}/config", :development)
91
-
92
- controllers = controllers_map(dir)
93
- webpack_entries = webpack_entries(dir, controllers)
94
-
95
- File.open File.expand_path('config.json', dir), 'w' do |f|
96
- f << JSON.pretty_generate({
97
- controllers: controllers,
98
- webpack: {
99
- path: config[:client_path],
100
- url: config[:client_url],
101
- entries: webpack_entries
102
- }
103
- })
104
- end
105
- end
106
-
107
-
108
- def url_pattern controller
109
- controller.url *controller.instance_method(:get).parameters.each_with_object([]) {|param,o|
110
- pattern = if param[0] == :rest
111
- "*"
112
- elsif param[0] == :req
113
- ":#{param[1]}"
114
- elsif param[0] == :opt
115
- ":#{param[1]}?"
116
- end
117
- o << pattern if pattern
118
- }
119
- end
120
-
121
4
  end
122
5
 
123
6
  require 'appril/base_controller'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appril
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slee Woo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-27 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rocketio
@@ -41,8 +41,7 @@ dependencies:
41
41
  description: Opinionated framework for building opinionated web applications
42
42
  email:
43
43
  - mail@sleewoo.com
44
- executables:
45
- - appril
44
+ executables: []
46
45
  extensions: []
47
46
  extra_rdoc_files: []
48
47
  files:
@@ -50,76 +49,8 @@ files:
50
49
  - Gemfile
51
50
  - Rakefile
52
51
  - appril.gemspec
53
- - bin/appril
54
- - boilerplate/app/.gitignore
55
- - boilerplate/app/.pryrc
56
- - boilerplate/app/Gemfile
57
- - boilerplate/app/Rakefile
58
- - boilerplate/app/base/api/base_controller.rb
59
- - boilerplate/app/base/api/index/client.coffee
60
- - boilerplate/app/base/api/index/layout.html
61
- - boilerplate/app/base/api/index/server.rb
62
- - boilerplate/app/base/api/rtcp_controller.rb
63
- - boilerplate/app/base/assets/styles.css
64
- - boilerplate/app/base/boot.rb
65
- - boilerplate/app/base/core.coffee
66
- - boilerplate/app/base/helpers/application_helpers.coffee
67
- - boilerplate/app/base/helpers/application_helpers.rb
68
- - boilerplate/app/base/load.rb
69
- - boilerplate/app/base/models/base_model.rb
70
- - boilerplate/app/base/templates/access_denied.html
71
- - boilerplate/app/base/templates/layout.liquid
72
- - boilerplate/app/base/templates/layouts/main.html
73
- - boilerplate/app/base/templates/layouts/none.html
74
- - boilerplate/app/config.ru
75
- - boilerplate/app/config/config.rb
76
- - boilerplate/app/config/config.yml
77
- - boilerplate/app/config/env/development.yml
78
- - boilerplate/app/config/env/production.yml
79
- - boilerplate/app/config/env/stage.yml
80
- - boilerplate/app/config/env/test.yml
81
- - boilerplate/app/core/Gemfile
82
- - boilerplate/app/core/boot.rb
83
- - boilerplate/app/core/generate_configs.rb
84
- - boilerplate/app/core/load.rb
85
- - boilerplate/app/core/load_controllers.rb
86
- - boilerplate/app/generators/api/client.coffee
87
- - boilerplate/app/generators/api/layout.html
88
- - boilerplate/app/generators/api/server.rb
89
- - boilerplate/app/package.json
90
- - boilerplate/app/public/.ignore
91
- - boilerplate/app/tmp/.ignore
92
- - boilerplate/app/var/.ignore
93
- - boilerplate/app/webpack.config.js
94
- - boilerplate/crudle/Gemfile
95
- - boilerplate/crudle/base/core.coffee
96
- - boilerplate/crudle/base/templates/menu.html
97
- - boilerplate/crudle/generators/api/client.coffee
98
- - boilerplate/crudle/generators/api/editor.html
99
- - boilerplate/crudle/generators/api/server.rb
100
- - boilerplate/crudle/package.json
101
- - boilerplate/crudle/webpack.config.js
102
- - docker/Dockerfile
103
- - docker/run
104
- - docker/skel/build.sh
105
- - docker/skel/cleanup.sh
106
- - docker/skel/config.yml
107
- - docker/skel/prepare_build.sh
108
- - docker/skel/start.sh
109
- - docker/start
110
52
  - lib/appril.rb
111
53
  - lib/appril/base_controller.rb
112
- - lib/appril/cli.rb
113
- - lib/appril/cli/app.rb
114
- - lib/appril/cli/app/install.rb
115
- - lib/appril/cli/app/update.rb
116
- - lib/appril/cli/assertions.rb
117
- - lib/appril/cli/docker.rb
118
- - lib/appril/cli/docker/build.rb
119
- - lib/appril/cli/docker/install.rb
120
- - lib/appril/cli/docker/update.rb
121
- - lib/appril/cli/generator.rb
122
- - lib/appril/cli/helpers.rb
123
54
  - lib/appril/rtcp_controller.rb
124
55
  - lib/appril/version.rb
125
56
  homepage: https://github.com/appril/ruby-server
@@ -145,5 +76,5 @@ rubyforge_project:
145
76
  rubygems_version: 2.5.1
146
77
  signing_key:
147
78
  specification_version: 4
148
- summary: '["appril-0.0.3", "Opinionated framework for building opinionated web applications"]'
79
+ summary: '["appril-0.0.4", "Opinionated framework for building opinionated web applications"]'
149
80
  test_files: []
data/bin/appril DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $:.unshift(File.expand_path('../../lib', __FILE__))
3
- require 'appril'
4
- require 'appril/cli'
5
- Appril::CLI.new($*)
@@ -1,6 +0,0 @@
1
- .git
2
- node_modules
3
- var
4
- tmp
5
- Gemfile.lock
6
- __tmpbuildir__
@@ -1 +0,0 @@
1
- require File.expand_path('../core/load', __FILE__)
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
- # keep this line
3
- eval File.read(File.expand_path('../core/Gemfile', __FILE__))
4
-
5
- # add your gems here
6
- gem 'liquid', '~> 3'
@@ -1 +0,0 @@
1
- require File.expand_path('../core/load', __FILE__)
@@ -1,21 +0,0 @@
1
- class BaseController < Appril::BaseController
2
- include Helpers
3
-
4
- map Cfg.server_url
5
-
6
- define_layout :layout, file: '../templates/layout'
7
- layout :layout
8
- engine :Liquid
9
- define_template(:get) {''}
10
- define_template_var(:client_url, Cfg.client_url)
11
-
12
- def get
13
- render
14
- end
15
-
16
- error 500 do |e|
17
- puts "\e[0;31m%s\e[0m" % e.inspect
18
- e.backtrace && e.backtrace.each {|l| puts " \e[0;36m%s\e[0m" % l}
19
- e.message
20
- end
21
- end
@@ -1,4 +0,0 @@
1
-
2
- module.exports = (env) ->
3
- env.render
4
- template: require('./layout')
@@ -1,3 +0,0 @@
1
- <h4>
2
- Appril Successfully Installed!
3
- </h4>
@@ -1,3 +0,0 @@
1
- class Index < BaseController
2
- map Cfg.server_url
3
- end
@@ -1,22 +0,0 @@
1
- class RTCPController < Appril::RTCPController
2
- map File.join(Cfg.server_url, '__rtcp__')
3
-
4
- private
5
- # called after socket connection established
6
- def connected
7
- end
8
-
9
- # data sent to client after connection established
10
- def initialization_data
11
- {}
12
- end
13
-
14
- # merged into original env when calling a controller
15
- def rtcp_env
16
- {}
17
- end
18
-
19
- # called when socket connection closed
20
- def disconnected
21
- end
22
- end
File without changes
@@ -1,2 +0,0 @@
1
- # first file to be loaded when app starts.
2
- # it is loaded on bare metal, e.g. before any gems, configs, helpers.
@@ -1,143 +0,0 @@
1
- _ =
2
- merge: require('lodash/merge')
3
- has: require('lodash/has')
4
- isFunction: require('lodash/isFunction')
5
- #end
6
-
7
- Core = require('appril')
8
- Page = require('appril-page')
9
- Render = require('appril-ractive')
10
- Reporter = require('appril-reporter')
11
- require 'appril-polyfills'
12
- require 'assets/styles.css'
13
-
14
- CONSIDER_IDLE_AFTER = 5 * 60
15
-
16
- window.Cfg = {}
17
- window.Util = {}
18
- window.App = {}
19
- # window.Alert = require('appril-alert')
20
-
21
- for k, v of require('appril-util')
22
- Util[k] = v
23
- #end
24
-
25
- # for k, v of require('appril-datetime')
26
- # Util[k] = v
27
- # #end
28
-
29
- for k, v of require('helpers/application_helpers.coffee')
30
- Util[k] = v
31
- #end
32
-
33
- Object.freeze(Util)
34
-
35
- Render.default_el = -> '#content'
36
- Render.global_data = -> {App: App, Cfg: Cfg, Util: Util}
37
- Render.global_handlers = -> {}
38
-
39
- for name, controller of Core.controllers
40
- App[name] = controller
41
- #end
42
-
43
- Core.on_initialize = (msg) ->
44
- if window.Cfg = msg.data.cfg
45
- delete msg.data.cfg
46
- Object.freeze(Cfg)
47
- #end
48
-
49
- for k, v of msg.data
50
- App[k] = v
51
- #end
52
-
53
- Reporter CONSIDER_IDLE_AFTER, (status) ->
54
- # close connection if user went away
55
- Core.disconnect() if status == 'away'
56
- #end
57
- #end
58
-
59
- templates =
60
- none: require('templates/layouts/none')
61
- main: require('templates/layouts/main')
62
- access_denied: require('templates/access_denied')
63
- #end
64
-
65
- partials = {}
66
-
67
- deploy_api = (api) ->
68
-
69
- env = _.merge({
70
- render: Render,
71
- render_component: Render.component,
72
- render_string: Render.string
73
- }, new Page)
74
-
75
- layout = if _.has(api, 'layout')
76
- if api.layout == false
77
- 'none'
78
- else
79
- api.layout
80
- else
81
- 'main'
82
- #end
83
-
84
- if App.body
85
- # do not re-render body if current api uses same layout as previous one
86
- return new api(env) if App.body.layout == layout
87
- #end
88
-
89
- components = {}
90
-
91
- App.body = env.render
92
- el: 'body'
93
- template: templates[layout] || templates.none
94
- partials: partials
95
- components: components
96
- data: {}
97
-
98
- oncomplete: ->
99
- this.layout = layout
100
- new api(env)
101
- #end
102
- #end
103
- #end
104
-
105
- previous_api = null
106
- Core.on_controller_matched = (controller, context) ->
107
-
108
- controller.load (api) ->
109
- context.save()
110
-
111
- api.controller = controller
112
-
113
- if previous_api?.teardown
114
- previous_api.teardown()
115
- #end
116
- previous_api = api
117
-
118
- if _.has(api, 'acl')
119
- unless _.isFunction(api.acl)
120
- throw new Error("#{controller.name}.acl should be a function")
121
-
122
- if api.acl()
123
- deploy_api(api)
124
- else
125
- Render
126
- el: 'body'
127
- template: templates.main
128
- partials: partials
129
- oncomplete: ->
130
- Render(template: templates.access_denied)
131
- #end
132
-
133
- else
134
- deploy_api(api)
135
- #end
136
-
137
- #end
138
- #end
139
-
140
- document.addEventListener 'DOMContentLoaded', ->
141
- # make sure this matches the RTCPController URL
142
- Core.connect('__rtcp__')
143
- #end
@@ -1 +0,0 @@
1
- # this file will be loaded before other files found in helpers/ folder
@@ -1,4 +0,0 @@
1
- # this file will be loaded before other files found in helpers/ folder
2
- module Helpers
3
-
4
- end
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- <h4>
2
- Please authorize to view this page
3
- </h4>
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
6
- <script type="text/javascript">window.module = {}</script>
7
- <script src="{{client_url}}/core.js"></script>
8
- <link rel="stylesheet" href="{{client_url}}/core.css">
9
- </head>
10
- <body></body>
11
- </html>
@@ -1 +0,0 @@
1
- <div id="content"></div>
@@ -1 +0,0 @@
1
- <div id="content"></div>
@@ -1,9 +0,0 @@
1
-
2
- # loading .yml configs from current directory. config.yml will be loaded first.
3
- Cfg = Appril.load_config(File.expand_path('..', __FILE__))
4
-
5
- # it is highly recommended to freeze configs so they stay unaltered on runtime.
6
- Cfg.freeze
7
-
8
- # loading any .rb files in current dir. this one will be skipped automatically.
9
- Dir[File.expand_path('../**/*.rb', __FILE__)].each {|f| require(f)}
@@ -1,18 +0,0 @@
1
-
2
- # configs here will be the same on all environments.
3
- # if some configs differs on some environment,
4
- # put them into appropriate env/[ENVIRONMENT].yml file
5
-
6
- # multiple .yml files allowed in config folder.
7
- # for example config/db.yml file will be loaded into Cfg.db in server app.
8
- # arbitrary .yml files can have environment related configs.
9
-
10
-
11
- # base URL for server app
12
- server_url: /
13
-
14
- # base URL for compiled client app
15
- client_url: /app
16
-
17
- # where webpack should install compiled app. relative to webpack.config.js
18
- client_path: ./public
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- require File.expand_path('../core/load', __FILE__)
2
-
3
- run RocketIO::Application.new
@@ -1,4 +0,0 @@
1
- # do NOT edit this file, edit ../Gemfile instead
2
- gem 'appril'
3
- gem 'rocketio', '~> 0.0.8'
4
- gem 'tubesock'
@@ -1,16 +0,0 @@
1
- # do NOT edit this file, edit base/boot.rb instead
2
-
3
- require 'yaml'
4
-
5
- Dir.chdir File.expand_path('../..', __FILE__) do
6
- require './base/boot'
7
-
8
- require 'bundler/setup'
9
- Bundler.require(:default)
10
- Bundler.require(RocketIO.environment)
11
-
12
- require './config/config'
13
-
14
- require './base/helpers/application_helpers'
15
- Dir['./base/helpers/**/*.rb'].each {|f| require(f)}
16
- end
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # do NOT edit this file
4
-
5
- require File.expand_path('../load', __FILE__)
6
-
7
- Appril.generate_configs(File.expand_path('../..', __FILE__))
@@ -1,14 +0,0 @@
1
- # do NOT edit this file, edit base/load.rb instead
2
-
3
- %w[
4
- boot
5
- ../base/load
6
- ].each {|f| require File.expand_path("../#{f}", __FILE__)}
7
-
8
- %w[
9
- base_model.rb
10
- *.rb
11
- **/*.rb
12
- ].each {|p| Dir[File.expand_path("../../base/models/#{p}", __FILE__)].each {|f| require(f)}}
13
-
14
- require File.expand_path('../load_controllers', __FILE__)
@@ -1,14 +0,0 @@
1
- # do NOT edit this file, edit base/load_controllers.rb instead
2
-
3
- Dir.chdir File.expand_path('../../base/api', __FILE__) do
4
-
5
- require './base_controller'
6
- require './rtcp_controller'
7
-
8
- %w[
9
- ./**/server.rb
10
- ].each_with_object([]) {|pattern,o| o.concat(Dir[pattern])}.sort {|a,b|
11
- a.split(/\/+/).size <=> b.split(/\/+/).size
12
- }.each {|f| require(f)}
13
-
14
- end
@@ -1,4 +0,0 @@
1
-
2
- module.exports = (env) ->
3
- env.render
4
- template: require('./layout')
File without changes
@@ -1,3 +0,0 @@
1
- class CONTROLLER_NAME < BaseController
2
-
3
- end
@@ -1,10 +0,0 @@
1
- {
2
- "name": "MyApp",
3
- "version": "0.0.0",
4
- "description": "...",
5
- "dependencies": {
6
- "appril": "*",
7
- "appril-ractive": "*",
8
- "extract-text-webpack-plugin": "1"
9
- }
10
- }