rails_plan 0.0.7 → 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: c120072574ceab85cebfdf4dbff6ea538f86bfc45cf3e2114515c893c970a19d
4
- data.tar.gz: 076ac348807b97c738c1ce09c3967128718edb2f80fc88a21ca1a8cc77136d9e
3
+ metadata.gz: adfb87595cac42decf1098d7fcd97fd170009a66e2509648cd7e9582357ac52b
4
+ data.tar.gz: c46e8c36e1ecfac2e8e09d0c9ad338fe262d3638ffea2c37a55900fb8a0538ef
5
5
  SHA512:
6
- metadata.gz: d943627018d8b309973d88edfc7c2835c6ea80088942745c0f17a153e38c7242d01f57b4d37150e8a76fe0c3534aff77d4d3eee08b4ca36029e7fdb707ce9096
7
- data.tar.gz: 9d8a83dc63e9cad059715f22b18d318fa6ea074fb4c960010a300bd085379ca853b8c08ca497cdcefa31921192a82a1a928511f8681c450925d168dfc7475326
6
+ metadata.gz: 68526feb2ea605eeb04481a6d1ed0d395e28f25674b9f0ba9a2150d6a5eb91e33c3d9ff3c64f167814138753240db9295f51a6a28cad262db2c8c45bc64e1b7a
7
+ data.tar.gz: de67602993fcac62e9f3fe4ee3a657b3331beb3e1b4306c8eab10eba20a226f0b2aa6e8004a0b896bb1c988a39374e425235a86accce7e0214436bd8aa786a9a
@@ -3,11 +3,11 @@
3
3
  module RailsPlan
4
4
  module Cli
5
5
  class FetchTemplate
6
- # API_URL = 'https://railsplan.com/api/v1'
7
- API_URL = 'http://localhost:3000/api/v1'
6
+ API_HOST = 'https://railsplan.com'
8
7
 
9
8
  def call(uid)
10
- 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 }
11
11
 
12
12
  return if response.code != 200
13
13
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPlan
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_plan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Dąbrowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-13 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client