aslon_settings 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/aslon_settings.iml +12 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +11 -0
- data/.idea/modules.xml +9 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +538 -0
- data/VERSION +1 -1
- data/app/controllers/admin/item_params_controller.rb +5 -0
- data/app/controllers/admin/params_controller.rb +17 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/cheese/widgets_helper.rb +9 -0
- data/app/models/admin/item_param.rb +7 -0
- data/app/models/admin/param.rb +51 -0
- data/app/views/admin/params/index.html.haml +39 -0
- data/app/views/layouts/cheese.html.erb +12 -0
- data/aslon_settings.gemspec +31 -2
- data/config/routes.rb +17 -0
- data/lib/application_helper.rb +7 -0
- data/lib/aslon_settings.rb +5 -0
- data/lib/engine.rb +30 -0
- data/lib/rails/generators/aslon_settings/aslon_settings_generator.rb +80 -0
- data/lib/rails/generators/aslon_settings/templates/initializer.rb +8 -0
- data/lib/rails/generators/aslon_settings/templates/migration_item_params.rb +14 -0
- data/lib/rails/generators/aslon_settings/templates/migration_params.rb +13 -0
- data/lib/rails/generators/aslon_settings/templates/schema.rb +11 -0
- data/lib/rails/generators/cheese/cheese_generator.rb +76 -0
- data/lib/rails/generators/cheese/templates/initializer.rb +8 -0
- data/lib/rails/generators/cheese/templates/migration.rb +9 -0
- data/lib/rails/generators/cheese/templates/schema.rb +11 -0
- data/lib/rails/railties/tasks.rake +8 -0
- metadata +40 -11
@@ -0,0 +1,17 @@
|
|
1
|
+
module AslonSettings
|
2
|
+
|
3
|
+
|
4
|
+
class Admin::ParamsController < ApplicationController
|
5
|
+
# aslon_scaffold :display_columns=>%w(),
|
6
|
+
# :show_fields=>%w(),
|
7
|
+
# :edit_fields=>%w(),
|
8
|
+
# :search_fields=>%w(),
|
9
|
+
# :legend=>"Hello"
|
10
|
+
#
|
11
|
+
|
12
|
+
aslon_scaffold
|
13
|
+
authorize_resource :instance_name=>:admin_param
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module AslonSettings
|
2
|
+
|
3
|
+
|
4
|
+
class Admin::Param < ActiveRecord::Base
|
5
|
+
has_many :items, :class_name=>'Admin::ItemParam'
|
6
|
+
accepts_nested_attributes_for :items
|
7
|
+
|
8
|
+
attr_accessible :name, :pos ,:items_attributes
|
9
|
+
|
10
|
+
def self.method_missing(method, *args)
|
11
|
+
method_name = method.to_s
|
12
|
+
super(method, *args)
|
13
|
+
|
14
|
+
rescue NoMethodError
|
15
|
+
if (param=self.find_by_name(method_name)) == nil && method_name !='to_ary'
|
16
|
+
param=self.create!(:name=>method_name)
|
17
|
+
else
|
18
|
+
param
|
19
|
+
end
|
20
|
+
return param
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
def method_missing(method, *args)
|
25
|
+
method_name = method.to_s
|
26
|
+
super(method, *args)
|
27
|
+
|
28
|
+
rescue NoMethodError
|
29
|
+
|
30
|
+
if method_name =~ /=$/
|
31
|
+
puts method_name
|
32
|
+
puts args.first
|
33
|
+
|
34
|
+
var_name = method_name.gsub('=', '')
|
35
|
+
value = args.first
|
36
|
+
o= (eval "items.where(:name=>'#{var_name}')").first
|
37
|
+
if o==nil
|
38
|
+
o= (eval "items.create(:name=>'#{var_name}')")
|
39
|
+
end
|
40
|
+
o.value = value
|
41
|
+
o.save
|
42
|
+
#retrieve a value
|
43
|
+
else
|
44
|
+
(eval "items.where(:name=>'#{method_name}')").first.value
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
:javascript
|
2
|
+
$(function() {
|
3
|
+
$( "#tabs" ).tabs({
|
4
|
+
});
|
5
|
+
})
|
6
|
+
$(function() {
|
7
|
+
$( "#accordion" ).accordion({
|
8
|
+
collapsible: true,
|
9
|
+
autoHeight: false
|
10
|
+
});
|
11
|
+
});
|
12
|
+
|
13
|
+
|
14
|
+
#accordion
|
15
|
+
- @admin_params.each do |p|
|
16
|
+
%h3
|
17
|
+
%a{:href=>"#"}=p.name
|
18
|
+
%div
|
19
|
+
=semantic_form_for p do |f|
|
20
|
+
=f.semantic_fields_for :items do |item|
|
21
|
+
=item.input :value,:label=> item.object.name
|
22
|
+
= f.buttons
|
23
|
+
%h3
|
24
|
+
%a{:href=>"#"}='p.name'
|
25
|
+
%div
|
26
|
+
#tabs
|
27
|
+
%ul
|
28
|
+
- @admin_params.each do |p|
|
29
|
+
%li
|
30
|
+
%a{:href=>"#t#{p.id}"}
|
31
|
+
=p.name
|
32
|
+
|
33
|
+
- @admin_params.each do |p|
|
34
|
+
="<div id=t#{p.id}>".html_safe
|
35
|
+
=semantic_form_for p do |f|
|
36
|
+
=f.semantic_fields_for :items do |item|
|
37
|
+
=item.input :value,:label=> item.object.name
|
38
|
+
= f.buttons
|
39
|
+
="</div>".html_safe
|
data/aslon_settings.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "aslon_settings"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["aslon"]
|
12
|
-
s.date = "2012-01-
|
12
|
+
s.date = "2012-01-22"
|
13
13
|
s.description = "simple settings for rails3 apps"
|
14
14
|
s.email = ""
|
15
15
|
s.extra_rdoc_files = [
|
@@ -18,14 +18,43 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".idea/.name",
|
22
|
+
".idea/.rakeTasks",
|
23
|
+
".idea/aslon_settings.iml",
|
24
|
+
".idea/encodings.xml",
|
25
|
+
".idea/misc.xml",
|
26
|
+
".idea/modules.xml",
|
27
|
+
".idea/vcs.xml",
|
28
|
+
".idea/workspace.xml",
|
21
29
|
"Gemfile",
|
22
30
|
"Gemfile.lock",
|
23
31
|
"LICENSE.txt",
|
24
32
|
"README.rdoc",
|
25
33
|
"Rakefile",
|
26
34
|
"VERSION",
|
35
|
+
"app/controllers/admin/item_params_controller.rb",
|
36
|
+
"app/controllers/admin/params_controller.rb",
|
37
|
+
"app/helpers/application_helper.rb",
|
38
|
+
"app/helpers/cheese/widgets_helper.rb",
|
39
|
+
"app/models/admin/item_param.rb",
|
40
|
+
"app/models/admin/param.rb",
|
41
|
+
"app/views/admin/params/index.html.haml",
|
42
|
+
"app/views/layouts/cheese.html.erb",
|
27
43
|
"aslon_settings.gemspec",
|
44
|
+
"config/routes.rb",
|
45
|
+
"lib/application_helper.rb",
|
28
46
|
"lib/aslon_settings.rb",
|
47
|
+
"lib/engine.rb",
|
48
|
+
"lib/rails/generators/aslon_settings/aslon_settings_generator.rb",
|
49
|
+
"lib/rails/generators/aslon_settings/templates/initializer.rb",
|
50
|
+
"lib/rails/generators/aslon_settings/templates/migration_item_params.rb",
|
51
|
+
"lib/rails/generators/aslon_settings/templates/migration_params.rb",
|
52
|
+
"lib/rails/generators/aslon_settings/templates/schema.rb",
|
53
|
+
"lib/rails/generators/cheese/cheese_generator.rb",
|
54
|
+
"lib/rails/generators/cheese/templates/initializer.rb",
|
55
|
+
"lib/rails/generators/cheese/templates/migration.rb",
|
56
|
+
"lib/rails/generators/cheese/templates/schema.rb",
|
57
|
+
"lib/rails/railties/tasks.rake",
|
29
58
|
"test/helper.rb",
|
30
59
|
"test/test_aslon_settings.rb"
|
31
60
|
]
|
data/config/routes.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
|
3
|
+
#mount_at = AslonSettings::Engine.config.mount_at
|
4
|
+
#
|
5
|
+
#match mount_at => 'cheese/widgets#index'
|
6
|
+
|
7
|
+
#map.resources :widgets, :only => [ :index, :show ],
|
8
|
+
# :controller => "cheese/widgets",
|
9
|
+
# :path_prefix => mount_at,
|
10
|
+
# :name_prefix => "cheese_"
|
11
|
+
|
12
|
+
namespace :admin do resources :item_params end
|
13
|
+
|
14
|
+
namespace(:admin){ resources :params do collection { post 'search'} end }
|
15
|
+
|
16
|
+
end
|
17
|
+
|
data/lib/aslon_settings.rb
CHANGED
data/lib/engine.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'aslon_settings'
|
2
|
+
require 'rails'
|
3
|
+
require 'action_controller'
|
4
|
+
require 'application_helper'
|
5
|
+
|
6
|
+
module AslonSettings
|
7
|
+
class Engine < Rails::Engine
|
8
|
+
|
9
|
+
# Config defaults
|
10
|
+
config.widget_factory_name = "default factory name"
|
11
|
+
config.mount_at = '/'
|
12
|
+
|
13
|
+
# Load rake tasks
|
14
|
+
rake_tasks do
|
15
|
+
load File.join(File.dirname(__FILE__), 'rails/railties/tasks.rake')
|
16
|
+
end
|
17
|
+
|
18
|
+
# Check the gem config
|
19
|
+
initializer "check config" do |app|
|
20
|
+
|
21
|
+
# make sure mount_at ends with trailing slash
|
22
|
+
config.mount_at += '/' unless config.mount_at.last == '/'
|
23
|
+
end
|
24
|
+
|
25
|
+
initializer "static assets" do |app|
|
26
|
+
app.middleware.use ::ActionDispatch::Static, "#{root}/public"
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/migration'
|
3
|
+
|
4
|
+
class AslonSettingsGenerator < Rails::Generators::Base
|
5
|
+
include Rails::Generators::Migration
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
File.join(File.dirname(__FILE__), 'templates')
|
9
|
+
end
|
10
|
+
def self.next_migration_number(dirname) #:nodoc:
|
11
|
+
next_migration_number = current_migration_number(dirname) + 1
|
12
|
+
if ActiveRecord::Base.timestamped_migrations
|
13
|
+
[Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max
|
14
|
+
else
|
15
|
+
"%.3d" % next_migration_number
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
def create_migration
|
21
|
+
migration_template 'migration_params.rb', 'db/migrate/create_admin_params.rb'
|
22
|
+
migration_template 'migration_item_params.rb', 'db/migrate/create_admin_item_params.rb'
|
23
|
+
end
|
24
|
+
# Every method that is declared below will be automatically executed when the generator is run
|
25
|
+
|
26
|
+
#def create_migration_file
|
27
|
+
# f = File.open File.join(File.dirname(__FILE__), 'templates', 'schema.rb')
|
28
|
+
# schema = f.read; f.close
|
29
|
+
#
|
30
|
+
# schema.gsub!(/ActiveRecord::Schema.*\n/, '')
|
31
|
+
# schema.gsub!(/^end\n*$/, '')
|
32
|
+
#
|
33
|
+
# f = File.open File.join(File.dirname(__FILE__), 'templates', 'migration.rb')
|
34
|
+
# migration = f.read; f.close
|
35
|
+
# migration.gsub!(/SCHEMA_AUTO_INSERTED_HERE/, schema)
|
36
|
+
#
|
37
|
+
# tmp = File.open "tmp/~migration_ready.rb", "w"
|
38
|
+
# tmp.write migration
|
39
|
+
# tmp.close
|
40
|
+
#
|
41
|
+
# migration_template '../../../tmp/~migration_ready.rb',
|
42
|
+
# 'db/migrate/create_admin_params.rb'
|
43
|
+
# remove_file 'tmp/~migration_ready.rb'
|
44
|
+
#end
|
45
|
+
|
46
|
+
#def copy_initializer_file
|
47
|
+
# copy_file 'initializer.rb', 'config/initializers/cheese.rb'
|
48
|
+
#end
|
49
|
+
|
50
|
+
#def update_application_template
|
51
|
+
# f = File.open "app/views/layouts/application.html.erb"
|
52
|
+
# layout = f.read; f.close
|
53
|
+
#
|
54
|
+
# if layout =~ /<%=[ ]+yield[ ]+%>/
|
55
|
+
# print " \e[1m\e[34mquestion\e[0m Your layouts/application.html.erb layout currently has the line <%= yield %>. This gem needs to change this line to <%= content_for?(:content) ? yield(:content) : yield %> to support its nested layouts. This change should not affect any of your existing layouts or views. Is this okay? [y/n] "
|
56
|
+
# begin
|
57
|
+
# answer = gets.chomp
|
58
|
+
# end while not answer =~ /[yn]/i
|
59
|
+
#
|
60
|
+
# if answer =~ /y/i
|
61
|
+
#
|
62
|
+
# layout.gsub!(/<%=[ ]+yield[ ]+%>/, '<%= content_for?(:content) ? yield(:content) : yield %>')
|
63
|
+
#
|
64
|
+
# tmp_real_path = File.expand_path("tmp/~application.html.erb")
|
65
|
+
#
|
66
|
+
# tmp = File.open tmp_real_path, "w"
|
67
|
+
# tmp.write layout; tmp.close
|
68
|
+
#
|
69
|
+
# remove_file 'app/views/layouts/application.html.erb'
|
70
|
+
# copy_file tmp_real_path, 'app/views/layouts/application.html.erb'
|
71
|
+
# remove_file tmp_real_path
|
72
|
+
# end
|
73
|
+
# elsif layout =~ /<%=[ ]+content_for\?\(:content\) \? yield\(:content\) : yield[ ]+%>/
|
74
|
+
# puts " \e[1m\e[33mskipping\e[0m layouts/application.html.erb modification is already done."
|
75
|
+
# else
|
76
|
+
# puts " \e[1m\e[31mconflict\e[0m The gem is confused by your layouts/application.html.erb. It does not contain the default line <%= yield %>, you may need to make manual changes to get this gem's nested layouts working. Visit ###### for details."
|
77
|
+
# end
|
78
|
+
#end
|
79
|
+
|
80
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateAdminItemParams < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :admin_item_params do |t|
|
4
|
+
t.string :name
|
5
|
+
t.string :value
|
6
|
+
t.integer :pos
|
7
|
+
t.integer :param_id
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
end
|
11
|
+
def self.down
|
12
|
+
drop_table :admin_item_params
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
require 'rails/generators/migration'
|
3
|
+
|
4
|
+
class AslonSettingsGenerator < Rails::Generators::Base
|
5
|
+
include Rails::Generators::Migration
|
6
|
+
|
7
|
+
def self.source_root
|
8
|
+
File.join(File.dirname(__FILE__), 'templates')
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.next_migration_number(dirname) #:nodoc:
|
12
|
+
if ActiveRecord::Base.timestamped_migrations
|
13
|
+
Time.now.utc.strftime("%Y%m%d%H%M%S")
|
14
|
+
else
|
15
|
+
"%.3d" % (current_migration_number(dirname) + 1)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
|
20
|
+
# Every method that is declared below will be automatically executed when the generator is run
|
21
|
+
|
22
|
+
def create_migration_file
|
23
|
+
f = File.open File.join(File.dirname(__FILE__), 'templates', 'schema.rb')
|
24
|
+
schema = f.read; f.close
|
25
|
+
|
26
|
+
schema.gsub!(/ActiveRecord::Schema.*\n/, '')
|
27
|
+
schema.gsub!(/^end\n*$/, '')
|
28
|
+
|
29
|
+
f = File.open File.join(File.dirname(__FILE__), 'templates', 'migration.rb')
|
30
|
+
migration = f.read; f.close
|
31
|
+
migration.gsub!(/SCHEMA_AUTO_INSERTED_HERE/, schema)
|
32
|
+
|
33
|
+
tmp = File.open "tmp/~migration_ready.rb", "w"
|
34
|
+
tmp.write migration
|
35
|
+
tmp.close
|
36
|
+
|
37
|
+
migration_template '../../../tmp/~migration_ready.rb',
|
38
|
+
'db/migrate/create_cheese_tables.rb'
|
39
|
+
remove_file 'tmp/~migration_ready.rb'
|
40
|
+
end
|
41
|
+
|
42
|
+
def copy_initializer_file
|
43
|
+
copy_file 'initializer.rb', 'config/initializers/cheese.rb'
|
44
|
+
end
|
45
|
+
|
46
|
+
def update_application_template
|
47
|
+
f = File.open "app/views/layouts/application.html.erb"
|
48
|
+
layout = f.read; f.close
|
49
|
+
|
50
|
+
if layout =~ /<%=[ ]+yield[ ]+%>/
|
51
|
+
print " \e[1m\e[34mquestion\e[0m Your layouts/application.html.erb layout currently has the line <%= yield %>. This gem needs to change this line to <%= content_for?(:content) ? yield(:content) : yield %> to support its nested layouts. This change should not affect any of your existing layouts or views. Is this okay? [y/n] "
|
52
|
+
begin
|
53
|
+
answer = gets.chomp
|
54
|
+
end while not answer =~ /[yn]/i
|
55
|
+
|
56
|
+
if answer =~ /y/i
|
57
|
+
|
58
|
+
layout.gsub!(/<%=[ ]+yield[ ]+%>/, '<%= content_for?(:content) ? yield(:content) : yield %>')
|
59
|
+
|
60
|
+
tmp_real_path = File.expand_path("tmp/~application.html.erb")
|
61
|
+
|
62
|
+
tmp = File.open tmp_real_path, "w"
|
63
|
+
tmp.write layout; tmp.close
|
64
|
+
|
65
|
+
remove_file 'app/views/layouts/application.html.erb'
|
66
|
+
copy_file tmp_real_path, 'app/views/layouts/application.html.erb'
|
67
|
+
remove_file tmp_real_path
|
68
|
+
end
|
69
|
+
elsif layout =~ /<%=[ ]+content_for\?\(:content\) \? yield\(:content\) : yield[ ]+%>/
|
70
|
+
puts " \e[1m\e[33mskipping\e[0m layouts/application.html.erb modification is already done."
|
71
|
+
else
|
72
|
+
puts " \e[1m\e[31mconflict\e[0m The gem is confused by your layouts/application.html.erb. It does not contain the default line <%= yield %>, you may need to make manual changes to get this gem's nested layouts working. Visit ###### for details."
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aslon_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-22 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &70317355924020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70317355924020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &70317355921800 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70317355921800
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: jeweler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70317355920920 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.6.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70317355920920
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rcov
|
49
|
-
requirement: &
|
49
|
+
requirement: &70317355920020 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70317355920020
|
58
58
|
description: simple settings for rails3 apps
|
59
59
|
email: ''
|
60
60
|
executables: []
|
@@ -64,14 +64,43 @@ extra_rdoc_files:
|
|
64
64
|
- README.rdoc
|
65
65
|
files:
|
66
66
|
- .document
|
67
|
+
- .idea/.name
|
68
|
+
- .idea/.rakeTasks
|
69
|
+
- .idea/aslon_settings.iml
|
70
|
+
- .idea/encodings.xml
|
71
|
+
- .idea/misc.xml
|
72
|
+
- .idea/modules.xml
|
73
|
+
- .idea/vcs.xml
|
74
|
+
- .idea/workspace.xml
|
67
75
|
- Gemfile
|
68
76
|
- Gemfile.lock
|
69
77
|
- LICENSE.txt
|
70
78
|
- README.rdoc
|
71
79
|
- Rakefile
|
72
80
|
- VERSION
|
81
|
+
- app/controllers/admin/item_params_controller.rb
|
82
|
+
- app/controllers/admin/params_controller.rb
|
83
|
+
- app/helpers/application_helper.rb
|
84
|
+
- app/helpers/cheese/widgets_helper.rb
|
85
|
+
- app/models/admin/item_param.rb
|
86
|
+
- app/models/admin/param.rb
|
87
|
+
- app/views/admin/params/index.html.haml
|
88
|
+
- app/views/layouts/cheese.html.erb
|
73
89
|
- aslon_settings.gemspec
|
90
|
+
- config/routes.rb
|
91
|
+
- lib/application_helper.rb
|
74
92
|
- lib/aslon_settings.rb
|
93
|
+
- lib/engine.rb
|
94
|
+
- lib/rails/generators/aslon_settings/aslon_settings_generator.rb
|
95
|
+
- lib/rails/generators/aslon_settings/templates/initializer.rb
|
96
|
+
- lib/rails/generators/aslon_settings/templates/migration_item_params.rb
|
97
|
+
- lib/rails/generators/aslon_settings/templates/migration_params.rb
|
98
|
+
- lib/rails/generators/aslon_settings/templates/schema.rb
|
99
|
+
- lib/rails/generators/cheese/cheese_generator.rb
|
100
|
+
- lib/rails/generators/cheese/templates/initializer.rb
|
101
|
+
- lib/rails/generators/cheese/templates/migration.rb
|
102
|
+
- lib/rails/generators/cheese/templates/schema.rb
|
103
|
+
- lib/rails/railties/tasks.rake
|
75
104
|
- test/helper.rb
|
76
105
|
- test/test_aslon_settings.rb
|
77
106
|
homepage: http://github.com/aslon/aslon_settings
|
@@ -89,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
118
|
version: '0'
|
90
119
|
segments:
|
91
120
|
- 0
|
92
|
-
hash:
|
121
|
+
hash: -2452357687656692194
|
93
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
123
|
none: false
|
95
124
|
requirements:
|