skins 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40cdb04c1e6c3d5bf3cbc06011cae426df22068f
4
- data.tar.gz: eb05bfe491224a264aa3310d2477e71493a3c9ac
3
+ metadata.gz: 37a3c4f4feb8f67d5c220377d0f5a01ff0bfdddc
4
+ data.tar.gz: 01e5d51e15e02dec87cacb1ad5ae2a04abb00ca7
5
5
  SHA512:
6
- metadata.gz: 57c17ee9e9acc2bc1619ee9e9fd988e9334c8ce17360f911076dea4a3c128c910d2b853cfb9c1044d08338a3503a5cf8d48dde818edbd30f60edd7265ba3a456
7
- data.tar.gz: 3145a0c5d4d29505666bb8b3df2b6a7b96e3da6fe00b1e69de05df5e8ad4b4f8d41c4213bab6a257601de6f7aceca3ba52f30b1f12cb8de6d7c29500e437311c
6
+ metadata.gz: 72c5f53ff25f83f503dd254b669cf9b9becd1961294fa3951f7b4a2b6e4cbd2d836ed859618dbb854c7e5a4af0ace0df540be81f3826ae1517e6a888ae1c09de
7
+ data.tar.gz: fc4a7d69bf0e24997e7ffa4dd11c7943e8f25572e79b99a8dd2ba2ef53028f91249bd19fada3a9695d2d94433c7c0b497a3cd937a57499e6ff5fd0758b2459c8
@@ -0,0 +1,8 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
8
+ test/dummy/.sass-cache
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in skins.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ # gem 'byebug', group: [:development, :test]
@@ -0,0 +1,116 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ skins (0.0.1)
5
+ rails (~> 4.2.0.beta1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.2.0.beta4)
11
+ actionpack (= 4.2.0.beta4)
12
+ actionview (= 4.2.0.beta4)
13
+ activejob (= 4.2.0.beta4)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ rails-dom-testing (~> 1.0, >= 1.0.4)
16
+ actionpack (4.2.0.beta4)
17
+ actionview (= 4.2.0.beta4)
18
+ activesupport (= 4.2.0.beta4)
19
+ rack (~> 1.6.0.beta)
20
+ rack-test (~> 0.6.2)
21
+ rails-dom-testing (~> 1.0, >= 1.0.4)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
+ actionview (4.2.0.beta4)
24
+ activesupport (= 4.2.0.beta4)
25
+ builder (~> 3.1)
26
+ erubis (~> 2.7.0)
27
+ rails-dom-testing (~> 1.0, >= 1.0.4)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
29
+ activejob (4.2.0.beta4)
30
+ activesupport (= 4.2.0.beta4)
31
+ globalid (>= 0.3.0)
32
+ activemodel (4.2.0.beta4)
33
+ activesupport (= 4.2.0.beta4)
34
+ builder (~> 3.1)
35
+ activerecord (4.2.0.beta4)
36
+ activemodel (= 4.2.0.beta4)
37
+ activesupport (= 4.2.0.beta4)
38
+ arel (>= 6.0.0.beta2, < 6.1)
39
+ activesupport (4.2.0.beta4)
40
+ i18n (>= 0.7.0.beta1, < 0.8)
41
+ json (~> 1.7, >= 1.7.7)
42
+ minitest (~> 5.1)
43
+ thread_safe (~> 0.1)
44
+ tzinfo (~> 1.1)
45
+ arel (6.0.0.beta2)
46
+ builder (3.2.2)
47
+ erubis (2.7.0)
48
+ globalid (0.3.0)
49
+ activesupport (>= 4.1.0)
50
+ hike (1.2.3)
51
+ i18n (0.7.0.beta1)
52
+ jquery-rails (3.1.2)
53
+ railties (>= 3.0, < 5.0)
54
+ thor (>= 0.14, < 2.0)
55
+ json (1.8.1)
56
+ loofah (2.0.1)
57
+ nokogiri (>= 1.5.9)
58
+ mail (2.6.3)
59
+ mime-types (>= 1.16, < 3)
60
+ mime-types (2.4.3)
61
+ mini_portile (0.6.1)
62
+ minitest (5.4.3)
63
+ multi_json (1.10.1)
64
+ nokogiri (1.6.4.1)
65
+ mini_portile (~> 0.6.0)
66
+ rack (1.6.0.beta)
67
+ rack-test (0.6.2)
68
+ rack (>= 1.0)
69
+ rails (4.2.0.beta4)
70
+ actionmailer (= 4.2.0.beta4)
71
+ actionpack (= 4.2.0.beta4)
72
+ actionview (= 4.2.0.beta4)
73
+ activejob (= 4.2.0.beta4)
74
+ activemodel (= 4.2.0.beta4)
75
+ activerecord (= 4.2.0.beta4)
76
+ activesupport (= 4.2.0.beta4)
77
+ bundler (>= 1.3.0, < 2.0)
78
+ railties (= 4.2.0.beta4)
79
+ sprockets-rails (~> 3.0.0.beta1)
80
+ rails-deprecated_sanitizer (1.0.3)
81
+ activesupport (>= 4.2.0.alpha)
82
+ rails-dom-testing (1.0.4)
83
+ activesupport (>= 4.2.0.beta, < 5.0)
84
+ nokogiri (~> 1.6.0)
85
+ rails-deprecated_sanitizer (>= 1.0.1)
86
+ rails-html-sanitizer (1.0.1)
87
+ loofah (~> 2.0)
88
+ railties (4.2.0.beta4)
89
+ actionpack (= 4.2.0.beta4)
90
+ activesupport (= 4.2.0.beta4)
91
+ rake (>= 0.8.7)
92
+ thor (>= 0.18.1, < 2.0)
93
+ rake (10.3.2)
94
+ sprockets (2.12.3)
95
+ hike (~> 1.2)
96
+ multi_json (~> 1.0)
97
+ rack (~> 1.0)
98
+ tilt (~> 1.1, != 1.3.0)
99
+ sprockets-rails (3.0.0.beta1)
100
+ actionpack (>= 4.0)
101
+ activesupport (>= 4.0)
102
+ sprockets (~> 2.8)
103
+ sqlite3 (1.3.10)
104
+ thor (0.19.1)
105
+ thread_safe (0.3.4)
106
+ tilt (1.4.1)
107
+ tzinfo (1.2.2)
108
+ thread_safe (~> 0.1)
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ jquery-rails
115
+ skins!
116
+ sqlite3
@@ -0,0 +1,51 @@
1
+ Skins
2
+ =====
3
+
4
+ ![Skins](http://lugolabs.com/static/skins_listing_books.png)
5
+
6
+ Adds a thin layer of style to Rails scaffolds.
7
+
8
+ ### Usage
9
+
10
+ Add the gem to your Gemfile:
11
+
12
+ ```ruby
13
+ gem 'skins'
14
+ ```
15
+
16
+ You can also just copy the [stylesheet](https://raw.githubusercontent.com/lugolabs/skins/master/vendor/assets/stylesheets/skins-air.css) to the `/vendor/assets/stylesheets` folder of your app.
17
+
18
+ Require the skin file in your `application.css`
19
+
20
+ ```css
21
+ *= require skins-air
22
+ ```
23
+
24
+ Add the free Google fonts to your layout file:
25
+
26
+ ```html
27
+ <link href="http://fonts.googleapis.com/css?family=Quicksand:400,700" rel="stylesheet" type="text/css" />
28
+ ```
29
+
30
+ or run the convenient generator if you installed the gem:
31
+
32
+ ```shell
33
+ bin/rails g skins:install
34
+ ```
35
+
36
+ Add the CSS class to the `body` of your layout file:
37
+
38
+ ```html
39
+ <body class="skins-air">
40
+ ```
41
+
42
+ Now you are ready to go.
43
+
44
+ ![Skins](http://lugolabs.com/static/skins_new_record.png)
45
+
46
+ A screenshot of the skinned *New Record* page.
47
+
48
+
49
+ ---------
50
+
51
+ Copyright Lugo Labs. Uses [MIT-LICENSE](http://opensource.org/licenses/MIT).
Binary file
@@ -1,4 +1,5 @@
1
1
  require 'skins/engine'
2
+ require 'skins/version'
2
3
 
3
4
  module Skins
4
5
  end
@@ -1,3 +1,3 @@
1
1
  module Skins
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,27 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require "skins/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = "skins"
9
+ s.version = Skins::VERSION
10
+ s.authors = ["Artan Sinani"]
11
+ s.email = ["artan@lugolabs.com"]
12
+ s.homepage = "http://lugolabs.com/skins"
13
+ s.summary = "Skins adds a thin layer of style to Rails scaffolds."
14
+ s.description = "Skins change styles of HTML elements such as body, links, form elements, headers, therefore they are best suited for quick prototyping with scaffolds."
15
+ s.license = "MIT"
16
+
17
+ s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
18
+ s.test_files = Dir["test/**/*"]
19
+
20
+ s.add_dependency "rails", '~> 4.0', '>= 4.0.0'
21
+
22
+ s.files = `git ls-files`.split("\n")
23
+ s.require_path = 'lib'
24
+
25
+ s.add_development_dependency "sqlite3"
26
+ s.add_development_dependency "jquery-rails"
27
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,167 @@
1
+ .skins-air {
2
+ background-color: #fff;
3
+ color: #333;
4
+ font-family: Quicksand, verdana, arial, helvetica, sans-serif;
5
+ font-size: 100%;
6
+ font-weight: 400;
7
+ margin: 0;
8
+ padding: 1em 3em;
9
+ line-height: 1.4;
10
+ }
11
+
12
+ .skins-air a {
13
+ color: #08c;
14
+ text-decoration: none;
15
+ }
16
+
17
+ .skins-air a:visited {
18
+ color: #08c;
19
+ }
20
+
21
+ .skins-air a:hover {
22
+ text-decoration: underline;
23
+ }
24
+
25
+ .skins-air a[data-method="delete"] {
26
+ color: #F44141;
27
+ }
28
+
29
+ .skins-air h1 {
30
+ font-size: 2em;
31
+ margin-bottom: .5em;
32
+ }
33
+
34
+ /* form */
35
+
36
+ .skins-air .field, .skins-air .actions {
37
+ margin-bottom: .8em;
38
+ }
39
+
40
+
41
+ .skins-air input, .skins-air select, .skins-air textarea {
42
+ font-family: Quicksand, verdana, arial, helvetica, sans-serif;
43
+ font-size: 1em;
44
+ outline: 0;
45
+ margin: 0;
46
+ }
47
+
48
+ .skins-air input[type="text"],
49
+ .skins-air input[type="password"],
50
+ .skins-air textarea {
51
+ border: 1px solid #ccc;
52
+ padding: .3em .5em;
53
+ width: 20em;
54
+ }
55
+
56
+ .skins-air input[type="text"]:hover,
57
+ .skins-air input[type="password"]:hover,
58
+ .skins-air textarea:hover {
59
+ border-color: #08c;
60
+ }
61
+
62
+ .skins-air input[type="submit"],
63
+ .skins-air button {
64
+ padding: .5em 1em;
65
+ display: inline-block;
66
+ margin-top: 1em;
67
+ margin-bottom: 1em;
68
+ border-radius: 2px;
69
+ border: 1px solid #11B8DF;
70
+ border-bottom: 3px solid #0D96B6;
71
+ background: #53C0F9;
72
+ color: #fff;
73
+ text-align: center;
74
+ vertical-align: middle;
75
+ font-weight: bold;
76
+ line-height: 1.43;
77
+ -webkit-user-select: none;
78
+ -moz-user-select: none;
79
+ -ms-user-select: none;
80
+ user-select: none;
81
+ white-space: nowrap;
82
+ cursor: pointer;
83
+ }
84
+
85
+ .skins-air input[type="submit"]:active,
86
+ .skins-air button:active {
87
+ border-bottom-color: #41B5F0;
88
+ }
89
+
90
+ .skins-air textarea {
91
+ min-height: 5em;
92
+ }
93
+
94
+ .skins-air select {
95
+ padding: 0 2em;
96
+ height: 2em;
97
+ border: 1px solid #ccc;
98
+ background: white;
99
+ display: inline-block;
100
+ font-size: 1em;
101
+ }
102
+
103
+ /* form errors */
104
+
105
+ .skins-air .field_with_errors {
106
+ display: inline-block;
107
+ color: #F72525;
108
+ }
109
+
110
+ .skins-air .field_with_errors input[type="text"],
111
+ .skins-air .field_with_errors input[type="password"] {
112
+ border-color: #FA7A7A;
113
+ }
114
+
115
+ /* table */
116
+
117
+ .skins-air table {
118
+ border-collapse: collapse;
119
+ border-spacing: 0;
120
+ }
121
+
122
+ .skins-air th,
123
+ .skins-air td {
124
+ text-align: left;
125
+ vertical-align: top;
126
+ padding: .5em .8em;
127
+ border-bottom: 1px solid #eee;
128
+ }
129
+
130
+ .skins-air th:first-child,
131
+ .skins-air td:first-child {
132
+ padding-left: 0;
133
+ }
134
+
135
+ .skins-air th:last-child,
136
+ .skins-air td:last-child {
137
+ padding-right: 0;
138
+ }
139
+
140
+ .skins-air th {
141
+ border-bottom-width: 3px;
142
+ }
143
+
144
+ /* errors */
145
+
146
+ .skins-air #notice {
147
+ color: #368913;
148
+ font-weight: bold;
149
+ }
150
+
151
+ .skins-air #error_explanation {
152
+ margin-bottom: 1em;
153
+ }
154
+
155
+ .skins-air #error_explanation h2 {
156
+ color: #FA7A7A;
157
+ }
158
+
159
+ .skins-air #error_explanation ul {
160
+ padding-left: 1.3em;
161
+ }
162
+
163
+ .skins-air #error_explanation li {
164
+ font-size: .9em;
165
+ list-style: square;
166
+ font-style: italic;
167
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artan Sinani
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0.beta1
19
+ version: '4.0'
20
+ - - '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 4.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: 4.2.0.beta1
29
+ version: '4.0'
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 4.0.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: sqlite3
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -60,22 +66,33 @@ executables: []
60
66
  extensions: []
