slick_map_css-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,23 @@
1
+ source 'http://rubygems.org'
2
+
3
+ # ------------------------------------------------------------------------------
4
+ # Dependencies required to use the gem.
5
+ gem 'rails', '~> 3.2.0'
6
+
7
+
8
+
9
+ # ------------------------------------------------------------------------------
10
+ # Dependencies to develop the gem.
11
+ # Everything needed to run rake, tests, features, etc.
12
+ group :development do
13
+ gem 'bundler', '~> 1.1.0'
14
+ gem 'capybara', '~> 1.1.0'
15
+ gem 'guard', '~> 1.3.0'
16
+ gem 'guard-rspec', '~> 1.2.0'
17
+ gem 'guard-spork', '~> 1.1.0'
18
+ gem 'jeweler', '~> 1.8.4'
19
+ #gem 'rcov', '>= 0'
20
+ gem 'rdoc', '~> 3.12'
21
+ gem 'rspec-rails', '~> 2.11.0'
22
+ gem 'sqlite3', '~> 1.3.0'
23
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,155 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (3.2.8)
5
+ actionpack (= 3.2.8)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.8)
8
+ activemodel (= 3.2.8)
9
+ activesupport (= 3.2.8)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.4)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.3)
17
+ activemodel (3.2.8)
18
+ activesupport (= 3.2.8)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.8)
21
+ activemodel (= 3.2.8)
22
+ activesupport (= 3.2.8)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.8)
26
+ activemodel (= 3.2.8)
27
+ activesupport (= 3.2.8)
28
+ activesupport (3.2.8)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ addressable (2.3.2)
32
+ arel (3.0.2)
33
+ builder (3.0.0)
34
+ capybara (1.1.2)
35
+ mime-types (>= 1.16)
36
+ nokogiri (>= 1.3.3)
37
+ rack (>= 1.0.0)
38
+ rack-test (>= 0.5.4)
39
+ selenium-webdriver (~> 2.0)
40
+ xpath (~> 0.1.4)
41
+ childprocess (0.3.5)
42
+ ffi (~> 1.0, >= 1.0.6)
43
+ diff-lcs (1.1.3)
44
+ erubis (2.7.0)
45
+ ffi (1.1.5)
46
+ git (1.2.5)
47
+ guard (1.3.2)
48
+ listen (>= 0.4.2)
49
+ thor (>= 0.14.6)
50
+ guard-rspec (1.2.1)
51
+ guard (>= 1.1)
52
+ guard-spork (1.1.0)
53
+ guard (>= 1.1)
54
+ spork (>= 0.8.4)
55
+ hike (1.2.1)
56
+ i18n (0.6.0)
57
+ jeweler (1.8.4)
58
+ bundler (~> 1.0)
59
+ git (>= 1.2.5)
60
+ rake
61
+ rdoc
62
+ journey (1.0.4)
63
+ json (1.7.5)
64
+ libwebsocket (0.1.5)
65
+ addressable
66
+ listen (0.4.7)
67
+ rb-fchange (~> 0.0.5)
68
+ rb-fsevent (~> 0.9.1)
69
+ rb-inotify (~> 0.8.8)
70
+ mail (2.4.4)
71
+ i18n (>= 0.4.0)
72
+ mime-types (~> 1.16)
73
+ treetop (~> 1.4.8)
74
+ mime-types (1.19)
75
+ multi_json (1.3.6)
76
+ nokogiri (1.5.5)
77
+ polyglot (0.3.3)
78
+ rack (1.4.1)
79
+ rack-cache (1.2)
80
+ rack (>= 0.4)
81
+ rack-ssl (1.3.2)
82
+ rack
83
+ rack-test (0.6.1)
84
+ rack (>= 1.0)
85
+ rails (3.2.8)
86
+ actionmailer (= 3.2.8)
87
+ actionpack (= 3.2.8)
88
+ activerecord (= 3.2.8)
89
+ activeresource (= 3.2.8)
90
+ activesupport (= 3.2.8)
91
+ bundler (~> 1.0)
92
+ railties (= 3.2.8)
93
+ railties (3.2.8)
94
+ actionpack (= 3.2.8)
95
+ activesupport (= 3.2.8)
96
+ rack-ssl (~> 1.3.2)
97
+ rake (>= 0.8.7)
98
+ rdoc (~> 3.4)
99
+ thor (>= 0.14.6, < 2.0)
100
+ rake (0.9.2.2)
101
+ rb-fchange (0.0.5)
102
+ ffi
103
+ rb-fsevent (0.9.1)
104
+ rb-inotify (0.8.8)
105
+ ffi (>= 0.5.0)
106
+ rdoc (3.12)
107
+ json (~> 1.4)
108
+ rspec (2.11.0)
109
+ rspec-core (~> 2.11.0)
110
+ rspec-expectations (~> 2.11.0)
111
+ rspec-mocks (~> 2.11.0)
112
+ rspec-core (2.11.1)
113
+ rspec-expectations (2.11.2)
114
+ diff-lcs (~> 1.1.3)
115
+ rspec-mocks (2.11.2)
116
+ rspec-rails (2.11.0)
117
+ actionpack (>= 3.0)
118
+ activesupport (>= 3.0)
119
+ railties (>= 3.0)
120
+ rspec (~> 2.11.0)
121
+ rubyzip (0.9.9)
122
+ selenium-webdriver (2.25.0)
123
+ childprocess (>= 0.2.5)
124
+ libwebsocket (~> 0.1.3)
125
+ multi_json (~> 1.0)
126
+ rubyzip
127
+ spork (0.9.2)
128
+ sprockets (2.1.3)
129
+ hike (~> 1.2)
130
+ rack (~> 1.0)
131
+ tilt (~> 1.1, != 1.3.0)
132
+ sqlite3 (1.3.6)
133
+ thor (0.16.0)
134
+ tilt (1.3.3)
135
+ treetop (1.4.10)
136
+ polyglot
137
+ polyglot (>= 0.3.1)
138
+ tzinfo (0.3.33)
139
+ xpath (0.1.4)
140
+ nokogiri (~> 1.3)
141
+
142
+ PLATFORMS
143
+ ruby
144
+
145
+ DEPENDENCIES
146
+ bundler (~> 1.1.0)
147
+ capybara (~> 1.1.0)
148
+ guard (~> 1.3.0)
149
+ guard-rspec (~> 1.2.0)
150
+ guard-spork (~> 1.1.0)
151
+ jeweler (~> 1.8.4)
152
+ rails (~> 3.2.0)
153
+ rdoc (~> 3.12)
154
+ rspec-rails (~> 2.11.0)
155
+ sqlite3 (~> 1.3.0)
data/Guardfile ADDED
@@ -0,0 +1,37 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
5
+ watch('config/application.rb')
6
+ watch('config/environment.rb')
7
+ watch('config/environments/test.rb')
8
+ watch(%r{^config/initializers/.+\.rb$})
9
+ watch('Gemfile')
10
+ watch('Gemfile.lock')
11
+ watch('spec/spec_helper.rb') { :rspec }
12
+ watch('test/test_helper.rb') { :test_unit }
13
+ watch(%r{features/support/}) { :cucumber }
14
+ end
15
+
16
+ #guard 'rspec', :version => 2 do
17
+ guard 'rspec', :cli => "--color --drb", :version => 2 do
18
+ watch(%r{^spec/.+_spec\.rb$})
19
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
20
+ watch('spec/spec_helper.rb') { "spec" }
21
+
22
+ # Rails example
23
+ watch(%r{^spec/dummy/app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
24
+ watch(%r{^spec/dummy/app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
25
+ watch(%r{^spec/dummy/app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
26
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
27
+ watch('config/routes.rb') { "spec/routing" }
28
+ watch('spec/dummy/app/controllers/application_controller.rb') { "spec/controllers" }
29
+
30
+ # Capybara request specs
31
+ watch(%r{^spec/dummy/app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
32
+
33
+ # Turnip features and steps
34
+ watch(%r{^spec/acceptance/(.+)\.feature$})
35
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
36
+ end
37
+
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 David DIDIER
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # slick\_map\_css-rails
2
+
3
+ A stylesheet for displaying site maps directly from HTML unordered list.
4
+ This library is built upon [SlickMapCSS](http://astuteo.com/slickmap) and adds convenient features such as:
5
+
6
+ * integration with the assets pipeline
7
+
8
+ ## Installation
9
+
10
+ Add it to your Gemfile:
11
+
12
+ `gem 'slick_map_css-rails'`
13
+
14
+ Run the following command to install it:
15
+
16
+ `bundle install`
17
+
18
+ In your CSS manifest `application.css` add:
19
+
20
+ `//= require slick_map_css-rails'`
21
+
22
+ ## Usage
23
+
24
+ (adapted from the original ReadMe.txt)
25
+
26
+ 1. Create an HTML unordered list of links wrapped inside a `<div class="sitemap">`. SlickMap was designed to style actual linked navigation, not simply lists, so make sure to include anchor tags. See the [adapted example file](https://github.com/ddidier/slick_map_css-rails/blob/master/doc/index.html) for the correct formatting.
27
+
28
+ 2. Within your HTML file, the link to your home page should be at the top of the unordered list and have the class of `.home`. This is required to pull the home page link out above the rest of the site tree.
29
+
30
+ 3. The SlickMap default is 4 columns. In order to change the number of columns, you simply need to change the class of the `primary` unordered list (`col4`, `col5`, etc.). SlickMap CSS will accomodate 1 to 10 columns, some much better than others.
31
+
32
+ NOTE: Due to Internet Explorer's difficulty in rounding numbers, you may find the farthest right column drops down instead of appearing in line. If need be, you can resolve this issue by adjusting the CSS to use a slightly smaller percentage than what you really need, i.e. (pun intended) 24.9% instead of 25%.
33
+
34
+ ## Requirements
35
+
36
+ Tested with Rails 3.2 but it should work with Rails 3.1, or anything that uses the asset pipeline.
37
+
38
+ ## Contributing to slick_map_css-rails
39
+
40
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
41
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
42
+ * Fork the project.
43
+ * Start a feature/bugfix branch.
44
+ * Commit and push until you are happy with your contribution.
45
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
46
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
47
+
48
+ ## Copyright
49
+
50
+ Copyright (c) 2012 David DIDIER. See LICENSE.txt for further details.
51
+
52
+ [Astuteo SlickMapCSS](http://astuteo.com/slickmap/)
data/Rakefile ADDED
@@ -0,0 +1,49 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "slick_map_css-rails"
18
+ gem.homepage = "http://github.com/ddidier/slick_map_css-rails"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{A stylesheet for displaying site maps directly from HTML unordered list}
21
+ gem.description = %Q{A stylesheet for displaying site maps directly from HTML unordered list (adapted from http://astuteo.com/slickmap/)}
22
+ gem.email = "c_inconnu2@yahoo.fr"
23
+ gem.authors = ["David DIDIER"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+
39
+ task :default => :spec
40
+
41
+ require 'rdoc/task'
42
+ Rake::RDocTask.new do |rdoc|
43
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
+
45
+ rdoc.rdoc_dir = 'rdoc'
46
+ rdoc.title = "slick_map_css-rails #{version}"
47
+ rdoc.rdoc_files.include('README*')
48
+ rdoc.rdoc_files.include('lib/**/*.rb')
49
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/doc/index.html ADDED
@@ -0,0 +1,77 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta name="author" content="Matt Everson of Astuteo, LLC – http://astuteo.com/slickmap" />
8
+ <title>SlickMap CSS</title>
9
+ <link rel="stylesheet" type="text/css" media="screen, print" href="slickmap.css" />
10
+ </head>
11
+
12
+ <body>
13
+
14
+ <div class="sitemap">
15
+
16
+ <h1>Project Title</h1>
17
+
18
+ <h2>Preliminary Site Map &mdash; Version 1.0</h2>
19
+
20
+ <ul class="utility">
21
+ <li><a href="/register">Register</a></li>
22
+ <li><a href="/login">Log In</a></li>
23
+ <li><a href="/sitemap">Site Map</a></li>
24
+ </ul>
25
+
26
+ <ul class="primary col4">
27
+ <li class="home"><a href="http://sitetitle.com">Home</a></li>
28
+ <li><a href="/about">About Us</a>
29
+ <ul>
30
+ <li><a href="/history">Our History</a></li>
31
+ <li><a href="/mission">Mission Statement</a></li>
32
+ <li><a href="/principals">Principals</a></li>
33
+ </ul>
34
+ </li>
35
+ <li><a href="/services">Services</a>
36
+ <ul>
37
+ <li><a href="/services/design">Graphic Design</a></li>
38
+ <li><a href="/services/development">Web Development</a></li>
39
+ <li><a href="/services/marketing">Internet Marketing</a>
40
+ <ul>
41
+ <li><a href="/social-media">Social Media</a></li>
42
+ <li><a href="/optimization">Search Optimization</a></li>
43
+ <li><a href="/adwords">Google AdWords</a></li>
44
+ </ul>
45
+ </li>
46
+ <li><a href="/services/copywriting">Copywriting</a></li>
47
+ <li><a href="/services/photography">Photography</a></li>
48
+ </ul>
49
+ </li>
50
+ <li><a href="/projects">Projects</a>
51
+ <ul>
52
+ <li><a href="/projects/finance">Finance</a></li>
53
+ <li><a href="/projects/medical">Medical</a></li>
54
+ <li><a href="/projects/education">Education</a></li>
55
+ <li><a href="/projects/professional">Professional</a></li>
56
+ <li><a href="/projects/industrial">Industrial</a></li>
57
+ <li><a href="/projects/commercial">Commercial</a></li>
58
+ <li><a href="/projects/energy">Energy</a></li>
59
+ </ul>
60
+ </li>
61
+ <li><a href="/contact">Contact</a>
62
+ <ul>
63
+ <li><a href="/contact/offices">Offices</a>
64
+ <ul>
65
+ <li><a href="contact/map">Map</a></li>
66
+ <li><a href="contact/form">Contact Form</a></li>
67
+ </ul>
68
+ </li>
69
+ </ul>
70
+ </li>
71
+ </ul>
72
+
73
+ </div>
74
+
75
+ </body>
76
+
77
+ </html>
@@ -0,0 +1,11 @@
1
+ require 'rails/engine'
2
+
3
+ module SlickMapCss
4
+ module Rails
5
+
6
+ class Engine < ::Rails::Engine
7
+ # Rails, will you please look in our vendor?
8
+ end
9
+
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ require 'slick_map_css-rails/engine'
2
+
3
+ module SlickMapCss
4
+ end
@@ -0,0 +1,89 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "slick_map_css-rails"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["David DIDIER"]
12
+ s.date = "2012-08-22"
13
+ s.description = "A stylesheet for displaying site maps directly from HTML unordered list (adapted from http://astuteo.com/slickmap/)"
14
+ s.email = "c_inconnu2@yahoo.fr"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "Guardfile",
24
+ "LICENSE.txt",
25
+ "README.md",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "doc/index.html",
29
+ "lib/slick_map_css-rails.rb",
30
+ "lib/slick_map_css-rails/engine.rb",
31
+ "slick_map_css-rails.gemspec",
32
+ "spec/spec_helper.rb",
33
+ "vendor/assets/images/L1-center.png",
34
+ "vendor/assets/images/L1-left.png",
35
+ "vendor/assets/images/L1-right.png",
36
+ "vendor/assets/images/L3-bottom.png",
37
+ "vendor/assets/images/L3-center.png",
38
+ "vendor/assets/images/L3-li-top.png",
39
+ "vendor/assets/images/L3-ul-top.png",
40
+ "vendor/assets/images/vertical-line.png",
41
+ "vendor/assets/images/white-highlight.png",
42
+ "vendor/assets/stylesheets/slick_map_css-rails.css.scss"
43
+ ]
44
+ s.homepage = "http://github.com/ddidier/slick_map_css-rails"
45
+ s.licenses = ["MIT"]
46
+ s.require_paths = ["lib"]
47
+ s.rubygems_version = "1.8.24"
48
+ s.summary = "A stylesheet for displaying site maps directly from HTML unordered list"
49
+
50
+ if s.respond_to? :specification_version then
51
+ s.specification_version = 3
52
+
53
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
+ s.add_runtime_dependency(%q<rails>, ["~> 3.2.0"])
55
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
56
+ s.add_development_dependency(%q<capybara>, ["~> 1.1.0"])
57
+ s.add_development_dependency(%q<guard>, ["~> 1.3.0"])
58
+ s.add_development_dependency(%q<guard-rspec>, ["~> 1.2.0"])
59
+ s.add_development_dependency(%q<guard-spork>, ["~> 1.1.0"])
60
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
61
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
62
+ s.add_development_dependency(%q<rspec-rails>, ["~> 2.11.0"])
63
+ s.add_development_dependency(%q<sqlite3>, ["~> 1.3.0"])
64
+ else
65
+ s.add_dependency(%q<rails>, ["~> 3.2.0"])
66
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
67
+ s.add_dependency(%q<capybara>, ["~> 1.1.0"])
68
+ s.add_dependency(%q<guard>, ["~> 1.3.0"])
69
+ s.add_dependency(%q<guard-rspec>, ["~> 1.2.0"])
70
+ s.add_dependency(%q<guard-spork>, ["~> 1.1.0"])
71
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
72
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
73
+ s.add_dependency(%q<rspec-rails>, ["~> 2.11.0"])
74
+ s.add_dependency(%q<sqlite3>, ["~> 1.3.0"])
75
+ end
76
+ else
77
+ s.add_dependency(%q<rails>, ["~> 3.2.0"])
78
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
79
+ s.add_dependency(%q<capybara>, ["~> 1.1.0"])
80
+ s.add_dependency(%q<guard>, ["~> 1.3.0"])
81
+ s.add_dependency(%q<guard-rspec>, ["~> 1.2.0"])
82
+ s.add_dependency(%q<guard-spork>, ["~> 1.1.0"])
83
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
84
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
85
+ s.add_dependency(%q<rspec-rails>, ["~> 2.11.0"])
86
+ s.add_dependency(%q<sqlite3>, ["~> 1.3.0"])
87
+ end
88
+ end
89
+
@@ -0,0 +1,79 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+ #uncomment the following line to use spork with the debugger
4
+ #require 'spork/ext/ruby-debug'
5
+
6
+ Spork.prefork do
7
+
8
+
9
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
10
+ ENV["RAILS_ENV"] ||= 'test'
11
+ require File.expand_path("../dummy/config/environment", __FILE__)
12
+ #require File.expand_path("../../config/environment", __FILE__)
13
+ require 'rspec/rails'
14
+ require 'rspec/autorun'
15
+
16
+ # Requires supporting ruby files with custom matchers and macros, etc,
17
+ # in spec/support/ and its subdirectories.
18
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
19
+
20
+ RSpec.configure do |config|
21
+ # ## Mock Framework
22
+ #
23
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
24
+ #
25
+ # config.mock_with :mocha
26
+ # config.mock_with :flexmock
27
+ # config.mock_with :rr
28
+
29
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
30
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
31
+
32
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
33
+ # examples within a transaction, remove the following line or assign false
34
+ # instead of true.
35
+ config.use_transactional_fixtures = true
36
+
37
+ # If true, the base class of anonymous controllers will be inferred
38
+ # automatically. This will be the default behavior in future versions of
39
+ # rspec-rails.
40
+ config.infer_base_class_for_anonymous_controllers = false
41
+ end
42
+
43
+ end
44
+
45
+ Spork.each_run do
46
+ # This code will be run each time you run your specs.
47
+
48
+ end
49
+
50
+ # --- Instructions ---
51
+ # Sort the contents of this file into a Spork.prefork and a Spork.each_run
52
+ # block.
53
+ #
54
+ # The Spork.prefork block is run only once when the spork server is started.
55
+ # You typically want to place most of your (slow) initializer code in here, in
56
+ # particular, require'ing any 3rd-party gems that you don't normally modify
57
+ # during development.
58
+ #
59
+ # The Spork.each_run block is run each time you run your specs. In case you
60
+ # need to load files that tend to change during development, require them here.
61
+ # With Rails, your application modules are loaded automatically, so sometimes
62
+ # this block can remain empty.
63
+ #
64
+ # Note: You can modify files loaded *from* the Spork.each_run block without
65
+ # restarting the spork server. However, this file itself will not be reloaded,
66
+ # so if you change any of the code inside the each_run block, you still need to
67
+ # restart the server. In general, if you have non-trivial code in this file,
68
+ # it's advisable to move it into a separate file so you can easily edit it
69
+ # without restarting spork. (For example, with RSpec, you could move
70
+ # non-trivial code into a file spec/support/my_helper.rb, making sure that the
71
+ # spec/support/* files are require'd from inside the each_run block.)
72
+ #
73
+ # Any code that is left outside the two blocks will be run during preforking
74
+ # *and* during each_run -- that's probably not what you want.
75
+ #
76
+ # These instructions should self-destruct in 10 seconds. If they don't, feel
77
+ # free to delete them.
78
+
79
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,323 @@
1
+ /***************************************************************************************************************
2
+ *
3
+ * From http://astuteo.com/downloads/SlickmapCSS.zip
4
+ * For the assets pipeline:
5
+ * - changed extension from .css to .css.scss
6
+ * - changed content url\('images/(.*).png'\) by image-url('$1.png')
7
+ * - commented out reset styles and body, h1, h2
8
+ * - nested all rules inside .sitemap
9
+ * - changed ids to classes:
10
+ * - #primaryNav to .primary
11
+ * - #utilityNav to .utility
12
+ * - #home to .home
13
+ * Version 1.0
14
+ *
15
+ **************************************************************************************************************/
16
+
17
+ /* ------------------------------------------------------------
18
+ Reset Styles (from meyerweb.com)
19
+ ------------------------------------------------------------ */
20
+
21
+ //html, body, div, span, applet, object, iframe,
22
+ //h1, h2, h3, h4, h5, h6, p, blockquote, pre,
23
+ //a, abbr, acronym, address, big, cite, code,
24
+ //del, dfn, em, font, img, ins, kbd, q, s, samp,
25
+ //small, strike, strong, sub, sup, tt, var,
26
+ //dl, dt, dd, ol, ul, li,
27
+ //fieldset, form, label, legend,
28
+ //table, caption, tbody, tfoot, thead, tr, th, td {
29
+ // margin: 0;
30
+ // padding: 0;
31
+ // border: 0;
32
+ // outline: 0;
33
+ // font-weight: inherit;
34
+ // font-style: inherit;
35
+ // font-size: 100%;
36
+ // font-family: inherit;
37
+ // vertical-align: baseline;
38
+ //}
39
+
40
+ .sitemap {
41
+ margin: 0 0 40px 0;
42
+ float: left;
43
+ width: 100%;
44
+
45
+ /* ------------------------------------------------------------
46
+ NUMBER OF COLUMNS: Adjust .primary li to set the number
47
+ of columns required in your site map. The default is
48
+ 4 columns (25%). 5 columns would be 20%, 6 columns would
49
+ be 16.6%, etc.
50
+ ------------------------------------------------------------ */
51
+
52
+ .primary li {
53
+ width: 25%;
54
+ }
55
+
56
+ .primary li ul li {
57
+ width: 100% !important;
58
+ }
59
+
60
+ .primary.col1 li {
61
+ width: 99.9%;
62
+ }
63
+
64
+ .primary.col2 li {
65
+ width: 50.0%;
66
+ }
67
+
68
+ .primary.col3 li {
69
+ width: 33.3%;
70
+ }
71
+
72
+ .primary.col4 li {
73
+ width: 25.0%;
74
+ }
75
+
76
+ .primary.col5 li {
77
+ width: 20.0%;
78
+ }
79
+
80
+ .primary.col6 li {
81
+ width: 16.6%;
82
+ }
83
+
84
+ .primary.col7 li {
85
+ width: 14.2%;
86
+ }
87
+
88
+ .primary.col8 li {
89
+ width: 12.5%;
90
+ }
91
+
92
+ .primary.col9 li {
93
+ width: 11.1%;
94
+ }
95
+
96
+ .primary.col10 li {
97
+ width: 10.0%;
98
+ }
99
+
100
+ /* ------------------------------------------------------------
101
+ General Styles
102
+ ------------------------------------------------------------ */
103
+
104
+ //body {
105
+ // background: white;
106
+ // color: black;
107
+ // padding: 40px;
108
+ // font-family: Gotham, Helvetica, Arial, sans-serif;
109
+ // font-size: 12px;
110
+ // line-height: 1;
111
+ //}
112
+ //
113
+ //h1 {
114
+ // font-weight: bold;
115
+ // text-transform: uppercase;
116
+ // font-size: 20px;
117
+ // margin: 0 0 5px 0;
118
+ //}
119
+ //
120
+ //h2 {
121
+ // font-family: "Lucida Grande", Verdana, sans-serif;
122
+ // font-size: 10px;
123
+ // color: #777777;
124
+ // margin: 0 0 20px 0;
125
+ //}
126
+
127
+ a {
128
+ text-decoration: none;
129
+ }
130
+
131
+ ol, ul {
132
+ list-style: none;
133
+ }
134
+
135
+ /* ------------------------------------------------------------
136
+ Site Map Styles
137
+ ------------------------------------------------------------ */
138
+
139
+ /* -------- Top Level --------- */
140
+
141
+ .primary {
142
+ margin: 0;
143
+ float: left;
144
+ width: 100%;
145
+ }
146
+
147
+ .primary .home {
148
+ display: block;
149
+ float: none;
150
+ background: #ffffff image-url('L1-left.png') center bottom no-repeat;
151
+ position: relative;
152
+ z-index: 2;
153
+ padding: 0 0 30px 0;
154
+ }
155
+
156
+ .primary li {
157
+ float: left;
158
+ background: image-url('L1-center.png') center top no-repeat;
159
+ padding: 30px 0;
160
+ margin-top: -30px;
161
+ }
162
+
163
+ .primary li a {
164
+ margin: 0 20px 0 0;
165
+ padding: 10px 0;
166
+ display: block;
167
+ font-size: 14px;
168
+ font-weight: bold;
169
+ text-align: center;
170
+ color: black;
171
+ background: #c3eafb image-url('white-highlight.png') top left repeat-x;
172
+ border: 2px solid #b5d9ea;
173
+ -moz-border-radius: 5px;
174
+ -webkit-border-radius: 5px;
175
+ -webkit-box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 2px;
176
+ -moz-box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 2px; /* FF 3.5+ */
177
+ }
178
+
179
+ .primary li a:hover {
180
+ background-color: #e2f4fd;
181
+ border-color: #97bdcf;
182
+ }
183
+
184
+ .primary li:last-child {
185
+ background: image-url('L1-right.png') center top no-repeat;
186
+ }
187
+
188
+ a:link:before,
189
+ a:visited:before {
190
+ content: " " attr(href) " ";
191
+ display: block;
192
+ text-transform: uppercase;
193
+ font-size: 10px;
194
+ margin-bottom: 5px;
195
+ word-wrap: break-word;
196
+ }
197
+
198
+ .primary li a:link:before,
199
+ .primary li a:visited:before {
200
+ color: #78a9c0;
201
+ }
202
+
203
+ /* -------- Second Level --------- */
204
+
205
+ .primary li li {
206
+ width: 100%;
207
+ clear: left;
208
+ margin-top: 0;
209
+ padding: 10px 0 0 0;
210
+ background: image-url('vertical-line.png') center bottom repeat-y;
211
+ }
212
+
213
+ .primary li li a {
214
+ background-color: #cee3ac;
215
+ border-color: #b8da83;
216
+ }
217
+
218
+ .primary li li a:hover {
219
+ border-color: #94b75f;
220
+ background-color: #e7f1d7;
221
+ }
222
+
223
+ .primary li li:first-child {
224
+ padding-top: 30px;
225
+ }
226
+
227
+ .primary li li:last-child {
228
+ background: image-url('vertical-line.png') center bottom repeat-y;
229
+ }
230
+
231
+ .primary li li a:link:before,
232
+ .primary li li a:visited:before {
233
+ color: #8faf5c;
234
+ }
235
+
236
+ /* -------- Third Level --------- */
237
+
238
+ .primary li li ul {
239
+ margin: 10px 0 0 0;
240
+ width: 100%;
241
+ float: right;
242
+ padding: 9px 0 10px 0;
243
+ background: #ffffff image-url('L3-ul-top.png') center top no-repeat;
244
+ }
245
+
246
+ .primary li li li {
247
+ background: image-url('L3-center.png') left center no-repeat;
248
+ padding: 5px 0;
249
+ }
250
+
251
+ .primary li li li a {
252
+ background-color: #fff7aa;
253
+ border-color: #e3ca4b;
254
+ font-size: 12px;
255
+ padding: 5px 0;
256
+ width: 80%;
257
+ float: right;
258
+ }
259
+
260
+ .primary li li li a:hover {
261
+ background-color: #fffce5;
262
+ border-color: #d1b62c;
263
+ }
264
+
265
+ .primary li li li:first-child {
266
+ padding: 15px 0 5px 0;
267
+ background: image-url('L3-li-top.png') left center no-repeat;
268
+ }
269
+
270
+ .primary li li li:last-child {
271
+ background: image-url('L3-bottom.png') left center no-repeat;
272
+ }
273
+
274
+ .primary li li li a:link:before,
275
+ .primary li li li a:visited:before {
276
+ color: #ccae14;
277
+ font-size: 9px;
278
+ }
279
+
280
+ /* ------------------------------------------------------------
281
+ Utility Navigation
282
+ ------------------------------------------------------------ */
283
+
284
+ .utility {
285
+ float: right;
286
+ max-width: 50%;
287
+ margin-right: 10px;
288
+ }
289
+
290
+ .utility li {
291
+ float: left;
292
+ margin-bottom: 10px;
293
+ }
294
+
295
+ .utility li a {
296
+ margin: 0 10px 0 0;
297
+ padding: 5px 10px;
298
+ display: block;
299
+ border: 2px solid #e3ca4b;
300
+ font-size: 12px;
301
+ font-weight: bold;
302
+ text-align: center;
303
+ color: black;
304
+ background: #fff7aa image-url('white-highlight.png') top left repeat-x;
305
+ -moz-border-radius: 5px;
306
+ -webkit-border-radius: 5px;
307
+ -webkit-box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 2px;
308
+ -moz-box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 2px; /* FF 3.5+ */
309
+ }
310
+
311
+ .utility li a:hover {
312
+ background-color: #fffce5;
313
+ border-color: #d1b62c;
314
+ }
315
+
316
+ .utility li a:link:before,
317
+ .utility li a:visited:before {
318
+ color: #ccae14;
319
+ font-size: 9px;
320
+ margin-bottom: 3px;
321
+ }
322
+
323
+ }
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: slick_map_css-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - David DIDIER
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.1.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: capybara
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.1.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: guard
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.3.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: guard-rspec
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 1.2.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.2.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: guard-spork
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 1.1.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 1.1.0
110
+ - !ruby/object:Gem::Dependency
111
+ name: jeweler
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 1.8.4
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 1.8.4
126
+ - !ruby/object:Gem::Dependency
127
+ name: rdoc
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: '3.12'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '3.12'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rspec-rails
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 2.11.0
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 2.11.0
158
+ - !ruby/object:Gem::Dependency
159
+ name: sqlite3
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 1.3.0
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.3.0
174
+ description: A stylesheet for displaying site maps directly from HTML unordered list
175
+ (adapted from http://astuteo.com/slickmap/)
176
+ email: c_inconnu2@yahoo.fr
177
+ executables: []
178
+ extensions: []
179
+ extra_rdoc_files:
180
+ - LICENSE.txt
181
+ - README.md
182
+ files:
183
+ - .document
184
+ - Gemfile
185
+ - Gemfile.lock
186
+ - Guardfile
187
+ - LICENSE.txt
188
+ - README.md
189
+ - Rakefile
190
+ - VERSION
191
+ - doc/index.html
192
+ - lib/slick_map_css-rails.rb
193
+ - lib/slick_map_css-rails/engine.rb
194
+ - slick_map_css-rails.gemspec
195
+ - spec/spec_helper.rb
196
+ - vendor/assets/images/L1-center.png
197
+ - vendor/assets/images/L1-left.png
198
+ - vendor/assets/images/L1-right.png
199
+ - vendor/assets/images/L3-bottom.png
200
+ - vendor/assets/images/L3-center.png
201
+ - vendor/assets/images/L3-li-top.png
202
+ - vendor/assets/images/L3-ul-top.png
203
+ - vendor/assets/images/vertical-line.png
204
+ - vendor/assets/images/white-highlight.png
205
+ - vendor/assets/stylesheets/slick_map_css-rails.css.scss
206
+ homepage: http://github.com/ddidier/slick_map_css-rails
207
+ licenses:
208
+ - MIT
209
+ post_install_message:
210
+ rdoc_options: []
211
+ require_paths:
212
+ - lib
213
+ required_ruby_version: !ruby/object:Gem::Requirement
214
+ none: false
215
+ requirements:
216
+ - - ! '>='
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ segments:
220
+ - 0
221
+ hash: -1174640177986723205
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ none: false
224
+ requirements:
225
+ - - ! '>='
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ requirements: []
229
+ rubyforge_project:
230
+ rubygems_version: 1.8.24
231
+ signing_key:
232
+ specification_version: 3
233
+ summary: A stylesheet for displaying site maps directly from HTML unordered list
234
+ test_files: []