hyperloop 0.5.1 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -0
- data/lib/generators/hyper/templates/component_template.rb +2 -2
- data/lib/generators/hyperloop/install_generator.rb +19 -7
- data/lib/hyperloop/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26f8b5b8a841fa563929d31952d4eda9e79aee30
|
4
|
+
data.tar.gz: a76f948a65f74898032b8f700b7d0c0dc7c67001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 196d5f00a3f1eda545c6865a0166a4bb87c0227b529d22cdaf3204548ae5863bf556cf327a250c53faa273f32271dd8f9b64ea9460d2290532792ad03358f54c
|
7
|
+
data.tar.gz: 730ee0fcb1f79cd4d4b6a319ab767b86b485d0c969214e295598018cf110478b75a46f6435664e50bd811534444339abf0b092b7a0865704f04c62d92162627d
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
## Hyperloop - The Complete Isomorphic Ruby Framework
|
3
|
+
|
4
|
+
Hyperloop works great with new or existing rails apps, so it's pain free to introduce it to your application.
|
5
|
+
|
6
|
+
Hyperloop has been tested with the most recent Ruby On Rails verions:<br> Rails (4.2), Rails (5.0) and the last Rails (5.1.0.rc1).
|
7
|
+
|
8
|
+
|
9
|
+
### Setup
|
10
|
+
|
11
|
+
In your `Gemfile`
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'hyperloop'
|
15
|
+
```
|
16
|
+
|
17
|
+
then
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
bundle install
|
21
|
+
```
|
22
|
+
|
23
|
+
Once the Hyperloop Gem and all its dependencies have been installed, it's time to run the hyperloop install generator.
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
rails g hyperloop:install
|
27
|
+
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
<%- @modules.each do |module_name| %><%= " "* @indet %>module <%= module_name.camelize %><%- @indet += 1 %>
|
3
3
|
<%- end %><%=" "* @indet %>class <%= @file_name %> < Hyperloop::Component
|
4
4
|
|
@@ -38,4 +38,4 @@ module Components
|
|
38
38
|
<%=" "* @indet %>end
|
39
39
|
<%=" "* @indet %>end
|
40
40
|
<%- @modules.each do %><%- @indet -= 1 %><%=" "* @indet %>end
|
41
|
-
<%- end %>
|
41
|
+
<%- end %>
|
@@ -11,7 +11,7 @@ module Hyperloop
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def inject_engine_to_routes
|
14
|
-
route 'mount Hyperloop::Engine => \'/
|
14
|
+
route 'mount Hyperloop::Engine => \'/rr\''
|
15
15
|
end
|
16
16
|
|
17
17
|
def create_hyperloop_directories
|
@@ -22,13 +22,13 @@ module Hyperloop
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def create_policies_directory
|
25
|
-
create_file 'app/policies/
|
26
|
-
# app/policies/application_policy
|
25
|
+
create_file 'app/policies/application_policy.rb', <<-RUBY
|
26
|
+
# app/policies/application_policy
|
27
27
|
|
28
|
-
# Policies regulate access to your public models
|
29
|
-
# The following policy will open up full access (but only in development)
|
30
|
-
# The policy system is very flexible and powerful. See the documentation
|
31
|
-
# for complete details.
|
28
|
+
# Policies regulate access to your public models
|
29
|
+
# The following policy will open up full access (but only in development)
|
30
|
+
# The policy system is very flexible and powerful. See the documentation
|
31
|
+
# for complete details.
|
32
32
|
class Hyperloop::ApplicationPolicy
|
33
33
|
# Allow any session to connect:
|
34
34
|
always_allow_connection
|
@@ -40,6 +40,18 @@ end unless Rails.env.production?
|
|
40
40
|
RUBY
|
41
41
|
end
|
42
42
|
|
43
|
+
def create_initializer
|
44
|
+
create_file 'config/initializers/hyperloop.rb', <<-RUBY
|
45
|
+
|
46
|
+
Hyperloop.configuration do |config|
|
47
|
+
config.transport = :simple_poller
|
48
|
+
config.import 'reactrb/auto-import'
|
49
|
+
end
|
50
|
+
|
51
|
+
RUBY
|
52
|
+
|
53
|
+
end
|
54
|
+
|
43
55
|
def add_gems
|
44
56
|
end
|
45
57
|
end
|
data/lib/hyperloop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyperloop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loic Boutet
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-03-
|
13
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hyper-model
|
@@ -105,6 +105,7 @@ extra_rdoc_files: []
|
|
105
105
|
files:
|
106
106
|
- ".gitignore"
|
107
107
|
- LICENSE
|
108
|
+
- README.md
|
108
109
|
- hyperloop.gemspec
|
109
110
|
- lib/generators/hyper/component_generator.rb
|
110
111
|
- lib/generators/hyper/router_generator.rb
|