survey_on_rails 0.3.2 → 0.3.3
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
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjYyMDlmZTRlZDk5ODMwZjlhMTdjZjlkMmJlNzAxN2IwNGQzMTA1Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGRkMGE2NmQzNWY3MDM4OTdiZDdiOTFlZDM0ODFiODUxYWYxODAyMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGY2ZmUxM2RiMTZkMjY4Njk0ZDQ5NzIyZTdiMjk3MDc4YTczYWRjODdjYTky
|
10
|
+
YTliYzZmMjg0YWU0MGUyYzMzNzE0N2EyYzM2ZmIxMjQ0OWIyNDRmY2Q2NzU2
|
11
|
+
NzVlMmQwNGY2N2JmMTdjZmM3ZDhlMGJhYWNmODA0ZWNkNGM5M2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTI0OWExMmExZWZjNjY4NmEyYTVjZTdkNTZiMWNmY2E1MDc1ZGViNGQ5MmRh
|
14
|
+
ODk1OGY2MGQwMDU1ZjNkMDRiMDVmMTVhMmFkODBmZTA1NjRhNmQ4MjMxYWRl
|
15
|
+
MWY3YjhhNzU2MWU0NmVlZmZjMWNiZDQ1NWJmZDI5YzExY2JiYjQ=
|
@@ -100,15 +100,18 @@ class SurveyGenerator < Rails::Generators::Base
|
|
100
100
|
file.puts("source 'https://rubygems.org'")
|
101
101
|
|
102
102
|
file.puts("\n#For all environments")
|
103
|
-
file.puts("gem 'rails', '
|
103
|
+
file.puts("gem 'rails', '4.0.0'")
|
104
104
|
file.puts("gem 'bootstrap-sass', '2.1'")
|
105
105
|
file.puts("gem 'bcrypt-ruby', '3.0.1'")
|
106
106
|
file.puts("gem 'faker', '1.0.1'")
|
107
107
|
file.puts("gem 'will_paginate', '3.0.3'")
|
108
108
|
file.puts("gem 'bootstrap-will_paginate', '0.0.6'")
|
109
109
|
file.puts("gem 'jquery-rails'")
|
110
|
+
file.puts("gem 'turbolinks'")
|
111
|
+
file.puts("gem 'jbuilder', '~> 1.2'")
|
112
|
+
file.puts("gem 'protected_attributes'")
|
110
113
|
file.puts("gem 'rgen'")
|
111
|
-
file.puts("gem '
|
114
|
+
file.puts("gem 'survey_on_rails'")
|
112
115
|
|
113
116
|
file.puts("\n#Group 'development' and 'test'")
|
114
117
|
file.puts("group :development, :test do")
|
@@ -131,9 +134,14 @@ class SurveyGenerator < Rails::Generators::Base
|
|
131
134
|
|
132
135
|
file.puts("\n#Group 'assets'")
|
133
136
|
file.puts("group :assets do")
|
134
|
-
file.puts("\tgem 'sass-rails','~>
|
135
|
-
file.puts("\tgem 'coffee-rails', '~>
|
136
|
-
file.puts("\tgem 'uglifier'
|
137
|
+
file.puts("\tgem 'sass-rails', '~> 4.0.0'")
|
138
|
+
file.puts("\tgem 'coffee-rails', '~> 4.0.0'")
|
139
|
+
file.puts("\tgem 'uglifier'")
|
140
|
+
file.puts("end")
|
141
|
+
|
142
|
+
file.puts("\n#Group 'doc'")
|
143
|
+
file.puts("group :doc do")
|
144
|
+
file.puts("\tgem 'sdoc', require: false")
|
137
145
|
file.puts("end")
|
138
146
|
end
|
139
147
|
|
@@ -6,9 +6,7 @@
|
|
6
6
|
require 'rails/all'
|
7
7
|
|
8
8
|
<% nl %>
|
9
|
-
|
10
|
-
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
11
|
-
<% idec %>end
|
9
|
+
Bundler.require(:default, Rails.env)
|
12
10
|
|
13
11
|
<% nl %>
|
14
12
|
module <%= Rails.application.class.parent_name %><% iinc %>
|
@@ -16,7 +14,6 @@
|
|
16
14
|
config.encoding = "utf-8"
|
17
15
|
config.filter_parameters += [:password]
|
18
16
|
config.active_support.escape_html_entities_in_json = true
|
19
|
-
config.active_record.whitelist_attributes = true
|
20
17
|
config.assets.enabled = true
|
21
18
|
config.assets.version = '1.0'
|
22
19
|
config.autoload_paths += Dir["lib"]
|
@@ -31,17 +31,17 @@
|
|
31
31
|
resources :sessions, :only => [:new, :create, :destroy]
|
32
32
|
|
33
33
|
<% nl %>
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
get '/signup', :to => 'users#new'
|
35
|
+
get '/signin', :to => 'sessions#new'
|
36
|
+
get '/signout', :to => 'sessions#destroy', :via => :delete
|
37
37
|
<% end %>
|
38
38
|
|
39
39
|
<% define 'static_pages', :for => View do %>
|
40
40
|
<% static_pages.each do |static_page| %>
|
41
41
|
<% if static_page.root %>
|
42
|
-
root
|
42
|
+
root 'static_pages#<%= static_page.name %>'
|
43
43
|
<% else %>
|
44
|
-
|
44
|
+
get '/<%= static_page.name %>', :to => 'static_pages#<%= static_page.name %>'
|
45
45
|
<% end %>
|
46
46
|
<% end %>
|
47
47
|
<% end %>
|