Skip to content

Commit b4abc81

Browse files
committed
Merge branch 'master' of github.com:clio/ten_years_rails
2 parents 0acadf5 + 361bfdc commit b4abc81

File tree

5 files changed

+43
-34
lines changed

5 files changed

+43
-34
lines changed

Gemfile.lock

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
ten_years_rails (0.1.0)
4+
ten_years_rails (0.2.0)
55
actionview
66
activesupport
77
colorize (>= 0.8.1)
@@ -10,63 +10,63 @@ PATH
1010
GEM
1111
remote: https://rubygems.org/
1212
specs:
13-
actionview (5.2.0)
14-
activesupport (= 5.2.0)
13+
actionview (5.2.3)
14+
activesupport (= 5.2.3)
1515
builder (~> 3.1)
1616
erubi (~> 1.4)
1717
rails-dom-testing (~> 2.0)
1818
rails-html-sanitizer (~> 1.0, >= 1.0.3)
19-
activesupport (5.2.0)
19+
activesupport (5.2.3)
2020
concurrent-ruby (~> 1.0, >= 1.0.2)
2121
i18n (>= 0.7, < 2)
2222
minitest (~> 5.1)
2323
tzinfo (~> 1.1)
2424
builder (3.2.3)
2525
colorize (0.8.1)
26-
concurrent-ruby (1.0.5)
26+
concurrent-ruby (1.1.5)
2727
crass (1.0.4)
2828
diff-lcs (1.3)
2929
domain_name (0.5.20180417)
3030
unf (>= 0.0.5, < 1.0.0)
31-
erubi (1.7.1)
31+
erubi (1.8.0)
3232
http-cookie (1.0.3)
3333
domain_name (~> 0.5)
34-
i18n (1.0.1)
34+
i18n (1.6.0)
3535
concurrent-ruby (~> 1.0)
36-
loofah (2.2.2)
36+
loofah (2.2.3)
3737
crass (~> 1.0.2)
3838
nokogiri (>= 1.5.9)
39-
mime-types (3.1)
39+
mime-types (3.2.2)
4040
mime-types-data (~> 3.2015)
41-
mime-types-data (3.2016.0521)
42-
mini_portile2 (2.3.0)
41+
mime-types-data (3.2019.0331)
42+
mini_portile2 (2.4.0)
4343
minitest (5.11.3)
4444
netrc (0.11.0)
45-
nokogiri (1.8.2)
46-
mini_portile2 (~> 2.3.0)
45+
nokogiri (1.10.2)
46+
mini_portile2 (~> 2.4.0)
4747
rails-dom-testing (2.0.3)
4848
activesupport (>= 4.2.0)
4949
nokogiri (>= 1.6)
5050
rails-html-sanitizer (1.0.4)
5151
loofah (~> 2.2, >= 2.2.2)
52-
rake (10.4.2)
52+
rake (10.5.0)
5353
rest-client (2.0.2)
5454
http-cookie (>= 1.0.2, < 2.0)
5555
mime-types (>= 1.16, < 4.0)
5656
netrc (~> 0.8)
57-
rspec (3.7.0)
58-
rspec-core (~> 3.7.0)
59-
rspec-expectations (~> 3.7.0)
60-
rspec-mocks (~> 3.7.0)
61-
rspec-core (3.7.1)
62-
rspec-support (~> 3.7.0)
63-
rspec-expectations (3.7.0)
57+
rspec (3.8.0)
58+
rspec-core (~> 3.8.0)
59+
rspec-expectations (~> 3.8.0)
60+
rspec-mocks (~> 3.8.0)
61+
rspec-core (3.8.0)
62+
rspec-support (~> 3.8.0)
63+
rspec-expectations (3.8.2)
6464
diff-lcs (>= 1.2.0, < 2.0)
65-
rspec-support (~> 3.7.0)
66-
rspec-mocks (3.7.0)
65+
rspec-support (~> 3.8.0)
66+
rspec-mocks (3.8.0)
6767
diff-lcs (>= 1.2.0, < 2.0)
68-
rspec-support (~> 3.7.0)
69-
rspec-support (3.7.1)
68+
rspec-support (~> 3.8.0)
69+
rspec-support (3.8.0)
7070
thread_safe (0.3.6)
7171
tzinfo (1.2.5)
7272
thread_safe (~> 0.1)
@@ -84,4 +84,4 @@ DEPENDENCIES
8484
ten_years_rails!
8585

8686
BUNDLED WITH
87-
1.16.1
87+
1.17.2

exe/next.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22
if [[ "${@}" == "--init" ]]; then
3-
echo "doing a thing"
43
# Add next? top of Gemfile
54
cat <<-STRING > Gemfile.tmp
65
def next?
@@ -11,6 +10,19 @@ STRING
1110
mv Gemfile.tmp Gemfile
1211

1312
ln -s Gemfile Gemfile.next
13+
echo <<-MESSAGE
14+
Created Gemfile.next (a symlink to your Gemfile). Your Gemfile has been modified to support dual-booting!
15+
16+
There's just one more step: modify your Gemfile to use a newer version of Rails using the \`next?\` helper method.
17+
18+
For example, here's how to go from 5.2.3 to 6.0:
19+
20+
if next?
21+
gem "rails", "6.0.0"
22+
else
23+
gem "rails", "5.2.3"
24+
end
25+
MESSAGE
1426
exit $?
1527
fi
1628

lib/deprecation_tracker.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require "colorize"
12
require "json"
23

34
# A shitlist for deprecation warnings during test runs. It has two modes: "save" and "compare"

spec/deprecation_tracker_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
require "tempfile"
2-
require_relative "../support/deprecation_tracker"
2+
require_relative "spec_helper"
3+
require_relative "../lib/deprecation_tracker"
34

4-
describe DeprecationTracker do
5+
RSpec.describe DeprecationTracker do
56
let(:shitlist_path) do
67
shitlist_path = Tempfile.new.path
78
FileUtils.rm(shitlist_path)
@@ -218,4 +219,3 @@
218219
end
219220
end
220221
end
221-

spec/ten_years_rails_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22
it "has a version number" do
33
expect(TenYearsRails::VERSION).not_to be nil
44
end
5-
6-
it "does something useful" do
7-
expect(false).to eq(true)
8-
end
95
end

0 commit comments

Comments
 (0)