Skip to content

Commit fda3db8

Browse files
authored
Merge pull request #56 from andrewcroome/dry-web-update
Bump dry web, ruby and related configuration
2 parents 3f24969 + 7982360 commit fda3db8

26 files changed

+152
-155
lines changed

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0
1+
2.3.1

Gemfile

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
source "https://rubygems.org"
22

3-
ruby "2.3.0"
3+
ruby "2.3.1"
44

55
gem "rake"
66

77
# Web framework
88
gem "puma"
9-
gem "dry-web", "~> 0.2"
10-
gem "dry-web-roda", "~> 0.1"
9+
gem "dry-web", "~> 0.5"
10+
gem "dry-web-roda", "~> 0.4"
1111
gem "rack_csrf"
1212
gem "shotgun"
1313

1414
# Database persistence
1515
gem "pg"
16-
gem "rom", git: "https://github.com/rom-rb/rom"
17-
gem "rom-mapper", git: "https://github.com/rom-rb/rom-mapper"
18-
gem "rom-repository", git: "https://github.com/rom-rb/rom-repository"
19-
gem "rom-sql", git: "https://github.com/rom-rb/rom-sql"
20-
gem "rom-support", git: "https://github.com/rom-rb/rom-support"
16+
gem "rom"
17+
gem "rom-mapper"
18+
gem "rom-repository"
19+
gem "rom-sql"
20+
gem "rom-support"
2121

2222
# Background jobs
2323
gem "que"

Gemfile.lock

+91-105
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,88 @@
1-
GIT
2-
remote: https://github.com/rom-rb/rom
3-
revision: cc6df90a5ce18ddc41059d0f75aeb9e8b0549951
4-
specs:
5-
rom (2.0.0)
6-
concurrent-ruby (~> 1.0)
7-
dry-equalizer (~> 0.2)
8-
dry-types (~> 0.7)
9-
rom-mapper (~> 0.3.0)
10-
rom-support (~> 1.0.0)
11-
12-
GIT
13-
remote: https://github.com/rom-rb/rom-mapper
14-
revision: 5cc3714c9c7a7e9bc676f5d0760f3e3de2e8bff9
15-
specs:
16-
rom-mapper (0.3.0)
17-
dry-equalizer (~> 0.2)
18-
rom-support (~> 1.0.0)
19-
transproc (~> 0.4.0)
20-
21-
GIT
22-
remote: https://github.com/rom-rb/rom-repository
23-
revision: 9a702eb5de93d730cb6fb102e6d1aa9a63fd1c5f
24-
specs:
25-
rom-repository (0.3.0)
26-
concurrent-ruby (~> 1.0)
27-
rom (~> 2.0)
28-
rom-mapper (~> 0.3.0)
29-
rom-support (~> 1.0.0)
30-
31-
GIT
32-
remote: https://github.com/rom-rb/rom-sql
33-
revision: 98e20842939b482c2103536703aeaa64383078e9
34-
specs:
35-
rom-sql (0.8.0)
36-
dry-equalizer (~> 0.2)
37-
dry-types (~> 0.7)
38-
rom (~> 2.0)
39-
sequel (~> 4.18)
40-
41-
GIT
42-
remote: https://github.com/rom-rb/rom-support
43-
revision: 31085bb9a02a68455f2a66dce1fa08fcfd937430
44-
specs:
45-
rom-support (1.0.0)
46-
dry-equalizer (~> 0.2)
47-
transproc (~> 0.4.0)
48-
wisper (~> 1.6, >= 1.6.0)
49-
501
GIT
512
remote: https://github.com/solnic/transproc
52-
revision: ef7cbef5d22fffd53beadf5c28abdb4975a02c45
3+
revision: ffe27d1d807bac6a9a47c0778eef4b3344284fb1
534
specs:
545
transproc (0.4.0)
556

