attractor-rails 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 839e5677606f57d100c540ed9174b861f023fea46d2971f8d764a9041d03541e
4
- data.tar.gz: 6bc124d3f394777e1b9606d32ae7e9a4e054ff0d9e36657c202e4054fc8c2710
3
+ metadata.gz: 4d741f35aa01cadef85314280cac84e400c9be31b1f5ef185e728471cecf1554
4
+ data.tar.gz: 47764a51fd24a0b3a8a11471d1ede308bb7de8625b72a90d7a1adf5c990a70ce
5
5
  SHA512:
6
- metadata.gz: bd9888f9f014fd6ebb77374056804fca152f127d1b82ecad4770c75e1fd7801e5a72a37a0f9bc618864f3712e7702d442f26fc2ab015e27127869e39afb208dc
7
- data.tar.gz: f9febb52b9b74e5d3748a2b07d630cb444d7e34a7a7a42d6f035db273568f5e30f4b08e89d3d0b77d9c1645d6313fa228f606ef2ce233d49c5b0ebf768acbaf9
6
+ metadata.gz: c73937407e21d58766c7b32a4e7551804318ddd416ef497df1557359482b8f740e2a9f8033f59c4338db7fab2f6950f261dfae92ca338f65791d01fb9fc2bc47
7
+ data.tar.gz: 2ad491522418c89d2be4368baa90d4fd85acdcfbcaec8902bdd1434964fa8740d19492655b5186ac7dd0d3c2e90bd43e78e4d94ff4c89a84bb35ade1361c8daf
data/README.md CHANGED
@@ -77,7 +77,9 @@ Rails.application.routes.draw do
77
77
  end
78
78
  ```
79
79
 
80
- And that's it! Browse to http://localhost:3000/attractor and enjoy your code metrics!
80
+ And that's it! Browse to http://localhost:3000/attractor/ and enjoy your code metrics!
81
+
82
+ **NOTE: due to the forwarding of requests to the attractor gem in the background, the `/` at the end is important! Don't leave it out.**
81
83
 
82
84
  ## Configuration
83
85
 
@@ -1,2 +1,22 @@
1
- <h1>Reporter#index</h1>
2
- <p>Find me in app/views/attractor/rails/reporter/index.html.erb</p>
1
+ <html>
2
+ <head>
3
+ <link href="https://fonts.googleapis.com/css?family=Red+Hat+Display|Red+Hat+Text&display=swap" rel="stylesheet">
4
+ <link href="stylesheets/main.css" rel="stylesheet" />
5
+ <title>Attractor Output</title>
6
+ <link rel="icon" type="image/png" href="images/attractor_favicon.png">
7
+ <script type="text/javascript">
8
+ window.types = <%= raw(@types.to_json) %>
9
+ </script>
10
+ <script src="javascripts/index.pack.js"></script>
11
+ </head>
12
+ <body class="d-flex flex-column h-100">
13
+ <div id="react-root"></div>
14
+ <footer class="footer mt-auto py-3 fixed-bottom">
15
+ <div class="container d-flex justify-content-end">
16
+ <span class="mx-3"><a target="_blank" href="https://www.patreon.com/user?u=24747270">Patreon</a></span>
17
+ <span class="mx-3"><a target="_blank" href="https://github.com/julianrubisch/attractor">Github</a></span>
18
+ <span class="mx-3"><a target="_blank" href="https://twitter.com/AttractorGem">Twitter</a></span>
19
+ </div>
20
+ </footer>
21
+ </body>
22
+ </html>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Attractor rails</title>
5
+ <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "attractor/rails/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+
12
+ <%= yield %>
13
+
14
+ </body>
15
+ </html>
@@ -1,5 +1,5 @@
1
1
  module Attractor
2
2
  module Rails
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attractor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Rubisch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2021-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 6.0.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 6.0.3
27
27
  - !ruby/object:Gem::Dependency
@@ -125,6 +125,7 @@ files:
125
125
  - app/views/attractor/rails/reporter/index.html.erb
126
126
  - app/views/attractor/rails/reporter/index.html.erb~
127
127
  - app/views/layouts/attractor/rails/application.html.erb
128
+ - app/views/layouts/attractor/rails/application.html.erb~
128
129
  - config/routes.rb
129
130
  - config/routes.rb~
130
131
  - lib/attractor/rails.rb