fancy-buttons 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -20
- data/VERSION.yml +6 -0
- data/lib/stylesheets/_fancy-buttons.sass +6 -5
- data/lib/version.rb +60 -0
- metadata +15 -14
- data/fancy-buttons.gemspec +0 -49
data/Rakefile
CHANGED
@@ -1,20 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Jeweler::Tasks.new do |gemspec|
|
4
|
-
gemspec.name = "fancy-buttons"
|
5
|
-
gemspec.summary = "Make fancy buttons with the Compass stylesheet authoring framework."
|
6
|
-
gemspec.description = "Easily style buttons with beautiful CSS3 features like gradients, rounded corners, etc. Don't worry the buttons also degrade nicely for browsers with no support. This requires the Compass stylesheet authoring framework."
|
7
|
-
gemspec.email = "brandon@imathis.com"
|
8
|
-
gemspec.homepage = "http://github.com/imathis/fancy-buttons"
|
9
|
-
gemspec.author = "Brandon Mathis"
|
10
|
-
gemspec.add_dependency('compass', '>= 0.10.6')
|
11
|
-
gemspec.files = []
|
12
|
-
gemspec.files << "fancy-buttons.gemspec"
|
13
|
-
gemspec.files << "README.markdown"
|
14
|
-
gemspec.files << "Rakefile"
|
15
|
-
gemspec.files << "VERSION"
|
16
|
-
gemspec.files += Dir.glob("lib/**/*")
|
17
|
-
end
|
18
|
-
rescue LoadError
|
19
|
-
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://rubygems.org"
|
20
|
-
end
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
data/VERSION.yml
ADDED
@@ -40,7 +40,7 @@ $fb-line-height: 1.2em !default
|
|
40
40
|
@else
|
41
41
|
+fb-color($active, "active")
|
42
42
|
+box-shadow(darken($active, 9), 0, .08em, .1em, 1px, inset)
|
43
|
-
|
43
|
+
|
44
44
|
@if $allow-disabled
|
45
45
|
&.disabled, &[disabled]
|
46
46
|
+disable-fancy-button($color)
|
@@ -48,11 +48,11 @@ $fb-line-height: 1.2em !default
|
|
48
48
|
+background-clip(padding-box)
|
49
49
|
|
50
50
|
=fancy-button-allow-disable($color: $fb-color, $font-size: $fb-font-size, $radius: $fb-radius, $border-width: $fb-border-width)
|
51
|
-
$fb-disable-allowed: $fb-allow-
|
52
|
-
$fb-allow-
|
51
|
+
$fb-disable-allowed: $fb-allow-disabled
|
52
|
+
$fb-allow-disabled: true
|
53
53
|
+fancy-button-structure($font-size, $radius, $border-width)
|
54
54
|
+fancy-button-colors-matte($color)
|
55
|
-
$fb-allow-
|
55
|
+
$fb-allow-disabled: $fb-disable-allowed
|
56
56
|
|
57
57
|
=fancy-button-matte($color: $fb-color, $font-size: $fb-font-size, $radius: $fb-radius, $border-width: $fb-border-width)
|
58
58
|
+fancy-button-structure($font-size, $radius, $border-width)
|
@@ -171,7 +171,8 @@ $fb-line-height: 1.2em !default
|
|
171
171
|
=disable-fancy-button($color: $fb-color, $opacity: 0.7)
|
172
172
|
+fb-color($color, "default")
|
173
173
|
+opacity($opacity)
|
174
|
+
+box-shadow(none)
|
174
175
|
cursor: default !important
|
175
176
|
|
176
177
|
.fancy-button-reset-base-class
|
177
|
-
+fb-reset
|
178
|
+
+fb-reset
|
data/lib/version.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
module FancyButtons
|
2
|
+
module Version
|
3
|
+
# Returns a hash representing the version.
|
4
|
+
# The :major, :minor, and :teeny keys have their respective numbers.
|
5
|
+
# The :string key contains a human-readable string representation of the version.
|
6
|
+
# The :rev key will have the current revision hash.
|
7
|
+
#
|
8
|
+
# This method swiped from Compass by Chris Eppstein who swiped it from Haml and then modified it, so some credit goes to Nathan Weizenbaum too.
|
9
|
+
def version
|
10
|
+
if defined?(@version)
|
11
|
+
@version
|
12
|
+
else
|
13
|
+
read_version
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
protected
|
18
|
+
|
19
|
+
def scope(file) # :nodoc:
|
20
|
+
File.join(File.dirname(__FILE__), '..', file)
|
21
|
+
end
|
22
|
+
|
23
|
+
def read_version
|
24
|
+
require 'yaml'
|
25
|
+
@version = YAML::load(File.read(scope('VERSION.yml')))
|
26
|
+
@version[:teeny] = @version[:patch]
|
27
|
+
@version[:string] = "#{@version[:major]}.#{@version[:minor]}"
|
28
|
+
@version[:string] << ".#{@version[:patch]}" if @version[:patch]
|
29
|
+
@version[:string] << ".#{@version[:state]}" if @version[:state]
|
30
|
+
@version[:string] << ".#{@version[:build]}" if @version[:build]
|
31
|
+
#if !ENV['OFFICIAL'] && r = revision
|
32
|
+
# @version[:string] << ".#{r[0..6]}"
|
33
|
+
#end
|
34
|
+
@version
|
35
|
+
end
|
36
|
+
|
37
|
+
def revision
|
38
|
+
revision_from_git
|
39
|
+
end
|
40
|
+
|
41
|
+
def revision_from_git
|
42
|
+
if File.exists?(scope('.git/HEAD'))
|
43
|
+
rev = File.read(scope('.git/HEAD')).strip
|
44
|
+
if rev =~ /^ref: (.*)$/
|
45
|
+
rev = File.read(scope(".git/#{$1}")).strip
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
extend FancyButtons::Version
|
51
|
+
def self.const_missing(const)
|
52
|
+
# This avoid reading from disk unless the VERSION is requested.
|
53
|
+
if const == :VERSION
|
54
|
+
version[:string]
|
55
|
+
else
|
56
|
+
super
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy-buttons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Mathis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-22 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
hash: 59
|
30
30
|
segments:
|
@@ -34,18 +34,18 @@ dependencies:
|
|
34
34
|
version: 0.10.6
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
|
-
description:
|
37
|
+
description: Fancy Buttons helps you easily style buttons with beautiful CSS3 features like gradients, rounded corners, etc. Don't worry the buttons also degrade nicely for browsers with no support. This requires the Compass stylesheet authoring framework.
|
38
38
|
email: brandon@imathis.com
|
39
39
|
executables: []
|
40
40
|
|
41
41
|
extensions: []
|
42
42
|
|
43
|
-
extra_rdoc_files:
|
44
|
-
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
45
45
|
files:
|
46
46
|
- README.markdown
|
47
|
+
- VERSION.yml
|
47
48
|
- Rakefile
|
48
|
-
- fancy-buttons.gemspec
|
49
49
|
- lib/fancy-buttons.rb
|
50
50
|
- lib/stylesheets/_fancy-buttons.sass
|
51
51
|
- lib/stylesheets/_fancy-gradient.sass
|
@@ -53,13 +53,14 @@ files:
|
|
53
53
|
- lib/templates/project/button_bg.png
|
54
54
|
- lib/templates/project/ie6.sass
|
55
55
|
- lib/templates/project/manifest.rb
|
56
|
+
- lib/version.rb
|
56
57
|
has_rdoc: true
|
57
58
|
homepage: http://github.com/imathis/fancy-buttons
|
58
59
|
licenses: []
|
59
60
|
|
60
61
|
post_install_message:
|
61
|
-
rdoc_options:
|
62
|
-
|
62
|
+
rdoc_options: []
|
63
|
+
|
63
64
|
require_paths:
|
64
65
|
- lib
|
65
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -83,9 +84,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
84
|
requirements: []
|
84
85
|
|
85
86
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.4.2
|
87
88
|
signing_key:
|
88
89
|
specification_version: 3
|
89
|
-
summary: Make fancy buttons with the Compass stylesheet authoring framework.
|
90
|
+
summary: Make fancy CSS3 buttons with the Compass stylesheet authoring framework.
|
90
91
|
test_files: []
|
91
92
|
|
data/fancy-buttons.gemspec
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{fancy-buttons}
|
8
|
-
s.version = "1.0.4"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Brandon Mathis"]
|
12
|
-
s.date = %q{2010-10-30}
|
13
|
-
s.description = %q{Easily style buttons with beautiful CSS3 features like gradients, rounded corners, etc. Don't worry the buttons also degrade nicely for browsers with no support. This requires the Compass stylesheet authoring framework.}
|
14
|
-
s.email = %q{brandon@imathis.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.markdown"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
"README.markdown",
|
20
|
-
"Rakefile",
|
21
|
-
"fancy-buttons.gemspec",
|
22
|
-
"lib/fancy-buttons.rb",
|
23
|
-
"lib/stylesheets/_fancy-buttons.sass",
|
24
|
-
"lib/stylesheets/_fancy-gradient.sass",
|
25
|
-
"lib/stylesheets/_fancy_buttons.sass",
|
26
|
-
"lib/templates/project/button_bg.png",
|
27
|
-
"lib/templates/project/ie6.sass",
|
28
|
-
"lib/templates/project/manifest.rb"
|
29
|
-
]
|
30
|
-
s.homepage = %q{http://github.com/imathis/fancy-buttons}
|
31
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
32
|
-
s.require_paths = ["lib"]
|
33
|
-
s.rubygems_version = %q{1.3.7}
|
34
|
-
s.summary = %q{Make fancy buttons with the Compass stylesheet authoring framework.}
|
35
|
-
|
36
|
-
if s.respond_to? :specification_version then
|
37
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
38
|
-
s.specification_version = 3
|
39
|
-
|
40
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
-
s.add_runtime_dependency(%q<compass>, [">= 0.10.6"])
|
42
|
-
else
|
43
|
-
s.add_dependency(%q<compass>, [">= 0.10.6"])
|
44
|
-
end
|
45
|
-
else
|
46
|
-
s.add_dependency(%q<compass>, [">= 0.10.6"])
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|