cameleon 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: f9a015fbc5371c24d82fa59d3f7ea140b2caf498
4
- data.tar.gz: 54b4c6be42b42532eb4dae7581cadc14ad2fb0c3
3
+ metadata.gz: bb0ac0a82805196c7b5d69d999faca0dd57fa3bc
4
+ data.tar.gz: a401e10453152ff62d559f72d7f06bbe6e327b38
5
5
  SHA512:
6
- metadata.gz: de55e518a6f802af5447cd17af5ea93ac931bae5dd5d817ca4aa83c3865ef772ccb55cba0a346f7e2aba53330d87f530380d4d28c8cf5e19d86be20e69985d8b
7
- data.tar.gz: 3e82fdc3e1edd8c54e762d6744b2b528d41142be0bffbff2478b4fa9be0feac8f87697fd887aec42408750878daf5300c013a2a4d5c23781124e73f6d7ef8ed9
6
+ metadata.gz: 65c996d885be9b50dd00781c42bf8b4d097d574dacc607f2d19cf79ea2baabfd464275a1a6ecaa160afbbf59c5cbf469f7abb1c91a376a1d126b68f202f5d71c
7
+ data.tar.gz: 2dad43892f224803ab8ed85842e59e1df247db777218aea9ce4423f88960a1ad77362236a7edd236cef522e00c7ebffb26eec0cc08f5e0852b2852b0cb12c131
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -73,7 +73,7 @@ class Cameleon
73
73
  files = Dir.glob(File.join(base_dir_path, '*'))
74
74
  # find directory start with $.
75
75
  # if there are some directories start with $, use one that found first.
76
- found = files.find_all{ |f| File.directory?(f) }.find{ |f| ret = f =~ /.*\$([a-zA-Z0-9]*)$/ }
76
+ found = files.find_all{ |f| File.directory?(f) }.find{ |f| ret = f =~ /.*\$([a-zA-Z0-9_\-]*)$/ }
77
77
  if (found)
78
78
  path_name = $1
79
79
  @params[path_name] = target_dir_name
@@ -23,7 +23,11 @@ def start(config)
23
23
  trap(:INT) {
24
24
  Rack::Handler::WEBrick.shutdown
25
25
  }
26
- Rack::Handler::WEBrick.run app, :Port => (config.port || 9292)
26
+ webrick_config = {
27
+ :Port => config.port || 9292,
28
+ :Host => config.bind || '0.0.0.0'
29
+ }
30
+ Rack::Handler::WEBrick.run app, webrick_config
27
31
  end
28
32
 
29
33
  config = Cameleon.config
data/template/new/Gemfile CHANGED
@@ -1 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
1
3
  gem 'cameleon', '<%= Cameleon.version %>'
@@ -1,4 +1,5 @@
1
1
  port: 9292
2
+ bind: 0.0.0.0
2
3
 
3
4
  # uncommnet to enable JSON format validation feature
4
5
  #validation:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cameleon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - daixque
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis
@@ -213,8 +213,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.0.3
216
+ rubygems_version: 2.2.2
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Cameleon is HTTP mock server framework.
220
220
  test_files: []
221
+ has_rdoc: