humdrum-rails 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +212 -1
- data/humdrum-rails.gemspec +1 -1
- data/lib/humdrum/version.rb +1 -1
- data/lib/rails/generators/humdrum/api/templates/models/resource.rb +8 -8
- data/lib/rails/generators/humdrum/layout/layout_generator.rb +37 -37
- data/lib/rails/generators/humdrum/layout/templates/controllers/application_controller.rb +7 -3
- data/lib/rails/generators/humdrum/layout/templates/helpers/display_helper.rb +4 -12
- data/lib/rails/generators/humdrum/layout/templates/helpers/params_parser_helper.rb +1 -16
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/application.css +6 -5
- data/lib/rails/generators/humdrum/layout/templates/stylesheets/bootstrap3/overrides-bootstrap.css +9 -6
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap2/layouts/application.html.erb +14 -14
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap2/layouts/common/_flash_message.html.erb +4 -4
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap2/layouts/layout_name.html.erb +15 -15
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap3/layouts/application/_header.html.erb +18 -33
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap3/layouts/application.html.erb +15 -15
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap3/layouts/common/_flash_message.html.erb +4 -4
- data/lib/rails/generators/humdrum/layout/templates/views/bootstrap3/layouts/layout_name.html.erb +15 -15
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/application.html.erb +13 -13
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/common/_flash_message.html.erb +4 -4
- data/lib/rails/generators/humdrum/layout/templates/views/gumby/layouts/layout_name.html.erb +13 -13
- data/lib/rails/generators/humdrum/resource/templates/controllers/resource_controller.rb +53 -49
- data/lib/rails/generators/humdrum/resource/templates/models/resource.rb +9 -11
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_edit.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_field.html.erb +7 -7
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_filters.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_form.html.erb +33 -33
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_index.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_item.html.erb +9 -9
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_nav_filters.html.erb +3 -3
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_new.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_show.html.erb +13 -13
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/_summary.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/index.html.erb +6 -6
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap2/resource/index.js.erb +3 -3
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_drop_down.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_edit.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_field.html.erb +12 -12
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_filters.html.erb +5 -5
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_form.html.erb +21 -21
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_index.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_item.html.erb +15 -15
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_nav_filters.html.erb +3 -3
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_new.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_show.html.erb +20 -20
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_summary.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/destroy.js.erb +4 -4
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/index.html.erb +7 -7
- data/lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/index.js.erb +3 -3
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_edit.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_field.html.erb +7 -7
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_filters.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_form.html copy.erb +13 -13
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_form.html.erb +18 -18
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_index.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_item.html.erb +9 -9
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_nav_filters.html.erb +3 -3
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_new.html.erb +2 -2
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_show.html.erb +19 -19
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_summary.html.erb +1 -1
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.html.erb +6 -6
- data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/index.js.erb +3 -3
- data/lib/rails/generators/humdrum/setup/setup_generator.rb +21 -26
- data/lib/rails/generators/humdrum/setup/templates/config/database.example.sql +17 -40
- data/lib/rails/generators/humdrum/setup/templates/config/database.sql +16 -38
- metadata +6 -6
@@ -7,7 +7,7 @@
|
|
7
7
|
</div>
|
8
8
|
<%% end %>
|
9
9
|
<%% if @<%= instances_name %>.blank? %>
|
10
|
-
<div id="div_<%= instance_name %>_empty" class="box text-color-grey
|
10
|
+
<div id="div_<%= instance_name %>_empty" class="box text-color-grey p-80 text-align-center" style="height:200px;">
|
11
11
|
<%%= translate("forms.no_results_found") %>
|
12
12
|
</div>
|
13
13
|
<%% end %>
|
@@ -1,21 +1,21 @@
|
|
1
1
|
<%%# describes about each <%= instance_name %> %>
|
2
|
-
<div class="box hoverable
|
3
|
-
|
2
|
+
<div class="box hoverable p-10 box-border-black">
|
3
|
+
|
4
4
|
<div class="pull-left">
|
5
|
-
<%%= link_to <%= instance_name %>.<%= main_string_field %>, <%= resource_link('show', 'path') %>(<%= instance_name %>), :remote=>true, :class=>"text-color-blue
|
5
|
+
<%%= link_to <%= instance_name %>.<%= main_string_field %>, <%= resource_link('show', 'path') %>(<%= instance_name %>), :remote=>true, :class=>"text-color-blue fs-16" %></br>
|
6
6
|
</div>
|
7
|
-
<div class="pull-right text-color-red
|
7
|
+
<div class="pull-right text-color-red fs-12">
|
8
8
|
<%%= display_time(<%= instance_name %>.created_at) %>
|
9
9
|
</div>
|
10
|
-
|
10
|
+
|
11
11
|
<div class="cl"></div>
|
12
|
-
|
13
|
-
<div class="
|
12
|
+
|
13
|
+
<div class="p-5">
|
14
14
|
<%- text_fields.each do |name| -%>
|
15
15
|
<%%= scrap_word(<%= instance_name %>.<%= name %>, 200) %>
|
16
16
|
<%- end -%>
|
17
17
|
</div>
|
18
|
-
|
18
|
+
|
19
19
|
<div class="cl"></div>
|
20
|
-
|
20
|
+
|
21
21
|
</div>
|
data/lib/rails/generators/humdrum/resource/templates/views/gumby/resource/_nav_filters.html.erb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
<%%= link_to 'New <%= model_class %>', <%= resource_link('new', 'path') %>, :class=>"btn btn-mini btn-primary pull-right
|
1
|
+
<%%= link_to 'New <%= model_class %>', <%= resource_link('new', 'path') %>, :class=>"btn btn-mini btn-primary pull-right ml-10", :remote=>true %>
|
2
2
|
|
3
3
|
<%%# Used to add a search functionality %>
|
4
|
-
<%%= form_for <%= model_class %>.new, :url => <%= resource_link('index', 'path') %>, :method => :get, :remote=>true, :html=>{:class=>"pull-right", :style=>"
|
4
|
+
<%%= form_for <%= model_class %>.new, :url => <%= resource_link('index', 'path') %>, :method => :get, :remote=>true, :html=>{:class=>"pull-right", :style=>"m-bottom:0px;"} do |f| %>
|
5
5
|
<div class="input-append">
|
6
6
|
<input type="text" style="height:13px;width:120px;" name="<%= instance_name %>[query]">
|
7
|
-
<button type="submit" class="btn btn-mini btn-primary"><i class="icon-search icon-white
|
7
|
+
<button type="submit" class="btn btn-mini btn-primary"><i class="icon-search icon-white mr--5"></i>Search Item ...</button>
|
8
8
|
</div>
|
9
9
|
<%%- end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
<%%# Used to create a new <%= model_class %> %>
|
3
|
-
<div class="box
|
4
|
-
<div class="
|
3
|
+
<div class="box p-10">
|
4
|
+
<div class="p-10 text-color-blue fs-18 mb-20">
|
5
5
|
Create a New <%= instance_title %>
|
6
6
|
</div>
|
7
7
|
<%%= render 'form' %>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
<%%= render :partial=>"layouts/common/flash_message" %>
|
6
6
|
<%% end %>
|
7
7
|
|
8
|
-
<div class="box
|
9
|
-
|
10
|
-
<div class="
|
8
|
+
<div class="box p-10">
|
9
|
+
|
10
|
+
<div class="m-10 text-color-blue fs-24">
|
11
11
|
<%%= @<%= instance_name %>.<%= main_string_field %> %>
|
12
12
|
</div>
|
13
|
-
|
13
|
+
|
14
14
|
<%- string_fields.each do |name| -%>
|
15
15
|
<%- next if name == main_string_field -%>
|
16
16
|
<div class="row">
|
@@ -18,40 +18,40 @@
|
|
18
18
|
<%%= content_tag :span, @<%= instance_name %>.<%= name %>, :class=>"six columns ext-color-grey" %>
|
19
19
|
</div>
|
20
20
|
<%- end -%>
|
21
|
-
|
21
|
+
|
22
22
|
<%- string_fields.each do |name| -%>
|
23
23
|
<% next if name == main_string_field %>
|
24
|
-
<div class="
|
24
|
+
<div class="ml-10">
|
25
25
|
<%= name.titleize %>: <%%= link_to @<%= instance_name %>.<%= name %>, "#", :class=>"text-color-red" %>
|
26
26
|
</div>
|
27
27
|
<%- end -%>
|
28
28
|
<% puts fields %>
|
29
29
|
<%- fields.map{|name, type| name unless ["text", "string"].include?(type)}.compact.uniq.each do |name| -%>
|
30
|
-
<div class="
|
30
|
+
<div class="ml-10">
|
31
31
|
<%= name.titleize %>: <%%= @<%= instance_name %>.<%= name %> %>
|
32
32
|
</div>
|
33
33
|
<%- end -%>
|
34
|
-
|
34
|
+
|
35
35
|
<%- text_fields.each do |name| -%>
|
36
|
-
<div class='italic
|
36
|
+
<div class='italic m-10'><%%= simple_format @<%= instance_name %>.<%= name %> %></div>
|
37
37
|
<%- end -%>
|
38
|
-
|
38
|
+
|
39
39
|
<div class="cl-20"></div>
|
40
|
-
|
41
|
-
<div class="palette-footer
|
42
|
-
|
43
|
-
<div class="pull-left text-color-red
|
40
|
+
|
41
|
+
<div class="palette-footer ml-10">
|
42
|
+
|
43
|
+
<div class="pull-left text-color-red fs-12">
|
44
44
|
<%%= display_time(@<%= instance_name %>.created_at) %>
|
45
45
|
</div>
|
46
|
-
|
47
|
-
<%%= content_tag :div, :class=>"pretty small danger btn icon-left icon-trash
|
46
|
+
|
47
|
+
<%%= content_tag :div, :class=>"pretty small danger btn icon-left icon-trash ml-10 pull-right" do %>
|
48
48
|
<%%= link_to "Delete", <%= resource_link('destroy', 'path') %>(@<%= instance_name %>), method: :delete, data: { confirm: 'Are you sure?' }, :remote=>true %>
|
49
49
|
<%% end %>
|
50
|
-
|
51
|
-
<%%= content_tag :div, :class=>"pretty small medium primary btn icon-left icon-pencil
|
50
|
+
|
51
|
+
<%%= content_tag :div, :class=>"pretty small medium primary btn icon-left icon-pencil ml-10 pull-right" do %>
|
52
52
|
<%%= link_to "Edit", <%= resource_link('edit', 'path') %>(@<%= instance_name %>), :remote=>true %>
|
53
53
|
<%% end %>
|
54
|
-
|
54
|
+
|
55
55
|
<div class="cl-10"></div>
|
56
56
|
</div>
|
57
57
|
|
@@ -5,6 +5,6 @@
|
|
5
5
|
<%%= render :partial=>"layouts/common/flash_message" %>
|
6
6
|
<%% end %>
|
7
7
|
|
8
|
-
<div class="box text-color-grey
|
8
|
+
<div class="box text-color-grey p-80 text-align-center" style="height:200px;">
|
9
9
|
Total <%= instances_title %> = <%%= <%= model_class %>.count %>
|
10
10
|
</div>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
|
2
2
|
<%%# Displays to Manage the items %>
|
3
|
-
<div class="<%= row_class %>
|
3
|
+
<div class="<%= row_class %> pt-10 ml-0">
|
4
4
|
|
5
5
|
<div class="six columns">
|
6
|
-
<%%= content_tag :span, "Manage <%= model_class.pluralize %>", :class=>"
|
6
|
+
<%%= content_tag :span, "Manage <%= model_class.pluralize %>", :class=>"fs-24 bold text-color-grey" %>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div id="div_<%= instance_name %>_filters" class="six columns">
|
@@ -21,17 +21,17 @@
|
|
21
21
|
<%% case params[:action] %>
|
22
22
|
<%% when "new", "edit", "show" %>
|
23
23
|
<%%= render :partial=>params[:action] %>
|
24
|
-
<%% when "index" %>
|
24
|
+
<%% when "index" %>
|
25
25
|
<%% if @<%= instances_name %>.empty? %>
|
26
26
|
<%%= render :partial=>"summary" %>
|
27
27
|
<%% else %>
|
28
|
-
<%%= render :partial=>"show" %>
|
28
|
+
<%%= render :partial=>"show" %>
|
29
29
|
<%% end %>
|
30
30
|
<%% else %>
|
31
|
-
<%%= render :partial=>"summary" %>
|
31
|
+
<%%= render :partial=>"summary" %>
|
32
32
|
<%% end %>
|
33
33
|
</div>
|
34
|
-
|
34
|
+
|
35
35
|
</div>
|
36
36
|
|
37
37
|
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
// Fill the right box with first <%= instance_name %> details in the list
|
4
4
|
$('#div_<%= instance_name %>_details').html("<%%= escape_javascript(render(:partial=>'show')) %>");
|
5
|
-
|
5
|
+
|
6
6
|
// Rendering the item list
|
7
7
|
$('#div_<%= instance_name %>_index').html("<%%= escape_javascript(render(:partial=>"index")) %>");
|
8
|
-
|
8
|
+
|
9
9
|
<%% else %>
|
10
10
|
|
11
|
-
var noResultsText = "<div class=\"box text-color-grey
|
11
|
+
var noResultsText = "<div class=\"box text-color-grey p-80 text-align-center\" style=\"height:200px;\">No <%= instances_title %> found.</div>";
|
12
12
|
$('#div_<%= instance_name %>_details').html(noResultsText);
|
13
13
|
$('#div_<%= instance_name %>_index').html(noResultsText);
|
14
14
|
|
@@ -1,94 +1,89 @@
|
|
1
1
|
module Humdrum
|
2
2
|
module Generators
|
3
3
|
class SetupGenerator < Rails::Generators::Base
|
4
|
-
|
4
|
+
|
5
5
|
source_root File.expand_path('../templates', __FILE__)
|
6
|
-
|
6
|
+
|
7
7
|
desc "Generates a database.example.yml file depending upon the database passed (first argument). Usage: rails g humdrum:database postgresql"
|
8
|
-
|
8
|
+
|
9
9
|
class_option :ruby_version, :type => :string, :default => "1.9.3-p429", :desc => "Ruby Version to create .ruby-version file"
|
10
10
|
class_option :rbenv_gemsets, :type => :string, :default => "app", :desc => "Name of the gemset. this file is used by rbenv"
|
11
|
-
|
11
|
+
|
12
12
|
class_option :config_database, :type => :boolean, :default => true, :desc => "Pass false if you want to generate database.yml again."
|
13
|
-
|
13
|
+
|
14
14
|
class_option :skip_version, :type => :boolean, :default => false, :desc => "Pass false if you don't want to generate .ruby-version"
|
15
15
|
class_option :skip_gemset, :type => :boolean, :default => false, :desc => "Pass false if you don't want to generate .ruby-gemset"
|
16
16
|
class_option :skip_gitignore, :type => :boolean, :default => false, :desc => "Pass false if you don't want to generate .gitignore"
|
17
|
-
|
17
|
+
|
18
18
|
class_option :config_database, :type => :boolean, :default => false, :desc => "Pass --config-database if you want to generate database.yml again."
|
19
19
|
class_option :dbase, :type => :string, :default => "postgresql", :desc => "Mention the database postgresql | mysql | sqlite"
|
20
20
|
class_option :dbase_name, :type => :string, :default => "app", :desc => "Pass your database username"
|
21
21
|
class_option :db_username, :type => :string, :default => "<username>", :desc => "Pass your database username. This requries config_database to be false"
|
22
22
|
class_option :db_password, :type => :string, :default => "<password>", :desc => "Pass your database password. This requries config_database to be false"
|
23
|
-
|
24
|
-
# Removing public/index.html for rails 1.9.x apps
|
25
|
-
def remove_index_file
|
26
|
-
remove_file "public/index.html"
|
27
|
-
end
|
28
|
-
|
23
|
+
|
29
24
|
def generate_constants_config
|
30
25
|
template "config/initializers/config_center.rb", "config/initializers/config_center.rb"
|
31
26
|
end
|
32
|
-
|
27
|
+
|
33
28
|
def generate_locales
|
34
29
|
template "config/locales/humdrum.en.yml", "config/locales/humdrum.en.yml"
|
35
30
|
end
|
36
|
-
|
31
|
+
|
37
32
|
def generate_core_ext
|
38
33
|
template "lib/core_ext/string.rb", "lib/core_ext/string.rb"
|
39
34
|
end
|
40
|
-
|
35
|
+
|
41
36
|
def set_gitignore
|
42
37
|
unless options.skip_gitignore
|
43
38
|
template "gitignore", ".gitignore"
|
44
39
|
end
|
45
40
|
end
|
46
|
-
|
41
|
+
|
47
42
|
def set_ruby_version
|
48
43
|
unless options.skip_ruby_version
|
49
44
|
template "ruby-version", ".ruby-version"
|
50
45
|
end
|
51
46
|
end
|
52
|
-
|
47
|
+
|
53
48
|
def set_rbenv_gemsets
|
54
49
|
unless options.skip_gemset
|
55
50
|
template "rbenv-gemsets", ".rbenv-gemsets"
|
56
51
|
end
|
57
52
|
end
|
58
|
-
|
53
|
+
|
59
54
|
def configure_database
|
60
55
|
if options.config_database
|
61
56
|
template "config/database.example.sql", "config/database.example.yml"
|
62
57
|
template "config/database.sql", "config/database.yml"
|
63
58
|
end
|
64
59
|
end
|
65
|
-
|
60
|
+
|
66
61
|
private
|
67
|
-
|
62
|
+
|
68
63
|
def dbase
|
69
64
|
options.dbase
|
70
65
|
end
|
71
|
-
|
66
|
+
|
72
67
|
def dbase_name
|
73
68
|
options.dbase_name
|
74
69
|
end
|
75
|
-
|
70
|
+
|
76
71
|
def db_username
|
77
72
|
options.db_username
|
78
73
|
end
|
79
|
-
|
74
|
+
|
80
75
|
def db_password
|
81
76
|
options.db_password
|
82
77
|
end
|
83
|
-
|
78
|
+
|
84
79
|
def ruby_version
|
85
80
|
options.ruby_version
|
86
81
|
end
|
87
|
-
|
82
|
+
|
88
83
|
def rbenv_gemsets
|
89
84
|
options.rbenv_gemsets
|
90
85
|
end
|
91
|
-
|
86
|
+
|
92
87
|
end
|
93
88
|
end
|
94
89
|
end
|
@@ -1,59 +1,36 @@
|
|
1
|
-
|
1
|
+
default: &default
|
2
2
|
adapter: <%= dbase %>
|
3
3
|
encoding: unicode
|
4
4
|
reconnect: false
|
5
|
-
database: <%= dbase_name %>_development
|
6
5
|
pool: 5
|
7
|
-
|
8
|
-
password: <password>
|
6
|
+
timeout: 5000
|
9
7
|
host: localhost
|
10
8
|
port: 5432
|
11
9
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
development:
|
11
|
+
<<: *default
|
12
|
+
database: <%= dbase_name %>_development
|
13
|
+
username: <user>
|
14
|
+
password: <password>
|
15
|
+
|
16
|
+
test: &test
|
17
|
+
<<: *default
|
19
18
|
database: <%= dbase_name %>_test
|
20
|
-
pool: 5
|
21
19
|
username: <user>
|
22
20
|
password: <password>
|
23
|
-
host: localhost
|
24
|
-
port: 5432
|
25
21
|
|
26
22
|
staging:
|
27
|
-
|
28
|
-
encoding: unicode
|
29
|
-
reconnect: false
|
23
|
+
<<: *default
|
30
24
|
database: <%= dbase_name %>_staging
|
31
|
-
|
32
|
-
username: <username>
|
33
|
-
password: <password>
|
34
|
-
host: localhost
|
35
|
-
port: 5432
|
36
|
-
|
37
|
-
demo:
|
38
|
-
adapter: <%= dbase %>
|
39
|
-
encoding: unicode
|
40
|
-
reconnect: false
|
41
|
-
database: <%= dbase_name %>_demo
|
42
|
-
pool: 5
|
43
|
-
username: <username>
|
25
|
+
username: <user>
|
44
26
|
password: <password>
|
45
|
-
host: localhost
|
46
|
-
port: 5432
|
47
27
|
|
48
28
|
production:
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
database: <%= dbase_name %>_demo
|
53
|
-
pool: 5
|
54
|
-
username: <username>
|
29
|
+
<<: *default
|
30
|
+
database: <%= dbase_name %>_production
|
31
|
+
username: <user>
|
55
32
|
password: <password>
|
56
|
-
host: localhost
|
57
|
-
port: 5432
|
58
33
|
|
34
|
+
cucumber:
|
35
|
+
<<: *test
|
59
36
|
|
@@ -1,59 +1,37 @@
|
|
1
|
-
|
1
|
+
default: &default
|
2
2
|
adapter: <%= dbase %>
|
3
3
|
encoding: unicode
|
4
4
|
reconnect: false
|
5
|
-
database: <%= dbase_name %>_development
|
6
5
|
pool: 5
|
7
|
-
|
8
|
-
password: <%= db_password %>
|
6
|
+
timeout: 5000
|
9
7
|
host: localhost
|
10
8
|
port: 5432
|
11
9
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
test:
|
16
|
-
adapter: <%= dbase %>
|
17
|
-
encoding: unicode
|
18
|
-
reconnect: false
|
19
|
-
database: <%= dbase_name %>_test
|
20
|
-
pool: 5
|
10
|
+
development:
|
11
|
+
<<: *default
|
12
|
+
database: <%= dbase_name %>_development
|
21
13
|
username: <%= db_username %>
|
22
14
|
password: <%= db_password %>
|
23
|
-
host: localhost
|
24
|
-
port: 5432
|
25
15
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
reconnect: false
|
30
|
-
database: <%= dbase_name %>_staging
|
31
|
-
pool: 5
|
16
|
+
test: &test
|
17
|
+
<<: *default
|
18
|
+
database: <%= dbase_name %>_test
|
32
19
|
username: <%= db_username %>
|
33
20
|
password: <%= db_password %>
|
34
|
-
host: localhost
|
35
|
-
port: 5432
|
36
21
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
reconnect: false
|
41
|
-
database: <%= dbase_name %>_demo
|
42
|
-
pool: 5
|
22
|
+
staging:
|
23
|
+
<<: *default
|
24
|
+
database: <%= dbase_name %>_staging
|
43
25
|
username: <%= db_username %>
|
44
26
|
password: <%= db_password %>
|
45
|
-
host: localhost
|
46
|
-
port: 5432
|
47
27
|
|
48
28
|
production:
|
49
|
-
|
50
|
-
|
51
|
-
reconnect: false
|
52
|
-
database: <%= dbase_name %>_demo
|
53
|
-
pool: 5
|
29
|
+
<<: *default
|
30
|
+
database: <%= dbase_name %>_production
|
54
31
|
username: <%= db_username %>
|
55
32
|
password: <%= db_password %>
|
56
|
-
|
57
|
-
|
33
|
+
|
34
|
+
cucumber:
|
35
|
+
<<: *test
|
58
36
|
|
59
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humdrum-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krishnan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -76,20 +76,20 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: 0.0.
|
79
|
+
version: 0.0.7
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.0.
|
82
|
+
version: 0.0.7
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.0.
|
89
|
+
version: 0.0.7
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.0.
|
92
|
+
version: 0.0.7
|
93
93
|
description: humdrum-rails is a collection of useful generators which are quite handy
|
94
94
|
for starting up a project in ruby on railgem.
|
95
95
|
email: krishnaprasadvarma@gmail.com
|