spurs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown ADDED
@@ -0,0 +1,38 @@
1
+ # Spurs
2
+
3
+ Spurs is a library that adds some bells and whistles to the Twitter Bootstrap GUI framework. I consists mostly of helpers and javascript, and thus is ORM agnostic.
4
+
5
+ ## Flash Messages
6
+
7
+ Put this in your layout file wherever you want to render the flash messages
8
+ ```erb
9
+ <%= spurs_flash_helper %>
10
+ ```
11
+ and flash messages will be automatically rendered on page loads
12
+
13
+ From the rails side, you can create four types of messages
14
+
15
+ * :notice
16
+ * :warning
17
+ * :info
18
+ * :error
19
+
20
+ ```ruby
21
+ flash_addItem(:notices,"A message about something successfully happening!")
22
+ ```
23
+
24
+ You can also use JavaScript to generate matching messages
25
+ ```javascript
26
+ spurs.flash.alert("Something has gone wrong!","error");
27
+ ```
28
+ [More...](https://github.com/TrueNorth/spurs/wiki/Flash-Messages)
29
+
30
+ ## Navigation
31
+
32
+ Spurs makes creation of bootstrap navigation easy!.
33
+ ```haml
34
+ = spurs_nav :type => :pills do |nav|
35
+ = nav.tab :user, :icon => :user, :href => "#user"
36
+ = nav.tab :settings, :icon => :cog, :onclick => "alert('hello');"
37
+ ```
38
+ [More...](https://github.com/TrueNorth/spurs/wiki/Navigation)
@@ -1,4 +1,3 @@
1
1
  /*
2
2
  *= require ./beyond_bootsrap/all
3
-
4
3
  */
@@ -13,3 +13,8 @@
13
13
  *= require ./spurs/subnav
14
14
  *= require ./spurs/vcenter
15
15
  */
16
+
17
+ .pull-right .dropdown-menu {
18
+ right: 0;
19
+ left: auto;
20
+ }
data/lib/spurs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spurs
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: spurs
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 2.0.3
37
+ version: '2.0'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 2.0.3
45
+ version: '2.0'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: haml
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +84,6 @@ files:
84
84
  - app/assets/images/spurs/jquery_ui_theme/images/ui-icons_888888_256x240.png
85
85
  - app/assets/images/spurs/jquery_ui_theme/images/ui-icons_cd0a0a_256x240.png
86
86
  - app/assets/images/spurs/jquery_ui_theme/images/ui-icons_f6cf3b_256x240.png
87
- - app/assets/javascripts/spurs/application.js
88
87
  - app/assets/javascripts/spurs/beyond_bootstrap/all.js
89
88
  - app/assets/javascripts/spurs/beyond_bootstrap/responsive-tables.js
90
89
  - app/assets/javascripts/spurs/beyond_bootstrap.js
@@ -94,7 +93,6 @@ files:
94
93
  - app/assets/javascripts/spurs/vars.js.coffee.erb
95
94
  - app/assets/javascripts/spurs/vars.js.erb
96
95
  - app/assets/javascripts/spurs.js
97
- - app/assets/stylesheets/spurs/application.css
98
96
  - app/assets/stylesheets/spurs/beyond_bootsrap/all.css
99
97
  - app/assets/stylesheets/spurs/beyond_bootsrap/forms.css.sass
100
98
  - app/assets/stylesheets/spurs/beyond_bootsrap/mobile_modal.css.sass
@@ -140,7 +138,7 @@ files:
140
138
  - lib/tasks/spurs_tasks.rake
141
139
  - MIT-LICENSE
142
140
  - Rakefile
143
- - README.rdoc
141
+ - README.markdown
144
142
  - test/dummy/app/assets/javascripts/application.js
145
143
  - test/dummy/app/assets/stylesheets/application.css
146
144
  - test/dummy/app/controllers/application_controller.rb
@@ -189,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
187
  version: '0'
190
188
  segments:
191
189
  - 0
192
- hash: -591700135069857918
190
+ hash: 671741386239326010
193
191
  required_rubygems_version: !ruby/object:Gem::Requirement
194
192
  none: false
195
193
  requirements:
@@ -198,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
196
  version: '0'
199
197
  segments:
200
198
  - 0
201
- hash: -591700135069857918
199
+ hash: 671741386239326010
202
200
  requirements: []
203
201
  rubyforge_project:
204
202
  rubygems_version: 1.8.24
data/README.rdoc DELETED
@@ -1,27 +0,0 @@
1
- == Spurs
2
-
3
-
4
- Rails is a web-application framework that includes everything needed to create
5
- database-backed web applications according to the Model-View-Control pattern.
6
-
7
- This pattern splits the view (also called the presentation) into "dumb"
8
- templates that are primarily responsible for inserting pre-built data in between
9
- HTML tags. The model contains the "smart" domain objects (such as Account,
10
- Product, Person, Post) that holds all the business logic and knows how to
11
- persist themselves to a database. The controller handles the incoming requests
12
- (such as Save New Account, Update Product, Show Post) by manipulating the model
13
- and directing data to the view.
14
-
15
- In Rails, the model is handled by what's called an object-relational mapping
16
- layer entitled Active Record. This layer allows you to present the data from
17
- database rows as objects and embellish these data objects with business logic
18
- methods. You can read more about Active Record in
19
- link:files/vendor/rails/activerecord/README.html.
20
-
21
- The controller and view are handled by the Action Pack, which handles both
22
- layers by its two parts: Action View and Action Controller. These two layers
23
- are bundled in a single package due to their heavy interdependence. This is
24
- unlike the relationship between the Active Record and Action Pack that is much
25
- more separate. Each of these packages can be used independently outside of
26
- Rails. You can read more about Action Pack in
27
- link:files/vendor/rails/actionpack/README.html.
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
9
- //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */