fly-atc 0.0.6 → 0.0.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
  SHA256:
3
- metadata.gz: d66960f7945690cf6eb8acabf3b6fe304c2f6c2af5d599af3ef148498b708cf7
4
- data.tar.gz: 10a9385ebb3e973f0f877224360f591251ee4119cade6b1b96f75d375e181f86
3
+ metadata.gz: d4f8296010f4a68991e71325f292804c39e21045e99e6a7ca94e708bf0caae90
4
+ data.tar.gz: 28f05c51af062ee928cf5128570466e1a32e92abf0f36b61dc9fbf81cd0e208f
5
5
  SHA512:
6
- metadata.gz: eac3abdaa4f35ef1cf03ff5435eac2032f506a70ceb654a3203670ed7b7a2d934cf81376e466931d85cf720380af1b85e40a17665e0fab446d2426cc94fba5ea
7
- data.tar.gz: 78000dcc8452bc955bfbae3c28c74c6824c85fdd8070af89d1b8567c1afb2d6a29871dbbc8bf4919aca52e3ab0ae82b03a41a2c38d75b73cb0d8e617363b635e
6
+ metadata.gz: 581c4467bd17ff512dda5840404d693f095ea7b3fea63066a90256841ab0780ad0de328ec5dce4b5aa7af0777b612ddd5a6278f67392fcff9b62a3d0e60d6e2f
7
+ data.tar.gz: 1f08d2121fcb1a9bd323f72c08e89a002f6b036f3209717597c102269fb83138ada3e8fbde2a51c65f230f63f6c79ae0a991fc3dddb16b640db812347592b4d3
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.6"
2
+ VERSION = "0.0.8"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fly-atc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby