hyperloop 0.5.6 → 0.5.8

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: 071f0464fd82696b233eaa22fcc2fe9dd41ed67c
4
- data.tar.gz: 63b84530dcbf79cfaa6014b45a610f09e69f8105
3
+ metadata.gz: 302a5913bb059f7c320bccd8f4d87b073450ed0f
4
+ data.tar.gz: b28f02b32ee68bf58827cb5e6770c92a860f64fd
5
5
  SHA512:
6
- metadata.gz: bf9473118019e77856f1b06d7233a7462432d52b3e7ec256971774c4d13a64992222fe308bfdd252a8cda28fdcf63c94a8be6985e33fb0b9e30fb4911cf214b0
7
- data.tar.gz: 7154c54c14f75d0676b6a6a88e3c78a81c6e411726395d2a114b02e965c99d91efa807bdad0b262ce4eef0acc21542e7e821245c79fc8ae879502bb167b31e29
6
+ metadata.gz: 66aff333fd33888da53d2e890045d7204db0e53740a543f13965ed554df29bab438f859f7baff4c898316bef1fc4ddf6fd1f8fbe41846aca10c07c70baf8be3b
7
+ data.tar.gz: 91632b0563bf7d803ca5ef725b4917e1199d4e075c9f785a61a55de44c7dda7a03bcf14eeec3b95b1faeef541105a43d51747a5f6b032d1911f87e936e19fe74
data/README.md CHANGED
@@ -1,8 +1,17 @@
1
- # Welcome to Hyperloop
1
+ <p align="center">
2
+ <a href="http://ruby-hyperloop.io/" alt="Hyperloop" title="Hyperloop">
3
+ <img src="https://github.com/ruby-hyperloop/hyperloop/blob/master/hyperloop-logo-small-pink.png">
4
+ </a>
5
+ </p>
2
6
 
3
- ![Screen](https://github.com/ruby-hyperloop/hyperloop/blob/master/hyperloop-logo-small-pink.png)
7
+ <h1 align="center">
8
+ Hyperloop
9
+ </h1>
10
+
11
+ <h3 align="center">The Complete Isomorphic Ruby Framework</h3>
12
+
13
+ <p align="center">
4
14
 
5
- ## Hyperloop - The Complete Isomorphic Ruby Framework
6
15
 
7
16
  ### Simplicity
8
17
  Build interactive Web applications quickly. **Hyperloop** encourages rapid development with clean, pragmatic design. With developer productivity as our highest goal, **Hyperloop** takes care of much of the hassle of Web development, so you can focus on innovation and delivering end-user value.
@@ -13,10 +22,12 @@ One language. One model. One set of tests. The same business logic and domain mo
13
22
  ### Complete Architecture
14
23
  Everything has a place in our architecture. **C**omponents deliver interactive user experiences, **O**perations encapsulate business logic, **M**odels magically synchronize data between clients and servers, **P**olicies govern authorization and **S**tores hold local state.
15
24
 
25
+ </p>
26
+
16
27
  ## Getting Started
17
28
 
18
29
  1. Update your Gemfile:
19
-
30
+
20
31
  ```ruby
21
32
  #Gemfile
22
33
 
@@ -40,5 +51,4 @@ gem 'hyperloop'
40
51
 
41
52
  ## License
42
53
 
43
- Ruby on Rails is released under the [MIT License](http://www.opensource.org/licenses/MIT).
44
-
54
+ Hyperloop is released under the [MIT License](http://www.opensource.org/licenses/MIT).
@@ -32,7 +32,7 @@
32
32
  <%=" "* @indet %>end
33
33
 
34
34
  <%=" "* @indet %>def render
35
- <%=" "* @indet %> div do
35
+ <%=" "* @indet %> DIV do
36
36
  <%=" "* @indet %> "<%= (@modules+[@file_name]).join('::') %>"
37
37
  <%=" "* @indet %> end
38
38
  <%=" "* @indet %>end
@@ -29,7 +29,7 @@ module Components
29
29
  <%=" "* @indet %>end
30
30
 
31
31
  <%=" "* @indet %>def show # note that the top level router has a show method NOT render
32
- <%=" "* @indet %> div do
32
+ <%=" "* @indet %> DIV do
33
33
  <%=" "* @indet %> # content to display on every route
34
34
  <%=" "* @indet %> # link generates an anchor tag.
35
35
  <%=" "* @indet %> link(to: :subroute3, params: {user_id: 12}, class: "link-class") { "Click to go to subroute3" }
@@ -5,6 +5,8 @@ module Hyperloop
5
5
  def inject_react_file_js
6
6
  append_file 'app/assets/javascripts/application.js' do
7
7
  <<-'JS'
8
+ //= require jquery
9
+ //= require jquery_ujs
8
10
  //= require hyperloop-loader
9
11
  JS
10
12
  end
@@ -23,12 +25,12 @@ module Hyperloop
23
25
 
24
26
  def create_policies_directory
25
27
  create_file 'app/policies/application_policy.rb', <<-RUBY
26
- # app/policies/application_policy
28
+ # app/policies/application_policy
27
29
 
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.
30
+ # Policies regulate access to your public models
31
+ # The following policy will open up full access (but only in development)
32
+ # The policy system is very flexible and powerful. See the documentation
33
+ # for complete details.
32
34
  class Hyperloop::ApplicationPolicy
33
35
  # Allow any session to connect:
34
36
  always_allow_connection
@@ -42,13 +44,14 @@ end unless Rails.env.production?
42
44
 
43
45
  def create_initializer
44
46
  create_file 'config/initializers/hyperloop.rb', <<-RUBY
45
-
47
+ # config/initializers/hyperloop.rb
48
+ # If you are not using ActionCable, see http://ruby-hyperloop.io/docs/models/configuring-transport/
46
49
  Hyperloop.configuration do |config|
47
- config.transport = :simple_poller
50
+ config.transport = :action_cable
51
+ config.import 'reactrb/auto-import'
48
52
  end
49
53
 
50
54
  RUBY
51
-
52
55
  end
53
56
 
54
57
  def add_gems
@@ -1,3 +1,3 @@
1
1
  module Hyperloop
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.8'
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.6
4
+ version: 0.5.8
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-04-10 00:00:00.000000000 Z
13
+ date: 2017-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hyper-model
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.5.1
152
+ rubygems_version: 2.6.11
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Hyperloop stack and generators for Rails