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
- YzViYWEzNzg5ZGRkZThmZTg2NTM3MTJlNjcxOGQ3MjBmMzJlMTRhNA==
4
+ MjYyMDlmZTRlZDk5ODMwZjlhMTdjZjlkMmJlNzAxN2IwNGQzMTA1Mg==
5
5
  data.tar.gz: !binary |-
6
- Y2IyMWNlNDNmNzc5ODcyMjdiNGVhNmU2MmMwNGEyZWU3NzQzMTJjMA==
6
+ OGRkMGE2NmQzNWY3MDM4OTdiZDdiOTFlZDM0ODFiODUxYWYxODAyMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YWMzNmQwNzQ1MzEzZjhlMGM2ZjE1Y2NhNzQ0YTRjYzYwZmMwZGVkOTk3MTI1
10
- MGIzZTI3NDc1NDAyMjQyM2M5M2I4OWNlM2RlY2EzYTIxZWE3NzQxOTU5MGIw
11
- NjcyYTVlODkzMTJhOTI4MWE0NWY2OTVhYWNiMmVmM2E4ZGIzYTI=
9
+ OGY2ZmUxM2RiMTZkMjY4Njk0ZDQ5NzIyZTdiMjk3MDc4YTczYWRjODdjYTky
10
+ YTliYzZmMjg0YWU0MGUyYzMzNzE0N2EyYzM2ZmIxMjQ0OWIyNDRmY2Q2NzU2
11
+ NzVlMmQwNGY2N2JmMTdjZmM3ZDhlMGJhYWNmODA0ZWNkNGM5M2Q=
12
12
  data.tar.gz: !binary |-
13
- Njc3NGNjNDVjYzUxMzU3N2NjNDU2NzUxYzA5NGI2ZGU0MWVkNGI3NGYyNjBi
14
- ZDgzZDk1ZjJhZjFiNzMxMWYyMjlkZTEzMDdkZTA2Yjc0MzNiZDE3YWJkM2Vk
15
- MTIwMzA1YmY2N2RkYWE3YmViNTM4NmVkOWU4NTg3NjIxYTlmZDg=
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', '3.2.13'")
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 'survey_generator'")
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','~> 3.2.3'")
135
- file.puts("\tgem 'coffee-rails', '~> 3.2.1'")
136
- file.puts("\tgem 'uglifier', '>= 1.0.3'")
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
- if defined?(Bundler)<% iinc %>
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
- match '/signup', :to => 'users#new'
35
- match '/signin', :to => 'sessions#new'
36
- match '/signout', :to => 'sessions#destroy', :via => :delete
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 :to => 'static_pages#<%= static_page.name %>'
42
+ root 'static_pages#<%= static_page.name %>'
43
43
  <% else %>
44
- match '/<%= static_page.name %>', :to => 'static_pages#<%= static_page.name %>'
44
+ get '/<%= static_page.name %>', :to => 'static_pages#<%= static_page.name %>'
45
45
  <% end %>
46
46
  <% end %>
47
47
  <% end %>
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dkemp04