61
67
  extra_rdoc_files: []
62
68
  files:
69
+ - .gitignore
70
+ - Gemfile
71
+ - Gemfile.lock
63
72
  - MIT-LICENSE
73
+ - README.md
64
74
  - Rakefile
75
+ - lib/generators/.DS_Store
65
76
  - lib/generators/skins/install_generator.rb
66
77
  - lib/skins.rb
67
78
  - lib/skins/engine.rb
68
79
  - lib/skins/version.rb
69
80
  - lib/tasks/skins_tasks.rake
81
+ - skins.gemspec
70
82
  - test/dummy/README.rdoc
71
83
  - test/dummy/Rakefile
84
+ - test/dummy/app/assets/images/.keep
72
85
  - test/dummy/app/assets/javascripts/application.js
73
86
  - test/dummy/app/assets/stylesheets/application.css
74
87
  - test/dummy/app/controllers/application_controller.rb
75
88
  - test/dummy/app/controllers/books_controller.rb
89
+ - test/dummy/app/controllers/concerns/.keep
76
90
  - test/dummy/app/helpers/application_helper.rb
77
91
  - test/dummy/app/helpers/books_helper.rb
92
+ - test/dummy/app/mailers/.keep
93
+ - test/dummy/app/models/.keep
78
94
  - test/dummy/app/models/book.rb
95
+ - test/dummy/app/models/concerns/.keep
79
96
  - test/dummy/app/views/books/_form.html.erb
80
97
  - test/dummy/app/views/books/edit.html.erb
81
98
  - test/dummy/app/views/books/index.html.erb
@@ -108,6 +125,8 @@ files:
108
125
  - test/dummy/db/development.sqlite3
109
126
  - test/dummy/db/migrate/20141116110032_create_books.rb
110
127
  - test/dummy/db/schema.rb
128
+ - test/dummy/lib/assets/.keep
129
+ - test/dummy/log/.keep
111
130
  - test/dummy/log/development.log
112
131
  - test/dummy/public/404.html
113
132
  - test/dummy/public/422.html
@@ -133,6 +152,7 @@ files:
133
152
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
134
153
  - test/skins_test.rb
135
154
  - test/test_helper.rb
155
+ - vendor/assets/stylesheets/skins-air.css
136
156
  homepage: http://lugolabs.com/skins
137
157
  licenses:
138
158
  - MIT