russpeeddev 0.0.3 → 0.0.4

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 822967386c2484d9db88a7cd00cc2c67db56dab8
4
- data.tar.gz: 8111ba0bee630bdcf4ee9fa3306d41db1c320d05
3
+ metadata.gz: 5490b3102fee15a4831022ddd0d2df59817d2b42
4
+ data.tar.gz: 4cd404d9676630c0b77baa6e246b1a20239741db
5
5
  SHA512:
6
- metadata.gz: 48e0bfae90d8d79ef516ccf0795c18593add372be6829fbd276d7c6b51ada7489aae862ef7ccdee56311536cf5e7dade530e4844e5a4e816ba1f701d0da7c3d8
7
- data.tar.gz: ad8fdfb967d11ae9599b496d8899c936ecc57342fabf24cdfcce14e9dc1fa2fd697f3b38e5082d8c4f28ab3a379a9ffacf37466d98975d0ca29bade1613ad4f9
6
+ metadata.gz: 3339dc1ba6ad711fd9e245e45a541b51ae1f411ec17cceb76821d95aadac97cd4b3330290d66de4df344570fd049f60bc31bc43c7f7c72c53fc034ff7b674fc0
7
+ data.tar.gz: 85cb3f93efe3762a94a9b71bf4090a05bf3521fad64b48a07adfc6acdfd6907f35db45cbb14c77810ac2f4d3aa4f6efb881e17a4dfd0ad033eec4109c79af443
data/CHANGELOG.MD CHANGED
@@ -1,6 +1,49 @@
1
+
2
+ # Русский
3
+
4
+ ## v0.0.4
5
+
6
+ * Добавлен код в custom.css.scss
7
+ * Изменен шаблон
8
+ * За основу взят шаблон Sticky footer with fixed navbar http://twitter.github.io/bootstrap/examples/sticky-footer-navbar.html
9
+
10
+
11
+ ## v0.0.3.1
12
+
13
+ * Некотрые баги
14
+
15
+ ## v0.0.3
16
+
17
+ * Исправлено выравнивание кода в config/application.rb
18
+
19
+
20
+ ## v0.0.2
21
+
22
+ * Добавлены строки конфигурации приложения в config/application.rb
23
+
24
+ ## v0.0.1.1
25
+
26
+ * Первый релиз в rubygem.org
27
+
28
+ ## v0.0.1
29
+
30
+ * Первый релиз
31
+
32
+ # English
33
+
34
+ ## v0.0.4
35
+
36
+ * Add some custom css code
37
+ * Application layout changed
38
+ * Sticky footer with fixed navbar
39
+
40
+ ## v0.0.3.1
41
+
42
+ * No comment
43
+
1
44
  ## v0.0.3
2
45
 
3
- * wrap configs
46
+ * Wrap configs
4
47
 
5
48
  ## v0.0.2
6
49
 
data/README.md CHANGED
@@ -19,6 +19,7 @@
19
19
  * config.time_zone = 'Moscow'
20
20
  * config.active_record.default_timezone = :local
21
21
  * config.i18n.default_locale = :ru