567
GEM
578
remote: https://rubygems.org/
589
specs:
5910
addressable (2.4.0)
60-
bugsnag (4.2.1)
11+
bugsnag (5.0.1)
6112
byebug (9.0.5)
62-
capybara (2.7.1)
13+
capybara (2.9.0)
6314
addressable
6415
mime-types (>= 1.16)
6516
nokogiri (>= 1.3.3)
6617
rack (>= 1.0.0)
6718
rack-test (>= 0.5.4)
6819
xpath (~> 2.0)
69-
capybara-screenshot (1.0.13)
20+
capybara-screenshot (1.0.14)
7021
capybara (>= 1.0, < 3)
7122
launchy
7223
cliver (0.3.2)
7324
coderay (1.1.1)
7425
concurrent-ruby (1.0.2)
7526
database_cleaner (1.5.3)
7627
diff-lcs (1.2.5)
77-
dry-auto_inject (0.3.0)
78-
dry-container (~> 0.3.4)
79-
dry-component (0.3.0)
80-
dry-auto_inject (~> 0.3)
81-
dry-configurable (~> 0.1)
82-
dry-container (~> 0.3, >= 0.3.4)
83-
inflecto (>= 0.0.2)
84-
dry-configurable (0.1.6)
28+
dry-auto_inject (0.4.1)
29+
dry-container (>= 0.3.4)
30+
dry-configurable (0.1.7)
8531
concurrent-ruby (~> 1.0)
86-
dry-container (0.3.4)
32+
dry-container (0.5.0)
8733
concurrent-ruby (~> 1.0)
8834
dry-configurable (~> 0.1, >= 0.1.3)
8935
dry-equalizer (0.2.0)
90-
dry-logic (0.2.3)
36+
dry-logic (0.3.0)
9137
dry-container (~> 0.2, >= 0.2.6)
9238
dry-equalizer (~> 0.2)
39+
dry-matcher (0.5.0)
9340
dry-monads (0.0.2)
9441
dry-result_matcher (0.4.0)
9542
dry-monads (~> 0.0.0)
96-
dry-transaction (0.7.0)
43+
dry-system (0.5.1)
44+
concurrent-ruby (~> 1.0)
45+
dry-auto_inject (>= 0.4.0)
46+
dry-configurable (~> 0.1)
47+
dry-container (~> 0.4)
48+
dry-equalizer (~> 0.2)
49+
inflecto (>= 0.0.2)
50+
dry-transaction (0.8.0)
9751
dry-container (>= 0.2.8)
98-
dry-monads (~> 0.0.1)
52+
dry-matcher (>= 0.5.0)
53+
dry-monads (>= 0.0.1)
9954
wisper (>= 1.6.0)
100-
dry-types (0.7.2)
55+
dry-types (0.8.1)
10156
concurrent-ruby (~> 1.0)
10257
dry-configurable (~> 0.1)
10358
dry-container (~> 0.3)
10459
dry-equalizer (~> 0.2)
105-
dry-logic (~> 0.2, >= 0.2.3)
60+
dry-logic (~> 0.3, >= 0.3.0)
10661
dry-monads (>= 0.0.1)
62+
ice_nine (~> 0.11)
10763
inflecto (~> 0.0.0, >= 0.0.2)
108-
dry-validation (0.7.4)
64+
dry-validation (0.9.5)
10965
concurrent-ruby (~> 1.0)
11066
dry-configurable (~> 0.1, >= 0.1.3)
11167
dry-container (~> 0.2, >= 0.2.8)
11268
dry-equalizer (~> 0.2)
113-
dry-logic (~> 0.2, >= 0.2.2)
114-
dry-types (~> 0.6, >= 0.6.0)
115-
dry-view (0.1.0)
69+
dry-logic (~> 0.3, >= 0.3.0)
70+
dry-types (~> 0.8, >= 0.8.1)
71+
dry-view (0.1.1)
11672
dry-configurable (~> 0.1)
11773
dry-equalizer (~> 0.2)
11874
inflecto (~> 0)
11975
tilt (~> 2.0)
120-
dry-web (0.3.1)
121-
dry-component (~> 0.3.0)
122-
dry-web-roda (0.2.1)
76+
dry-web (0.5.0)
77+
dry-system (~> 0.5)
78+
dry-web-roda (0.4.0)
12379
dry-configurable (~> 0.1)
80+
dry-web (~> 0.5)
12481
inflecto (~> 0.0)
12582
roda (~> 2.14)
12683
roda-flow (~> 0.3)
12784
thor (~> 0.19)
128-
ffi (1.9.10)
85+
ffi (1.9.14)
12986
formatador (0.2.5)
13087
guard (2.14.0)
13188
formatador (>= 0.2.4)
@@ -137,13 +94,14 @@ GEM
13794
shellany (~> 0.0)
13895
thor (>= 0.18.1)
13996
guard-compat (1.2.1)
140-
guard-rspec (4.7.2)
97+
guard-rspec (4.7.3)
14198
guard (~> 2.1)
14299
guard-compat (~> 1.1)
143100
rspec (>= 2.99.0, < 4.0)
144101
i18n (0.7.0)
102+
ice_nine (0.11.2)
145103
inflecto (0.0.2)
146-
json (1.8.3)
104+
json (2.0.2)
147105
launchy (2.4.3)
148106
addressable (~> 2.3)
149107
listen (3.1.5)
@@ -160,7 +118,7 @@ GEM
160118
nokogiri (1.6.8)
161119
mini_portile2 (~> 2.1.0)
162120
pkg-config (~> 1.1.7)
163-
notiffany (0.1.0)
121+
notiffany (0.1.1)
164122
nenv (~> 0.1)
165123
shellany (~> 0.0)
166124
pg (0.18.4)
@@ -169,19 +127,19 @@ GEM
169127
capybara (~> 2.1)
170128
cliver (~> 0.3.1)
171129
websocket-driver (>= 0.2.0)
172-
postmark (1.7.1)
130+
postmark (1.8.1)
173131
json
174132
rake
175-
pry (0.10.3)
133+
pry (0.10.4)
176134
coderay (~> 1.1.0)
177135
method_source (~> 0.8.1)
178136
slop (~> 3.4)
179137
pry-byebug (3.4.0)
180138
byebug (~> 9.0)
181139
pry (~> 0.10)
182-
puma (3.4.0)
183-
que (0.11.5)
184-
rack (1.6.4)
140+
puma (3.6.0)
141+
que (0.12.0)
142+
rack (2.0.1)
185143
rack-test (0.6.3)
186144
rack (>= 1.0)
187145
rack_csrf (2.5.0)
@@ -190,26 +148,51 @@ GEM
190148
rb-fsevent (0.9.7)
191149
rb-inotify (0.9.7)
192150
ffi (>= 0.5.0)
193-
roda (2.15.0)
151+
roda (2.18.0)
194152
rack
195153
roda-flow (0.3.0)
196-
rspec (3.4.0)
197-
rspec-core (~> 3.4.0)
198-
rspec-expectations (~> 3.4.0)
199-
rspec-mocks (~> 3.4.0)
200-
rspec-core (3.4.4)
201-
rspec-support (~> 3.4.0)
202-
rspec-expectations (3.4.0)
154+
rom (2.0.0)
155+
concurrent-ruby (~> 1.0)
156+
dry-equalizer (~> 0.2)
157+
dry-types (~> 0.8)
158+
rom-mapper (~> 0.4.0)
159+
rom-support (~> 2.0)
160+
rom-mapper (0.4.0)
161+
dry-equalizer (~> 0.2)
162+
rom-support (~> 2.0.0)
163+
transproc (~> 0.4.0)
164+
rom-repository (0.3.1)
165+
rom (~> 2.0)
166+
rom-mapper (~> 0.4)
167+
rom-support (~> 2.0)
168+
rom-sql (0.8.0)
169+
dry-equalizer (~> 0.2)
170+
dry-types (~> 0.8)
171+
rom (~> 2.0)
172+
rom-support (~> 2.0)
173+
sequel (~> 4.25)
174+
rom-support (2.0.0)
175+
concurrent-ruby (~> 1.0)
176+
dry-equalizer (~> 0.2)
177+
transproc (~> 0.4.0)
178+
wisper (~> 1.6, >= 1.6.0)
179+
rspec (3.5.0)
180+
rspec-core (~> 3.5.0)
181+
rspec-expectations (~> 3.5.0)
182+
rspec-mocks (~> 3.5.0)
183+
rspec-core (3.5.3)
184+
rspec-support (~> 3.5.0)
185+
rspec-expectations (3.5.0)
203186
diff-lcs (>= 1.2.0, < 2.0)
204-
rspec-support (~> 3.4.0)
205-
rspec-mocks (3.4.1)
187+
rspec-support (~> 3.5.0)
188+
rspec-mocks (3.5.0)
206189
diff-lcs (>= 1.2.0, < 2.0)
207-
rspec-support (~> 3.4.0)
208-
rspec-support (3.4.1)
209-
ruby_dep (1.3.1)
210-
sequel (4.35.0)
190+
rspec-support (~> 3.5.0)
191+
rspec-support (3.5.0)
192+
ruby_dep (1.4.0)
193+
sequel (4.38.0)
211194
shellany (0.0.1)
212-
shotgun (0.9.1)
195+
shotgun (0.9.2)
213196
rack (>= 1.0)
214197
site_prism (2.9)
215198
addressable (>= 2.3.3, < 3.0)
@@ -243,8 +226,8 @@ DEPENDENCIES
243226
dry-types
244227
dry-validation
245228
dry-view
246-
dry-web (~> 0.2)
247-
dry-web-roda (~> 0.1)
229+
dry-web (~> 0.5)
230+
dry-web-roda (~> 0.4)
248231
guard-rspec
249232
i18n
250233
inflecto
@@ -256,16 +239,19 @@ DEPENDENCIES
256239
que
257240
rack_csrf
258241
rake
259-
rom!
260-
rom-mapper!
261-
rom-repository!
262-
rom-sql!
263-
rom-support!
242+
rom
243+
rom-mapper
244+
rom-repository
245+
rom-sql
246+
rom-support
264247
rspec
265248
shotgun
266249
site_prism
267250
slim
268251
transproc!
269252

