pixelearth 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/generators/project_files/templates/stylesheets/sass/pixelearth.scss +18 -0
- data/lib/generators/project_files/templates/view_templates/haml/scaffold/_form.html.haml +1 -2
- data/lib/generators/project_files/templates/view_templates/haml/scaffold/show.html.haml +1 -1
- data/lib/generators/project_files/templates/views/application.html.haml +4 -3
- data/lib/pixelearth/version.rb +1 -1
- data/lib/pixelearth.rb +1 -1
- data/lib/required/ruby_core_mods.rb +0 -9
- data/lib/required/string.rb +5 -3
- data/pixelearth.gemspec +1 -1
- metadata +5 -5
@@ -94,6 +94,9 @@ a.index_destroy {
|
|
94
94
|
}
|
95
95
|
|
96
96
|
/* show page */
|
97
|
+
.resource_attribute {
|
98
|
+
margin-bottom:5px;
|
99
|
+
}
|
97
100
|
.resource_label {
|
98
101
|
background-color:#eee;
|
99
102
|
width:200px;
|
@@ -104,9 +107,11 @@ a.index_destroy {
|
|
104
107
|
margin-left:220px;
|
105
108
|
margin-top:-25px;
|
106
109
|
padding:5px;
|
110
|
+
min-height:15px;
|
107
111
|
}
|
108
112
|
|
109
113
|
|
114
|
+
|
110
115
|
label {
|
111
116
|
font-weight:800;
|
112
117
|
color:#2B4F81;
|
@@ -120,6 +125,19 @@ div.field {
|
|
120
125
|
}
|
121
126
|
/* columns */
|
122
127
|
|
128
|
+
.col_of_2 {
|
129
|
+
float:left;
|
130
|
+
width:49%;
|
131
|
+
}
|
132
|
+
.col_of_2.left {
|
133
|
+
margin-right:5px;
|
134
|
+
}
|
135
|
+
.col_of_2.right {
|
136
|
+
margin-left:5px;
|
137
|
+
}
|
138
|
+
|
139
|
+
|
140
|
+
|
123
141
|
.col_of_3 {
|
124
142
|
float:left;
|
125
143
|
width:30%;
|
@@ -11,14 +11,15 @@
|
|
11
11
|
|
12
12
|
= csrf_meta_tag
|
13
13
|
= stylesheet_link_tag @layout[:css].flatten.uniq
|
14
|
-
|
15
|
-
|
14
|
+
|
16
15
|
/must be called before noConflict
|
17
|
-
= javascript_include_tag '
|
16
|
+
= javascript_include_tag 'jquery-1.5.1.min.js' #apparently has to be called before prototype
|
18
17
|
|
19
18
|
:javascript
|
20
19
|
jQuery.noConflict(); //must be run before any other 'plugins' that use these libraries
|
21
20
|
|
21
|
+
|
22
|
+
= javascript_include_tag :defaults
|
22
23
|
= javascript_include_tag @layout[:js].flatten.uniq
|
23
24
|
|
24
25
|
%style
|
data/lib/pixelearth/version.rb
CHANGED
data/lib/pixelearth.rb
CHANGED
@@ -1,12 +1,3 @@
|
|
1
|
-
class String
|
2
|
-
def first_caps
|
3
|
-
self.split(/ /).map{|x| x.capitalize}.join(' ')
|
4
|
-
end
|
5
|
-
def sp_to_underscore #fills in the gap in rails inflectors, since their #underscore method only works for CamelCase
|
6
|
-
self.downcase.gsub(/\s+/,"_")
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
1
|
class Dir
|
11
2
|
def filter(regex)
|
12
3
|
self.select do |x|
|
data/lib/required/string.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
class String
|
2
|
-
def
|
3
|
-
|
2
|
+
def first_caps
|
3
|
+
self.split(/ /).map{|x| x.capitalize}.join(' ')
|
4
|
+
end
|
5
|
+
def my_underscore #fills in the gap in rails inflectors, since their #underscore method only works for CamelCase
|
6
|
+
self.downcase.gsub(/\s+/,"_")
|
4
7
|
end
|
5
8
|
end
|
6
|
-
|
data/pixelearth.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
#these need to be included manually in pixelearth.rb
|
16
16
|
s.add_dependency "haml-rails"
|
17
17
|
s.add_dependency "RedCloth"
|
18
|
-
s.add_dependency "
|
18
|
+
s.add_dependency "simple_form"
|
19
19
|
s.add_dependency "redgreen" #colorizes output for tests, 'required' test/test_helper.rb
|
20
20
|
s.add_dependency "colored" #colored output in terminal http://github.com/defunkt/colored/blob/master/lib/colored.rb
|
21
21
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pixelearth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benjamin Lieb
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-14 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: simple_form
|
51
51
|
prerelease: false
|
52
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|