riddl 0.99.251 → 0.99.252

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f31b4c6dbd6943a80f4fe56b1bac9bbae589b4c
4
- data.tar.gz: cb4df6a929ec0980612e1959448abb1cfe301d34
3
+ metadata.gz: 1b3743b37bac10c5911626b5ab751bbf20d23f2d
4
+ data.tar.gz: 7001b026ad97ac0641caf91e868104ba91f339bd
5
5
  SHA512:
6
- metadata.gz: 3d9921cd7ce15254b8833e747fe1b8c1aa97fb8f31c5ffa05171f70c69927f045c5830e415210aa0b9d8f07dccaf5b9ede623660551aac8894f500d043f53807
7
- data.tar.gz: 14f58ca1b5a2fe31f109bfe83126b87e981fe896adb7295f14256e51413241782444ac62dd4e0a1ab437208b15ed9a86d407d0b9f350f37bbaaf5994072fa21e
6
+ metadata.gz: '0903017358d8df91289f6be4d29425fce627d9649f18972aaecbc5131ea9f16f66d94607439aa4df7d25b2800e5d553de4fc1a4d1926fe7c440303cf9c1781ac'
7
+ data.tar.gz: beca271c9dcc75f3e8a46650a78f2e740ebdd0c7e1202db11ee6c5d47013092921edb113ac8041f49d11e92fbd6e0286f1e6201bab3f66f6c5e6fe8dd6d08d39
@@ -133,11 +133,12 @@ module Riddl
133
133
  def initialize(topics,target,init=nil)
134
134
  @target = target.gsub(/^\/+/,'/')
135
135
 
136
-
137
- if init and not File.exists?(@target)
138
- FileUtils::cp_r init, @target
139
- else
140
- FileUtils::mkdir_p(@target) unless File.exists?(@target)
136
+ unless File.exists?(@target)
137
+ if init
138
+ FileUtils::cp_r init, @target
139
+ else
140
+ FileUtils::mkdir_p(@target)
141
+ end
141
142
  end
142
143
 
143
144
  raise "topics file not found" unless File.exists?(topics)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.251"
3
+ s.version = "0.99.252"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.251
4
+ version: 0.99.252
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen 'eTM' Mangler