flutie 1.3.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,4 +6,4 @@ rvm:
6
6
  gemfile:
7
7
  - gemfiles/rails_3.0.20.gemfile
8
8
  - gemfiles/rails_3.1.11.gemfile
9
- - gemfiles/rails_3.2.11.gemfile
9
+ - gemfiles/rails_3.2.12.gemfile
@@ -1,108 +1,80 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flutie (1.3.4)
4
+ flutie (2.0.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- actionpack (3.2.9)
10
- activemodel (= 3.2.9)
11
- activesupport (= 3.2.9)
9
+ actionpack (3.2.12)
10
+ activemodel (= 3.2.12)
11
+ activesupport (= 3.2.12)
12
12
  builder (~> 3.0.0)
13
13
  erubis (~> 2.7.0)
14
14
  journey (~> 1.0.4)
15
- rack (~> 1.4.0)
15
+ rack (~> 1.4.5)
16
16
  rack-cache (~> 1.2)
17
17
  rack-test (~> 0.6.1)
18
18
  sprockets (~> 2.2.1)
19
- activemodel (3.2.9)
20
- activesupport (= 3.2.9)
19
+ activemodel (3.2.12)
20
+ activesupport (= 3.2.12)
21
21
  builder (~> 3.0.0)
22
- activesupport (3.2.9)
22
+ activesupport (3.2.12)
23
23
  i18n (~> 0.6)
24
24
  multi_json (~> 1.0)
25
- addressable (2.3.2)
26
25
  appraisal (0.5.1)
27
26
  bundler
28
27
  rake
29
28
  builder (3.0.4)
30
- capybara (2.0.1)
31
- mime-types (>= 1.16)
32
- nokogiri (>= 1.3.3)
33
- rack (>= 1.0.0)
34
- rack-test (>= 0.5.4)
35
- selenium-webdriver (~> 2.0)
36
- xpath (~> 1.0.0)
37
- childprocess (0.3.6)
38
- ffi (~> 1.0, >= 1.0.6)
39
29
  diff-lcs (1.1.3)
40
30
  erubis (2.7.0)
41
- ffi (1.2.0)
42
31
  hike (1.2.1)
43
32
  i18n (0.6.1)
44
33
  journey (1.0.4)
45
- json (1.7.5)
46
- libwebsocket (0.1.7.1)
47
- addressable
48
- websocket
49
- mime-types (1.19)
50
- multi_json (1.5.0)
51
- nokogiri (1.5.5)
52
- rack (1.4.1)
34
+ json (1.7.7)
35
+ multi_json (1.5.1)
36
+ rack (1.4.5)
53
37
  rack-cache (1.2)
54
38
  rack (>= 0.4)
55
- rack-ssl (1.3.2)
39
+ rack-ssl (1.3.3)
56
40
  rack
57
41
  rack-test (0.6.2)
58
42
  rack (>= 1.0)
59
- railties (3.2.9)
60
- actionpack (= 3.2.9)
61
- activesupport (= 3.2.9)
43
+ railties (3.2.12)
44
+ actionpack (= 3.2.12)
45
+ activesupport (= 3.2.12)
62
46
  rack-ssl (~> 1.3.2)
63
47
  rake (>= 0.8.7)
64
48
  rdoc (~> 3.4)
65
49
  thor (>= 0.14.6, < 2.0)
66
- rake (10.0.2)
67
- rdoc (3.12)
50
+ rake (10.0.3)
51
+ rdoc (3.12.1)
68
52
  json (~> 1.4)
69
- rspec-core (2.12.1)
70
- rspec-expectations (2.12.0)
53
+ rspec-core (2.12.2)
54
+ rspec-expectations (2.12.1)
71
55
  diff-lcs (~> 1.1.3)
72
- rspec-mocks (2.12.0)
73
- rspec-rails (2.12.0)
56
+ rspec-mocks (2.12.2)
57
+ rspec-rails (2.12.2)
74
58
  actionpack (>= 3.0)
75
59
  activesupport (>= 3.0)
76
60
  railties (>= 3.0)
77
61
  rspec-core (~> 2.12.0)
78
62
  rspec-expectations (~> 2.12.0)
79
63
  rspec-mocks (~> 2.12.0)
80
- rubyzip (0.9.9)
81
- sass (3.2.3)
82
- selenium-webdriver (2.27.2)
83
- childprocess (>= 0.2.5)
84
- libwebsocket (~> 0.1.3)
85
- multi_json (~> 1.0)
86
- rubyzip
87
64
  sprockets (2.2.2)
88
65
  hike (~> 1.2)
89
66
  multi_json (~> 1.0)
90
67
  rack (~> 1.0)
91
68
  tilt (~> 1.1, != 1.3.0)
92
- sqlite3 (1.3.6)
93
- thor (0.16.0)
69
+ sqlite3 (1.3.7)
70
+ thor (0.17.0)
94
71
  tilt (1.3.3)
95
- websocket (1.0.4)
96
- xpath (1.0.0)
97
- nokogiri (~> 1.3)
98
72
 
99
73
  PLATFORMS
100
74
  ruby
101
75
 
102
76
  DEPENDENCIES
103
77
  appraisal
104
- capybara (>= 0.4.0)
105
78
  flutie!
106
79
  rspec-rails
107
- sass
108
80
  sqlite3
data/README.md CHANGED
@@ -3,57 +3,18 @@ Flutie
3
3
 
4
4
  [![Build Status](https://secure.travis-ci.org/thoughtbot/flutie.png)](http://travis-ci.org/thoughtbot/flutie)
5
5
 
6
- Basic, default styles for rails applications
6
+ Flutie provides extra ActionView view helpers for use with Rails applications. Previous versions created default application styles.
7
7
 
8
- We also have a [Bourbon](https://github.com/thoughtbot/bourbon) gem available, which can be used to extend flutie with a set of vanilla sass mixins.
8
+ Please look to [Bourbon](https://github.com/thoughtbot/bourbon) and [Neat](https://github.com/thoughtbot/neat) gems for style defaults now.
9
9
 
10
10
  Installation & Upgrading
11
11
  ------------------------
12
12
 
13
- Flutie is a Rails engine. It works with versions of Rails greater than 3.0.
13
+ Flutie is a Railtie meant for use with Rails. It works with versions of Rails greater than 3.0.
14
14
 
15
15
  Flutie is recommended to be run as a gem and included in your Gemfile:
16
16
 
17
- gem "flutie"
18
-
19
- ### Rails 3.1 & Rails 3.2
20
-
21
- After you've bundled, if you are using rails 3.1 or greater with asset pipelining enabled, simply add:
22
-
23
- @import 'flutie';
24
-
25
- as a sass import in the application stylesheet manifest (app/assets/stylesheets/application.css.scss).
26
-
27
- If this is a new Rails 3.1 or 3.2 project you will need to rename the application.css manifest to application.css.scss so it is processed
28
- by the asset pipeline and sass to perform the @import.
29
-
30
- ### Rails 3.0
31
-
32
- After you've bundled, run the installer:
33
-
34
- rake flutie:install
35
-
36
- The installer will copy the Flutie stylesheets sass into public/stylesheets/sass/flutie, and a static flutie.css into public/stylesheets/ in your app.
37
-
38
- Once Flutie is installed, with your application running (not in production environment) you can browse to /styleguides. This will present you with many standard markup elements that are present in a Rails application, in your default application layout.
39
-
40
- Click on the "Default styles" link to view the same markup with a barebones layout that only contains the Flutie stylesheets. Click on "Application styles" to view the markup in your application layout.
41
-
42
- To upgrade, bump the gem version in your Gemfile, and then run `rake flutie:install` again to get the latest changes moved into your application.
43
-
44
- Flutie registers a :flutie shortcut for stylesheets, so in your layout you can do...
45
-
46
- <%= stylesheet_link_tag :flutie, 'admin', :cache => true %>
47
-
48
- ...this will include all the flutie stylesheets, then the 'admin' stylesheet, and it will cache them all into one file.
49
-
50
- #### Sass
51
-
52
- If you use Sass in your application, the flutie stylesheets are also available as scss files, installed in public/stylesheets/sass/flutie. These files can be imported into your own sass files for use with the following:
53
-
54
- @import "flutie/flutie";
55
-
56
- You'll want to import flutie before any of your own styles so that you can do things like extend your classes with flutie classes.
17
+ gem 'flutie'
57
18
 
58
19
  Helpers
59
20
  -------
@@ -96,49 +57,11 @@ Anything which has been added via `content_for(:extra_body_classes)` will be add
96
57
  <body class="<%= body_class %>">
97
58
  <body class="widgets widgets-show special-page">
98
59
 
99
- Custom Styles
100
- -------------
101
-
102
- To add custom styles to the styleguide add partials to the app/views/styleguides directory. For example:
103
-
104
- app/views/styleguides/_todo_item.erb:
105
-
106
- <ol>
107
- <li class="todo">This is a todo item</li>
108
- </ol>
109
-
110
- Plugin authors can also add to the styleguide by ensuring that their view path is in `ActionController::Base.view_paths` and by placing a partial under the styleguides directory. For example:
111
-
112
- ActionController::Base.append_view_path(File.join(File.dirname(__FILE__), 'views'))
113
-
114
- my_awesome_plugin/views/styleguides/_pagination.erb:
115
-
116
- <div class="pagination">
117
- <a href="#prev">Previous</a>
118
- <a href="#next">Next</a>
119
- </div>
120
-
121
60
  Suggestions, Bugs, Refactoring?
122
61
  -------------------------------
123
62
 
124
- Fork away and create a [Github Issue](http://github.com/thoughtbot/flutie/issues). Please don't send pull requests.
125
-
126
63
  Please see CONTRIBUTING.md for details.
127
64
 
128
- Development
129
- -----------
130
-
131
- The actual stylesheet source files are sass, so edit the files in app/assets/stylesheets/.
132
- To rebuild the static flutie.css file, you can run:
133
-
134
- sass --update app/assets/stylesheets/_flutie.scss:public/stylesheets/flutie.css
135
-
136
- You can also run a local server which will allow you to view the flutie styleguide:
137
-
138
- ruby server.rb
139
-
140
- Browsing to localhost at the port output by the above command will show you the styleguide.
141
-
142
65
  Credits
143
66
  -------
144
67
 
@@ -8,17 +8,15 @@ Gem::Specification.new do |s|
8
8
  s.authors = ['Matt Jankowski', 'Chad Pytel', 'Kevin Burg', 'Chad Mazzola', 'Phil LaPier', 'Dan Croak', 'Fred Yates', 'OZAWA Sakuro', 'Mike Burns', 'Greg Sterndale', 'Joe Ferris', 'J. Edward Dewyea', 'Emilien Taque', 'Aaron Suggs', 'Nick Quaranto']
9
9
  s.email = ['support@thoughtbot.com']
10
10
  s.homepage = 'http://github.com/thoughtbot/flutie'
11
- s.summary = 'Flutie adds default stylesheets to web apps'
11
+ s.summary = 'Flutie provides extra Rails view helpers'
12
12
  s.description = 'Flutie is a starting point for personal discovery'
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
- s.require_paths = ["lib"]
17
+ s.require_paths = ['lib']
18
18
 
19
19
  s.add_development_dependency('appraisal')
20
- s.add_development_dependency('rspec-rails')
21
- s.add_development_dependency('capybara', '>= 0.4.0')
22
20
  s.add_development_dependency('sqlite3')
23
- s.add_development_dependency('sass')
21
+ s.add_development_dependency('rspec-rails')
24
22
  end
@@ -1,5 +1,5 @@
1
1
  require 'flutie/version'
2
2
 
3
3
  module Flutie
4
- require 'flutie/engine' if defined?(Rails)
4
+ require 'flutie/railtie' if defined?(Rails)
5
5
  end
@@ -1,6 +1,9 @@
1
+ require 'flutie/body_class_helper'
2
+ require 'flutie/page_title_helper'
3
+
1
4
  module Flutie
2
5
 
3
- class Engine < Rails::Engine
6
+ class Railtie < Rails::Railtie
4
7
  initializer 'page_title.helper' do |app|
5
8
  ActionView::Base.send :include, PageTitleHelper
6
9
  end
@@ -1,3 +1,3 @@
1
1
  module Flutie
2
- VERSION = '1.3.4'.freeze
2
+ VERSION = '2.0.0'.freeze
3
3
  end
@@ -11,11 +11,6 @@ ActionMailer::Base.default_url_options[:host] = "test.com"
11
11
 
12
12
  Rails.backtrace_cleaner.remove_silencers!
13
13
 
14
- # Configure capybara for integration testing
15
- require "capybara/rails"
16
- Capybara.default_driver = :rack_test
17
- Capybara.default_selector = :css
18
-
19
14
  # Run any available migration
20
15
  ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
21
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flutie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,38 +41,6 @@ dependencies:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
- - !ruby/object:Gem::Dependency
45
- name: rspec-rails
46
- requirement: !ruby/object:Gem::Requirement
47
- none: false
48
- requirements:
49
- - - ! '>='
50
- - !ruby/object:Gem::Version
51
- version: '0'
52
- type: :development
53
- prerelease: false
54
- version_requirements: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- - !ruby/object:Gem::Dependency
61
- name: capybara
62
- requirement: !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ! '>='
66
- - !ruby/object:Gem::Version
67
- version: 0.4.0
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ! '>='
74
- - !ruby/object:Gem::Version
75
- version: 0.4.0
76
44
  - !ruby/object:Gem::Dependency
77
45
  name: sqlite3
78
46
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +58,7 @@ dependencies:
90
58
  - !ruby/object:Gem::Version
91
59
  version: '0'
92
60
  - !ruby/object:Gem::Dependency
93
- name: sass
61
+ name: rspec-rails
94
62
  requirement: !ruby/object:Gem::Requirement
95
63
  none: false
96
64
  requirements:
@@ -121,32 +89,15 @@ files:
121
89
  - LICENSE
122
90
  - README.md
123
91
  - Rakefile
124
- - app/assets/stylesheets/_defaults.scss
125
- - app/assets/stylesheets/_flashes.scss
126
- - app/assets/stylesheets/_flutie.scss
127
- - app/assets/stylesheets/_forms.scss
128
- - app/assets/stylesheets/_lists.scss
129
- - app/assets/stylesheets/_reset.scss
130
- - app/assets/stylesheets/_tables.scss
131
- - app/assets/stylesheets/_type.scss
132
- - app/controllers/flutie/styleguides_controller.rb
133
- - app/helpers/body_class_helper.rb
134
- - app/helpers/page_title_helper.rb
135
- - app/views/flutie/styleguides/show.erb
136
- - app/views/layouts/flutie.erb
137
- - config/initializers/expansion.rb
138
- - config/routes.rb
139
92
  - flutie.gemspec
140
93
  - gemfiles/rails_3.0.20.gemfile
141
94
  - gemfiles/rails_3.1.11.gemfile
142
95
  - gemfiles/rails_3.2.12.gemfile
143
96
  - lib/flutie.rb
144
- - lib/flutie/engine.rb
97
+ - lib/flutie/body_class_helper.rb
98
+ - lib/flutie/page_title_helper.rb
99
+ - lib/flutie/railtie.rb
145
100
  - lib/flutie/version.rb
146
- - lib/tasks/flutie.rake
147
- - public/stylesheets/flutie.css
148
- - server.rb
149
- - spec/controllers/styleguides_controller_spec.rb
150
101
  - spec/dummy/Rakefile
151
102
  - spec/dummy/app/controllers/application_controller.rb
152
103
  - spec/dummy/app/helpers/application_helper.rb
@@ -178,13 +129,8 @@ files:
178
129
  - spec/dummy/public/javascripts/rails.js
179
130
  - spec/dummy/public/stylesheets/.gitkeep
180
131
  - spec/dummy/script/rails
181
- - spec/fixtures/app/views/styleguides/_one.erb
182
- - spec/fixtures/app/views/styleguides/_two.erb
183
- - spec/flutie_spec.rb
184
132
  - spec/helpers/body_class_helper_spec.rb
185
133
  - spec/helpers/page_title_helper_spec.rb
186
- - spec/initialization_spec.rb
187
- - spec/integration/navigation_spec.rb
188
134
  - spec/spec_helper.rb
189
135
  homepage: http://github.com/thoughtbot/flutie
190
136
  licenses: []
@@ -209,9 +155,8 @@ rubyforge_project:
209
155
  rubygems_version: 1.8.25
210
156
  signing_key:
211
157
  specification_version: 3
212
- summary: Flutie adds default stylesheets to web apps
158
+ summary: Flutie provides extra Rails view helpers
213
159
  test_files:
214
- - spec/controllers/styleguides_controller_spec.rb
215
160
  - spec/dummy/Rakefile
216
161
  - spec/dummy/app/controllers/application_controller.rb
217
162
  - spec/dummy/app/helpers/application_helper.rb
@@ -243,11 +188,6 @@ test_files:
243
188
  - spec/dummy/public/javascripts/rails.js
244
189
  - spec/dummy/public/stylesheets/.gitkeep
245
190
  - spec/dummy/script/rails
246
- - spec/fixtures/app/views/styleguides/_one.erb
247
- - spec/fixtures/app/views/styleguides/_two.erb
248
- - spec/flutie_spec.rb
249
191
  - spec/helpers/body_class_helper_spec.rb
250
192
  - spec/helpers/page_title_helper_spec.rb
251
- - spec/initialization_spec.rb
252
- - spec/integration/navigation_spec.rb
253
193
  - spec/spec_helper.rb
@@ -1,103 +0,0 @@
1
- body {
2
- color: #333;
3
- font-size: 100%;
4
- font-family: "helvetica neue", arial, helvetica, "lucida grande", sans-serif;
5
- }
6
-
7
- h1, h2, h3, h4, h5, h6 {
8
- color: #111;
9
- font-family: "helvetica neue", Helvetica, arial, sans-serif;
10
- }
11
-
12
-
13
- /* Misc classes and elements */
14
- /* Use a .box to create a padded box inside a column. */
15
- .box {
16
- background: #eee;
17
- margin-bottom: 1em;
18
- margin-bottom: 1rem;
19
- padding: 1em;
20
- padding: 1rem;
21
- }
22
-
23
- /* Use this to create a horizontal ruler across a column. */
24
- hr {
25
- background: #ddd;
26
- border: none;
27
- clear: both;
28
- color: #ddd;
29
- float: none;
30
- height: 1px;
31
- margin: 0 0 .75rem;
32
- width: 100%;
33
- }
34
-
35
- hr.space {
36
- background: #fff;
37
- color: #fff;
38
- }
39
-
40
- /* for image replacement */
41
- .ir {
42
- background-repeat: no-repeat;
43
- direction: ltr;
44
- display: block;
45
- overflow: hidden;
46
- text-align: left;
47
- text-indent: -9999px;
48
- }
49
-
50
- /* Hide for both screenreaders and browsers
51
- css-discuss.incutio.com/wiki/Screenreader_Visibility */
52
- .hidden {
53
- display: none;
54
- visibility: hidden;
55
- }
56
-
57
- /* Hide only visually, but have it available for screenreaders
58
- www.webaim.org/techniques/css/invisiblecontent/ & j.mp/visuallyhidden */
59
- .visuallyhidden {
60
- clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
61
- clip: rect(1px, 1px, 1px, 1px);
62
- position: absolute !important;
63
- }
64
-
65
- /* Hide visually and from screenreaders, but maintain layout */
66
- .invisible {
67
- visibility: hidden;
68
- }
69
-
70
- /* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
71
- .clearfix:before, .clearfix:after {
72
- content: "\0020";
73
- display: block;
74
- height: 0;
75
- visibility: hidden;
76
- }
77
-
78
- .clearfix:after {
79
- clear: both;
80
- }
81
-
82
- /* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
83
- .clearfix {
84
- zoom: 1;
85
- }
86
-
87
- .ie7 img {
88
- -ms-interpolation-mode: bicubic;
89
- }
90
-
91
- @media print {
92
- * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
93
- a, a:visited { color: #444 !important; text-decoration: underline; }
94
- a:after { content: " (" attr(href) ")"; }
95
- abbr:after { content: " (" attr(title) ")"; }
96
- .ir a:after { content: ""; } /* Don't show links for images */
97
- pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
98
- thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
99
- tr, img { page-break-inside: avoid; }
100
- @page { margin: 0.5cm; }
101
- p, h2, h3 { orphans: 3; widows: 3; }
102
- h2, h3{ page-break-after: avoid; }
103
- }