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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa0ddd99e971bdbe0772fb7939f5aeeee0e2e20c
4
- data.tar.gz: b7ebdf665515ff67f7ada894ad04159ccceaa418
3
+ metadata.gz: 26f8b5b8a841fa563929d31952d4eda9e79aee30
4
+ data.tar.gz: a76f948a65f74898032b8f700b7d0c0dc7c67001
5
5
  SHA512:
6
- metadata.gz: 9b937beefbfc81973f968e272320f335289b14d6c6abe6a9669950034ea9b37c213c84c2eb39e4b242130609082d06f2be0513735d298f1a081fcdee5c466930
7
- data.tar.gz: 640118446a832f0feddd5054bc98ffcaf5df42ca44bd0469b3797cc0cecb0b0e89b714c35d915da9cd733eff0edeab5d93deb2f5feefc6a59de47112de8090e2
6
+ metadata.gz: 196d5f00a3f1eda545c6865a0166a4bb87c0227b529d22cdaf3204548ae5863bf556cf327a250c53faa273f32271dd8f9b64ea9460d2290532792ad03358f54c
7
+ data.tar.gz: 730ee0fcb1f79cd4d4b6a319ab767b86b485d0c969214e295598018cf110478b75a46f6435664e50bd811534444339abf0b092b7a0865704f04c62d92162627d
@@ -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
- module Components
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 %>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 => \'/hyperloop\''
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/hyperloop_application_policy.rb', <<-RUBY
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
@@ -1,3 +1,3 @@
1
1
  module Hyperloop
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.4'
3
3
  end
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.1
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-25 00:00:00.000000000 Z
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