sections_rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,16 +2,16 @@ class SectionsGenerator < Rails::Generators::Base
2
2
 
3
3
  def create_sections_folder
4
4
  say ''
5
- say ' STEP 1: Creating sections folder'
5
+ say 'STEP 1: Creating sections folder'
6
6
  say ''
7
7
  empty_directory "app/sections"
8
8
  inject_into_file 'config/application.rb',
9
9
  " config.assets.paths << 'app/sections'\n",
10
10
  :after => /config.assets.enabled\s*=.*\n/
11
11
  say ''
12
- say ' I have made some modifications to '
12
+ say ' I have made some modifications to '
13
13
  say 'config/application.rb', Thor::Shell::Color::BOLD
14
- say ' Please review them before submitting these changes to your code repository.'
14
+ say ' Please review them before submitting these changes to your code repository.'
15
15
  say ''
16
16
  end
17
17
 
@@ -35,18 +35,18 @@ class SectionsGenerator < Rails::Generators::Base
35
35
  END_STR
36
36
 
37
37
  say ''
38
- say ' I have created two files to reference the assets from the sections.'
39
- say ' * '
38
+ say ' I have created two files to reference the assets from the sections.'
39
+ say ' * '
40
40
  say 'app/assets/javascripts/application_sections.js', Thor::Shell::Color::BOLD
41
- say ' * '
41
+ say ' * '
42
42
  say 'app/assets/stylesheets/application_sections.css', Thor::Shell::Color::BOLD
43
43
  say ''
44
- say ' They should be checked into your code repository the way they are, and remain that way.'
45
- say ' When running "rake assets:precompile" during deployment,'
46
- say ' they will be updated with the actually used assets for proper operation in production mode.'
44
+ say ' They should be checked into your code repository the way they are, and remain that way.'
45
+ say ' When running "rake assets:precompile" during deployment,'
46
+ say ' they will be updated with the actually used assets for proper operation in production mode.'
47
47
  say ''
48
- say ' You must make sure they are loaded into the asset pipeline, for example by'
49
- say ' requiring them in application.js and application.css.'
48
+ say ' You must make sure they are loaded into the asset pipeline, for example by'
49
+ say ' requiring them in application.js and application.css.'
50
50
  say ''
51
51
  end
52
52
 
@@ -56,7 +56,8 @@ class SectionsGenerator < Rails::Generators::Base
56
56
  say ''
57
57
 
58
58
  # Ask the user.
59
- return unless ['', 'y', 'yes'].include? ask('Do you want to create a sample section? [Yn]').downcase
59
+ return unless ['', 'y', 'yes'].include? ask(' Do you want to create a sample section? [Yn]').downcase
60
+ say ''
60
61
 
61
62
  # Create the sample section directory.
62
63
  empty_directory "app/sections/hello_world"
@@ -105,13 +106,13 @@ $(function() {
105
106
  END_STR
106
107
 
107
108
  say ''
108
- say ' A sample section has been created in '
109
+ say ' I have created a sample section in '
109
110
  say 'app/sections/hello_world', Thor::Shell::Color::BOLD
110
- say ' To use it, simply put '
111
+ say ' To use it, simply put '
111
112
  say '<%= section :hello_world %>', Thor::Shell::Color::BOLD
112
- say ' into a view file.'
113
+ say ' into a view file.'
113
114
  say ''
114
- say ' Happy coding! :)'
115
+ say ' Happy coding! :)'
115
116
  say ''
116
117
  end
117
118
  end
@@ -1,3 +1,3 @@
1
1
  module SectionsRails
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sections_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70256958176400 !ruby/object:Gem::Requirement
16
+ requirement: &70189125697080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70256958176400
24
+ version_requirements: *70189125697080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70256958175980 !ruby/object:Gem::Requirement
27
+ requirement: &70189125696660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70256958175980
35
+ version_requirements: *70189125696660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70256958175520 !ruby/object:Gem::Requirement
38
+ requirement: &70189125696200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70256958175520
46
+ version_requirements: *70189125696200
47
47
  description: Sections_rails adds infrastructure to the view layer of Ruby on Rails.
48
48
  It allows to define and use the HTML, CSS, and JavaScript code of dedicated sections
49
49
  of pages together in one place.