fie 0.3.3 → 0.3.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
- SHA1:
3
- metadata.gz: 155692e3c91858b2b1a70fb6def818b2381e7e18
4
- data.tar.gz: 33672bc19dc57be4a2ec61ddbb4bb573763b5e10
2
+ SHA256:
3
+ metadata.gz: c748124fd2372dbc5b67bc21d49fa67721fb7f46afe37c7e048a103361d1d89c
4
+ data.tar.gz: e4c4ce9a426be4fcf884196d03343d16fe8c3b742392d57235fa7d8b12fac052
5
5
  SHA512:
6
- metadata.gz: e56bb4cb01c5268bab2e59b38e7558535fea2b6b4bed9390f762f1ac24e22fce21c848aed4859574d5588ba700201d9055e2636678773f428afa07df09351375
7
- data.tar.gz: 389e2cca0aaf804d93d81f4cfe2d2852309bdbdc82166eb69494113aeac07c8683012758a0bd65c72963a36c5fce76414ef780998bdb4454c2be859fe15de548
6
+ metadata.gz: 28ba3a65131417a3bb596f371931f3b9c355c628d9e510b5b948f3edf999730cdeb9144d965941af6471234206373a22b1c5d5ed0f2c15130ed5a447f20eadc7
7
+ data.tar.gz: 919fdd4ed70d417f2c1d2e7cebee01348ec98e2680636fbf24c1361312648c09323fdfa025353fa051b3fa7a0acbc75c3d1a63d19aaf16a0c2a4cb6315544092
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -20,45 +20,55 @@ fie therefore replaces traditional Javascript frontend frameworks while requirin
20
20
  ## Installation
21
21
 
22
22
  1. Add the gem to your gemfile like so:
23
+
23
24
  ```ruby
24
- gem 'fie', '~> 0.3.3'
25
+ gem 'fie', '~> 0.3.4'
25
26
  ```
27
+
26
28
  2. Run the bundler
29
+
27
30
  ```bash
28
31
  $ bundle install
29
32
  ```
33
+
30
34
  3. Replace yield in your main layout with `<%= render template: 'layouts/fie' %>`. Below is an example.
31
- * Old:
32
- ```erb
33
- <!DOCTYPE html>
34
- <html>
35
- <head>
36
- <title>Fie</title>
37
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
38
- <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
39
- </head>
40
-
41
- <body>
42
- <%= yield %>
43
- </body>
44
- </html>
45
- ```
46
- * New:
47
- ```erb
48
- <!DOCTYPE html>
49
- <html>
50
- <head>
51
- <title>Fie</title>
52
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
53
- <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
54
- </head>
55
-
56
- <body>
57
- <%= render template: 'layouts/fie' %>
58
- </body>
59
- </html>
60
- ```
35
+
36
+ - Old:
37
+
38
+ ```erb
39
+ <!DOCTYPE html>
40
+ <html>
41
+ <head>
42
+ <title>Fie</title>
43
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
44
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
45
+ </head>
46
+
47
+ <body>
48
+ <%= yield %>
49
+ </body>
50
+ </html>
51
+ ```
52
+
53
+ - New:
54
+
55
+ ```erb
56
+ <!DOCTYPE html>
57
+ <html>
58
+ <head>
59
+ <title>Fie</title>
60
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
61
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
62
+ </head>
63
+
64
+ <body>
65
+ <%= render template: 'layouts/fie' %>
66
+ </body>
67
+ </html>
68
+ ```
69
+
61
70
  4. Add `//= require fie` to your `app/assets/application.js` file.
71
+
62
72
  ```javascript
63
73
  //= require rails-ujs
64
74
  //= require turbolinks
@@ -67,6 +77,7 @@ $ bundle install
67
77
  ```
68
78
 
69
79
  5. Ensure action cable uses Redis in development by changing async to redis in `config/cable.yml`.
80
+
70
81
  ```yaml
71
82
  redis: &redis
72
83
  adapter: redis
@@ -117,4 +128,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
117
128
 
118
129
  ## Code of Conduct
119
130
 
120
- Everyone interacting in the Fie project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fie/blob/master/CODE_OF_CONDUCT.md).
131
+ Everyone interacting in the Fie project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fie/blob/master/CODE_OF_CONDUCT.md).
File without changes
data/bin/setup CHANGED
File without changes
data/lib/fie.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Fie
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
File without changes
@@ -6,8 +6,12 @@ import { camelize } from 'humps';
6
6
  export class Cable {
7
7
  constructor() {
8
8
  const connectionUUID = uuid();
9
- let commanderName = `${ camelize(this._controllerName) }Commander`;
10
- commanderName = commanderName.charAt(0).toUpperCase() + commanderName.slice(1);
9
+
10
+ let commanderName = this._controllerName.split('/').map(commanderNamePart => {
11
+ commanderNamePart = `${ camelize(commanderNamePart) }`;
12
+ commanderNamePart = commanderNamePart.charAt(0).toUpperCase() + commanderNamePart.slice(1);
13
+ return commanderNamePart;
14
+ }).join('::').concat('Commander');
11
15
 
12
16
  this.commander = new Commander(commanderName, connectionUUID, this);
13
17
  this.pools = {};
@@ -69,4 +73,4 @@ export class Cable {
69
73
  get _viewNameElement() {
70
74
  return document.querySelector('[fie-controller]:not([fie-controller=""])');
71
75
  }
72
- }
76
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eran Peer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -273,19 +273,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  version: '0'
274
274
  requirements: []
275
275
  rubyforge_project:
276
- rubygems_version: 2.5.2.1
276
+ rubygems_version: 2.7.6
277
277
  signing_key:
278
278
  specification_version: 4
279
279
  summary: Fie is a Rails-centric frontend framework running over a permanent WebSocket
280
280
  connection.
281
281
  test_files:
282
+ - spec/spec_helper.rb
283
+ - spec/test_models/circular_dependency.rb
284
+ - spec/test_models/user.rb
285
+ - spec/test_controllers/application_controller.rb
286
+ - spec/support/helper_methods.rb
287
+ - spec/fie/state_spec.rb
282
288
  - spec/fie/changelog_spec.rb
283
289
  - spec/fie/commander_spec.rb
284
290
  - spec/fie/pools_spec.rb
285
- - spec/fie/state_spec.rb
286
291
  - spec/rails_helper.rb
287
- - spec/spec_helper.rb
288
- - spec/support/helper_methods.rb
289
- - spec/test_controllers/application_controller.rb
290
- - spec/test_models/circular_dependency.rb
291
- - spec/test_models/user.rb