fidelity 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +25 -27
  2. data/fidelity.gemspec +1 -1
  3. data/lib/fidelity/version.rb +1 -1
  4. metadata +12 -12
data/README.md CHANGED
@@ -4,43 +4,41 @@ A Ruby on Rails DSL for creating rapid prototypes. Depends on [Foundation](http:
4
4
  Install
5
5
  -----
6
6
 
7
- This is still in alpha and under development. But to test clone this rails engine:
7
+ This is still in alpha and under development. To install add the gem to your Gemfile in your Ruby on Rails 3.2 application:
8
8
 
9
- git clone@github.com/jhoglund/fidelity.git
10
-
11
- Link to in from gem to your Gemfile in your Ruby on Rails 3.2 application and add the 'zurb-foundation' gem:
12
-
13
- gem "fidelity", :path => 'path/to/the/git/repository'
14
- gem 'zurb-foundation'
9
+ gem "fidelity"
15
10
 
16
11
  Once you have it installed you need to run inside the rails applications root directory:
17
12
 
18
- rails g fidelity:install
13
+ rails g fidelity:install
19
14
 
20
15
 
21
16
  How to use
22
17
  -----
23
18
 
19
+ View full documentation at: `http://localhost:3000/fidelity`
20
+
24
21
  Below is a brief example of how to use the DSL (the example is a HAML template so don't forget to include the haml gem in your Gemfile to make the example work ).
25
22
 
26
23
  ```ruby
27
- = fidelity_for(:width => 960) do |f|
28
- = f.row do
29
- = f.column(3) do
30
- = f.widget :heading, 'Label'
31
- = f.column(9) do
32
- = f.widget :label, :content => 'This is the content of the label'
33
- = f.row(:border => true) do
34
- = f.column(3) do
35
- = f.widget :heading, 'Alert'
36
- = f.column(9) do
37
- = f.widget(:alert, :type => :success) do
38
- This is a success alert
39
- = f.widget(:alert, :type => :error) do
40
- This is a error alert
41
- = f.row(:border => true) do
42
- = f.column(3) do
43
- = f.widget :heading, 'Buttons'
44
- = f.column(9) do
45
- %p= f.widget :button, :size => 'medium', :corners => 'radius', :style => 'nice', :color => 'red', :label => 'Medium red nice looking button'
24
+ = fidelity_for do |f|
25
+ = f.grid do
26
+ = f.row do
27
+ = f.column(3) do
28
+ %h3 Label
29
+ = f.column(9) do
30
+ = f.widget :label, :content => 'This is the content of the label'
31
+ = f.row(:border => true) do
32
+ = f.column(3) do
33
+ %h3 Alert
34
+ = f.column(9) do
35
+ = f.widget(:alert, :type => :success) do
36
+ This is a success alert
37
+ = f.widget(:alert, :type => :error) do
38
+ This is a error alert
39
+ = f.row(:border => true) do
40
+ = f.column(3) do
41
+ %h3 Buttons
42
+ = f.column(9) do
43
+ %p= f.widget :button, :size => 'medium', :corners => 'radius', :style => 'nice', :color => 'red', :label => 'Medium red nice looking button'
46
44
  ```
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Fidelity::VERSION.dup
8
8
  s.authors = ['Jonas Höglunt']
9
9
  s.email = ['jonas.hoglund@fjordnet.com']
10
- s.homepage = 'http://fjordnet.com'
10
+ s.homepage = 'https://github.com/jhoglund/fidelity'
11
11
  s.summary = 'Simple prototyping DSL'
12
12
  s.description = 'Used for rapid UI prototyping.'
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Fidelity
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fidelity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &2152282660 !ruby/object:Gem::Requirement
16
+ requirement: &2168714660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152282660
24
+ version_requirements: *2168714660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &2152280860 !ruby/object:Gem::Requirement
27
+ requirement: &2168713640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.2'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152280860
35
+ version_requirements: *2168713640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: zurb-foundation
38
- requirement: &2152295320 !ruby/object:Gem::Requirement
38
+ requirement: &2168712480 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2152295320
46
+ version_requirements: *2168712480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdiscount
49
- requirement: &2152294500 !ruby/object:Gem::Requirement
49
+ requirement: &2168711100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2152294500
57
+ version_requirements: *2168711100
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: coderay
60
- requirement: &2152293760 !ruby/object:Gem::Requirement
60
+ requirement: &2168710300 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2152293760
68
+ version_requirements: *2168710300
69
69
  description: Used for rapid UI prototyping.
70
70
  email:
71
71
  - jonas.hoglund@fjordnet.com
@@ -146,7 +146,7 @@ files:
146
146
  - vendor/assets/stylesheets/fidelity/app.css
147
147
  - vendor/assets/stylesheets/fidelity/foundation_extra.css.scss
148
148
  - vendor/assets/stylesheets/fidelity/grid.css.scss
149
- homepage: http://fjordnet.com
149
+ homepage: https://github.com/jhoglund/fidelity
150
150
  licenses: []
151
151
  post_install_message:
152
152
  rdoc_options: []