snowglobe 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: 7a494ece6bbe44b11b57bf9e28d1772f1281df6b7ef2ce256c162bd630bbcb51
4
- data.tar.gz: e7ec94c680a18fb303c38a3b12ae0ca8e2db54f257098feb3d9525c91c2a0ffa
3
+ metadata.gz: ad13194b0a6db786b09c4a4266db9bb6ffa7be81febbef48b85994ca9115b59b
4
+ data.tar.gz: '08c2123ac30d866761152d4d77e23baafbfb16bf0da7893be5984d691278c206'
5
5
  SHA512:
6
- metadata.gz: cca9ae5f1ca3603aea90a184fed4ea4894b7ebaf0a10a891d038ebbb0a83cbf03bd9940277ecb01df6dba28f9d3eb0314a1cd1221c56e5ade0f9dc33073e674b
7
- data.tar.gz: dfa1cc03cbb77f9ba6d4eabf1c68280c8231014439fea8d311a96c73f0b6977a5035027a0815325bb87a78d4318f7fcb26b3f04342c11ce028b169cd324ef88d
6
+ metadata.gz: 57ed28d0a25672414c7e4721c3a31abe3fe627e4ebc184e65127422d07acb51a584240db464404a14f6134046524abb7d0686acba50cf15a96cc9e3c431daa12
7
+ data.tar.gz: 2eb715abad615c10d42c9f41d3531ff4848aa7c7f89450c5ecffc9442ce4d26cf75237caa17cc05f76888453c3127fa3303be47502bcc7c08e88b09f2f7e7510
data/.gitignore CHANGED
@@ -6,6 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
-
10
- # rspec failure tracking
9
+ Gemfile.lock
11
10
  .rspec_status
@@ -67,14 +67,14 @@ module Snowglobe
67
67
  end
68
68
  end
69
69
 
70
- private
71
-
72
- attr_reader :fs, :command_runner, :bundle, :database
73
-
74
70
  def rails_version
75
71
  @_rails_version ||= bundle.version_of("rails")
76
72
  end
77
73
 
74
+ private
75
+
76
+ attr_reader :fs, :command_runner, :bundle, :database
77
+
78
78
  def migrations_directory
79
79
  fs.find_in_project("db/migrate")
80
80
  end
@@ -88,6 +88,7 @@ module Snowglobe
88
88
  fix_available_locales_warning
89
89
  remove_bootsnap
90
90
  write_database_configuration
91
+ configure_tests_to_run_in_sorted_order
91
92
 
92
93
  if bundle.version_of("rails") >= 5
93
94
  add_initializer_for_time_zone_aware_types
@@ -128,6 +129,14 @@ end
128
129
  end
129
130
  end
130
131
 
132
+ def configure_tests_to_run_in_sorted_order
133
+ fs.transform_file("config/environments/test.rb") do |lines|
134
+ lines.insert(-2, <<-CONTENT)
135
+ config.active_support.test_order = :sorted
136
+ CONTENT
137
+ end
138
+ end
139
+
131
140
  def add_initializer_for_time_zone_aware_types
132
141
  path = "config/initializers/configure_time_zone_aware_types.rb"
133
142
  fs.write_file(path, <<-TEXT)
@@ -1,3 +1,3 @@
1
1
  module Snowglobe
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snowglobe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Winkler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-20 00:00:00.000000000 Z
11
+ date: 2019-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -51,7 +51,6 @@ files:
51
51
  - ".rubocop.yml"
52
52
  - ".travis.yml"
53
53
  - Gemfile
54
- - Gemfile.lock
55
54
  - LICENSE
56
55
  - README.md
57
56
  - Rakefile
@@ -1,35 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- snowglobe (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- diff-lcs (1.3)
10
- rake (10.5.0)
11
- rspec (3.8.0)
12
- rspec-core (~> 3.8.0)
13
- rspec-expectations (~> 3.8.0)
14
- rspec-mocks (~> 3.8.0)
15
- rspec-core (3.8.0)
16
- rspec-support (~> 3.8.0)
17
- rspec-expectations (3.8.2)
18
- diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.8.0)
20
- rspec-mocks (3.8.0)
21
- diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.8.0)
23
- rspec-support (3.8.0)
24
-
25
- PLATFORMS
26
- ruby
27
-
28
- DEPENDENCIES
29
- bundler (~> 2.0)
30
- rake (~> 10.0)
31
- rspec (~> 3.0)
32
- snowglobe!
33
-
34
- BUNDLED WITH
35
- 2.0.1