snowglobe 0.2.0 → 0.3.0
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 +4 -4
- data/.gitignore +1 -2
- data/lib/snowglobe/rails_application.rb +13 -4
- data/lib/snowglobe/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad13194b0a6db786b09c4a4266db9bb6ffa7be81febbef48b85994ca9115b59b
|
|
4
|
+
data.tar.gz: '08c2123ac30d866761152d4d77e23baafbfb16bf0da7893be5984d691278c206'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57ed28d0a25672414c7e4721c3a31abe3fe627e4ebc184e65127422d07acb51a584240db464404a14f6134046524abb7d0686acba50cf15a96cc9e3c431daa12
|
|
7
|
+
data.tar.gz: 2eb715abad615c10d42c9f41d3531ff4848aa7c7f89450c5ecffc9442ce4d26cf75237caa17cc05f76888453c3127fa3303be47502bcc7c08e88b09f2f7e7510
|
data/.gitignore
CHANGED
|
@@ -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)
|
data/lib/snowglobe/version.rb
CHANGED
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.
|
|
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-
|
|
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
|
data/Gemfile.lock
DELETED
|
@@ -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
|