rails_plan 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_plan/cli/fetch_template.rb +3 -2
- data/lib/rails_plan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adfb87595cac42decf1098d7fcd97fd170009a66e2509648cd7e9582357ac52b
|
4
|
+
data.tar.gz: c46e8c36e1ecfac2e8e09d0c9ad338fe262d3638ffea2c37a55900fb8a0538ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68526feb2ea605eeb04481a6d1ed0d395e28f25674b9f0ba9a2150d6a5eb91e33c3d9ff3c64f167814138753240db9295f51a6a28cad262db2c8c45bc64e1b7a
|
7
|
+
data.tar.gz: de67602993fcac62e9f3fe4ee3a657b3331beb3e1b4306c8eab10eba20a226f0b2aa6e8004a0b896bb1c988a39374e425235a86accce7e0214436bd8aa786a9a
|
@@ -3,10 +3,11 @@
|
|
3
3
|
module RailsPlan
|
4
4
|
module Cli
|
5
5
|
class FetchTemplate
|
6
|
-
|
6
|
+
API_HOST = 'https://railsplan.com'
|
7
7
|
|
8
8
|
def call(uid)
|
9
|
-
|
9
|
+
api_url = ENV.fetch('API_HOST', API_HOST)
|
10
|
+
response = RestClient.get(api_url + "/api/v1/plans/#{uid}") { |res| res }
|
10
11
|
|
11
12
|
return if response.code != 200
|
12
13
|
|
data/lib/rails_plan/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_plan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Dąbrowski
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
|
-
rubygems_version: 3.
|
62
|
+
rubygems_version: 3.4.10
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Speed up Rails app planning and development process
|