snowglobe 0.1.0 → 0.2.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: 1a7cb4e42cb80539ad12a929b77cdbc345594797a830e1c84afc335c6f70db7d
4
- data.tar.gz: 57224881549f30823d7e22b1c804e1d43a31cde9feadb159f437e09ac887e16b
3
+ metadata.gz: 7a494ece6bbe44b11b57bf9e28d1772f1281df6b7ef2ce256c162bd630bbcb51
4
+ data.tar.gz: e7ec94c680a18fb303c38a3b12ae0ca8e2db54f257098feb3d9525c91c2a0ffa
5
5
  SHA512:
6
- metadata.gz: 154526eb1114b432086be4722e2b8e9e4d761a3850d60ea5e75465aca291b96722f1c450666496880f81f6f81369ae6e9cb5352705943645c566969218aab794
7
- data.tar.gz: a260aa8b610ad5d94019b28947814ed728b5d7d2b3a8007ac62ed2ccb5af77f40391a91a3d2e730115f5f91a250e48af4ef56de78ee21242580ebe5144592ce1
6
+ metadata.gz: cca9ae5f1ca3603aea90a184fed4ea4894b7ebaf0a10a891d038ebbb0a83cbf03bd9940277ecb01df6dba28f9d3eb0314a1cd1221c56e5ade0f9dc33073e674b
7
+ data.tar.gz: dfa1cc03cbb77f9ba6d4eabf1c68280c8231014439fea8d311a96c73f0b6977a5035027a0815325bb87a78d4318f7fcb26b3f04342c11ce028b169cd324ef88d
@@ -26,16 +26,10 @@ module Snowglobe
26
26
  generate
27
27
 
28
28
  fs.within_project do
29
- # install_gems
30
29
  remove_unwanted_gems
31
30
  end
32
31
  end
33
32
 
34
- # def load
35
- # load_environment
36
- # run_migrations
37
- # end
38
-
39
33
  def evaluate!(code)
40
34
  command_runner = nil
41
35
 
@@ -56,35 +50,14 @@ module Snowglobe
56
50
  command_runner.output
57
51
  end
58
52
 
53
+ def run_command(*args, &block)
54
+ command_runner.run(*args, &block)
55
+ end
56
+
59
57
  def run_command!(*args, &block)
60
58
  command_runner.run!(*args, &block)
61
59
  end
62
60
 
63
- # def gemfile_path
64
- # fs.find("Gemfile")
65
- # end
66
-
67
- # def temp_views_directory
68
- # fs.find_in_project("tmp/views")
69
- # end
70
-
71
- # def create_temp_view(path, contents)
72
- # full_path = temp_view_path_for(path)
73
- # full_path.dirname.mkpath
74
- # full_path.open("w") { |f| f.write(contents) }
75
- # end
76
-
77
- # def delete_temp_views
78
- # if temp_views_directory.exist?
79
- # temp_views_directory.rmtree
80
- # end
81
- # end
82
-
83
- # def draw_routes(&block)
84
- # Rails.application.routes.draw(&block)
85
- # Rails.application.routes
86
- # end
87
-
88
61
  def migration_class_name
89
62
  if rails_version > 5
90
63
  number = [rails_version.major, rails_version.minor].join(".").to_f
@@ -164,24 +137,6 @@ end
164
137
  TEXT
165
138
  end
166
139
 
167
- # def load_environment
168
- # require environment_file_path
169
- # end
170
-
171
- # def environment_file_path
172
- # fs.find_in_project("config/environment")
173
- # end
174
-
175
- # def run_migrations
176
- # fs.within_project do
177
- # run_command! "bundle exec rake db:drop db:create db:migrate"
178
- # end
179
- # end
180
-
181
- # def install_gems
182
- # bundle.install_gems
183
- # end
184
-
185
140
  def remove_unwanted_gems
186
141
  bundle.updating do
187
142
  bundle.remove_gem "debugger"
@@ -1,3 +1,3 @@
1
1
  module Snowglobe
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.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.1.0
4
+ version: 0.2.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-03-16 00:00:00.000000000 Z
11
+ date: 2019-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler