pixelearth 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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%;
@@ -1,5 +1,4 @@
1
- //formtastic
2
- -semantic_form_for @resource do |form|
1
+ -simple_form_for @resource do |form|
3
2
  = form.inputs
4
3
  = form.buttons
5
4
 
@@ -1,5 +1,5 @@
1
1
  <% for attribute in attributes -%>
2
- %p.resource_attribute
2
+ %div.resource_attribute
3
3
  .resource_label <%= attribute.human_name %>:
4
4
  .resource_value
5
5
  = @resource.<%= attribute.name %>
@@ -11,14 +11,15 @@
11
11
 
12
12
  = csrf_meta_tag
13
13
  = stylesheet_link_tag @layout[:css].flatten.uniq
14
- = javascript_include_tag :defaults
15
-
14
+
16
15
  /must be called before noConflict
17
- = javascript_include_tag 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'
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
@@ -1,3 +1,3 @@
1
1
  module Pixelearth
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/pixelearth.rb CHANGED
@@ -3,7 +3,7 @@ this_dir = File.expand_path('../', __FILE__)
3
3
  require 'rails'
4
4
  require 'haml-rails'
5
5
  require 'redcloth'
6
- require 'formtastic'
6
+ require 'simple_form'
7
7
  require 'redgreen'
8
8
  require 'colored'
9
9
 
@@ -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|
@@ -1,6 +1,8 @@
1
1
  class String
2
- def say_hi
3
- "hi mom"
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 "formtastic"
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
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-10 00:00:00 -05:00
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: formtastic
50
+ name: simple_form
51
51
  prerelease: false
52
52
  requirement: &id003 !ruby/object:Gem::Requirement
53
53
  none: false