flight-router 0.1.13 → 0.1.14

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: 21517694574fc12a2c3c7e05ed65e8f2cd5089c4
4
- data.tar.gz: 093c3fabd9bc4d81306027c0e9160d571cbcf113
3
+ metadata.gz: 7fb3285d9ff97f804a6095f0a49ec353e24907a8
4
+ data.tar.gz: 0dd2351a68b94a4be6a35d5bf04364e31baa2891
5
5
  SHA512:
6
- metadata.gz: b69595bc2d2e2d3a462539642759266f12d5480df93180d2def626ab5b5030fc09b03db5ed72c90d5063dad5d723fa58f20152eb00dcadc4db6362ac1c1b296c
7
- data.tar.gz: dd3c86d37419111ed94fa7c1b3d78d256a9b52e9019464f1464c427b5006fe23019b3bdf4ebbaf4fb522d199e37e7adf429af083188e1e812aad38cad57400c4
6
+ metadata.gz: ab41cc69b56fe9cec1e5678da591454468f0510edf9feb46c49476abc3aba553f6b1d9d4ffec5db9da5f04c6b94c4d774c3c0a28c00c505aafc612be427287f2
7
+ data.tar.gz: 9d10cb6867ebac3ae64cdeb8b2479bc6b2ab379606f7650aa0bc177c7fb2c83be401a968ef383f119a0cf10176edf8c92366cb36c72fe7d8764ddf9ca5b52349
@@ -0,0 +1,5 @@
1
+ # Changelog : 0.1.14
2
+
3
+ ## commits
4
+
5
+ * fix upload
@@ -31,6 +31,14 @@ module Flight::Router
31
31
  {key: map[:auth][auth][:key], verify: map[:auth][verify][:verify]}
32
32
  end
33
33
  end
34
+
35
+ image :aws_s3 do
36
+ command "copy" do |**opts|
37
+ opts.merge(
38
+ path: app[:upload][:path],
39
+ )
40
+ end
41
+ end
34
42
  end
35
43
 
36
44
  using HashEx
@@ -46,6 +54,9 @@ module Flight::Router
46
54
  def map
47
55
  @map
48
56
  end
57
+ def app
58
+ @app
59
+ end
49
60
 
50
61
  def config
51
62
  @config ||= {}
@@ -72,11 +83,14 @@ module Flight::Router
72
83
  path = @path + [path]
73
84
  config = {}
74
85
  merge_auth!(config,auth)
75
- commands = parse_command path, instance_exec(&block)
76
- @config[path.join("/")] = @app
77
- .deep_merge(config)
78
- .deep_merge(opts)
79
- .deep_merge(commands: commands)
86
+
87
+ _app = @app
88
+ @app = @app.deep_merge(config).deep_merge(opts)
89
+ commands = parse_command(path, instance_exec(&block))
90
+
91
+ @config[path.join("/")] = @app.deep_merge(commands: commands)
92
+
93
+ @app = _app
80
94
  end
81
95
 
82
96
  private
@@ -1,5 +1,5 @@
1
1
  module Flight
2
2
  module Router
3
- VERSION = "0.1.13"
3
+ VERSION = "0.1.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flight-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - shun@getto.systems
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2017-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,6 +81,7 @@ files:
81
81
  - CHANGELOG/0.1.11.md
82
82
  - CHANGELOG/0.1.12.md
83
83
  - CHANGELOG/0.1.13.md
84
+ - CHANGELOG/0.1.14.md
84
85
  - CHANGELOG/0.1.2.md
85
86
  - CHANGELOG/0.1.3.md
86
87
  - CHANGELOG/0.1.4.md