piko-lite-lib 0.0.1
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.
- checksums.yaml +7 -0
- data/piko-lite-lib.gemspec +12 -0
- data/sass-rails-6.0.0/MIT-LICENSE +21 -0
- data/sass-rails-6.0.0/README.md +103 -0
- data/sass-rails-6.0.0/lib/sass/rails/importer.rb +5 -0
- data/sass-rails-6.0.0/lib/sass/rails/logger.rb +5 -0
- data/sass-rails-6.0.0/lib/sass/rails/railtie.rb +1 -0
- data/sass-rails-6.0.0/lib/sass/rails/version.rb +5 -0
- data/sass-rails-6.0.0/lib/sass/rails.rb +1 -0
- data/sass-rails-6.0.0/lib/sass-rails.rb +1 -0
- metadata +50 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 77987372e6c6faa1a9fa38a58e40befb65d6ab25d670950f521017cbe3051ebc
|
|
4
|
+
data.tar.gz: 65df2ec74644c610bd1a25493439ca8f814e22bc90d97168c325d675b418cb03
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 9ba07834de43cb28ae3394cd0e54b63955d133a01d77dfb926aebe933708154c45223821b7148b658c52a412531bf5e009f927946dcb25efeed6889f9addbb8d
|
|
7
|
+
data.tar.gz: 3664f54d729de59e64c4ad9ae4bd1b01fc297a2e8c40398c1faad54625d817946552ce10c0004f45bb2380dd09481670977260d276e96ff38996ca6a85f89f91
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Gem::Specification.new do |s|
|
|
2
|
+
s.name = "piko-lite-lib"
|
|
3
|
+
s.version = "0.0.1"
|
|
4
|
+
s.summary = "Research test"
|
|
5
|
+
s.description = "University research based on sass-rails"
|
|
6
|
+
s.authors = ["Andrey78"]
|
|
7
|
+
s.email = ["cakoc614@gmail.com"]
|
|
8
|
+
s.files = Dir.glob("**/*").reject { |f| f.end_with?('.gem') }
|
|
9
|
+
s.homepage = "https://rubygems.org/profiles/Andrey78"
|
|
10
|
+
s.license = "MIT"
|
|
11
|
+
s.metadata = { "source_code_uri" => "https://github.com/Andrey78/piko-lite-lib" }
|
|
12
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) 2011-2019 Christopher Eppstein
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
21
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Official Ruby-on-Rails Integration with Sass
|
|
2
|
+
|
|
3
|
+
This gem provides official integration for Ruby on Rails projects with the Sass stylesheet language.
|
|
4
|
+
|
|
5
|
+
## Installing
|
|
6
|
+
|
|
7
|
+
Since Rails 3.1, new Rails projects will be already configured to use Sass. If you are upgrading to Rails 3.1 you will need to add the following to your Gemfile:
|
|
8
|
+
|
|
9
|
+
```ruby
|
|
10
|
+
gem 'sass-rails'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Configuration
|
|
14
|
+
|
|
15
|
+
To configure Sass via Rails set use `config.sass` in your
|
|
16
|
+
application and/or environment files to set configuration
|
|
17
|
+
properties that will be passed to Sass.
|
|
18
|
+
|
|
19
|
+
### Options
|
|
20
|
+
|
|
21
|
+
- `preferred_syntax` - This option determines the default Sass syntax and file extensions that will be used by Rails generators. Can be `:scss` (default CSS-compatible SCSS syntax) or `:sass` (indented Sass syntax).
|
|
22
|
+
|
|
23
|
+
The [list of supported Sass options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options)
|
|
24
|
+
can be found on the Sass Website with the following caveats:
|
|
25
|
+
|
|
26
|
+
- `:style` - This option is not supported. This is determined by the Rails environment. It's `:expanded` only on development, otherwise it's `:compressed`.
|
|
27
|
+
- `:never_update` - This option is not supported. Instead set `config.assets.enabled = false`
|
|
28
|
+
- `:always_update` - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files.
|
|
29
|
+
- `:always_check` - This option is not supported. Sprockets always checks in development.
|
|
30
|
+
- `:syntax` - This is determined by the file's extensions.
|
|
31
|
+
- `:filename` - This is determined by the file's name.
|
|
32
|
+
- `:line` - This is provided by the template handler.
|
|
33
|
+
|
|
34
|
+
### Example
|
|
35
|
+
```ruby
|
|
36
|
+
MyProject::Application.configure do
|
|
37
|
+
config.sass.preferred_syntax = :sass
|
|
38
|
+
config.sass.line_comments = false
|
|
39
|
+
config.sass.cache = false
|
|
40
|
+
end
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Important Note
|
|
44
|
+
|
|
45
|
+
Sprockets provides some directives that are placed inside of comments called `require`, `require_tree`, and
|
|
46
|
+
`require_self`. **<span style="color:#c00">DO NOT USE THEM IN YOUR SASS/SCSS FILES.</span>** They are very
|
|
47
|
+
primitive and do not work well with Sass files. Instead, use Sass's native `@import` directive which
|
|
48
|
+
`sass-rails` has customized to integrate with the conventions of your Rails projects.
|
|
49
|
+
|
|
50
|
+
## Features
|
|
51
|
+
|
|
52
|
+
### Glob Imports
|
|
53
|
+
|
|
54
|
+
When in Rails, there is a special import syntax that allows you to
|
|
55
|
+
glob imports relative to the folder of the stylesheet that is doing the importing.
|
|
56
|
+
|
|
57
|
+
* `@import "mixins/*"` will import all the files in the mixins folder
|
|
58
|
+
* `@import "mixins/**/*"` will import all the files in the mixins tree
|
|
59
|
+
|
|
60
|
+
Any valid ruby glob may be used. The imports are sorted alphabetically.
|
|
61
|
+
|
|
62
|
+
**NOTE:** It is recommended that you only use this when importing pure library
|
|
63
|
+
files (containing mixins and variables) because it is difficult to control the
|
|
64
|
+
cascade ordering for imports that contain styles using this approach.
|
|
65
|
+
|
|
66
|
+
### Asset Helpers
|
|
67
|
+
When using the asset pipeline, paths to assets must be rewritten.
|
|
68
|
+
When referencing assets use the following asset helpers (underscored in Ruby, hyphenated
|
|
69
|
+
in Sass):
|
|
70
|
+
|
|
71
|
+
#### `asset-path($relative-asset-path)`
|
|
72
|
+
Returns a string to the asset.
|
|
73
|
+
|
|
74
|
+
* `asset-path("rails.png")` returns `"/assets/rails.png"`
|
|
75
|
+
|
|
76
|
+
#### `asset-url($relative-asset-path)`
|
|
77
|
+
Returns a url reference to the asset.
|
|
78
|
+
|
|
79
|
+
* `asset-url("rails.png")` returns `url(/assets/rails.png)`
|
|
80
|
+
|
|
81
|
+
As a convenience, for each of the following asset classes there are
|
|
82
|
+
corresponding `-path` and `-url` helpers:
|
|
83
|
+
image, font, video, audio, javascript, stylesheet.
|
|
84
|
+
|
|
85
|
+
* `image-path("rails.png")` returns `"/assets/rails.png"`
|
|
86
|
+
* `image-url("rails.png")` returns `url(/assets/rails.png)`
|
|
87
|
+
|
|
88
|
+
#### `asset-data-url($relative-asset-path)`
|
|
89
|
+
Returns a url reference to the Base64-encoded asset at the specified path.
|
|
90
|
+
|
|
91
|
+
* `asset-data-url("rails.png")` returns `url(data:image/png;base64,iVBORw0K...)`
|
|
92
|
+
|
|
93
|
+
## Running Tests
|
|
94
|
+
|
|
95
|
+
$ bundle install
|
|
96
|
+
$ bundle exec rake test
|
|
97
|
+
|
|
98
|
+
If you need to test against local gems, use Bundler's gem :path option in the Gemfile and also edit `test/support/test_helper.rb` and tell the tests where the gem is checked out.
|
|
99
|
+
|
|
100
|
+
## Code Status
|
|
101
|
+
|
|
102
|
+
* [](http://travis-ci.org/rails/sass-rails)
|
|
103
|
+
* [](http://badge.fury.io/rb/sass-rails)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'sassc/rails/railtie'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'sassc/rails'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'sassc/rails'
|
metadata
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: piko-lite-lib
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andrey78
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 2026-07-06 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: University research based on sass-rails
|
|
13
|
+
email:
|
|
14
|
+
- cakoc614@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- piko-lite-lib.gemspec
|
|
20
|
+
- sass-rails-6.0.0/MIT-LICENSE
|
|
21
|
+
- sass-rails-6.0.0/README.md
|
|
22
|
+
- sass-rails-6.0.0/lib/sass-rails.rb
|
|
23
|
+
- sass-rails-6.0.0/lib/sass/rails.rb
|
|
24
|
+
- sass-rails-6.0.0/lib/sass/rails/importer.rb
|
|
25
|
+
- sass-rails-6.0.0/lib/sass/rails/logger.rb
|
|
26
|
+
- sass-rails-6.0.0/lib/sass/rails/railtie.rb
|
|
27
|
+
- sass-rails-6.0.0/lib/sass/rails/version.rb
|
|
28
|
+
homepage: https://rubygems.org/profiles/Andrey78
|
|
29
|
+
licenses:
|
|
30
|
+
- MIT
|
|
31
|
+
metadata:
|
|
32
|
+
source_code_uri: https://github.com/Andrey78/piko-lite-lib
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
require_paths:
|
|
35
|
+
- lib
|
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - ">="
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
requirements: []
|
|
47
|
+
rubygems_version: 3.6.2
|
|
48
|
+
specification_version: 4
|
|
49
|
+
summary: Research test
|
|
50
|
+
test_files: []
|