253+
RUBY VERSION
254+
ruby 2.3.1p112
255+
270256
BUNDLED WITH
271257
1.12.5

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ begin
1010
rescue LoadError
1111
end
1212

13-
require_relative "component/app_prototype/container"
13+
require_relative "system/app_prototype/container"
1414

1515
AppPrototype::Container.boot! :bugsnag
1616
require "bugsnag/rake"

apps/main/component/main/container.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Main
22
class Container < Dry::Web::Container
3-
require root.join("component/app_prototype/container")
3+
require root.join("system/app_prototype/container")
44
import AppPrototype::Container
55

66
configure do |config|
@@ -13,6 +13,6 @@ class Container < Dry::Web::Container
1313
]
1414
end
1515

16-
load_paths! "lib", "core"
16+
load_paths! "lib", "component"
1717
end
1818
end

apps/main/component/main/import.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require_relative "container"
22

33
module Main
4-
Import = Main::Container::Inject.args
4+
Import = Main::Container.injector
55

66
def self.Import(*args)
77
Import[*args]

bin/console

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env ruby
2+
require "bundler/setup"
23

34
require "dry/web/console"
4-
require_relative "../component/boot"
5+
require_relative "../system/boot"
56

67
Dry::Web::Console.start

0 commit comments

Comments
 (0)