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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5a42c784799064bc10b367f99e14cf35b393aa8e820903daa8c2424fc773d12
4
- data.tar.gz: 6c625013fb09d836965c876f7c0182f077ea4314dad2809cc009a2986f252a3a
3
+ metadata.gz: adfb87595cac42decf1098d7fcd97fd170009a66e2509648cd7e9582357ac52b
4
+ data.tar.gz: c46e8c36e1ecfac2e8e09d0c9ad338fe262d3638ffea2c37a55900fb8a0538ef
5
5
  SHA512:
6
- metadata.gz: f893b503e24860a6ca219bdb575d5058cc7c0df4ff740a32c706611af7dbb9cf1d2ba66067523b93b291b957e292bbd444837a31afb416f67cf6c831ccd103db
7
- data.tar.gz: 9921a066fe3229b6d999852e7b38a0f522abb50a74117e84db78b14fcee8b190b345356718a57a4b2fdde4cb6dc9f2bdb6de4049a6b611ff59d680fb7d5e1baf
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
- API_URL = 'https://railsplan.com/api/v1'
6
+ API_HOST = 'https://railsplan.com'
7
7
 
8
8
  def call(uid)
9
- response = RestClient.get(API_URL + "/plans/#{uid}") { |res| res }
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPlan
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
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.8
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.2.32
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