survey_on_rails 0.3.5 → 0.3.6
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 +8 -8
- data/lib/generators/survey/survey_generator.rb +4 -3
- data/lib/survey_on_rails/utils/builder.rb +1 -1
- data/lib/survey_on_rails.rb +11 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTg4MzA1NzRjNzExNGUxNDI3MjM4MmEwMDk0ODRkYTIzZTBhZDc4Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Zjc2MjliYzdkNjkyNjYzZTU3NWNmYTdjOGUxMDI0ZjQyNDQyYzZjMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjA1OWFkZTEzZjVkMzdmNTI1ZWY0MmJjNDNiNjM0NDE2YzVlNjZjMmZhY2U4
|
10
|
+
NjA4ZTEwNWVmOTAzODcyMTc5Y2M1Y2JkYTM2ZmU0N2RjMjQwZmU5NmY5MDQ4
|
11
|
+
MTE2MjU1NGM1Y2FjMjAwZjBkYWM2NDdjMjlmNGQ1MTc1MzA4OTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTUyMjM2MGRhZTRmMzkwZWU3YjBjZDNlODc1MmNmM2UxM2QxZjVmMDExMDAy
|
14
|
+
MzIyMjcyMTJhOTBkMTk2MTBjYmVjMzE4OWQ1MzUwMjY0NTVjNWIxOGIyNTE3
|
15
|
+
MzBlOGQ3MmQxOWEzMTlkMmM5NTc0MThjMWFmMGIyZjliZDA5NTg=
|
@@ -160,7 +160,7 @@ class SurveyGenerator < Rails::Generators::Base
|
|
160
160
|
|
161
161
|
if create_file(model_path)
|
162
162
|
File.open(model_path, 'r+') do |file|
|
163
|
-
file.puts("Dir['
|
163
|
+
file.puts("Dir[File.dirname(__FILE__) + '/*.rb'].each { |file| require file }")
|
164
164
|
file.puts("\nAPPLICATION = SurveyOnRails::Builder::build do")
|
165
165
|
file.puts("\tapplication do")
|
166
166
|
file.puts("\t\tmodel(:surveys => SURVEYS)")
|
@@ -174,7 +174,7 @@ class SurveyGenerator < Rails::Generators::Base
|
|
174
174
|
model_file_path = "#{model_directory}/model.rb"
|
175
175
|
if create_file(model_file_path)
|
176
176
|
File.open(model_file_path, 'r+') do |file|
|
177
|
-
file.puts("
|
177
|
+
file.puts("SURVEYS = SurveyOnRails::Builder::build do")
|
178
178
|
file.puts("end")
|
179
179
|
end
|
180
180
|
end
|
@@ -182,7 +182,7 @@ class SurveyGenerator < Rails::Generators::Base
|
|
182
182
|
style_file_path = "#{model_directory}/styles.rb"
|
183
183
|
if create_file(style_file_path)
|
184
184
|
File.open(style_file_path, 'r+') do |file|
|
185
|
-
file.puts("
|
185
|
+
file.puts("STYLES = SurveyOnRails::Builder::build do")
|
186
186
|
file.puts("end")
|
187
187
|
end
|
188
188
|
end
|
@@ -216,6 +216,7 @@ class SurveyGenerator < Rails::Generators::Base
|
|
216
216
|
|
217
217
|
def migrate
|
218
218
|
out "Performing database migrations"
|
219
|
+
generate_static
|
219
220
|
|
220
221
|
rake "db:reset" if File.exists?("#{Rails.root.to_s}/db/schema.rb")
|
221
222
|
rake "db:migrate"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: survey_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kemper
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- lib/generators/survey/USAGE
|
91
91
|
- lib/survey_on_rails/utils/builder.rb
|
92
92
|
- lib/survey_on_rails/utils/string.rb
|
93
|
+
- lib/survey_on_rails.rb
|
93
94
|
homepage: https://github.com/Dkemp04/Generator
|
94
95
|
licenses: []
|
95
96
|
metadata: {}
|