include_media_rails 1.4.5 → 1.4.6
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 +4 -4
- data/README.md +8 -0
- data/gulpfile.js +1 -0
- data/lib/include_media_rails/version.rb +1 -1
- data/package.json +28 -0
- data/tasks/clean.js +7 -0
- data/tasks/configs/paths.js +7 -0
- data/tasks/download.js +20 -0
- data/tasks/update.js +12 -0
- data/vendor/assets/stylesheets/include_media.scss +4 -3
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 122ddc75a47b565b35a73c00a876d842c2e4fc8d
|
4
|
+
data.tar.gz: fbdecd91734422478c15fffd4fa738ba032593d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a49b9a2cf71e1b3420ff770db465f36cd2b75418cfbe12c9c5b872fd66dc743cde2166d074c23705fc46d6d04e5a8c6773df8f380df8b7303501e6415349927e
|
7
|
+
data.tar.gz: 9feb98d69fd76a14c07725c194b3f5b38f0b4f3c35585361b34da8f867b30ed014412fb96d675941784ca9eb29b713bcf54ccd572909d952d773fd9c36112084
|
data/README.md
CHANGED
@@ -54,6 +54,7 @@ Available versions:
|
|
54
54
|
1.4.2.1
|
55
55
|
1.4.3
|
56
56
|
1.4.5
|
57
|
+
1.4.6
|
57
58
|
```
|
58
59
|
|
59
60
|
## Development
|
@@ -62,6 +63,13 @@ After checking out the repo, run `bin/setup` to install dependencies.
|
|
62
63
|
Then, run `rake spec` to run the tests. You can also run `bin/console`
|
63
64
|
for an interactive prompt that will allow you to experiment.
|
64
65
|
|
66
|
+
To quickly update `include-media` run `gulp update`. It will pull the
|
67
|
+
latest version from `npm` and copy `include-media` to the
|
68
|
+
`vendor/assets/stylesheets` directory.
|
69
|
+
|
70
|
+
To pull down a specific version of `include-media` pass in a `--version` flag
|
71
|
+
and set it to the target version. ie: `gulp update --version=1.4.2`
|
72
|
+
|
65
73
|
## Contributing
|
66
74
|
|
67
75
|
Bug reports and pull requests are welcome on GitHub at
|
data/gulpfile.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require('require-dir')('./tasks')
|
data/package.json
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "include_media_rails",
|
3
|
+
"version": "1.4.5",
|
4
|
+
"description": "[](https://travis-ci.org/KaoruDev/include_media_rails)",
|
5
|
+
"main": "index.js",
|
6
|
+
"dependencies": {},
|
7
|
+
"devDependencies": {
|
8
|
+
"del": "^2.2.0",
|
9
|
+
"gulp": "^3.9.1",
|
10
|
+
"gulp-rename": "^1.2.2",
|
11
|
+
"include-media": "^1.4.6",
|
12
|
+
"minimist": "^1.2.0",
|
13
|
+
"require-dir": "^0.3.0"
|
14
|
+
},
|
15
|
+
"scripts": {
|
16
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
17
|
+
},
|
18
|
+
"repository": {
|
19
|
+
"type": "git",
|
20
|
+
"url": "git+https://github.com/KaoruDev/include_media_rails.git"
|
21
|
+
},
|
22
|
+
"author": "Kaoru Kohashigawa",
|
23
|
+
"license": "MIT",
|
24
|
+
"bugs": {
|
25
|
+
"url": "https://github.com/KaoruDev/include_media_rails/issues"
|
26
|
+
},
|
27
|
+
"homepage": "https://github.com/KaoruDev/include_media_rails#readme"
|
28
|
+
}
|
data/tasks/clean.js
ADDED
data/tasks/download.js
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
var gulp = require('gulp');
|
2
|
+
var args = require('minimist')(process.argv.slice(2));
|
3
|
+
var spawn = require('child_process').spawn;
|
4
|
+
|
5
|
+
gulp.task('download', (done) => {
|
6
|
+
var version = '';
|
7
|
+
if (args.version) {
|
8
|
+
version = `@${args.version}`;
|
9
|
+
}
|
10
|
+
|
11
|
+
spawn('npm', ['install', '--save-dev', `include-media${version}`], {
|
12
|
+
stdio: ['inherit', 'inherit', 'inherit'],
|
13
|
+
}).on('close', (code) => {
|
14
|
+
if (code !== 0) {
|
15
|
+
console.warn('Update failed');
|
16
|
+
}
|
17
|
+
|
18
|
+
done();
|
19
|
+
});
|
20
|
+
});
|
data/tasks/update.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
var gulp = require('gulp');
|
2
|
+
var rename = require('gulp-rename');
|
3
|
+
var paths = require('./configs/paths');
|
4
|
+
|
5
|
+
gulp.task('update', ['download', 'clean'], () => {
|
6
|
+
gulp.src(paths.source + '/*.scss')
|
7
|
+
.pipe(rename({
|
8
|
+
basename: 'include_media',
|
9
|
+
extname: '.scss',
|
10
|
+
}))
|
11
|
+
.pipe(gulp.dest(paths.dist));
|
12
|
+
});
|
@@ -8,7 +8,7 @@
|
|
8
8
|
// |_|_| |_|\___|_|\__,_|\__,_|\___| |_| |_| |_|\___|\__,_|_|\__,_|
|
9
9
|
//
|
10
10
|
// Simple, elegant and maintainable media queries in Sass
|
11
|
-
// v1.4.
|
11
|
+
// v1.4.6
|
12
12
|
//
|
13
13
|
// http://include-media.com
|
14
14
|
//
|
@@ -84,7 +84,8 @@ $media-expressions: (
|
|
84
84
|
$unit-intervals: (
|
85
85
|
'px': 1,
|
86
86
|
'em': 0.01,
|
87
|
-
'rem': 0.1
|
87
|
+
'rem': 0.1,
|
88
|
+
'': 0
|
88
89
|
) !default;
|
89
90
|
|
90
91
|
///
|
@@ -565,4 +566,4 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
|
|
565
566
|
}
|
566
567
|
}
|
567
568
|
}
|
568
|
-
}
|
569
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: include_media_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaoru Kohashigawa
|
@@ -130,9 +130,15 @@ files:
|
|
130
130
|
- Rakefile
|
131
131
|
- bin/console
|
132
132
|
- bin/setup
|
133
|
+
- gulpfile.js
|
133
134
|
- include_media_rails.gemspec
|
134
135
|
- lib/include_media_rails.rb
|
135
136
|
- lib/include_media_rails/version.rb
|
137
|
+
- package.json
|
138
|
+
- tasks/clean.js
|
139
|
+
- tasks/configs/paths.js
|
140
|
+
- tasks/download.js
|
141
|
+
- tasks/update.js
|
136
142
|
- vendor/assets/stylesheets/include_media.scss
|
137
143
|
homepage: https://github.com/KaoruDev/include_media_rails
|
138
144
|
licenses:
|