fly-atc 0.0.5 → 0.0.7

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
  SHA256:
3
- metadata.gz: f7e2d27f93e6ccc1be1e0237639ec7be370c091069913421260e60d81a685a67
4
- data.tar.gz: 492e59fe13b7bf98595034070801a06b4f62034a27132fde0aa855245cd3c6c2
3
+ metadata.gz: 16a3810b2776e8b39f060186b0d02fe331cdd11bf4db1c0d08c44670959903df
4
+ data.tar.gz: 6e161ddf3412e7d656ae676a261dddec676352f9947b807ae08dc515eaf9971c
5
5
  SHA512:
6
- metadata.gz: 0fdd3c481f1df37597266613f9cd987e98a80f8ce08091837974e0c0553e4e5dbe44cdaf992ba39d81d5ee35333e53d4816614512a382e80ce8e6a5372cf59e4
7
- data.tar.gz: a2e73b9529e7acc80c3bde4d59e194d3c5b31e2cf98f2287d42d01c2451fc9e97fd73253d6e7ec5789c442f73da697c02c90825a89852ff5f14a064225cd91ef
6
+ metadata.gz: 530ceabf012087f460e7645ceaaec682bec787a7aa03a9ca479df4123eaf9beec7eb9d2a624e2b208f9936a6986c61d4d4fcaa456321858eb5a3d336dd1f7fe8
7
+ data.tar.gz: 3866bc363be975c8759cc1bf88904c6b357e1e81804b6a8d31b54e13cc793816f824611ff4fadae89fbe63eaa964495c2e83de82fee5a7d8a49702a73df98851
data/README.md CHANGED
@@ -24,8 +24,6 @@ bin/rails generate atc
24
24
 
25
25
  Edit `config/atc.yml` as needed.
26
26
 
27
- Fly.io's dockerfile generators will be able to help with this.
28
-
29
27
  For approximately $1 US per month, you can run:
30
28
  * [1 performance machine with 2Gb of RAM, 10GB of bandwidth, and 5GB of storage for 15 hours/month](https://fly.io/calculator?m=0_0_0_0_0&f=c&b=iad.10&a=no_none&r=shared_0_1_iad&t=10_100_5&u=0_1_100&g=1_performance_15_1_2048_iad_1024_0).
31
29
  * [1 shared machine with 1Gb of RAM, 10GB of bandwidth, and 5GB of storage for 80 hours/month](https://fly.io/calculator?m=0_0_0_0_0&f=c&b=iad.10&a=no_none&r=shared_0_1_iad&t=10_100_5&u=0_1_100&g=1_shared_80_1_1048_iad_1024_0).
@@ -1,3 +1,3 @@
1
1
  module FlyAtc
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -7,8 +7,8 @@ class AtcGenerator < Rails::Generators::Base
7
7
  @routes = IO.read("config/routes.rb")
8
8
 
9
9
  unless @routes.include? "fly_atc_scope"
10
- _, prolog, routes = routes.split(/(.*Rails.application.routes.draw do\n)/m,2)
11
- routes, epilog, _ = @routes.split(/^(end.*)/m,2)
10
+ _, prolog, routes = @routes.split(/(.*Rails.application.routes.draw do\n)/m,2)
11
+ routes, epilog, _ = routes.split(/^(end.*)/m,2)
12
12
  routes = routes.split(/\n\s*\n/)
13
13
  scoped = routes.select {|route| route =~ /^\s*\w/ && !route.include?('as:')}
14
14
 
@@ -40,5 +40,15 @@ class AtcGenerator < Rails::Generators::Base
40
40
  end
41
41
 
42
42
  template "application.html.erb", "app/views/layouts/application.html.erb"
43
+
44
+ ### bin/fly-atc
45
+
46
+ unless File.exist?("bin/fly-atc")
47
+ system "bundle binstubs fly-atc"
48
+ end
49
+
50
+ ### Dockerfile
51
+
52
+ gsub_file "Dockerfile", "bin/thrust", "bin/fly-atc"
43
53
  end
44
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly-atc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2024-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails