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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb0533a870e52a6c3b55b3d1f90d480b0cb66382
4
- data.tar.gz: c2a8981e6f3cda226c5d32028926504b3ef8460a
3
+ metadata.gz: 122ddc75a47b565b35a73c00a876d842c2e4fc8d
4
+ data.tar.gz: fbdecd91734422478c15fffd4fa738ba032593d0
5
5
  SHA512:
6
- metadata.gz: 505eaa51cb84121ef241c8a339a7e73d5fbc617ad9fc5660972a42f3204c4fb5efee365de734a88361e61b338808403ec11558e80e00c3f9a3d95390915114fe
7
- data.tar.gz: 07d60f5dccdf219a3a9abdd52f60bbb325d1f24c48d476213c5559cbf44cdb74c6e75635cc758f70df8c0dedbbf130a83213d69cb727796f8e2c7f195f90d1c3
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')
@@ -1,3 +1,3 @@
1
1
  module IncludeMediaRails
2
- VERSION = "1.4.5"
2
+ VERSION = "1.4.6"
3
3
  end
data/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "include_media_rails",
3
+ "version": "1.4.5",
4
+ "description": "[![Travis CI Build Badge](https://travis-ci.org/KaoruDev/include_media_rails.svg?branch=master)](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
@@ -0,0 +1,7 @@
1
+ var del = require('del');
2
+ var gulp = require('gulp');
3
+ var paths = require('./configs/paths');
4
+
5
+ gulp.task('clean', (done) => {
6
+ del(`${paths.dist}/include_media.scss`).then(() => done());
7
+ });
@@ -0,0 +1,7 @@
1
+ var path = require('path');
2
+ var repoRoot = path.join(__dirname, '../../');
3
+
4
+ module.exports = {
5
+ dist: `${repoRoot}vendor/assets/stylesheets`,
6
+ source: `${repoRoot}node_modules/include-media/dist`,
7
+ };
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.5
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.5
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: