sections_rails 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module SectionsRails
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
3
3
  end
@@ -36,8 +36,8 @@ namespace :sections do
36
36
  file.write "/*\n"
37
37
  sections.each do |section_name|
38
38
  section = SectionsRails::Section.new section_name
39
- js_asset = section.find_js_asset_path
40
- file.write "//= require #{js_asset}\n" if js_asset
39
+ js_asset = section.find_css_asset_path
40
+ file.write "*= require #{js_asset}\n" if js_asset
41
41
  end
42
42
  file.write " */"
43
43
  end
@@ -60,7 +60,6 @@ namespace :sections do
60
60
 
61
61
  # Don't do anything if the page has no page-specific JS file.
62
62
  root_name = view[0..-10]
63
- puts root_name
64
63
  next unless File.exists? "app/pages/#{view}.js"
65
64
  end
66
65
  end
@@ -123,7 +122,6 @@ namespace :sections do
123
122
  def find_sections_in_section section_name
124
123
  section = SectionsRails::Section.new section_name
125
124
  partial_path = section.find_partial_filename
126
- puts "section #{section_name} has partial #{partial_path}"
127
125
  if partial_path
128
126
  find_sections IO.read partial_path
129
127
  else
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.6.5
4
+ version: 0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70295138811940 !ruby/object:Gem::Requirement
16
+ requirement: &70346083211320 !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: *70295138811940
24
+ version_requirements: *70346083211320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70295138811220 !ruby/object:Gem::Requirement
27
+ requirement: &70346083210700 !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: *70295138811220
35
+ version_requirements: *70346083210700
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &70295138810700 !ruby/object:Gem::Requirement
38
+ requirement: &70346083209960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70295138810700
46
+ version_requirements: *70346083209960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard-rspec
49
- requirement: &70295138810200 !ruby/object:Gem::Requirement
49
+ requirement: &70346083209360 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70295138810200
57
+ version_requirements: *70346083209360
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rb-fsevent
60
- requirement: &70295138809560 !ruby/object:Gem::Requirement
60
+ requirement: &70346083079900 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70295138809560
68
+ version_requirements: *70346083079900
69
69
  description: Sections_rails adds infrastructure to the view layer of Ruby on Rails.
70
70
  It allows to define and use the HTML, CSS, and JavaScript code of dedicated sections
71
71
  of pages together in one place.