22
+ * Используется шаблон Sticky footer with fixed navbar (http://twitter.github.io/bootstrap/examples/sticky-footer-navbar.html)
22
23
 
23
24
  ### Список гемов
24
25
  * gem 'russian'
@@ -39,6 +40,15 @@
39
40
  * gem 'rspec-rails'
40
41
  * gem 'quiet_assets'
41
42
 
43
+ #### гемы в комментариях:
44
+ * gem 'thinking-sphinx'
45
+ * gem 'delayed_job_active_record'
46
+ * gem 'devise'
47
+ * gem 'devise-russian', '~> 2.0.1.1'
48
+ * gem 'activeadmin'
49
+ * gem 'meta_search', '>= 1.1.0.pre'
50
+
51
+
42
52
  ## Установка
43
53
 
44
54
  Добавить строку в Gemfile:
@@ -61,7 +71,7 @@
61
71
 
62
72
  ## Баги rails 4.0.0.rc1
63
73
 
64
- Есть проблема с зависимостями slim-rails, slim и tilt 1.4.0. Решается запуском bundle update и повторной генерации russpeeddev
74
+ Есть проблема с зависимостями slim-rails, slim и tilt 1.4.0. Решается запуском bundle update и повторной генерацией russpeeddev
65
75
 
66
76
 
67
77
  ## Contributing
@@ -65,9 +65,7 @@ end
65
65
  end
66
66
 
67
67
  def create_custom_css_scss
68
- create_file "app/assets/stylesheets/custom.css.scss" do
69
- "@import 'bootstrap';\n@import 'bootstrap-responsive';"
70
- end
68
+ template "custom.css.scss", "app/assets/stylesheets/custom.css.scss"
71
69
  insert_into_file "app/assets/stylesheets/application.css" , before: "*/" do
72
70
  "*= require custom\n"
73
71
  end
@@ -79,13 +77,17 @@ end
79
77
  template "_mainmenu.html.slim", "app/views/shared/_mainmenu.html.slim"
80
78
  template "_meta.html.slim", "app/views/shared/_meta.html.slim"
81
79
  template "_nojs.html", "app/views/shared/_nojs.html"
82
- template "_outdate.html", "app/views/shared/_outdate.html"
80
+ template "_outdate.html.slim", "app/views/shared/_outdate.html.slim"
83
81
  remove_file 'app/helpers/application_helper.rb'
84
82
  template "application_helper.rb", "app/helpers/application_helper.rb"
85
83
  remove_file 'app/views/layouts/application.html.erb'
86
84
  template "application.html.slim", "app/views/layouts/application.html.slim"
87
85
  end
88
86
 
87
+ def remove_old_version_files
88
+ remove_file 'app/views/shared/_outdate.html'
89
+ end
90
+
89
91
  def edit_application_rb
90
92
  insert_into_file "config/application.rb" , after: "# config.i18n.default_locale = :de" do
91
93
  "\n config.i18n.default_locale = :ru\n"
@@ -1,5 +1,3 @@
1
- footer
1
+ .container
2
2
  .copyright
3
- p Адрес:
4
- p © Company #{Time.now.year}
5
- p =mail_to 'info@changedomainhere.ru'
3
+ |© Company #{Time.now.year} #{mail_to 'info@changedomainhere.ru'} | #{link_to 'bootstrap', 'http://twitter.github.io/bootstrap'}
@@ -1,6 +1,13 @@
1
- nav*{class:'top-menu-navigation'}
2
- ul class="l-nav"
3
- li.main-link =link_to "Главная", root_url
4
- li.main-link =link_to "О нас", about_url
5
- li.main-link =link_to "Контакты", contact_url
6
-
1
+ .navbar.navbar-inverse.navbar-fixed-top
2
+ .navbar-inner
3
+ .container
4
+ button.btn.btn-navbar type="button" data-toggle="collapse" data-target=".nav-collapse"
5
+ span.icon-bar
6
+ span.icon-bar
7
+ span.icon-bar
8
+ =link_to "RusSpeedDev", root_url, class: 'brand'
9
+ .nav-collapse.collapse
10
+ ul.nav
11
+ li.main-link =link_to "Главная", root_url
12
+ li.main-link =link_to "О нас", about_url
13
+ li.main-link =link_to "Контакты", contact_url
@@ -0,0 +1,3 @@
1
+ /[if lt IE 7]
2
+ p.chromeframe
3
+ |You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.
@@ -9,10 +9,13 @@ html
9
9
 
10
10
  body *{class: controller.controller_name}
11
11
  =render 'shared/outdate'
12
- header
13
- = render 'shared/mainmenu'
14
- .content
15
- = yield
16
- =render 'shared/footer'
12
+ #wrap
13
+ header
14
+ = render 'shared/mainmenu'
15
+ .container
16
+ = yield
17
+ #push
18
+ footer#footer
19
+ =render 'shared/footer'
17
20
  /!javascript include here
18
21
  =javascript_include_tag "application"
@@ -0,0 +1,44 @@
1
+ @import "bootstrap";
2
+ @import "bootstrap-responsive";
3
+
4
+
5
+ /* Sticky footer styles
6
+ -------------------------------------------------- */
7
+
8
+ html,
9
+ body {
10
+ height: 100%;
11
+ /* The html and body elements cannot have any padding or margin. */
12
+ }
13
+
14
+ /* Wrapper for page content to push down footer */
15
+ #wrap {
16
+ min-height: 100%;
17
+ height: auto !important;
18
+ height: 100%;
19
+ /* Negative indent footer by it's height */
20
+ margin: 0 auto -60px;
21
+ }
22
+
23
+ /* Set the fixed height of the footer here */
24
+ #push,
25
+ #footer {
26
+ height: 60px;
27
+ }
28
+ #footer {
29
+ background-color: #f5f5f5;
30
+ }
31
+
32
+ /* Lastly, apply responsive CSS fixes as necessary */
33
+ @media (max-width: 767px) {
34
+ #footer {
35
+ margin-left: -20px;
36
+ margin-right: -20px;
37
+ padding-left: 20px;
38
+ padding-right: 20px;
39
+ }
40
+ }
41
+
42
+ #wrap > .container {
43
+ padding-top: 60px;
44
+ }
@@ -2,7 +2,7 @@
2
2
  module Russpeeddev
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
  PRE = nil
7
7
  VERSION = [MAJOR, MINOR, TINY, PRE].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russpeeddev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vasche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-05 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -57,9 +57,10 @@ files:
57
57
  - lib/generators/russpeeddev/templates/_mainmenu.html.slim
58
58
  - lib/generators/russpeeddev/templates/_meta.html.slim
59
59
  - lib/generators/russpeeddev/templates/_nojs.html
60
- - lib/generators/russpeeddev/templates/_outdate.html
60
+ - lib/generators/russpeeddev/templates/_outdate.html.slim
61
61
  - lib/generators/russpeeddev/templates/application.html.slim
62
62
  - lib/generators/russpeeddev/templates/application_helper.rb
63
+ - lib/generators/russpeeddev/templates/custom.css.scss
63
64
  - lib/russpeeddev.rb
64
65
  - lib/russpeeddev/version.rb
65
66
  - russpeeddev.gemspec
@@ -1 +0,0 @@
1
- <!--[if lt IE 7]><p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p><![endif]-->